function pageHeight() {return window.innerHeight != null? window.innerHeight: document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight:document.body != null? document.body.clientHeight:null;}

function pageWidth() {return window.innerWidth != null? window.innerWidth: document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body != null? document.body.clientWidth:null;}


var tW="800";
var tH="600";

function divSizer(){
	flashDiv = swfobject.getObjectById( "flash" );
	
	if( pageHeight() <= tH ) flashDiv.style.height=tH + "px";
	else flashDiv.style.height= "100%";
	
	if( pageWidth() <= tW ) flashDiv.style.width=tW + "px";
	else flashDiv.style.width= "100%";
}
