// JavaScript Document
<!--//--><![CDATA[//><!--
var d=document, imgs = new Array(), lstv = "";

days	 = new Array('Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'); 
months	 = new Array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre');
nowa 	 = new Date();
Nday	 = nowa.getDate();
Nnameday = days[nowa.getDay()];
Nnameyear = nowa.getYear();
Nsp		 = ".";
Nnamemon = months[nowa.getMonth()];
fullDate = Nnameday+" "+Nday+" de "+Nnamemon+" de 2011";//+Nnameyear;

function showDate(){
	if (document.layers){
		document.layers.txtdate.document.write(fullDate);
		document.layers.txtdate.document.close();
	} else if (document.all){
		txtdate.innerHTML	=	fullDate;
	} else if (document.getElementById){
		document.getElementById("txtdate").innerHTML	=	fullDate;
	}
}

function chkURI(){
	uriL=String(escape(location));
	return uriL;
}

function playImgs(){
	if(!d.getElementById || !d.createElement) return;
	container = d.getElementById("imgs");
	imgs = container.getElementsByTagName("img");
	if(imgs.length==0) return;
	else document.write('<p class="imgs">Im&aacute;genes:');
    for(i=1; i<=imgs.length; i++){
		if(i==1)
		document.write('&nbsp;<a href="javascript:;" id=imga'+i+' onclick="seeImg(img'+i+', \'imga'+i+'\');" style="color:#D54C2A">['+i+']</a>');
		else
		document.write('&nbsp;-&nbsp;<a href="javascript:;" id=imga'+i+' onclick="seeImg(img'+i+', \'imga'+i+'\');">['+i+']</a>');
	}
	document.write('</p>');
}

function seeImg(v, imgofa){
	apresent = d.getElementById(imgofa);
	if(!d.getElementById || !d.createElement) return;
	if(lstv=="") { lstv = d.getElementById('img1'); alast = d.getElementById('imga1'); }
	if(lstv!=v) {alast.style.color="#666666";lstv.style.display = "none"; lstv.style.visibility = "hidden";}
	if(v!=lstv) {lstv = v; alast = apresent; apresent.style.color="#D54C2A"; v.style.display = "block"; v.style.visibility = "visible";}
}

function changeText(v,r){
	v = document.getElementById(v);
	if(r=='min') v.style.fontSize = '13px';
	if(r=='max') v.style.fontSize = '15px';
}
