var ii=0
//slider's width
var swidth=160
//slider's height
var sheight=40
//slider's speed
var sspeed=1
//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array()

//singletext[0]='<div align="center"><a href="noticias.html#news1"><font size="2" face="Geneva, Arial, Helvetica, san-serif"><font color="#cccccc"><b>Convocatoria de ayudas</b></font><font color="003F56"><b>  de libros de texto</b></font> <b><font color="#cccccc"></font></b></font></a></div>'
singletext[0]='<div align="center"><a href="plaza_curso20092010.html"><font size="2" face="Geneva, Arial, Helvetica, san-serif"><font color="#cccccc"><b><font face="Verdana, Arial, Helvetica, sans-serif"><b>Informaci&oacute;n  </b></font> </b></font><font color="003F56"><b>curso 09/10</b></font> <b><font color="#cccccc"></font></b></font></a></div>'

singletext[1]='<div align="center"><a href="noticias.html"><font size="2" face="Geneva, Arial, Helvetica, san-serif"><font color="#cccccc"><b>Resumen de actividades </b></font><font color="003F56"><b>Diciembre 08 y Enero 09 </b></font> <b><font color="#cccccc"></font></b></font></a></div>'

singletext[2]='<div align="center"><a href="noticias.html#news2"><font size="2" face="Geneva, Arial, Helvetica, san-serif"><font color="#cccccc"><b>Irati  </b></font><font color="003F56"><b> Proyectos</b></font> <b><font color="#cccccc"></font></b></font></a></div>'
singletext[3]='<div align="center"><a href="noticias.html#news4"><font size="2" face="Geneva, Arial, Helvetica, san-serif"><font color="#cccccc"><b>Uso del </b></font><font color="003F56"><b>polideportivo</b></font> <b><font color="#cccccc"></font></b></font></a></div>'
if (singletext.length>1) ii=1
else ii=0

function start_scroll(){
 if (document.all){
  ieslider1.style.top=sheight
  iemarquee(ieslider1)
 }
 else if (document.layers){
  document.ns4slider.document.ns4slider1.top=sheight
  document.ns4slider.document.ns4slider1.visibility='show'
  ns4marquee(document.ns4slider.document.ns4slider1)
 }
 else if (document.getElementById&&!document.all){
  document.getElementById('ns6slider1').style.top=sheight
  ns6marquee(document.getElementById('ns6slider1'))
 }
}

function iemarquee(whichdiv){
 iediv=eval(whichdiv)
 if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
  iediv.style.pixelTop=0
  setTimeout("iemarquee(iediv)",100)
 }
 if (iediv.style.pixelTop>=sheight*-1){
  iediv.style.pixelTop-=sspeed
  setTimeout("iemarquee(iediv)",100)
 }
 else{
  iediv.style.pixelTop=sheight
  iediv.innerHTML=singletext[ii]
  if (ii==singletext.length-1)   ii=0
  else   ii++
 }
}

function ns4marquee(whichlayer){
 ns4layer=eval(whichlayer)
 if (ns4layer.top>0&&ns4layer.top<=sspeed){
  ns4layer.top=0
  setTimeout("ns4marquee(ns4layer)",100)
 }
 if (ns4layer.top>=sheight*-1){

  ns4layer.top-=sspeed
  setTimeout("ns4marquee(ns4layer)",100)
 }
 else{
  ns4layer.top=sheight
  ns4layer.document.write(singletext[ii])
  ns4layer.document.close()
  if (ii==singletext.length-1) ii=0
  else ii++
 }
}

function ns6marquee(whichdiv){
 ns6div=eval(whichdiv)
 if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
  ns6div.style.top=0
  setTimeout("ns6marquee(ns6div)",100)
 }
 if (parseInt(ns6div.style.top)>=sheight*-1){
  ns6div.style.top=parseInt(ns6div.style.top)-sspeed
  setTimeout("ns6marquee(ns6div)",100)
 }
 else{
  ns6div.style.top=sheight
  ns6div.innerHTML=singletext[ii]
  if (ii==singletext.length-1) ii=0
  else ii++
 }
}

function scrollnews()
{


document.writeln('<span style="borderWidth:1; borderColor:#006684; width:&{swidth};; height:&{sheight};; background:#006684">')
document.writeln('<ilayer id="ns4slider" width="&{swidth};" height="&{sheight};">')
document.writeln('<layer id="ns4slider1" height="&{sheight};" onmouseover="sspeed=0;" onmouseout="sspeed=&{sspeed};">')

if (document.layers){
//alert("NS4");
document.write(singletext[0])
}

document.writeln('</layer>')
document.writeln('</ilayer>')

if (document.all){
//alert("IE");
document.writeln('<div style="position:relative;overflow:hidden;width:'+swidth+';height:'+sheight+';clip:rect(0 '+swidth+' '+sheight+' 0);border:0px solid red;" onmouseover="sspeed=0;" onmouseout="sspeed='+sspeed+'">')
document.writeln('<div id="ieslider1" style="position:relative;width:'+swidth+';">')
document.write(singletext[0])
document.writeln('</div></div>')
}
if(document.getElementById&&!document.all){
//alert("NS6");
document.writeln('<div style="position:relative;overflow:hidden;width:'+swidth+';height:'+sheight+';clip:rect(0 '+swidth+' '+sheight+' 0);border:0px solid red;" onmouseover="sspeed=0;" onmouseout="sspeed='+sspeed+'">')
document.writeln('<div id="ns6slider1" style="position:relative;width:'+swidth+';">')
document.write(singletext[0])
document.writeln('</div></div>')
}

document.writeln('</span>')



}
   