function reformatar()
{
	ratio=1024/768;
	amplada=calcularAmplada();
	if(amplada<900)
	{
		document.body.style.zoom=parseFloat(Math.round((amplada/900)*10)/10);
		document.getElementById("body").style.zoom=parseFloat(Math.round((amplada/900)*10)/10);		
		document.getElementById("body").style.marginLeft="-"+parseFloat((Math.round((amplada/900)*10)/10)*480)+"px";
	}
}
function calcularAmplada()
{		
	if(typeof(window.innerWidth)=='number')
	{
   		amplada=window.innerWidth;
   		if(amplada/ratio>window.innerHeight)
   		{
   			amplada=window.outerHeight*ratio;
   		}
   		return amplada;
	}
	else if(document.documentElement)
	{
		amplada=document.documentElement.clientWidth;
		if(amplada/ratio>document.documentElement.clientHeight+100)
		{
			amplada=(document.documentElement.clientHeight+100)*ratio;
		}
		return amplada;
	}		
}
function calcularAlcada()
{
return amplada/ratio;
}var segons=4;
function ocultarAd()
{
document.getElementById('ad').style.display='none';
document.getElementById('ocult').style.display='block';
}