htab1 = false;
htab2 = false;
htab3 = false;
htab4 = false;
function swapIDValue(tval,wtab){
/*
	document.getElementById('htab1').style.backgroundColor='#FFF1B2';
	document.getElementById('htab2').style.backgroundColor='#FFF1B2'
	document.getElementById('htab3').style.backgroundColor='#FFF1B2'
	document.getElementById('htab1').className ="home_click";
	document.getElementById('htab2').className ="tabs";
	document.getElementById('htab3').className ="tabs";
	document.getElementById('htab4').className ="tabs";
	document.getElementById(wtab).style.backgroundColor='#FFF1B2'
	if(wtab == "htab1"){
		tval.className='home_static';
		tval.style.textDecoration='none';
	}else{
		tval.style.textDecoration='none';
		tval.className='static';
	}
	htab1 = false;
	htab2 = false;
	htab3 = false;
	htab4 = false;
	wtab = true;*/
}

function handleMOver(tval,id,wtab){
	if(!eval("htab"+id)){
		if(wtab == "htab1"){
			tval.className = "home_click";
		}else{
			tval.className = "tabs";
		}
		tval.style.backgroundColor='#FFF1B2';
		tval.style.color = "#333333";
		tval.style.textDecoration ='underline';
		tval.style.cursor='hand';		
		tval.style.cursor='pointer';
	}
}

function handleMOut(tval,id){
	for(i=1;i<=4;i++){
		if(!eval("htab"+id)){
			tval.style.backgroundColor='#d1e7b9'
			tval.style.textDecoration ='none';
			tval.style.color = "#333333";
		}
	}
}

function doPop(popwhat){
	qm= popwhat.indexOf("?");
	isPop = popwhat.indexOf("pop");
	if(isPop >-1){
		pop="";
	}else{
		if(qm >-1){
			pop = "&pop=1";
		}else{
			pop = "?pop=1";
		}
	}
	newWin = window.open(popwhat+pop,"newwin","toolbar=no,width=680,height=500,scrollbars=yes,resizable=yes");
}


docPath = String(document.URL).toLowerCase();
isMailpage = docPath.indexOf("email");
isProfile = docPath.indexOf("profile");
isProcessing = docPath.indexOf("processing");
isReg = docPath.indexOf("register");
isConf = docPath.indexOf("confirmation");
isLog = docPath.indexOf("login");
isLogg = docPath.indexOf("login");
isFp =  docPath.indexOf("forgot");
isComm = docPath.indexOf("acdcom")
isMailpage = docPath.indexOf("email")
comPageArray = new Array("acdcom","Email");

inComm = false;

function hideLinks(what){
	for(i=0;i<comPageArray.length;i++){
		if(docPath.indexOf(comPageArray[i]) > -1){
			inComm = true;
			break;
		}
	}
	if(inComm){
		document.getElementById(what).style.display ="none";
		if(isProfile >-1 || isProcessing >-1){
			document.getElementById('homelinka').style.display ="none";
			document.getElementById('homelinkb').style.display ="block";
		}else{
			document.getElementById('homelinka').style.display ="block";
			document.getElementById('homelinkb').style.display ="none";
		}
	}else{
		document.getElementById(what).style.display ="block";
		document.getElementById('homelinka').style.display ="block";
		document.getElementById('homelinkb').style.display ="none";
	}
}



/*
docPath = String(document.URL);
isReg = docPath.indexOf("Register");
isConf = docPath.indexOf("onfirmation");
isLog = docPath.indexOf("login");
isLogg = docPath.indexOf("Login");
isFp =  docPath.indexOf("Forgot");//forgot password page
isComm = docPath.indexOf("acdcom")
isMailpage = docPath.indexOf("Email")
comPageArray = new Array("acdcom","Email");
inComm = false;

function hideLinks(what){
	for(i=0;i<comPageArray.length;i++){
		if(docPath.indexOf(comPageArray[i]) > -1){
			inComm = true;
			break;
		}
	}
	if(inComm){
		document.getElementById(what).style.display ="none";
		if(isMailpage >-1 || isLog >-1){
			document.getElementById('homelinka').style.display ="block";
			document.getElementById('homelinkb').style.display ="none";
		}else{
			document.getElementById('homelinka').style.display ="none";
			document.getElementById('homelinkb').style.display ="block";
		}
	}else{
		document.getElementById(what).style.display ="block";
		document.getElementById('homelinka').style.display ="block";
		document.getElementById('homelinkb').style.display ="none";
	}
}
*/

function showbox(where){
	isNews = where.indexOf("news");
	if(inComm){
		if(isNews <=-1){
			doPop(server+"/learnmore/btpsat/learnmore_body_"+where+"?pop=1");
		}else{
			doPop(server+"/learnmore/btpsat/"+where+"?pop=1");
		}
	}else{
		window.location.href = server+"/learnmore/btpsat/"+where;
	}
}

