//precarga de botones
subir_a=new Image();
subir_a.src="/img/02subir.gif";
subir_b=new Image();
subir_b.src="/img/02subir_on.gif";
volv_a=new Image();
volv_a.src="/img/02volver2.gif";
volv_b=new Image();
volv_b.src="/img/02volver2_on.gif";
inscr_b=new Image();
inscr_b.src="/img/par/02par_inscon.gif";
inscr_a=new Image();
inscr_a.src="/img/par/02par_insc.gif";
aceptar_a=new Image();
aceptar_a.src="/img/02aceptar.gif";
aceptar_b=new Image();
aceptar_b.src="/img/02aceptar_on.gif";
rech_a=new Image();
rech_a.src="/img/02rechazar.gif";
rech_b=new Image();
rech_b.src="/img/02rechazar_on.gif";
b_a=new Image();
b_a.src="/img/zc9d.gif";
b_b=new Image();
b_b.src="/img/zc9d_b.gif";
ant_a=new Image();
ant_a.src="/img/ant.gif";
ant_b=new Image();
ant_b.src="/img/ant_on.gif";
sig_a=new Image();
sig_a.src="/img/sig.gif";
sig_b=new Image();
sig_b.src="/img/sig_on.gif";
acep_a=new Image();
acep_a.src="/img/aceptar.gif";
acep_b=new Image();
acep_b.src="/img/aceptar_on.gif";
cont_a=new Image();
cont_a.src="/img/continuar.gif";
cont_b=new Image();
cont_b.src="/img/continuarb.gif";
borra_a=new Image();
borra_a.src="/img/01borra.gif";
borra_b=new Image();
borra_b.src="/img/01borra_on.gif"
env_a=new Image();
env_a.src="/img/enviarvirus.gif";
env_b=new Image();
env_b.src="/img/enviarvirusb.gif"

envia_a=new Image();
envia_a.src="/img/02enviar.gif";
envia_b=new Image();
envia_b.src="/img/02enviar_on.gif"

cance_a=new Image();
cance_a.src="/img/cancelar.gif";
cance_b=new Image();
cance_b.src="/img/cancelarb.gif";
dis_a=new Image();
dis_a.src="/img/par/02par_gl_dist.gif";
dis_b=new Image();
dis_b.src="/img/par/02par_gl_diston.gif";
cou_a=new Image();
cou_a.src="/img/par/par_gl_coun.gif";
cou_b=new Image();
cou_b.src="/img/par/par_gl_counon.gif"
menuAct = "-";
menuAnt = "-";
//variables para navegador secundario
about="habout.asp";
empleo="habout.asp?inc=hempleo";
becas="habout.asp?inc=hbecas";
ofertas="habout.asp?inc=hofertas";
social="habout.asp?inc=hresp";
areas="habout.asp?inc=harea";
//Colores para menu
fondo="#f4f4f4";
resalta="#e1e1e1";
pincha="#aaaaaa";
suelta="#aaaaaa";
separa="#f4f4f4";

var BGColorSec = "#ffffff"; //Variable para el color de la opción que estamos visitando.
var DownmouseColor ="#aaaaaa"; //Variable para el color cuando se hace click.
var DownmouseFontColor = "#000000"; //Variable para el color de la fuente cuando se hace click.

y0=157;
y1=y0+20;
y2=y1+20;
y3=y2+20;
y4=y3+20;
y5=y4+20;
y6=y5+20;
y7=y6+20;
y8=y7+20;

function abrir_ventana(url, w, h) {
 ventana = "width=" + w + ",height=" + h + ",top=175,left=183,scrollbars=yes"; 
  window.open(url,"privado",ventana);
}

function open_map() {
	url ="http://service.pandasoftware.es/panda/pandaInternet/enciclopedia2/indexMapa.html?idioma=1";
 	ventana = "width=790,height=300,top=200,left=0,scrollbars=no"; 
  	window.open(url,"Mapa",ventana);
}

function open_top10() {
	url ="http://service.pandasoftware.es/servlet/panda.pandaInternet.EntradaDatosInternet?operacion=EV2TopTenMundial2&periodo=30";
 	ventana = "width=600,height=350,top=200,left=0,scrollbars=yes"; 
  	window.open(url,"Mapa",ventana);
}

function Validate()		
		{		
			var valida;
			valida=true;
			
			//Comprobar campo user 
			if (document.frmpbp.user.value == '')  
			{	
				document.frmpbp.user.focus();
				alert ("Debe introducir el código de usuario.");
				valida=false;			
				return;
			}	
			
			//Comprobar campos password
			if (document.frmpbp.password.value == '')  
			{	
				document.frmpbp.password.focus();
				alert ("Debe introducir su clave.");
				valida=false;			
				return;
			}
			
			if (valida==true)
			{			
				document.frmpbp.action = "http://channel.pandasoftware.es/validation.asp";
				document.frmpbp.submit();
			}
		}


function apli_style(oStyle, cFondo, cursor, fColor)
	{	
		if(HM_IE)
		{	oStyle.style.background = cFondo;
			oStyle.style.cursor=cursor;
		
			while(oStyle.tagName!="A")
			{
				oStyle = oStyle.firstChild;	
				if (oStyle.tagName =="A") oStyle.style.color = fColor;
			}
					
			if (event.type == "mousedown" || event.type == "mouseup") pagina = oStyle.attributes.href;
			if (event.type == "mouseup") document.location.href=pagina;
			if (event.type == "mouseout") pagina='';
		}
	}
	
function apli_style1(oStyle, cFondo, cursor, fColor, id, modo )
	{	
	   //contVeces++;
		if(HM_IE)
		{		    
			menuAnt = menuAct;
			menuAct = id;
			oStyle.style.background = cFondo;
			oStyle.style.cursor=cursor;
			oStyle1 = document.getElementById(id);			
		   	oStyle1.style.color = fColor;
			
			if (event.type == "mousedown" || event.type == "mouseup") 
			 {
				pagina = oStyle1.attributes.href;
			 }
			
			if (event.type == "mouseup")
			 {
				//document.location.href=pagina;
			 }
							
			if (event.type == "mouseout") //pagina='';
				{
					
					pagina='';
					menuPop=null;
					muestra=false;
					//alert("hola");
					//************************************************
					
							//oStyle1 = document.getElementById(menuAnt);
							//oStyle.style.background = resalta;
							//oStyle1.style.color = fColor;
					
					//************************************************			
				}
			if (event.type == "mouseover") 
				{
				   if (menuAnt != "-") {
 
					if (menuAnt != menuAct) {
						oStyle1 = document.getElementById(menuAnt);
						oStyle1.style.background = fondo;
						oStyle1.style.color = fColor;
					}	
					}
					startClock();
				}
		} else 
		{ 
			startClock(); 
		}
	}

function apli_style2(oStyle, cFondo, cursor, fColor,id)
	{	
		if(HM_IE)
		{

			oStyle.style.background = cFondo;
			oStyle.style.cursor=cursor;
			oStyle1 = document.getElementById(id);			
	
		   oStyle1.style.color = fColor;
			if (event.type == "mousedown" || event.type == "mouseup") pagina = oStyle1.attributes.href;
			if (event.type == "mouseup") document.location.href=pagina;
			if (event.type == "mouseout") pagina='';
				{	
					pagina='';
					menuPop=null;
					muestra=false;
				}
			if (event.type == "mouseover") 
				{	
					startClock();
				}
		} else 
		{ 
			startClock(); 
		}
	}

var pNode;

function over_effect(e,stilo)
{		

	var y = 0;
	if (document.all)
		source4=event.srcElement
	else if (document.getElementById)
		source4=e.target;
	if (source4.tagName!="TABLE")	
	{		
		if (source4.tagName=="A")	
		{
			source4=source4.parentNode;;
		}
		while(source4.tagName!="TABLE")
		{
			source4 = source4.parentNode;		
		}
	}
	source4.className = stilo;
}

var pagina;
function go_effect(e,fcolor,bColor, mId)
{
	var y = 0;
	if (document.all)
		source4=event.srcElement
	else if (document.getElementById)
		source4=e.target

	source3 = source4;
	
	while(source4.tagName!="TABLE")
	{
		source4 = source4.parentNode;		
	}
	
	source4.style.background = fcolor;
	source4.style.border = "2px " + fcolor + " solid";
//	source4.style.font ="11px Verdana, Arial, Helvetica, sans-serif white";
//	source4.style.color ="white";
	source4.style.cursor="hand";

	source4 = document.getElementById(mId);
	source4.style.color = "Red";
	pagina = source4.attributes.href;
}

function go_back(e,cell, fcolor)
{
	var y = 0;
	if (document.all)
		source4=event.srcElement
	else if (document.getElementById)
		source4=e.target
		
	source4 = source4.parentNode;
	source4 = source4.firstChild;
	if (source4.tagName=="TD")
	{
		while(y<cell)
		{
			source4.style.background=fcolor;
			source4 = source4.nextSibling;
			y++;			
		}
	}
}

var milClock;
var milClock;
function startClock ()
{
	var sClock=new Date();
	milClock = sClock.getTime();
}

var eMenu, oMenu, miMuestra ;
function mostrarPop()
{
	if (menuPop == null) return;
	var popClock = new Date();
	var milPop = popClock.getTime();
	if ((milClock + retardo) < milPop && miMuestra)
	{
		menuPop.isOn = true;
		menuPop.showIt(true);
		//alert(menuPop.showIt);					
		return;
	}	
	setTimeout ('mostrarPop()', 5);	
	menuPop.isOn = false;
	menuPop.showIt(false);					
	
}

//Script para hacer la simulación de ejemplo en busquedas de empleo
function validar()
{
if ((document.empleo.e_zona.selectedIndex==2)&&(document.empleo.e_area.selectedIndex==8))
{
document.empleo.submit();
}
else{
location.href="habout.asp?inc=sinoferta";
}
}

function lanzakits() 
{
	var URL = document.frmkits.select3.options[document.frmkits.select3.selectedIndex].value;
	switch  (URL)
	{
		case "1": // Titanium 2004
				location = "/about/press/kits.asp";
				break;
		case "2": // Panda Software
				location = "/about/press/kits1.asp";
				break;
		case "3": // EnterpriSecure
				location = "/about/press/kits2.asp";
				break;
		case "4": // BusinesSecure
				location = "/about/press/kits3.asp";
				break;
		case "5": // Platinun InternetSecurity
				location = "/about/press/kits10.asp";
				break;
		case "6": // Platinum
				location = "/about/press/kits5.asp";
				break;
		case "7": // ActiveScan
				location = "/about/press/kits6.asp";
				break;
		case "8": // Invent
				location = "/about/press/kits7.asp";
				break;
		case "9": // GateDefender
				location = "/about/press/kits8.asp";
				break;				
		case "10": location = "/about/press/kits9.asp";
				break;
		case "11": location = "/about/press/kits11.asp";
				break;
		case "12": location = "/about/press/kits12.asp";
				break;
				
				
	}
}

var cadenabase;
function abrir_popup(pagina,w,h)
{
x=(screen.width-w)/2;
y=(screen.height-h)/2;
if (cadenabase!=null) {
	s = cadenabase.substring(7,cadenabase.length);
	pos = 8 + s.indexOf('/');
	cb = cadenabase.substring(0,pos);
	window.open(cb + pagina,"_blank","resizable=no,width="+w+",height="+h+",left="+x+", top="+y);

}
else
{
	window.open(pagina,"_blank","resizable=no,width="+w+",height="+h+",left="+x+", top="+y);
}
}

function abrir_guia()
{abrir_popup("/multimedia/selector.htm",730,450)}

