// JavaScript Document
var minW = 1584;
var minH = 1008;
var f;
function gettSize() {
  var o = new Object();
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
	o.ie=false;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
	o.ie=true;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
	o.ie=true;
  }
  
  o.w = myWidth;
  o.h = myHeight;
  return o;
}

function doResize(){
	var o = gettSize();
	var num = minH/minW;

	//o.w = (o.h>810) ? "100%" : (o.h/num-50)+"px";
	//o.h = (o.h<minH) ? (o.h-40)+"px" : "100%";
	o.w="100%";
	o.h="100%";
	var f = document.getElementById("flash").style;
	var c = document.getElementById("container").style;
	c.width = o.w;
	c.height = o.h;
	f.width = o.w;
	f.height = o.h;
}

function setHeight(h){

	var d = document.getElementById("containers").style;
	d.height = h;
	f.minHeight = h;
	minH=h;
	if(document.all){
		//doResize();
	}
}

window.onload = function(){
	f = document.getElementById("container").style;
	//f.minHeight = minH;
	if(document.all) { // for IE
		document.getElementById("content").onresize = doResize;
		
	}else{
		window.onresize = doResize;
	}
	doResize();
}