function AsigFuncHome()
{
	var TabCus = document.getElementById("TabCus");
	//TabCus.onmouseover = function() {onmouseover=cambiartim(1001);}
	TabCus.onclick = function() {onclick=zin('50','42','43','44','45','46','21','2','3','4','5','6');}
	
	var TabVid = document.getElementById("TabVid");
	//TabVid.onmouseover = function() {onmouseover=cambiartim(1002);}
	TabVid.onclick = function() {onclick=zin('41','50','43','44','45','46','1','21','3','4','5','6');}
	
	var TabCRM = document.getElementById("TabCRM");
	//TabCRM.onmouseover = function() {onmouseover=cambiartim(1003);}
	TabCRM.onclick = function() {onclick=zin('41','42','50','44','45','46','1','2','21','4','5','6');}
	
	var TabBPM = document.getElementById("TabBPM");
	//TabBPM.onmouseover = function() {onmouseover=cambiartim(1004);}
	TabBPM.onclick = function() {onclick=zin('41','42','43','50','45','46','1','2','3','21','5','6');}
	
	var TabHN = document.getElementById("TabHN");
	//TabHN.onmouseover = function() {onmouseover=cambiartim(1005);}
	TabHN.onclick = function() {onclick=zin('41','42','43','44','50','46','1','2','3','4','21','6');}
	
	var TabEv = document.getElementById("TabEv");
	//TabEv.onmouseover = function() {onmouseover=cambiartim(1006);}
	TabEv.onclick = function() {onclick=zin('41','42','43','44','45','50','1','2','3','4','5','21');}//
}


/*function cambiartim(dd)
{
	clearTimeout();
	vdel=dd;
	setTimeout('Show()',400)
}
function Dacero()
{
	clearTimeout();
	vdel = 0;
}

function Show()
{
	switch(vdel)
	{
	case 1001:
	zin('50','42','43','44','45','46','21','2','3','4','5','6');
	break;
	case 1002:
	zin('41','50','43','44','45','46','1','21','3','4','5','6');
	break;
	case 1003:
	zin('41','42','50','44','45','46','1','2','21','4','5','6');
	break;
	case 1004:
	zin('41','42','43','50','45','46','1','2','3','21','5','6');
	break;
	case 1005:
	zin('41','42','43','44','50','46','1','2','3','4','21','6');
	break;
	case 1006:
	zin('41','42','43','44','45','50','1','2','3','4','5','21');
	break;
	}
}*/

function zin(a,b,c,d,e,f,ta,tb,tc,td,te,tf)
{
document.getElementById('Cus').style.zIndex= a;
document.getElementById('Vid').style.zIndex= b;
document.getElementById('CRM').style.zIndex= c;
document.getElementById('BPM').style.zIndex= d;
document.getElementById('HN').style.zIndex= e;
document.getElementById('Ev').style.zIndex= f;
document.getElementById('SelCus').style.zIndex= ta;
document.getElementById('SelVid').style.zIndex= tb;
document.getElementById('SelCRM').style.zIndex= tc;
document.getElementById('SelBPM').style.zIndex= td;
document.getElementById('SelHN').style.zIndex= te;
document.getElementById('SelEv').style.zIndex= tf;

}

function verBan(peli)
{
	/*TodasPantInv();
	document.getElementById('ImgVeloVideo').src= "/Images/fondoVelo.gif";
	document.getElementById('DivVideo').className='VideoVisible';
	document.getElementById('veloVideo').className='veloVideoOpacidad';
	document.getElementById('ImgLogoSobreVelo-Video').src= "/Images/auraportal-logo.png";*/

	document.getElementById('banner').innerHTML = "<code><object id=\"Animacion\" data=\" " + peli + "\" type=\"application/x-shockwave-flash\" height=\"300px\" width=\"950px\"> <param name=\"quality\" value=\"high\"/> <param name=\"menu\" value=\"false\"/> <param name=\"movie\" title=\"Animacion\" value=\"" + peli + "\"/><param name=\"wmode\" value=\"transparent\"/></object> </code>";

}
//--------------------Función para llamar más de una vez a window.onload--------------------------
function addLoadEvent (func) { 
var oldonload = window.onload; 
if (typeof window.onload != 'function') { 
window.onload = func; 
} else { 
window.onload = function() { 
if (oldonload) { 
oldonload(); 
} 
func(); 
} 
} 
}
addLoadEvent (AsigFuncHome);