//<script>
var gCurrentOpen=""
var ns=(!document.all)?true:false;
var loaded=false
window.onload=function(){setBW()}
window.onresize=function(){setBW()}

try{
	function setBW(){
		bW=(ns)?window.innerWidth:document.body.offsetWidth;
		loaded=true
		if(ns){
			document.getElementById("mainArea").className="pa"
		}
		try{
			tryScriptSrc();
		}
		catch(e){;}
	}
}
catch(e){	;}

function showMenu(divId,t){
	if(!loaded){return}
	clearTimeout(hidingTimeout)
	var d=document.getElementById(divId)
	if(d.getElementsByTagName("div").length==0){
		try{
			gCurrentOpen.style.visibility="hidden"
		}
		catch(e){
			;
		}	
		return
	}
	if((gCurrentOpen!="")&&(gCurrentOpen.id!=divId)){
		try{
			gCurrentOpen.style.visibility="hidden"
		}
		catch(e){
			;
		}
	}
	if(d.style.visibility=="visible"){
		return
	}
	d.style.visibility="visible"
		d.style.left=(t.offsetLeft)+17+"px"
		d.style.top="299px"
//	if(ie){
//		d.style.left=((event.clientX-event.offsetX+ document.body.scrollLeft)-5)+"px"
//		d.style.top="170px"
//	}
	//check if we hit the right edge...
	
	
	if((t.offsetLeft+d.offsetWidth)>bW){
		d.style.left=(bW-d.offsetWidth)+"px"
	}
	//d.style.width=t.offsetWidth+"px"
	gCurrentOpen=d
}

function hideMenu(divId){
	document.getElementById(divId).style.visibility="hidden"
}
hidingTimeout=""
function prepareToHide(){
	clearTimeout(hidingTimeout)
	hidingTimeout=window.setTimeout("hideAll()",500)
}

function hideAll(){
	try{
		gCurrentOpen.style.visibility="hidden"
		gCurrentOpen=""
	}
	catch(e){
		;
	}
}
function swapImg(e,isOut){
	try{
		var i=e.getElementsByTagName("IMG")[0]
		if(i.getAttribute("disMo")!=null){return}
		if(isOut){
			i.src="/file.aspx?id="+e.getAttribute("overImg")
		}
		else{
			i.src="/file.aspx?id="+e.getAttribute("origImg")
		}
	}
	catch(e){
		;
	}
}
function btnOver(o){
	o.style.backgroundColor="#dddddd"
	o.style.color="white"
	clearTimeout(hidingTimeout)
}

function btnOut(o){
	o.style.backgroundColor=""
	o.style.color=""
	
}
function loadSubPage(u){
	var edit=""
	if(document.location.href.toLowerCase().indexOf("editmode=yes")!=-1){
		if(u.toLowerCase().indexOf("page.aspx")!=-1){
			edit="&editmode=yes"
		
		}
		else{
			edit="?editmode=yes"

		}
	}
	document.location.href=u+edit
}
function getQueryString(str){
if(str=="ALLQUERY"){
		if(window.document.location.search.length==0){
			//get id
			strHref= window.document.location.href
strId = strHref.substring(strHref.toLowerCase().indexOf("page")+4)
strId = "pid="+strId.split(".")[0]
return strId
		}
		else{
			return window.document.location.search.substring(1)
		}
	}
	else{
		var tmp=window.document.location.search.substring(1).split("&")
		var ret=""
		for(var i=0;i<tmp.length;i++){
			if(tmp[i].toLowerCase().indexOf(str.toLowerCase())!=-1){
				ret = tmp[i].split("=")[1]
			}
		}
		return ret
	}
}

function postToWin(url){
	window.open(url,"postWin","width=200,height=200,location=no,toolbar=no").focus();
}

// 