<!-- Agregar a favoritos -->
function agregar(){ 
   if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) { 
      var url="http://www.ifef.es/portalempleo/"; 
      var titulo="Portal - Plan de Empleo del Ayuntamiento de Cádiz"; 
      window.external.AddFavorite(url,titulo); 
   } 
   else { 
    	if(navigator.appName == "Netscape") 
        	window.sidebar.addPanel('Portal - Plan de Empleo del Ayuntamiento de Cádiz','http://www.ifef.es/portalempleo/','')
   }
} 

<!-- Código para mostrar el reloj -->
function muestra_reloj()
{ 
	momentoActual = new Date();
	hora = momentoActual.getHours();
	minuto = momentoActual.getMinutes();
	segundo = momentoActual.getSeconds(); 
	if (hora < 10)
		hora = "0" + hora;
	if (minuto < 10)
		minuto = "0" + minuto;
	if (segundo < 10)
		segundo = "0" + segundo;
	horaImprimible = hora + ":" + minuto + ":" + segundo + "&nbsp;";
	document.getElementById('reloj').innerHTML = horaImprimible;
	setTimeout("muestra_reloj()",1000);
}

<!-- Código para mostrar la fecha -->
function muestra_fecha()
{
	var mydate=new Date();
	var year=mydate.getYear();
	if (year < 1000)
	year+=1900;
	var day=mydate.getDay();
	var month=mydate.getMonth();
	var daym=mydate.getDate();
	if (daym<10)
	daym="0"+daym;
	var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sábado");
	var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
	fechaImprimible = dayarray[day] + " " + daym + " de " + montharray[month] + " de " + year;
	document.getElementById('fecha_actual').innerHTML = fechaImprimible;
}


var win = null; 
function popup(ventana,ancho,alto,caracteristicas) 
{
	var winl = (screen.width-ancho)/2; 
	var wint = (screen.height-alto)/2; 
	
	if (winl < 0) winl = 0; 
	if (wint < 0) wint = 0; 
	var ajustes = 'height=' + alto + ','; 
	ajustes += 'width=' + ancho + ','; 
	ajustes += 'top=' + wint + ','; 
	ajustes += 'left=' + winl + ','; 
	ajustes += caracteristicas; 
	win = window.open(ventana,"ventana",ajustes); win.window.focus(); 
}


// Para crossfader (Programas en Funcionamiento
// Autor: http://www.brandspankingnew.net
var useBSNns;
if (useBSNns)
{
	if (typeof(bsn) == "undefined")
		bsn = {}
	var _bsn = bsn;
}
else
{
	var _bsn = this;
}

_bsn.Crossfader = function (divs, fadetime, delay )
{	
	this.nAct = -1;
	this.aDivs = divs;
	
	for (var i=0;i<divs.length;i++)
	{
		document.getElementById(divs[i]).style.opacity = 0;
		document.getElementById(divs[i]).style.position = "absolute";
		document.getElementById(divs[i]).style.filter = "alpha(opacity=0)";
		document.getElementById(divs[i]).style.visibility = "hidden";
	}
	
	this.nDur = fadetime;
	this.nDelay = delay;
		
	this._newfade();
}


_bsn.Crossfader.prototype._newfade = function()
{
	if (this.nID1)
		clearInterval(this.nID1);
	
	this.nOldAct = this.nAct;
	this.nAct++;
	if (!this.aDivs[this.nAct])	this.nAct = 0;
	document.getElementById( this.aDivs[this.nAct] ).style.visibility = "visible";
	
	this.nInt = 50;
	this.nTime = 0;
	
	var p=this;
	this.nID2 = setInterval(function() { p._fade() }, this.nInt);
}


_bsn.Crossfader.prototype._fade = function()
{
	this.nTime += this.nInt;
	
	var op = this._easeInOut(this.nTime, 0, 1, this.nDur);
	var ieop = op*100;
	document.getElementById( this.aDivs[this.nAct] ).style.opacity = op;
	document.getElementById( this.aDivs[this.nAct] ).style.filter = "alpha(opacity="+ieop+")";
	
	if (this.nOldAct > -1)
	{
		document.getElementById( this.aDivs[this.nOldAct] ).style.opacity = 1 - op;
		document.getElementById( this.aDivs[this.nOldAct] ).style.filter = "alpha(opacity="+(100 - ieop)+")";
	}
	
	if (this.nTime == this.nDur)
	{
		clearInterval( this.nID2 );
		
		if (this.nOldAct > -1)
			document.getElementById( this.aDivs[this.nOldAct] ).style.visibility = "hidden";	
		
		var p=this;
		this.nID1 = setInterval(function() { p._newfade() }, this.nDelay);
	}
}

_bsn.Crossfader.prototype._easeInOut = function(t,b,c,d)
{
	return c/2 * (1 - Math.cos(Math.PI*t/d)) + b;
}