function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}



function OpenHBRWindow(){
	var w = 650;
	var h = 700;
	var leftPx = parseInt((screen.availWidth-w-10)/2);
	var topPx = parseInt((screen.availHeight-h-30)/2);
	if (leftPx<0) leftPx=0;
	if (topPx<0) topPx=0;
	window.open("hbr.asp","popUpW","top="+topPx+",left="+leftPx+"chanelmode=no,scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes,width=" + w + ",height=" + h).focus() 
}

function openPopUpCard(URL){
	var w = 425;
	var h = 510;
	var leftPx = parseInt((screen.availWidth-w-10)/2);
	var topPx = parseInt((screen.availHeight-h-30)/2);
	if (leftPx<0) leftPx=0;
	if (topPx<0) topPx=0;
	window.open(URL,"popUpW","top="+topPx+",left="+leftPx+"chanelmode=no,toolbar=no,location=no,status=no,menubar=no,resizable=no,width=" + w + ",height=" + h).focus() 
}

function openPopUpView(URL){
	var w = 425;
	var h = 510;
	var leftPx = parseInt((screen.availWidth-w-10)/2);
	var topPx = parseInt((screen.availHeight-h-30)/2);
	if (leftPx<0) leftPx=0;
	if (topPx<0) topPx=0;
	window.open(URL,"popUpV","top="+topPx+",left="+leftPx+"chanelmode=no,toolbar=no,scrollbars=yes,location=no,status=no,menubar=no,resizable=no,width=" + w + ",height=" + h).focus() 
}

function openPopUpView2(URL){
	var w = 425;
	var h = 507;
	var leftPx = parseInt((screen.availWidth-w-10)/2);
	var topPx = parseInt((screen.availHeight-h-30)/2);
	if (leftPx<0) leftPx=0;
	if (topPx<0) topPx=0;
	window.open(URL,"popUpV","top="+topPx+",left="+leftPx+"chanelmode=no,toolbar=no,scrollbars=no,location=no,status=no,menubar=no,resizable=no,width=" + w + ",height=" + h).focus() 
}

function openPopUpHelp(){
	var w = 900;
	var h = 560;
	var leftPx = parseInt((screen.availWidth-w-10)/2);
	var topPx = parseInt((screen.availHeight-h-30)/2);
	if (leftPx<0) leftPx=0;
	if (topPx<0) topPx=0;
	window.open("help.html","popUpHelp","top="+topPx+",left="+leftPx+"chanelmode=no,toolbar=no,scrollbars=no,location=no,status=no,menubar=no,resizable=no,width=" + w + ",height=" + h).focus() 
}

function openPopUpMap(){
	var w = 800;
	var h = 640;
	var leftPx = parseInt((screen.availWidth-w-10)/2);
	var topPx = parseInt((screen.availHeight-h-30)/2);
	if (leftPx<0) leftPx=0;
	if (topPx<0) topPx=0;
	window.open("popUpMap.html","popUpMap","top="+topPx+",left="+leftPx+"chanelmode=no,toolbar=no,scrollbars=no,location=no,status=no,menubar=no,resizable=no,width=" + w + ",height=" + h).focus() 
}

	var selectedCE = 0;
	function activateCE(obj){
		var id = obj.id.split("_")[1];  
		atobj=document.getElementById("CE_"+id)
		if (atobj.className == "CE1_open")
				{ 
				atobj.className = "CE1_close";
				document.getElementById("CEF_"+id).className = "teamTitle";
				document.getElementById("CETBL_"+id).className = "hideAll";
				document.getElementById("CI_"+id).src = "../images/bullets/arr_blk.gif";
				}
		else
				{
				atobj.className = "CE1_open";
				document.getElementById("CEF_"+id).className = "teamSelectedTitle";
				document.getElementById("CETBL_"+id).className = "showAll";
				document.getElementById("CI_"+id).src = "../images/bullets/arr_org.gif";
				}
	} 

	function activateQE(obj){
		var id = obj.id.split("_")[1];  
		atobj=document.getElementById("QE_"+id)
		if (atobj.className == "QE_open")
				{ 
				atobj.className = "QE_close";
				document.getElementById("ANSW_"+id).className = "hideAll";
				}
		else
				{
				atobj.className = "QE_open";
				document.getElementById("ANSW_"+id).className = "showAll";
				}
	} 
	
	
	function methodopen(mtd){
	document.getElementById("method_"+mtd).className = "showAll";
	}
	
	function OpenCloseSection(imgObj){
	
		currentKey = imgObj.id.split("IMG_")[1];
		
		if (document.getElementById("sec_" + currentKey).className == "hideAll") {
			
			document.getElementById("sec_" + currentKey).className = "showAll"
			imgObj.src = imgObj.src.split("_o")[0] + "_on.gif";
			imgObj.title = "Close";
			
		} else {
			
			document.getElementById("sec_" + currentKey).className = "hideAll"	
			imgObj.src = imgObj.src.split("_o")[0] + "_off.gif";
			imgObj.title = "Open";
			
		}
		
	}
	
	function actALF(obj){
		var id = obj.id.split("_")[1];  
		
		for(i=1;i<27;i++)
			{
				atobj=document.getElementById("ALFC_"+i)
				if(i==id)
					{
					atobj.className = "ALFCellsel";
					document.getElementById("ALFHob_"+i).className = "showAll";
					}
				else
					{
					atobj.className = "ALFCell";
					document.getElementById("ALFHob_"+i).className = "hideAll";
					}
			}

	}
	
	
	function SetCubePosition(){
		return document.body.scrollTop + 1;
	}
	
	function  writeMail(user, host, link_class) {
		document.write("<a class='"+link_class+"' hre"+"f='ma"+"ilto:"+user+"@"+host+"'>"+user+"@"+host+"</a>");
	}

