var curMenu;
window.name="mainwin"


//function sh(o){
	
//if (window["curMenu"]){window["curMenu"].className = "xMenu"}

//o.className = "xMenu xMenuO"
//window["curMenu"] = o

//}

function sendpage(NewLocation,nwindow){
if (!nwindow)
	{nwindow=window;nwindow.location=NewLocation}
else{nwindow.location.replace(NewLocation)}
}

function pagenotready(message)
{
 alert(message);
}




function showmenu(i){
	hidemenus()
		divTemp=document.all['div' + i]
		frameTemp=document.all['iframe' + i]
		tempOffSet=divTemp.parentElement.offsetLeft + document.all['temp'].offsetLeft+10
		divW = parseInt(divTemp.offsetWidth)
		frameW = parseInt(frameTemp.width)
		if(frameW>divW){divW=frameW}
		frameTemp.style.left = tempOffSet-10
		frameTemp.style.top = 132
		frameTemp.style.width=divW+2
		if(i==1){frameTemp.style.left = tempOffSet-11-frameW+parseInt(divTemp.offsetWidth)}
		frameTemp.style.display = "";
}

function roll(n){

if(document.getElementById(n).style.display=="none"){
return rollIt(n,false)

}
else{return rollIt(n,true)}

}

function rollIt(n,up){

	if(up){d="none";s="/images/rollDown.gif";a="Roll Down";r=true}
	else{d="";s="/images/rollUp.gif";a="Roll Up";r=false}

	document.getElementById(n).style.display=d
	document.getElementById(n + "Roll").src=s
	document.getElementById(n + "Roll").alt=a
	return r
}

function hidemenus(f){
		if(window["curMenu"]) window["curMenu"].className = "mainmenu"
		for (j = 1 ; j<12; j++)
		document.all['iframe' + j].style.left = -600;}

function popWin(wPage,wName,wParam){
	w = window.open(wPage, wName,wParam);
	w.focus()
}
