var pausecontent2=new Array()

pausecontent2[0]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-nacional.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pn.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policianacional8.gif border=0 vspace=8 width="134" height="200"></a></div>'
pausecontent2[1]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-guardia-civil.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-gc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/guardiacivil9.gif border=0 vspace=8 width="200" height="154"></a></div>'
pausecontent2[2]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-canaria.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policiacanaria.gif border=0 vspace=8 width="178" height="180"></a></div>'
pausecontent2[3]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-local.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pl.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policialocal4.gif border=0 vspace=8 width="192" height="116"></a></div>'
pausecontent2[4]='<div align=center><a href=http://www.mi-oposicion.com/cursos-seguridad-privada.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-vs.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/vigilante-seguridad2.gif border=0 vspace=8 width="200" height="147"></a></div>'
pausecontent2[5]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-auxilio-judicial.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-aj.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/auxilio-judicial2.gif border=0 vspace=8 width="120" height="135"></a></div>'
pausecontent2[6]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-tramitacion-procesal-administrativa.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-tp.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/tramitacion-procesal.gif border=0 vspace=8 width="160" height="159"></a></div>'
pausecontent2[7]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-ayudante-instituciones-penitenciarias.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-aip.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/instituciones-penitenciarias.gif border=0 vspace=8 width="163" height="200"></a></div>'
pausecontent2[8]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-nacional.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pn.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policianacional9.gif border=0 vspace=8 width="200" height="151"></a></div>'
pausecontent2[9]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-guardia-civil.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-gc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/guardiacivil7.gif border=0 vspace=8 width="200" height="119"></a></div>'
pausecontent2[10]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-canaria.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policiacanaria2.gif border=0 vspace=8 width="180" height="155"></a></div>'
pausecontent2[11]='<div align=center><a href=http://www.mi-oposicion.com/cursos-seguridad-privada.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-vs.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/seguridad-privada.gif border=0 vspace=8 width="131" height="160"></a></div>'
pausecontent2[12]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-guardia-civil.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-gc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/guardiacivil8.gif border=0 vspace=8 width="200" height="135"></a></div>'
pausecontent2[13]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-auxilio-judicial.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-aj.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/auxilio-judicial.gif border=0 vspace=8 width="150" height="87"></a></div>'
pausecontent2[14]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-nacional.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pn.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policianacional1.gif border=0 vspace=8 width="187" height="200"></a></div>'
pausecontent2[15]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-guardia-civil.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-gc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/guardiacivil1.gif border=0 vspace=8 width="141" height="200"></a></div>'
pausecontent2[16]='<div align=center><a href=http://www.mi-oposicion.com/cursos-seguridad-privada.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-vs.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/vigilante-seguridad3.gif border=0 vspace=8 width="153" height="200"></a></div>'
pausecontent2[17]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-tramitacion-procesal-administrativa.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-tp.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/tramitacion-procesal.gif border=0 vspace=8 width="160" height="159"></a></div>'
pausecontent2[18]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-ayudante-instituciones-penitenciarias.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-aip.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/instituciones-penitenciarias.gif border=0 vspace=8 width="163" height="200"></a></div>'
pausecontent2[19]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-nacional.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-vs.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policianacional3.gif border=0 vspace=8 width="149" height="200"></a></div>'
pausecontent2[20]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-guardia-civil.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-gc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/guardiacivil3.gif border=0 vspace=8 width="200" height="148"></a></div>'
pausecontent2[21]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-local.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pl.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policialocal5.gif border=0 vspace=8 width="200" height="133"></a></div>'
pausecontent2[22]='<div align=center><a href=http://www.mi-oposicion.com/cursos-seguridad-privada.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-vs.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/seguridad-privada.gif border=0 vspace=8 width="131" height="160"></a></div>'
pausecontent2[23]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-guardia-civil.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-gc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/guardiacivil9.gif border=0 vspace=8 width="200" height="154"></a></div>'
pausecontent2[24]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-nacional.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pn.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policianacional4.gif border=0 vspace=8 width="148" height="201"></a></div>'
pausecontent2[25]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-auxilio-judicial.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-aj.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/auxilio-judicial.gif border=0 vspace=8 width="150" height="87"></a></div>'
pausecontent2[26]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-canaria.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policiacanaria.gif border=0 vspace=8 width="178" height="180"></a></div>'
pausecontent2[27]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-tramitacion-procesal-administrativa.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-tp.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/tramitacion-procesal.gif border=0 vspace=8 width="160" height="159"></a></div>'
pausecontent2[28]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-ayudante-instituciones-penitenciarias.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-aip.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/instituciones-penitenciarias.gif border=0 vspace=8 width="163" height="200"></a></div>'
pausecontent2[29]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-guardia-civil.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-gc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/guardiacivil4.gif border=0 vspace=8 width="200" height="152"></a></div>'
pausecontent2[30]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-local.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pl.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policialocal6.gif border=0 vspace=8 width="198" height="152"></a></div>'
pausecontent2[31]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-nacional.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pn.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policianacional6.gif border=0 vspace=8 width="190" height="86"></a></div>'
pausecontent2[32]='<div align=center><a href=http://www.mi-oposicion.com/cursos-seguridad-privada.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-vs.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/vigilante-seguridad1.gif border=0 vspace=8 width="131" height="100"></a></div>'
pausecontent2[33]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-auxilio-judicial.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-aj.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/auxilio-judicial.gif border=0 vspace=8 width="150" height="87"></a></div>'
pausecontent2[34]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-canaria.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policiacanaria2.gif border=0 vspace=8 width="180" height="155"></a></div>'
pausecontent2[35]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-guardia-civil.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-gc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/guardiacivil5.gif border=0 vspace=8 width="190" height="185"></a></div>'
pausecontent2[36]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-ayudante-instituciones-penitenciarias.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-aip.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/instituciones-penitenciarias.gif border=0 vspace=8 width="163" height="200"></a></div>'
pausecontent2[37]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-local.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pl.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policialocal3.gif border=0 vspace=8 width="118" height="200"></a></div>'
pausecontent2[38]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-nacional.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pn.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policianacional7.gif border=0 vspace=8 width="140" height="250"></a></div>'
pausecontent2[39]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-guardia-civil.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-gc.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/guardiacivil6.gif border=0 vspace=8 width="200" height="145"></a></div>'
pausecontent2[40]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-tramitacion-procesal-administrativa.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-tp.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/tramitacion-procesal.gif border=0 vspace=8 width="160" height="159"></a></div>'
pausecontent2[41]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-local.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pl.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policialocal1.gif border=0 vspace=8 width="149" height="190"></a></div>'
pausecontent2[42]='<div align=center><a href=http://www.mi-oposicion.com/cursos-seguridad-privada.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-vs.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/vigilante-seguridad4.gif border=0 vspace=8 width="180" height="156"></a></div>'
pausecontent2[43]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-policia-nacional.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-pn.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/policianacional10.gif border=0 vspace=8 width="200" height="147"></a></div>'
pausecontent2[44]='<div align=center><a href=http://www.mi-oposicion.com/oposiciones-auxilio-judicial.html class=enlace target=_top><img src="imgs/prepara-tu-oposicion-curso-aj.gif" width="220" height="22" border="1"><br><img src=http://www.mi-oposicion.com/imgs/auxilio-judicial.gif border=0 vspace=8 width="150" height="87"></a></div>'

/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
function pausescroller2(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden;"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[43]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[44]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}
// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------
pausescroller2.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller2.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}
// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------
pausescroller2.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 17)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}
// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------
pausescroller2.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}
pausescroller2.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}
// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------
pausescroller2.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}
pausescroller2.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}
