

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();
	o.w = (o.w<985) ? "985px" : "100%";
	o.h = (o.h<575) ? "575px" : "100%";
	var d = document.getElementById("flashContents").style;
	d.width = o.w;
	d.height = o.h;
}
