// JavaScript Document


// COMUNES RollOvers

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}





function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-------------------




//--------------OVER NOTICIAS----------------------------//

function news_Over(cual_news, obj){
	obj.style.cursor = 'hand';
	document.getElementById("news"+cual_news).className="news_o";
	document.getElementById("news_tit"+cual_news).className="news_tit_o";
}

function news_Out(cual_news, obj){
	obj.style.cursor = 'pointer';
	document.getElementById("news"+cual_news).className="news";
	document.getElementById("news_tit"+cual_news).className="news_tit";
}

function news_GoTo(pagina_go){
	parent.document.location.href = pagina_go;
}

//--------------FIN OVER NOTICIAS----------------------------//




//--------------OVER MAPA WEB----------------------------//


function mapaweb_Over(cual_news, obj){
	obj.style.cursor = 'hand';
	document.getElementById("mapa_web"+cual_news).className="mapa_web_o";
}

function mapaweb_Out(cual_news, obj){
	obj.style.cursor = 'pointer';
	document.getElementById("mapa_web"+cual_news).className="mapa_web";
}

function mapaweb_GoTo(pagina_go){
	parent.document.location.href = pagina_go;
}


//--------------FIN OVER MAPA WEB----------------------------//





//--------------DESPLEGAR CAPAS CONTACTO----------------------------//
var muestra = null;

function contacto(muestra2){
	if(muestra != null){
			document.getElementById("muestra").className = 'formulario_contenedor_cerrado';
			document.getElementById("cambioPress").className = 'tahoma_verde_claro';
			
			muestra = null;
	}else{
			document.getElementById("muestra").className = 'formulario_contenedor_abierto';
			document.getElementById("cambioPress").className = 'tahoma_naranja_line';
			muestra = muestra2;
	}	
}



//--------------FIN DESPLEGAR CAPAS CONTACTO----------------------------//
var cualpulsado1 = null;
var cualimag1 = null;

function memoria_Desplegar(cualpulsado2){
	var cualimag='img_memorias_'+cualpulsado2;
	if(cualpulsado1 != null){
		if(cualpulsado1 == cualpulsado2){
			document.getElementById(cualpulsado1).className="memoria";
			document.getElementById(cualimag1).src = 'imagenes/btn_memorias_'+cualpulsado1+'_n.gif'
			cualpulsado1 = null;
			cualimag1=null;
		}else{
			document.getElementById(cualpulsado1).className="memoria";
			document.getElementById(cualimag1).src = 'imagenes/btn_memorias_'+cualpulsado1+'_n.gif';
			document.getElementById(cualpulsado2).className = 'memoria_abierto';
			document.getElementById(cualimag).src = 'imagenes/btn_memorias_'+cualpulsado2+'_o.gif';
			
			cualpulsado1 = cualpulsado2;
			cualimag1=cualimag;
		}
	}else{
			document.getElementById(cualpulsado2).className="memoria_abierto";
			document.getElementById(cualimag).src = 'imagenes/btn_memorias_'+cualpulsado2+'_o.gif';
			cualpulsado1 = cualpulsado2;
			cualimag1=cualimag;
	}	
}

function memoria_Over(nombre,imag,obj){
	if (cualimag1 != nombre){
		obj.style.cursor = 'hand';
		document.getElementById(nombre).src=imag;
	}
}

function memoria_Out(nombre,imag,obj){
	if (cualimag1 != nombre){
		obj.style.cursor = 'pointer';
		document.getElementById(nombre).src=imag;
	}
}






// -----------DESPLEGAR MEMORIA DE CALIDADES --------------------------//



// -----------FIN DESPLEGAR MEMORIA DE CALIDADES --------------------------//
