// Browser-Check

// OS
isMac  = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;

// Browser
var ie4=document.all
var ie5=document.getElementById&&document.all
var ie6=document.getElementById&&document.all&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)

var ns4=document.layers
var ns6=document.getElementById&&!document.all

// Switch
function BrowserSwitch() {
	if (isMac && ie4 && ie5 && !ie6)
	{
		window.open('html/splash.html', 'Scanu','toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=716,height=535')
	}
	else
	{
		window.open('html/splash.html', 'Scanu','toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=716,height=535')
	}
}

var myHideTimeout
var myShowTimeout
var myShowId
var myHideId

var myHideNaviTimeout
var myHideNaviId

// Show/Hide functions for non-pointer layer/objects 
function show(id) { 
if (ns4) document.layers[id].visibility = "show" 
else if (ie4) document.all[id].style.visibility = "visible" 
else if(!document.all && document.getElementById) document.getElementById(id).style.visibility = "visible" 
}

function show2() { 
if (ns4) document.layers[myShowId].visibility = "show" 
else if (ie4) document.all[myShowId].style.visibility = "visible" 
else if(!document.all && document.getElementById) document.getElementById(myShowId).style.visibility = "visible" 
}


function showAfter(id,ms)
{
myShowId = id;
myShowTimeout=setTimeout('show2()',ms);
}

function hideAfter(id,ms) 
{
myHideId = id;
myHideTimeout=setTimeout('hide2()',ms); 
}

function hideNaviAfter(id,ms) 
{
myHideNaviId = id;
myHideNaviTimeout=setTimeout('hide3()',ms); 
}


function hide(id) { 
if (ns4) document.layers[id].visibility = "hide" 
else if (ie4) document.all[id].style.visibility = "hidden" 
else if(!document.all && document.getElementById) document.getElementById(id).style.visibility = "hidden" 
}

function hide2() { 
if (ns4) document.layers[myHideId].visibility = "hide" 
else if (ie4) document.all[myHideId].style.visibility = "hidden" 
else if(!document.all && document.getElementById) document.getElementById(myHideId).style.visibility = "hidden" 
}

function hide3() { 
if (ns4) document.layers[myHideNaviId].visibility = "hide" 
else if (ie4) document.all[myHideNaviId].style.visibility = "hidden" 
else if(!document.all && document.getElementById) document.getElementById(myHideNaviId).style.visibility = "hidden" 
}
