function DisableEnableLinks(xHow){
  objLinks = document.links;
  for (var i = 0; i < objLinks.length; i++){
	objLinks[i].disabled = xHow;
	
	//link with onclick
	if(objLinks[i].onclick && xHow){
		objLinks[i].onclick = new Function("return false;" + objLinks[i].onclick.toString().getFuncBody());
	}
	
	//link without onclick
	else if(xHow){  
		//if not excepted links
		if (!linkInArray(objLinks[i].id))
			objLinks[i].onclick = function(){return false;}
	}
	
	//remove return false with link without onclick
	else if(!xHow && objLinks[i].onclick.toString().indexOf("function(){return false;}") != -1){     
	  objLinks[i].onclick = null;
	}
	//remove return false link with onclick
	else if(!xHow && objLinks[i].onclick.toString().indexOf("return false;") != -1){  
	  strClick = objLinks[i].onclick.toString().getFuncBody().replace("return false;","")
	  objLinks[i].onclick = new Function(strClick);
	}
  }
}

String.prototype.getFuncBody = function(){ 
  var str=this.toString(); 
  str=str.replace(/[^{]+{/,"");
  str=str.substring(0,str.length-1);   
  str = str.replace(/\n/gi,"");
  if(!str.match(/\(.*\)/gi))str += ")";
  return str; 
}

//check link disable exceptions
function linkInArray(link){
	var bannerLink = new Array("_yes", "_no", "_exit", "_read1", "_read2", "_read3", "_read4",  "_read5", "_read6", "_read7", "_read8");
	var i;
	
	 for(i in bannerLink) {
		if (link == bannerLink[i])
			return true;
	 }
	return false;
}

//Hide/Show two banners
function hiddenLayer(layer_id) {
	document.getElementById(layer_id).style.visibility = "hidden";
	document.getElementById(layer_id).style.display    = "none";
}
function showLayer(layer_id) {
	document.getElementById(layer_id).style.visibility = "visible";
}


//disable document scrolling
function disableScrolling(xHow){
	var x = document.getElementById('deac_website');
	
	x.className = 'disable_scroll';
}