var dias = new Array("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");
var meses = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
var hoy = new Date();
var mesnum = hoy.getMonth();
var anio = hoy.getYear();
var dianum = hoy.getDate();
var diasemnum = hoy.getDay();
hoy = null;

function navegador()
{
if (navigator.appName == "Netscape" & parseInt(navigator.appVersion) == 4)
window.location="otro.htm"
}

function fecha(){
if(navigator.appName=="Microsoft Internet Explorer")
	{
	document.write("<DIV id='fecha' STYLE='position: absolute; left: 569; top: 57; visibility: visible; width: 200; height: 14'>");
	document.write("<p class='fecha'>");
	document.write(dias[diasemnum] + ", " + dianum + " de " + meses[mesnum] + " de " + anio);
	document.write("</DIV>");
	}
}

function recomienda(){
location.href='mailto:'+'?subject='+'ˇ Te recomiendo esta Web !'+'&body='+'Te env&iacute;o esta Web:'+' http://www.todoayuda.com'+' ,para que vayas a visitarla - es muy interesante!!!.';
	}

function arriba(){
scroll(0,0)
	}

function actualiza(){
document.write("Ultima actualizaci&oacute;n" +
document.lastModified);
	}

function abre(){
window.open('legal.htm','', 'resizable=no,toolbar=no,locationbar=no,width=650,height=380,left=70,top=70');
	}

function abrev(nombre,ancho,alto)
{
	izquierda=eval((screen.availwidth-ancho)/2);
	arriba=eval((screen.availheight-alto)/2);
window.open(nombre,'','resizable=no,toolbar=no,locationbar=no,width='+ancho+',height='+alto+',left='+izquierda+',top='+arriba);
	}

function noticias()
{
	izquierda=eval((screen.availwidth-480)/2);
	arriba=eval((screen.availheight-350)/2);
window.open('noticias.htm','','resizable=no,toolbar=no,locationbar=no,scrollbars=yes,width='+480+',height='+350+',left='+izquierda+',top='+arriba);
	}

function resol()
{
var cesar=200;
if (navigator.appName=="Microsoft Internet Explorer")
cesar=244;
document.write("<DIV id=res  STYLE='position: absolute; left:183; top:"+cesar+"; visibility:visible'>");
document.write("<p>");
document.write("<font face='Arial' size='1'>Resoluci&oacute;n recomendada 800 x 600.</font>");
document.write("<a title='Informaci&oacute;n Legal' class='descarga' href='javascript:abre();'>");
document.write("<font size='1' face='Arial'>Aviso legal</font>");
document.write("</a></p></DIV>");

}

function abrevirus(nom,ancho,alto){
	izq=eval((screen.availwidth-ancho)/2);
	arr=eval((screen.availheight-alto)/2);
window.open(nom,'','resizable=no,toolbar=no,locationbar=no,scrollbars=yes,width='+ancho+',height='+alto+',left='+izq+',top='+arr);
	}

function abreEuro(){
window.open('Euro.htm','', 'resizable=no,toolbar=no,locationbar=no,width=330,height=162,left=460,top=0');
	}

function barraestado() {
window.status="····FIEP-Colombia····";
	}

function atras ( ) 
	{
		history.back();
	}

function adelante ( )
	{
		history.forward( );
	}

function MM_callJS(jsStr) { 
  return eval(jsStr)
	}

function maximiza()
{
  var y=window.screen.height;
  var x=window.screen.width;
  window.moveTo(0,0);
  window.resizeTo(x,y);
}

function ie_tarjetas()
{
  document.getElementById('virus').style.visibility = "visible";
  document.getElementById('novedades').style.visibility = "hidden";
}

function ie_novedades()
{
  document.getElementById('virus').style.visibility = "hidden";
  document.getElementById('novedades').style.visibility = "visible";
}

function menupagina() {
	hovercolor   = "#FFCD69";
	bgcolor      = "#FF9900";
	background   = "";
	menu_border  = 0;	
	border_color = "#000000";
	ancho        = 110;
	img_flecha   = "";
if(document.all) { if(!background) { background=bgcolor; }
else { background = "url("+background+")"; } }

function LayerSpecs(Left,Top,Width)
	{ if(No3) {
	if(document.all) { Top+=0; Left+=0; Width-=6; }
	this.left  = Left;
	this.top   = Top;
	this.info  = "";
	T=0;
	for(i=3; i<arguments.length; i++) {
		if(document.all) { this.info += "<TR><TD WIDTH="+Width+" onMouseOver='this.bgColor=\""+hovercolor+"\"' onMouseOut='this.bgColor=\"\"'>"+arguments[i]+"</TD></TR>"; }
		else { this.info += "<LAYER onMouseOver='this.bgColor=\""+hovercolor+"\"' onMouseOut='this.bgColor=\""+bgcolor+"\"' WIDTH="+Width+" POSITION=RELATIVE TOP="+T+">&nbsp;"+arguments[i]+"</LAYER>"; }
		T+=20;
	}
} }


j = (Layer[0]) ? 0:1;
for(i=j; i<Layer.length; i++) {
	if(document.all && No3) { document.write("<SPAN onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' STYLE='position:absolute; visibility:hidden; background:"+background+"; top:"+Layer[i].top+"; left:"+Layer[i].left+";'><TABLE STYLE='border:solid "+menu_border+" "+border_color+"'>"+Layer[i].info+"</TABLE></SPAN>"); }
	else if(document.layers && No3) { document.write("<LAYER onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' POSITION=ABSOLUTE VISIBILITY=HIDDEN BGCOLOR='"+bgcolor+"' BACKGROUND='"+background+"' TOP="+Layer[i].top+" LEFT="+Layer[i].left+">"+Layer[i].info+"</LAYER>"); }
}
if(document.all) { document.all["menubar"].style.visibility = "visible"; }
else if(document.layers) { document.layers["menubar"].visibility = "visible"; }
}
function MuestraT(num)
	{
		var etiqueta = eval("document.all['CT" + num + "']");
		var etipossuperior = etiqueta.scrollHeight +15;
		var testTop = (document.body.scrollTop + event.clientY) - etipossuperior;
		var testLeft = event.clientX - 60;
		var tooltipAbsLft = (testLeft < 0) ? 10 : testLeft;
		var tooltipAbsTop = (testTop < document.body.scrollTop) ? document.body.scrollTop : testTop;
		etiqueta.style.posLeft = tooltipAbsLft;
		etiqueta.style.posTop = tooltipAbsTop;
		etiqueta.style.visibility = "visible";
	}
	function EscondeT(num)
	{
		var etiqueta = eval("document.all['CT" + num + "']");
		etiqueta.style.visibility = "hidden";
	}



function menu_superior(){

document.write("<DIV id='menusup' STYLE='position: absolute; left: 375; top: 20; visibility: visible;'>");

document.write("<table border=0><tr>");

document.write("<td class=bordes><p align=center><a title='Webs que colaboran con TodoAyuda' class=menusup href=colaboradores.htm><font size=1>Colaboradores</font></a></td>");

document.write("<td class=bordeder><p align=center><a title='Recomienda esta Web a un amigo' class=menusup href=javascript:recomienda();><font size=1>Recomi&eacute;ndanos</font></a></td>");

document.write("<td class=bordeder><p align=center><a title='Seguridad Inform&aacute;tica' class=menusup href=javascript:noticias()><font size=1>Noticias</font></a></td>");

document.write("<td class=bordeder><p align=center><a title='Mapa de nuestra Web' class=menusup href=Mapa.htm><font size=1>Mapa</font></a></td>");

document.write("<td class=bordeder><p align=center><a Title='Tarjetas gratis para Outlook Express' class=menusup href=Flores1.htm><font size=1>Tarjetas</font></a></td>");

document.write("<td class=bordeder><p align=center><a title=' Contacta con nosotros' class=menusup href=scontacta.htm><font size=1>Contacta</font></a></td>");

if(navigator.appName=="Microsoft Internet Explorer")
document.write("<td class=bordeder><p align=center><a title='Utiliza nuestra calculadora Euro <--> Pesetas' class=menusup href=javascript:abreEuro();><font size=1>Euro</font></a></td>");

document.write("</TR></table>");
document.write("</DIV>");
}

function menuoffice()
	{

document.write('<DIV ID="MOffice" STYLE="position: absolute; left: 20; top: 300; width: 160; height: 90; visibility: visible">');

document.write('<table border="0" cellpadding="0" cellspacing="0" width="160">');

document.write('<tr>');
document.write('<td width="70"><p style="margin-left: 22; margin-top: 2; margin-bottom: 2"><font color="#FFFFFF">Office</font></td>');
document.write('<td width="40" align="center"><a class="menubarraizq" href="uoffice97.htm">97</a></td>');
document.write('<td width="50" align="center"><a class="menubarraizq" href="uoffice2k.htm">2000</a></td>');
document.write('</tr>');


document.write('<tr>');
document.write('<td width="70"><p style="margin-left: 22; margin-top: 2; margin-bottom: 2"><font color="#FFFFFF">Word</font></p></td>');
document.write('<td width="40" align="center"><a class="menubarraizq" href="uword97.htm">97</a></td>');
document.write('<td width="50" align="center"><a class="menubarraizq" href="uword2k.htm">2000</a></td>');
document.write('</tr>');

document.write('<tr>');
document.write('<td width="70"><p style="margin-left: 22; margin-top: 2; margin-bottom: 2"><font color="#FFFFFF">Excel</font></td>');
document.write('<td width="40" align="center"><a class="menubarraizq" href="uexcel97.htm">97</a></td>');
document.write('<td width="50" align="center">2000</td>');
document.write('</tr>');

document.write('<tr>');
document.write('<td width="70"><p style="margin-left: 22; margin-top: 2; margin-bottom: 2"><font color="#FFFFFF">Access</font></td>');
document.write('<td width="40" align="center">97</td>');
document.write('<td width="50" align="center">2000</td>');
document.write('</tr>');

document.write('</table>');

document.write('</DIV>');
}

function todolink()
	{
	document.write("<p align='center' style='margin-top: 2; margin-bottom: 2'>");
	document.write("<a class='CT' href='http://www.todoayuda.com/' target='_blank'>");
	document.write("<font face='Verdana' size='1'>http://www.todoayuda.com</font></a></p>");
	}

function bgon(td,col)
{
if(document.getElementById||(document.all && !(document.getElementById)))
{
document.getElementById(td).style.backgroundColor=col;
}
}

function bgoff(td,col)
{
if(document.getElementById||(document.all && !(document.getElementById)))
{
document.getElementById(td).style.backgroundColor=col;
}
}


// Cambiar imagenes - nomid = identificador de la imagen ; im = ruta completa y fichero imagen.
// IE y NS
function cambia_imagen(nomid,im)
{
if (document.getElementById)
eval(document.getElementById(nomid)).src=im
}
