//javascript to open pop up window
//<!-- Begin
function popUp(URL,HEIGHT) 
{
	window.open(URL,"UK Press News","width=750,height="+HEIGHT+",toolbar,location,status,scrollbars,menubar,resizable")
	
}

function init(){ 
	var wait = resizer();
	setMenu()
	//loadAPI()
}

function resizer(){

	var width = setDimensions("width");

	if (parseInt(width) < 910){
		
		document.getElementById("content").style.marginLeft = "0px";
		document.getElementById("content").style.left = "0px";
		document.getElementById("drkHeader").style.width = "910px" 
	}else{
		document.getElementById("content").style.marginLeft = "50%";
		document.getElementById("content").style.left = "-455px";
		document.getElementById("drkHeader").style.width = "100%" 					
	}
}

function setMenu(){
	document.getElementById("lnk"+currentPage).style.borderRight = "3px #ffcc00 solid"
	document.getElementById("lnk"+currentPage).style.marginRight = "0px"
}
function lnkMouseOver(obj){

	if (obj.id != "lnk"+currentPage){
		obj.style.borderRight = "3px #e4e4e4 solid"
		obj.style.marginRight = "0px"				
	}
}
function lnkMouseOut(obj){
	if (obj.id != ("lnk"+currentPage)){
		obj.style.borderRight = "0px #66cc33 solid"
		obj.style.marginRight = "3px"		
	}
}
function setDimensions(dir){
	if(document.all){
	    availW = document.body.clientWidth;
	    availH = document.body.clientHeight;
	 }else{
	    availW = innerWidth;
	    availH = innerHeight;
	}		
	if (dir == 'width'){
		return availW;
	}else{
		return availH;
	}
}
window.onresize = resizer;
// End -->
	
