function resizeFlash(){
	var w = Environment.getWindowWidth();
	var h = Environment.getWindowHeight();
	h = (h > 0 && h < 550) ? '550px' : '100%';
	w = (w > 0 && w < 960) ? '960px' : '100%';
	Element.css('flash', 'width', w);
	Element.css('flash', 'height', h);
}

if (Flash.hasVersion(10)) {
	window.onresize = function(){
		resizeFlash();
	};
	/*window.onload = function(){
		new FlashElement('startup.swf', {
			version:10, 
			width:'100%', 
			height:'100%', 
			bgcolor:'#fbedcc'
		}).insertInto('flash');
		resizeFlash();
	};*/
	window.onload = function(){
		//var d = new Date();
		//var t = d.getTime();
		//var flashvars = {cachekiller: t.toString()};
		var flashvars = new Object();
		var params = {bgcolor: '#fbedcc', menu: 'false'};
		var attributes = {id: 'boldfacetype', name: 'boldfacetype'};
		swfobject.embedSWF('startup.swf', 'boldfacetype', '100%', '100%', '10.0.0', '/scripts/swfobject/expressInstall.swf', flashvars, params, attributes);
		resizeFlash();
	};
} else {
	window.location.href = 'upgrade.html';
}


