// check if the browser is Navigator 3 or higher:
agent = navigator.userAgent;
browserVer = 2;
if (agent.substring(0,7) == "Mozilla")
{
    if (parseInt(agent.substring(8,9)) >= 3) {browserVer = 1;}
}

if (navigator.appName == "Netscape")
{
	layerStyleRef="layer.";
	layerRef="document.layers";
	styleSwitch="";
	visibleVar="show";
}
else
{
	layerStyleRef="layer.style";
	layerRef="document.all";
 	styleSwitch=".style";
	visibleVar="visible";
}

if (browserVer == 1) {
 
 on1 = new Image;
 on2 = new Image;
 on3 = new Image;
 on4 = new Image;
 on5 = new Image;
 on6 = new Image;
 on7 = new Image;
 on8 = new Image;
 on9 = new Image;
 on10 = new Image;
 on11 = new Image;
 on12 = new Image;
 
 off1 = new Image;
 off2 = new Image;
 off3 = new Image;
 off4 = new Image;
 off5 = new Image;
 off6 = new Image;
 off7 = new Image;
 off8 = new Image;
 off9 = new Image;
 off10 = new Image;
 off11 = new Image;
 off12 = new Image;
 
 on1.src="img/bt01_on.gif"
 on2.src="img/bt02_on.gif"
 on3.src="img/bt03_on.gif"
 on4.src="img/bt04_on.gif"
 on5.src="img/bt05_on.gif"
 on6.src="img/bt06_on.gif"
 on7.src="img/bt07_on.gif"
 on8.src="img/bt08_on.gif"
 on9.src="img/bt_empresa_on.gif"
 on10.src="img/bt_fale_on.gif"
 on11.src="img/tit_racine_on.gif"
 on12.src="img/bt12_on.gif"

 off1.src="img/bt01_off.gif"
 off2.src="img/bt02_off.gif"
 off3.src="img/bt03_off.gif"
 off4.src="img/bt04_off.gif"
 off5.src="img/bt05_off.gif"
 off6.src="img/bt06_off.gif"
 off7.src="img/bt07_off.gif"
 off8.src="img/bt08_off.gif"
 off9.src="img/bt_empresa_off.gif"
 off10.src="img/bt_fale_off.gif"
 off11.src="img/tit_racine_off.gif"
 off12.src="img/bt12_off.gif"
}


function troca(atual, novo)
{
	if (browserVer == 1) { 
		eval('document.images["'+atual+'"].src='+novo+'.src');
	}
}