function JS_DYN_HEADER_LAYER
(theElement)
{
    alert("Hello World" );
    return true;
}

window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
var menuActive = 0
var menuOn = 0
var onLayer
var timeOn = null// LAYER SWITCHING CODE

var imageBase = "/pls/portal/docs/PAGE/GRP_WEBBANCHILE1/IMAGES/";

// SHOW MENU
function showLayer(layerName)
{
	if (NS4 || IE4) 
	{
 		if (timeOn != null) 
 		{
 			clearTimeout(timeOn)
 			hideLayer(onLayer)
 		}
 		if (NS4 || IE4) 
 		{
 			document.getElementById(layerName).style.visibility = "visible"; 	
		}
 		onLayer = layerName
 	}
}

// HIDE MENU
function hideLayer(layerName)
{
	if (menuActive == 0) 
	{
 		if (NS4 || IE4) 
 		{
 			document.getElementById(layerName).style.visibility = "hidden"; 	
 		}
 	}
}

// TIMER FOR BUTTON MOUSE OUT
function btnTimer() 
{
	timeOn = setTimeout("btnOut()",1000)
}

// BUTTON MOUSE OUT
function btnOut(layerName) 
{
 if (menuActive == 0) 
 {
	hideLayer(onLayer)
 }
}

// MENU MOUSE OVER
function menuOver() 
{
	clearTimeout(timeOn)
 	menuActive = 1
}

// MENU MOUSE OUT
function menuOut() 
{
	menuActive = 0
 	timeOn = setTimeout("hideLayer(onLayer)", 400)
}

function titleOver(image, layername, imageon)
{
	image.src=imageBase+imageon;
	showLayer(layername);
	
}

function titleOut(image, imageoff)
{
	image.src=imageBase+imageoff;
	btnTimer();
}
 

