function showCurrent(){
parentUL = document.getElementById('zonelistmenu');
bords = parentUL.getElementsByTagName('a');
//alert(bords[1].href);
currentLoc = window.location
	for(i=0;i<bords.length;i++){
		if(bords[i].href == currentLoc){
			bords[i].style.backgroundColor = '#fff';
			bords[i].style.color = '#f00';
			bords[i].style.fontWeight = 'normal';		
		}
	}
}
function selectCurrent(){
parentUL = document.getElementById('careersNav');
bords = parentUL.getElementsByTagName('a');
//alert(bords[1].href);
currentLoc = window.location
currentLoc = currentLoc.toString();
	for(i=0;i<bords.length;i++){
		hitURL = bords[i].href.toString();
		if(currentLoc.indexOf(hitURL) > -1 ){
			bords[i].className = 'current';
		}
	}
}
function addcss(cssJSName, ntype){
 var headID = document.getElementsByTagName("head")[0];         
 var cssNode = document.createElement('link');
 var jsNode = document.createElement('script');
 if (ntype == 'css'){
	 cssNode.type = 'text/css';
	 cssNode.rel = 'stylesheet';
	 cssNode.href = cssJSName;
	 cssNode.media = 'screen';
	 headID.appendChild(cssNode);
 } else if (ntype == 'js'){
	 jsNode.language = 'javaScript';
	 jsNode.type = 'text/javascript';
	 jsNode.href = cssJSName;
	 headID.appendChild(jsNode);
	 //alert(headID.innerHTML);
	 //<script language="javaScript" src="../control/js/hover_fix.js" type="text/javascript">
 } else if (ntype == 'cssPrint'){
	 cssNode.type = 'text/css';
	 cssNode.rel = 'stylesheet';
	 cssNode.href = cssJSName;
	 cssNode.media = 'print';
	 headID.appendChild(cssNode);
 }
}
function showMore(id){
	targetID = document.getElementById(id);
	if (targetID.style.display==""){
		targetID.style.display="none";
	} else {
		targetID.style.display="";
		this.innerHTML="Hide events";
	}
}
function changeSign(theThis){
	if(theThis.innerHTML.toString().match(/\+/g)){
		this.innerHTML="Hide events";
	}
	else{
		this.innerHTML="More events";
	}
}
function checkDOM(){
//var currURL = window.location.hostname;
var currURL = window.location;
	currURL = currURL.toString();
	qaURL = "qahsbcnet.us.hsbc/hr/careers";
	prodURL = "www.hsbcnet.hsbc/hr/careers";
	if (currURL.indexOf(qaURL) > -1 || currURL.indexOf(prodURL) > -1 ){
		window.location = "/solutions/control/html/not_found.html"
	}
}
checkDOM();