// JavaScript Document
window.onload = function()
{
	//Aspecto aleatorio
	var colum2 = document.getElementById('colum2');
	if(colum2)
	{
		var rand = Math.floor( Math.random ( ) * 5 + 1 );
		colum2.className = 'tipo_'+rand;
	}
	
	
	//Rotar videntes
	if(document.getElementById('cartomancia'))
	{
		var i=0;
		setTimeout(function au()
		{
			setInterval( function rotar()
			{
				i++;
				if(i > 4){	i = 1;	}//limite videntes								
				document.getElementById('cartomancia').style.backgroundImage = "url(../images/vidente-"+i+".jpg)";								
			}, 7000);
		}, 5000);
	}
}


