Event.observe(window, "load", clearBackground);

Event.observe(window,"load", function() {
	if(document.viewport.getWidth() < 1010) {
		$$('html')[0].setStyle({width:'1010px',overflowX:'scroll'});
		$$('body')[0].setStyle({width:'1010px'});
		$('flash_main').setStyle({width:"1010px" });
	}
	if(document.viewport.getHeight() < 625) {
		$$('html')[0].setStyle({height:'625px',overflowY:'scroll'});
		$$('body')[0].setStyle({height:'625px'});
		$('flash_main').setStyle({height:'625px' });
	}
});

function clearBackground() {
	//Retira imagem de fundo no caso de o usuário não ter o flash/javascript habilitado
	document.body.style.backgroundImage = "none";
}

function resizedFlashObject(hValue){	
	hValue = hValue-2;
	if(hValue<document.documentElement.clientHeight){
		hValue = document.documentElement.clientHeight;
	}
	//alert(hValue);
	hValue = hValue+"px";
	$$('html')[0].setStyle({height:hValue});
}
