window.defaultStatus = ".: EDUCATECA - Un lugar para aprender :.";
var X210532=0;
var IX2=0;
var RX2=0;
var FX1= new Date();
var FX2= new Date();
function WX(IX,NX,CX,RX,OX,LX,DX,VX,QX){
	if (LX=='-1')
		return;
	var FX=new Date();
	if ((IX==IX2)&&(RX==RX2)&&(FX-FX1<500))
		return;
	else{
		IX2=IX;
		RX2=RX;
		FX1=FX;}
	J214559(RX,TX,FX);
	XLOCATION="http://www.educateca.com/";
	XX='.asp?EX=0&IX='+IX+'&NX='+escape(NX)+'&RX='+RX+'&TX='+TX;
	if ((CX!=null) && (CX!=0))
		XX+='&CX='+CX;
	if ((OX!=null) && (OX!=0))
		XX+='&OX='+OX;
	if ((LX!=null) && (LX!=0))
		XX+='&LX='+LX;
	if ((DX!=null) && (DX!=0))
		XX+='&DX='+DX;
	if ((VX!=null) && (VX!=0))
		XX+='&VX='+VX;
	if ((QX!=null) && (QX!=0))
		XX+='&QX='+QX;
	if ((TX!=209327) && ("210061,210062,211642,214208,214209,214210,214553,".indexOf(RX)!=-1))
		J221355();
	if (RX==211628)
		location=XLOCATION;
	else if ("209126,213111,211658".indexOf(RX)!=-1)
		location=XLOCATION+'A'+IX+'.asp';
	else if ("210532,213127,214215,214216".indexOf(RX)!=-1)
		eval("Y209671.location='"+XLOCATION+NX+".asp'");
	else if ("210061,210062,211642,214208,214209,214210".indexOf(RX)!=-1){
		if ((LX==null) && (QX==null)){
			eval("Y209671.location='"+XLOCATION+"P215347A"+XX+"'");}
		else{
			if (CX==11866)
				XY='P218108A';
			else if (CX==10828)
				XY='P218111A';
			else if (CX==210196)
				XY='P209825A';
			else
				XY='P209740A';
			eval("Y209671.X209740.location='"+XLOCATION+XY+XX+"'");}}	
	else if ("209459,209946,211668,212401".indexOf(RX)!=-1){
		if (RX==209459)
			external.AddFavorite(location.href,document.title);
		else if (RX==211668)
			J211668(0);		
		else
			J211668(1);
		X10610.location=XLOCATION+'P214335B'+XX;}
	else if ("208196,208933".indexOf(RX)!=-1){
		document.getElementById('X10610').style.display='block';
		X10610.location=XLOCATION+'P10610B'+XX;}
	else if (RX==209739){
		X10610.location=XLOCATION+'P214335B'+XX;
		eval("Y209671.X209740.focus()");
		window.print();}
	else if (RX==209495){
		J211668(1);
		X10610.location=XLOCATION+'P214335B'+XX;
		((OX!=208196)&&(OX!=209327)) ? XY='?subject=Desde EDUCATECA:' : XY='';
		window.location.href='mailto:'+NX+XY;}
	else if (RX==212987)
		ZX=window.open(XLOCATION+'P212987B'+XX,RX,'scrollbars=yes,menubar=no,location=no,toolbar=no,status=no,resizable=yes,width=590,height=460,screenX=0,top=0');
	else if (RX==207611){
		if ((("11866,11867".indexOf(CX)==-1) && (OX!=218109))||(OX==209973))
			ZX=window.open(NX,RX,'scrollbars=yes,menubar=yes,location=yes,toolbar=yes,status=no,resizable=yes,width=790,height=460,screenX=0,top=20');
		X10610.location=XLOCATION+'P214335B'+XX;}
return;
}
function J215162(TY){
	if (TY==0){
		if (window!=top)
			top.location.href=window.location;}
	else{
		if (window==top){
			XX=window.location.href.indexOf('/',25);
			XY=window.location.href.substring(25,XX);
			document.cookie='curd='+XY+';path=/';
			XY=window.location.href.substring(25);
			document.cookie='ciframe='+XY+';path=/';
			top.location.href='http://www.educateca.com/A'+TY+'.asp';}
		else
			document.cookie='curd=;path=/';}
}
function J10788(RX){
	XX=screen.width;
	if (RX==2)
		XY=(XX<900) ? 66 : (XX<1100) ? 82 : 84;
	else
		XY=(XX<900) ? 60 : (XX<1100) ? 78 : 84;		
	document.getElementById('XBODY').style.fontSize=XY+'%';
	if ((RX==1) && (XY>70))
		document.write("<TD class='c8' rowspan='3'><IMG src='211874D.gif' alt='EDUCATECA'>");
}
function J221364(WXX,WXY){
	XX=screen.width-Math.floor(screen.width*0.2)-WXX;
	document.write("<STYLE type='text/css'>#Y221364{width:"+XX+"px}#X4728 TH A{visibility:"+WXY+"}</STYLE>");
}
function J221355(){
	for (V=0;V<6;V++){
		document.getElementById('X221355').childNodes[V].style.visibility='hidden';}
}
function J221355A(WXX,WXY){
			with(document.getElementById('X221355').childNodes[WXX]){
			style.visibility='visible';
			if (WXY!='')
				href=WXY;}
}
function J211668(WXX){
	if (WXX==0){
		with(document.getElementById('X209126').rows[0]){
		style.display=(style.display=='none') ? '' : 'none';}}
	else{
		with(document.getElementById('X10610')){
			style.display='none';
			src='';}}
}
function J214559(RX,TX,FX){
	if ((FX-FX2>60000)&&(("211628,209327,213502").indexOf(TX)==-1)&&(("209126,211628,211658").indexOf(RX)==-1)){
	with(document.getElementById('X214559')){
	if (firstChild.nodeName=='IMG'){
		XX=document.createElement('A');
		XX.id='X208933';
		XX.href="javascript:top.WX(208933,'Para estar informad@',0,208933," +TX+ ")";
		XX.title='Te avisamos siempre que haya novedades en EDUCATECA';
		YY=document.createElement('IMG');
		YY.src='208933.gif';
		XX.appendChild(YY);
		childNodes[1].firstChild.nodeValue='';
		replaceChild(XX,firstChild);}}}
}

var NX='';
var XCOL=0;

function J(I,N,C,R,O,L,D,V,Q){
	if (N==0){
		if ("214208,214209,214210".indexOf(R)!=-1)
			N=document.getElementById('X221310').firstChild.nodeValue;
		else if ("210061,210062".indexOf(R)!=-1)
			N=NX;}
	top.WX(I,N,C,R,O,L,D,V,Q);
	return;
}
function K(){
	XX=document.images;
	for (V=0;V<XX.length;V++){
		XY=XX[V];
		if ('214560,219309,211628,211677'.indexOf(XY.src.substring(25,31))==-1)
			XY.onmouseover=K1;}
}
function K1(evt){
	KIMG=(!evt) ? event.toElement : evt.target;
	KY=(!evt) ? event.screenY : evt.screenY;
	KI=KIMG.parentNode.parentNode.lastChild;
	KTH=KIMG.parentNode.parentNode.parentNode.firstChild;
	if (KTH.firstChild.nodeName=='H2')
		NX=KTH.firstChild.firstChild.nodeValue+KTH.firstChild.lastChild.firstChild.nodeValue;
	else
		NX=KTH.firstChild.nodeValue;
	KIMG.onmouseout=K2;
	if (KTH.parentNode.id=='X4728')
		document.getElementById('X221310').style.color='#ff0000';
	else{
		KTH.style.color='#ff0000';
		KTH.parentNode.style.backgroundColor='#F5F5DC';}
	XWIDTH='';
	QTR=document.getElementById('X4728').childNodes.length;
	for (XCOL=1;XCOL<QTR;XCOL++){
		KA=document.getElementById('X4728').childNodes[XCOL].firstChild;
		if (KA.nodeName=='A'){
			if(KA.firstChild.src==KIMG.src){
				SX=KA.nextSibling.firstChild.nodeValue;
				break;}}}
	with(document.getElementById('X221345')){
		childNodes[0].src=KIMG.src;
		childNodes[1].data='  '+SX;
		if (KTH.parentNode.id=='X4728'){
			XX='Pulsando aquí se selecciona TODO el epígrafe';
			XY='Pulsando los iconos inferiores SÓLO el área resaltada';
			document.getElementById('X221364').childNodes[XCOL].style.backgroundColor='#F5F5DC';}
		else if (KI.nodeName=='I'){
			XX=KI.firstChild.nodeValue;
			XY='Fuente: '+KI.lastChild.nodeValue;}
		else{
			XX='Pulsa para acceder a la información';
			XY='';}
		XTOP=(KTH.parentNode.id=='X4728')?5:0;
		childNodes[2].firstChild.data=XX;
		childNodes[2].lastChild.firstChild.data=XY;
		style.top=KIMG.parentNode.offsetParent.offsetTop+((KY<(screen.height-160))?21:-70)+XTOP;
		style.right=screen.width-(screen.width/5)-KIMG.offsetParent.offsetLeft-20;
		style.lineHeight='1.5';
		style.display='block';}
	return;
}
function K2(evt){
	KIMG=(!evt) ? event.srcElement : evt.target;
	with(KIMG.parentNode.parentNode.parentNode){
		if (id=='X4728')
			document.getElementById('X221310').style.color='#6F3700';
		else{
			style.backgroundColor='';
			firstChild.style.color='#6F3700';}}
	document.getElementById('X221364').childNodes[XCOL].style.backgroundColor='';
	document.getElementById('X221345').style.display='none';
	return;
}
function WX1(IX,NX,CX,RX,OX,LX,DX,VX,QX){
	if ("213127,210532,214215,214216".indexOf(RX)!=-1){
		XX=document.getElementById('Z210532').lastChild;
		XY=(CX==212187)?'manuales_cursos':(CX==212286)?'estudios':'empleos_oposiciones';
		for (V=0;V<XX.childNodes.length;V++){
			with(XX.childNodes[V].firstChild.firstChild){
			if (nodeName=='A'){
				if (href.indexOf(X210532)!=-1)
					style.color='#0550DA';
					parentNode.style.borderLeft='';
				if (href.indexOf(NX)!=-1){
					style.color='#FF0000';
					parentNode.style.borderLeft='3px solid #FF0000';
					// Cambiar el título del epígrafe
					//X209671.document.getElementById('X221310').firstChild.nodeValue=firstChild.nodeValue
					blur();}
				if (("211975,209327".indexOf(TX)==-1) && (CX!=X210533)){
					XZ=href;
					XZ=XZ.replace(/\/.+\//,'//www.educateca.com/'+XY+'/');
					href=XZ;}}}}
		if (eval(document.getElementById('X214344'))){
			with(document.getElementById('X214344')){
				value='0';
				blur();
				if (("211975,209327".indexOf(TX)==-1) && (CX!=X210533)){
					for (V=3;V<childNodes.length;V+=2){
						XZ=childNodes[V].value;
						XZ=XZ.replace(/\/.+\//,'/'+XY+'/');
						childNodes[V].value=XZ;}}}}
		X210532=NX;
		if (TX!=209327){
			J221355();
			document.getElementById('X221355').childNodes[5].href=eval('Y209671.location');
			if (TX!=211975){		
				document.getElementById('X212187').href='manuales_cursos/'+NX+'.asp';
				document.getElementById('X212286').href='estudios/'+NX+'.asp';
				document.getElementById('X212469').href='empleos_oposiciones/'+NX+'.asp';
				if (CX!=X210533){
					if (X210533!=0){
						with(document.getElementById('X'+X210533)){
						parentNode.previousSibling.style.backgroundImage="url('219297D.gif')";
						parentNode.style.backgroundImage="url('219295B.gif')";
						style.color="#FFF";
						parentNode.nextSibling.style.backgroundImage="url('215896B.gif')";}}
					X210533=CX;
					with(document.getElementById('X'+CX)){
					parentNode.previousSibling.style.backgroundImage="url('219298D.gif')";
					parentNode.style.backgroundImage="url('219296B.gif')";
					style.color="rgb(3,50,129)";
					parentNode.nextSibling.style.backgroundImage="url('219294B.gif')";}}}}}
	else if ("210061,210062,211642,214208,214209,214210".indexOf(RX)!=-1){
		J221355();
		if (QX!=0){
			XX=(VX*10)+1;
			YX=(VX*10)+10;
			if (YX>QX)
				YX=QX;}
		XX="javascript:top.WX("+IX+",'"+NX+"',"+CX+","+RX+","+OX+","+LX+",0,";
		if (VX>0)
			J221355A(1,XX+"0,"+QX+")");
		if (VX>1)
			J221355A(2,XX+(VX-1)+","+QX+")");
		if ((VX+1<Math.floor(QX/10))&&((YX+10)!=QX))
			J221355A(3,XX+(VX+1)+","+QX+")");
		if ((VX<Math.floor(QX/10))&&(YX!=QX)){
			(QX%10==0) ? XX1=(QX/10)-1 : XX1=Math.floor(QX/10);
			J221355A(4,XX+XX1+","+QX+")");}
		if (RX!=214557)
			J221355A(5,'');
		if (QX!=0)
			J221355A(0,'javascript:top.WX('+IX+',0,'+CX+',209739,'+OX+','+LX+')');}
	return;
}