	var cabeceracontent=new Array();
	cabeceracontent[0]='<img src="'+ruta_ficheros+'images/cabeceras/01.jpg" alt="" />';
	cabeceracontent[1]='<img src="'+ruta_ficheros+'images/cabeceras/02.jpg" alt="" />';
	cabeceracontent[2]='<img src="'+ruta_ficheros+'images/cabeceras/03.jpg" alt="" />';
	cabeceracontent[3]='<img src="'+ruta_ficheros+'images/cabeceras/04.jpg" alt="" />';
	cabeceracontent[4]='<img src="'+ruta_ficheros+'images/cabeceras/05.jpg" alt="" />';
	cabeceracontent[5]='<img src="'+ruta_ficheros+'images/cabeceras/06.jpg" alt="" />';
	cabeceracontent[6]='<img src="'+ruta_ficheros+'images/cabeceras/07.jpg" alt="" />';
	cabeceracontent[7]='<img src="'+ruta_ficheros+'images/cabeceras/08.jpg" alt="" />';
	cabeceracontent[8]='<img src="'+ruta_ficheros+'images/cabeceras/09.jpg" alt="" />';
	cabeceracontent[9]='<img src="'+ruta_ficheros+'images/cabeceras/10.jpg" alt="" />';
	cabeceracontent[10]='<img src="'+ruta_ficheros+'images/cabeceras/11.jpg" alt="" />';
	cabeceracontent[11]='<img src="'+ruta_ficheros+'images/cabeceras/12.jpg" alt="" />';
	cabeceracontent[12]='<img src="'+ruta_ficheros+'images/cabeceras/13.jpg" alt="" />';

function domcabecera(content, divId, divClass, delay, fadeornot){
this.contentcabecera=content
this.cabeceraid=divId //ID of master ticker div. Message is contained inside first child of ticker div
this.delaycabecera=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over ticker (and pause it if it is)
this.pointer=1
this.opacitystring=(typeof fadeornot!="undefined")? "width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1" : ""
if (this.opacitystring!="") this.delaycabecera+=500 //add 1/2 sec to account for fade effect, if enabled
this.opacitysetting=0.2 //Opacity value when reset. Internal use.
document.write('<div id="'+divId+'" class="'+divClass+'"><div style="'+this.opacitystring+'">'+content[0]+'</div></div>')
var instanceOfCabecera=this
setTimeout(function(){instanceOfCabecera.initialize()}, delay)
}

domcabecera.prototype.initialize=function(){
var instanceOfCabecera=this
this.contentdivcabecera=document.getElementById(this.cabeceraid).firstChild //div of inner content that holds the messages
document.getElementById(this.cabeceraid).onmouseover=function(){instanceOfCabecera.mouseoverBol=1}
document.getElementById(this.cabeceraid).onmouseout=function(){instanceOfCabecera.mouseoverBol=0}
this.rotatecabecera()
}

domcabecera.prototype.rotatecabecera=function(){
var instanceOfCabecera=this
if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
setTimeout(function(){instanceOfCabecera.rotatecabecera()}, 200)
else{
this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
this.contentdivcabecera.innerHTML=this.contentcabecera[this.pointer]
this.fadetimer1=setInterval(function(){instanceOfCabecera.fadetransition('up', 'fadetimer1')}, 200) //FADE EFFECT- PLAY IT
this.pointer=(this.pointer<this.contentcabecera.length-1)? this.pointer+1 : 0
setTimeout(function(){instanceOfCabecera.rotatecabecera()}, this.delaycabecera) //update container
}
}

domcabecera.prototype.fadetransition=function(fadetype, timerid){
var contentdiv=this.contentdivcabecera
if (fadetype=="reset")
this.opacitysetting=0.2
if (contentdiv.filters && contentdiv.filters[0]){
if (typeof contentdiv.filters[0].opacity=="number") //IE6+
contentdiv.filters[0].opacity=this.opacitysetting*100
else //IE 5.5
contentdiv.style.filter="alpha(opacity="+this.opacitysetting*100+")"
}
else if (typeof contentdiv.style.MozOpacity!="undefined" && this.opacitystring!=""){
contentdiv.style.MozOpacity=this.opacitysetting
}
else
this.opacitysetting=1
if (fadetype=="up")
this.opacitysetting+=0.2
if (fadetype=="up" && this.opacitysetting>=1)
clearInterval(this[timerid])
}