// JavaScript Document

function tela(){
	var h = screen.height;
	
	if(h >= 800){
		document.getElementById('geral').style.padding = "10px 0 0 0";
		document.getElementById('flash').style.padding = "10px 0 0 0";
		//document.getElementById('principal').style.margin = "10px 0 0 0";
	}

	if(h >= 900){
		document.getElementById('geral').style.padding = "50px 0 0 0";
		document.getElementById('flash').style.padding = "50px 0 0 0";
		//document.getElementById('principal').style.margin = "10px 0 0 0";
	}
	
	if(h >= 1024){
		document.getElementById('geral').style.padding = "130px 0 0 0";
		document.getElementById('flash').style.padding = "130px 0 0 0";
		//document.getElementById('principal').style.margin = "130px 0 0 0";
	}

}
	
	
/*	if(w > 1280){
		//document.getElementById('fundo').style.background = 'url(img/fundo_1280.jpg) -46px 0';
		document.getElementById('fundo').style.width = '1600px';				
	}else if (w == 1280){
		//document.getElementById('fundo').style.background = 'url(img/fundo_1024.jpg) -70px 0';
		document.getElementById('fundo').style.width = '1250px';						
	}else if (w == 1024){
		document.getElementById('fundo').style.background = 'url(layout/imagens/agua/topo_1024.jpg) 0px 0 no-repeat';
		document.getElementById('fundo').style.width = '1005px';				
	}else if(w < 1024){
		//document.getElementById('fundo').style.background = 'url(img/fundo_800.jpg) -84px 0';
		document.getElementById('fundo').style.width = '777px';				
	}
}
*/window.onload = tela;

