// JavaScript Document
function getWidth()
{
	/* Non IE */
	return window.innerWidth && window.innerWidth > 0 ? window.innerWidth : 
	/* IE 6+ */
	document.documentElement.clientWidth && document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : 
	/* IE 4 */
	document.body.clientWidth && document.body.clientWidth > 0 ? document.body.clientWidth : -1; 
}

function getHeight()
{
	/* Non IE */
	return window.innerHeight && window.innerHeight > 0 ? window.innerHeight :
	/* IE 6+ */
	document.documentElement.clientHeight && document.documentElement.clientHeight > 0 ? document.documentElement.clientHeight :
	/* IE 4 */
	document.body.clientHeight && document.body.clientHeight > 0 ? document.body.clientHeight : -1;
}

var flashvars = {}
var params = {wmode : "transparent", scale : "noscale"}
var attributes = {id:"home"}

if(getHeight()<600 || getWidth()<1002)
{
	//params['scale']="scale";
	params['scale'] = 'scale';
	params['allowFullScreen'] = 'true';
	//alert('oi');
}
//$(window).load(function(){
	swfobject.embedSWF("swf/principal.swf", "flash", "100%", "100%", "9.0.0","expressInstall.swf",flashvars, params, attributes);
//})
