window.onresize = function(){
resizeMe();
}
function resizeMe(){
//http://www.howtocreate.co.uk/tutorials/javascript/browserwindow
var myWidth = 0;
var myHeight = 0;
if( typeof( window.innerWidth ) == '1680' ) {
//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;
myFullHeight = document.body.clientHeight;
myDivHeight = document.getElementById("promotional").offsetHeight;
myDivWidth = document.getElementById("promotional").offsetWidth;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
document.getElementById("overlayer").style.height = (myFullHeight) + "px";
document.getElementById("promotional").style.top = ((myHeight/2) - (myDivHeight/2)) + "px";
document.getElementById("promotional").style.left = ((myWidth/2) - (myDivWidth/2)) + "px";
}
function openMe(){
document.getElementById("overlayer").style.display = "block";
document.getElementById("promotional").style.display = "block";
}
function closeMe(){
document.getElementById("overlayer").style.display = "none";
document.getElementById("promotional").style.display = "none";
}