
var layersLoaded = 0;

ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ) && (parseInt(navigator.appVersion) < 5 ));
ns6 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 5 ));


if (!ie4){
	if (!ns4) {
		if (!ns6) {
		window.location.href="browser.html"
		}
	}
}



//------------------------------------------------
function showLAYER(layName){
if (ns6 || ie4) {
if(document.getElementById)document.getElementById(layName).style.visibility='visible'
else if(document.all)document.all(layName).style.visibility='visible'
 }
if (ns4) {
document.layers[layName].visibility='show'
 }
}

function hideLAYER(layName){
if (ns6 || ie4) {
if(document.getElementById)document.getElementById(layName).style.visibility='hidden'
else if(document.all)document.all(layName).style.visibility='hidden'
 }
if (ns4) {
document.layers[layName].visibility='hide'
 }
}

function loadingAll() {
if (layersLoaded == 1) {
	if (ns6 || ie4) {
	if(document.getElementById) {
		document.getElementById('loading').style.visibility='hidden';
		showsample1();
		myTimer = setTimeout("LoadingAll()", 1000);
		clearTimeout(myTimer);
	}
	else if(document.all) {
		document.all('loading').style.visibility='hidden';
		showsample1();
		myTimer = setTimeout("LoadingAll()", 1000);
		clearTimeout(myTimer);
		}
	 }
	if (ns4) {
	document.layers['loading'].visibility='hide';
	showsample1();
	myTimer = setTimeout("LoadingAll()", 1000);
	clearTimeout(myTimer);
	 }
    }
}
