// place after body was loaded, otherwise no values return
function checkWin() {
var winW = 0, winH = 0;

  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    winW = window.innerWidth;
    winH = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    winW = document.documentElement.clientWidth;
    winH = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    winW = document.body.clientWidth;
    winH = document.body.clientHeight;
  }

	$('#curtain').css('height', winH);
	$('#curtain').css('width', winW);
	$('#curtain_logo').css('height', winH);
	$('#curtain_logo').css('width', winW);
}

checkWin();

