/************************************
 *  This notice may not be removed  *
 * http://members.rogers.com/bazil/ *
*************************************/

//-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=171;

//scroller's height
var sheight=32;

//scroller's speed 
var sspeed=1;
var restart=sspeed;

//scroller's background
sbcolor="#D2B48C";

//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">Joint Government of Tonga - Education Donor Conference now confirmed for May 28th - June 3rd, Nuku alofa</div>';
singletext[1]='<div align="center">21/5/04 - Tonga Institute of Higher Education semester ends.</div>';

//singletext[...]='...';
//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
//you may set your own sspeed values within these 2 functions below:
function goup(){if(sspeed==1){sspeed=2;restart=sspeed;}else if(sspeed==2){sspeed=4;restart=sspeed;}else if(sspeed==4){sspeed=8;restart=sspeed;}}
function godown(){if(sspeed==8){sspeed=4;restart=sspeed;}else if(sspeed==4){sspeed=2;restart=sspeed;}else if(sspeed==2){sspeed=1;restart=sspeed;}}

if (singletext.length>1)ii=1;else ii=0;
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++;}}
//-- end Algorithm -->
