function init() {
	resize();
	window.onresize = resize;
}

function resize() {

	var flash_height = 691;
	
	if (getHeight() > flash_height) {
		document.getElementById("main").style.height = flash_height+"px";
		document.getElementById("main").style.paddingTop = (getHeight() - flash_height) / 2 +"px";
	}else{
		document.getElementById("main").style.paddingTop = "0";
	}
}

function getWidth() {
	  var myWidth = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
	    myWidth = window.innerWidth;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    myWidth = document.documentElement.clientWidth;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    myWidth = document.body.clientWidth;
	  }
	  return myWidth;
}

function getHeight() {
	  var myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
	    myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    myHeight = document.body.clientHeight;
	  }
	  return myHeight;

}

