var LinkDivActive = 0;
var bre = 80;
var onDiv;
var timeOnDiv;
var layerRef;
var styleRef;
var showVar;
var hideVar;

 layerRef="document.all.";
 styleRef=".style";
 showVar="'visible'";
 hideVar="'hidden'";


//Divisions Show | Hide
function hideDiv(divn) {
 eval(layerRef+divn+styleRef+'.visibility = '+hideVar);
}
function showDiv(divn) {
 eval(layerRef+divn+styleRef+'.visibility = '+showVar);
}

//Link Divisions Stuff
function showLinkDiv(divn) {
 if (timeOnDiv != null) {
  clearTimeout(timeOnDiv);
  hideDiv(onDiv);
 }
 showDiv(divn);
 onDiv = divn;
}

function divTimer() {
 timeOnDiv = setTimeout("divOut()",1000)
}

function divOut() {
 if (LinkDivActive == 0) {
  hideDiv(onDiv);
 }
}

function LinkDivOver() {
 LinkDivActive = 1;
 clearTimeout(timeOnDiv);
}

function LinkDivOut() {
 LinkDivActive = 0;
 timeOnDiv = setTimeout("divOut()",500)
}





function Hover(isover) {
  var it = event.srcElement;

  if(it.parentElement.className == 'menu' && it.tagName == 'TD'  )
 {
    it.style.cursor = isover ? 'hand' : 'default';
    it.parentElement.style.backgroundColor = isover ? '#F3F5FD' : '';
    if (event.type == 'click') location.href = it.parentElement.getAttribute('href');
    }
    if(it.parentElement.className == 'menu1' && it.tagName == 'TD' )
 {
    it.style.cursor = isover ? 'hand' : 'default';
    it.parentElement.style.backgroundColor = isover ? '#188BDB' : '';
    if (event.type == 'click') location.href = it.parentElement.getAttribute('href');
    }
    if(it.parentElement.className == 'map' && it.tagName == 'TD'  )
 {
    it.style.cursor = isover ? 'hand' : 'default';
    it.parentElement.style.backgroundColor = isover ? '#EAECFB' : '';
    if (event.type == 'click') location.href = it.parentElement.getAttribute('href');
    }
    if(it.parentElement.className == 'menuline' && it.tagName == 'TD'  )
 {
    it.style.cursor = isover ? 'hand' : 'default';
    it.parentElement.style.backgroundColor = isover ? '#6394bd' : '';
    if (event.type == 'click') location.href = it.parentElement.getAttribute('href');
    }

  }


	function tree(arg,url,item) {
		if(!item) { location.href = url; return; }
		if (document.all[arg].style.display == 'none') {
		document.all[arg].style.display = 'block';
		}
		else if (document.all[arg].style.display == 'block') {
		document.all[arg].style.display = 'none';
		}
	}
	function expand(arg) {
		document.all[arg].style.display = 'block';
	}
