// ### function for toggling the event search #### //
function toggleSearch(){
	if (document.all.SearchBoxFrame.style.display == 'none'){ //turn on
			document.all.SearchBoxFrame.style.display = 'block';
			document.all.SearchBoxFrame.focus();
	} else { //turn off
		if (document.all.SearchBoxFrame.style.display == 'block'){
			document.all.SearchBoxFrame.style.display = 'none';	
		}
	}
}

// ### function for the menu #### //
// -- Highlight a leaf node of the menu 
function HighLightLeaf(x){
				x.className = 'MouseOverLeaf'
			}

// -- Lowlight a leaf node of the menu 
function LowLightLeaf(x){
	x.className = 'ChildLeaf'
}

// --Go to the web page specified on the leaf node of the menu 	
function GoToLink(strLink, intPopup){
	//alert(link)
	if (intPopup==1)
	{
	//create new window....
		var mywindow = window.open (strLink,"","location=1,status=0,scrollbars=1,toolbar=1,resizable,width=750,height=550");
	} else {
	//redirect curent window....
		window.location.href = strLink;	
	}
}

// --Go to the web page specified on the leaf node of the menu 	
function doLink(strLink, intX, intY)
{
	var mywindow = window.open (strLink,"","location=0,status=0,scrollbars=0,toolbar=0,resizable,width=" + intX + ",height=" + intY);
}