var divPromo;

function showPromo(layerId) {
	var divBody = document.getElementById("divBody");
	divBody.style.display = "block";
	divBody.style.opacity = 0.7;
	divBody.style.filter = "alpha(opacity=70)";
	
	divPromo = document.getElementById("layer_"+layerId);
	
	divPromo.style.display = "block";
	
	if( typeof( window.innerWidth ) == "number" ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in "standards compliant mode"
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}	
	
	
	posLeft = (myWidth/2)-(parseInt(divPromo.style.width)/2);
	posTop = (myHeight/2)-(parseInt(divPromo.style.height)/2);
	divPromo.style.left = posLeft;
	divPromo.style.top = posTop;
}



function hidePromo( layerId ) {
	var divBody = document.getElementById("divBody");
	divBody.style.display = "none";
	divBody.style.opacity = 1;
	divBody.style.filter = "alpha(opacity=100)";
	
	divPromo.style.display = "none";
}


function adaptPromoLink(newLink) {
	if(newLink != '') frames['Promo'].location.href=newLink;
}