// Variables globales
var menu_roll = null;
var menu_tmr = null;
var menu_t = 500;

var images = 'home_files/';

// Función de inicialización principal
function InicializaHomeJS() {	
	RotarInit();
};
window.onload = InicializaHomeJS;

var rotafoto = 1;
var alt_img = null;
var foto_img = null;
var over_img = null;

function RotarInit()
{
	var elm = document.getElementById('menu06MENUROLL');
	elm.onclick = function() 
	{
		//IrA('linea.asp?id=68') 
		location.href = ''+ dir;
	};

	alt_img = document.getElementById('altIMG');
	foto_img = document.getElementById('fotoIMG');
	over_img = document.getElementById('overIMG');

	var imgs = new Array();
	for(var i = 2; i != 4; ++i) {
		imgs[i] = new Image();
		imgs[i].src = images + 'h_foto0' + i + '.jpg';

		imgs[i+10] = new Image();
		imgs[i+10].src = images + 'h_foto0' + i + '_over.jpg';
	}

	setTimeout('RotarFoto()', 5000);
	setTimeout('mostrarfrase()',0) 
}
function RotarFoto()
{
	if(++rotafoto == 4) rotafoto = 1;

	setOpacity(alt_img, 0);
	alt_img.src = (menu_roll && menu_roll.numero == 6) ? over_img.src : foto_img.src;
	setOpacity(alt_img, 1);

	foto_img.src = images + 'h_foto0' + rotafoto + '.jpg';
	over_img.src = images + 'h_foto0' + rotafoto + '_over.jpg';

	Blend(alt_img, 1, 0);

	setTimeout('RotarFoto()', 5000);
	
};

