	
	function newWindow(bookgif) {
		bookWindow = window.open(bookgif,'bookWin','resizable=1,width=275,height=350,left=0,top=0')
		bookWindow.focus()
	}
	
	function gothere(mname){
		var thisform = mname;
		if (thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value != "nolink") 
		{window.open(thisform.selectsite.options[thisform.selectsite.options.selectedIndex].value);}
	}

var swidth=350;
var sheight=30;
var sspeed=1;
var restart=sspeed;
var rspeed=sspeed;
sbcolor="imagenes/fons.jpg";
var singletext=new Array();
singletext[0]='<div align="center" class=tabb>Benvingut/da al lloc web de l´Institut <BR>Francesc Ribalta - Castelló - </div>';
singletext[1]='<div align="center" class=tabb>Consulta les novetats al <a target=anew class=tabb href="http://www.iesribalta.net/html/tauler/tauler.htm">TAULER D´ANUNCIS</a></div>';
singletext[2]='<div align="center" class=tabb>PROVES D´ACCÉS ALS CICLES DE FORMACIÓ<br>PROFESSIONAL ESPECÍFICA. 29 de Maig<br>Consulta el <a target=anew class=tabb href="http://www.iesribalta.net/html/tauler/tauler.htm">Tauler d´anuncis</a></div>';
if (singletext.length>1)ii=1;else ii=0;
function goup(){if(sspeed!=rspeed*8){sspeed=sspeed*2;restart=sspeed;}}
function godown(){if(sspeed>rspeed){sspeed=sspeed/2;restart=sspeed;}}
function start(){if (document.all){iens6div.style.top=sheight;iescroll(iens6div);}
else if (document.layers){document.ns4div.document.ns4div1.top=sheight;document.ns4div.document.ns4div1.visibility='show';ns4scroll(document.ns4div.document.ns4div1);}
else if (document.getElementById){document.getElementById('iens6div').style.top=sheight;ns6scroll(document.getElementById('iens6div'));}}
function iescroll(whichdiv){iediv=eval(whichdiv);sizeup=iediv.offsetHeight;if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll(iediv)",100);}if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed;setTimeout("iescroll(iediv)",100);}else{iediv.style.pixelTop=sheight;iediv.innerHTML=singletext[ii];if(ii==singletext.length-1)ii=0;else ii++;}}
function ns4scroll(whichlayer){ns4layer=eval(whichlayer);sizeup=ns4layer.document.height;if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll(ns4layer)",100);}if (ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll(ns4layer)",100);}else{ns4layer.top=sheight;ns4layer.document.write(singletext[ii]);ns4layer.document.close();if(ii==singletext.length-1)ii=0;else ii++;}}
function ns6scroll(whichdiv){ns6div=eval(whichdiv);sizeup=ns6div.offsetHeight;if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll(ns6div)",100);}if (parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed;setTimeout("ns6scroll(ns6div)",100);}else{ns6div.style.top=sheight;ns6div.innerHTML=singletext[ii];if(ii==singletext.length-1)ii=0;else ii++;}}


