function lib_bwcheck(){ 
  this.ver=navigator.appVersion
  this.agent=navigator.userAgent
  this.dom=document.getElementById?1:0
  this.o5=this.agent.indexOf("Opera 5")>-1
  this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
  return this
}

bw=new lib_bwcheck() //Browsercheck object


function img_act(imgName,targetName) {
             imgOn = eval(imgName + "_on.src");
             document [targetName].src = imgOn;
}

function img_inact(imgName,targetName) {
             imgOff = eval(imgName + "_off.src");
             document [targetName].src = imgOff;
}

function wht(o) {
        o.className="naviHighLite";
        o.style.cursor='hand';
}

function drk(o) {

//        o.style.foreGroundColor='FF9900';
	o.className="naviPullDown";
        o.style.cursor='hand';
}

function openPopup(url,name) {

	window.open(url,name,'scrollbars=yes,resizable=yes,location=no,toolbar=no,height=520,width=750');
}

alllayers = new Array("","menu1","menu2","menu3","menu4","menu5","menu6","menu7","menu8","menu9");
firsttime = 0;

function displ(layname)
{
	defaultStatus = document.layers[layname].top +" foo "+document.layers[layname].left
}

if (document.layers) onload = init;

function init() {
	setTimeout("onresize = redo", 1000);
}

function redo() {
	location.reload();
}

function timers()
{
	this.time1=null;
	this.time2=null;
	this.time3=null;
}


function kM(numero)
{
	var layname = "menu" + numero;
	if (document.childNodes) // DOM mode
	{
		clearTimeout(timers.time1);
	}
	if (document.layers)
	{
		clearTimeout(timers.time1);
	}
}


function sM(numero)
{

	var layname = "menu" + numero;
	if (document.childNodes) // DOM mode
	{
		hideall();
		if(bw.ns6 == 1) {
			if(firsttime=="0") { clearTimeout(0); firsttime = 1; } else {
				clearTimeout(timers.time1); }
				document.getElementById(layname).style.visibility='visible';
			
		}
		else {
			clearTimeout(timers.time1);
			document.all[layname].style.visibility='visible';
		}
	}
	
	if(bw.o5 == "1")
	{
		hideall();
		clearTimeout(timers.time1);
		document.all[layname].style.visibility='visible';
	}
	if (document.layers)
	{
		clearTimeout(timers.time1);
		hideall();
		document.layers[layname].visibility='show';
	}
}

function hM()
{
	timers.time1=setTimeout("hideall();",3000);
}

function hideall()
{

	if (document.childNodes) // DOM mode
	{
		for (i= 1;i <= alllayers.length-1;i++)
		{
		if(bw.ns6 == 1) {
			document.getElementById(alllayers[i]).style.visibility='hidden';
		}
		else { document.all[alllayers[i]].style.visibility='hidden'; }

		}
	}

	if(bw.o5 == "1")
	{
		for (i= 1;i <= alllayers.length-1;i++)
		{
			document.all[alllayers[i]].style.visibility='hidden';
		}
	}
	if (document.layers)
	{
		for (i= 1;i <= alllayers.length-1;i++)
		{
			document.layers[alllayers[i]].visibility='hide';

		}
	}
	
}

