var minWidth=1000;
var minHeight=720;
function e(id){return document.getElementById(id)}
function writeFlash(){
	var now = new Date().getTime();
	var so = new SWFObject("start.swf?d="+now, "movie", "100%", "100%", "9", "#000000", "high", "null", "http://adobe.com/flashplayer");
	   so.useExpressInstall('expressinstall.swf');
	   so.addParam("quality", "high");
	   so.addParam("scale", "noscale");
	   so.addParam("menu", "false");
	   so.write("flash");
}
function checkWidth(){
	try{
		//get the size of the window
		var x,y;
		if (self.innerHeight) // all except Explorer
		{
			x = self.innerWidth;
			y = self.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientHeight)
			// Explorer 6 Strict Mode
		{
			x = document.documentElement.clientWidth;
			y = document.documentElement.clientHeight;
		}
		else if (document.body) // other Explorers
		{
			x = document.body.clientWidth;
			y = document.body.clientHeight;
		}
		//console.log('x: '+x+' y: '+y+' flash x: '+e('flash').style.width+' flash y: '+e('flash').style.height);
		if (x<=minWidth) e('flash').style.width=minWidth + 'px';
		else e('flash').style.width=x + 'px';
		if (y<=minHeight) e('flash').style.height=minHeight + 'px';
		else e('flash').style.height=y + 'px';
		//console.log('x: '+x+' y: '+y+' flash x: '+e('flash').style.width+' flash y: '+e('flash').style.height);
	}catch(error){window.alert(error)}
}