//The following script controls the horizontal drop-down menu

function swap(){this.className="msieFix"}
function swapBack(){this.className="trigger"}
function swapfocus() {this.parentNode.parentNode.parentNode.className="msieFix"}
function swapblur() {this.parentNode.parentNode.parentNode.className="trigger"}
function dropDown(){
	if (document.getElementById){	
	var LI = document.getElementsByTagName("li");
	var zLI= LI.length;
		for(var k=0;k<zLI;k++){
			if(LI[k].id){
//			LI[k].firstChild.href="#";
			LI[k].className="trigger";
			}
			if(LI[k].parentNode.parentNode.className=="trigger"){LI[k].firstChild.onfocus=swapfocus;LI[k].firstChild.onblur = swapblur}
			if(LI[k].className=="trigger"){LI[k].onmouseover=swap;LI[k].onmouseout=swapBack}
		}
	}
}


//The following script controls the left-hand links menu

clickMenu = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;

	for (var i=0; i<getEls.length; i++) {
			getEls[i].onclick=function() {
				for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("unclick", "");
				getAgn[x].className=getAgn[x].className.replace("click", "unclick");
				}
			if ((this.className.indexOf('unclick'))!=-1) {
				this.className=this.className.replace("unclick", "");;
				}
				else {
				this.className+=" click";
				}
			}
			getEls[i].onmouseover=function() {
				this.className+=" hover";
			}
			getEls[i].onmouseout=function() {
				this.className=this.className.replace("hover", "");
			}
		}
	}
	
// script to call both menu functions on page load
window.onload=function(){dropDown();clickMenu('leftMenu');}

function MM_openMap(url,nome,Scroll) {
  						 win = window.open(url,nome,"scrollbars=" + Scroll + ",status=no,resizable=no,toolbar=no,location=no,menu=no,width=" + 801 + ",height=" + 515 + ",screenX=" + 100 + ",screenY=" + 40 + ",left=" + 370 + ",top=" + 150);
							 win.focus();
}