/**************************************
* http://vertical-scroller.vbarsan.com/
*    This notice may not be removed 
**************************************/

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

//scroller's height
var sheight=80;


//scroller's speed 
var sspeed=3;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause 
var spause=2000;

//scroller's background
var sbcolor="#eff3ff";

//messages: set 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[1]='<table CELLSPACING="0" CELLPADDING="0" align="centre"><tr><td height="80px" valign="middle"><table align="center"><tr><td>&nbsp;</td><td align="center"><A class=tabb target="_self" href="#">Welcome to the new Pimlico Academy website</A></td><td>&nbsp;</td></tr></table></table>';
//singletext[3]='<table CELLSPACING="0" CELLPADDING="0" align="centre"><tr><td height="80px" valign="middle"><table align="center"><tr><td>&nbsp;</td><td align="center"><div class=tan>Please note that sixth form students returning to year 13 need not come to register on 2nd September.</div></td><td></td></tr></table></table>';
singletext[0]='<table CELLSPACING="0" CELLPADDING="0" align="centre"><tr><td height="80px" valign="middle"><div class=tan><span class="redTx"><b>Notice to Parents<br>Please ensure your child brings a bottle of water to school every day</span></div></td></tr></table>';
//singletext[3]='<table CELLSPACING="0" CELLPADDING="0" align="centre"><tr><td height="80px" valign="middle"><div class=tan><A class=tabb href="index.php?pg=10&spg=13"><b>Visit the parents section for information on upcoming Parent Governor Surgeries</a></b></div></td></tr></table>';
//singletext[1]='<table CELLSPACING="0" CELLPADDING="0" align="centre"><tr><td height="80px" valign="middle"><div class=tan><strong>Homework Timetable</strong><br>2009 – 2010 Homework Timetable now available.<br><A href="index.php?pg=9&spg=5">Please click here for details.</A></div></td></tr></table>';
//singletext[0]='<table CELLSPACING="0" CELLPADDING="0" align="centre"><tr><td height="80px" valign="middle"><div class=tabb><strong>***URGENT***<br>Pimlico Academy Examination Update</div><div class=tan><A href="download/students/Pimlico Academy Examinations Update.pdf" target="_blank">Click here for the latest examination update.</a></div></td></tr></table>';
//singletext[0]='<table CELLSPACING="0" CELLPADDING="0" align="centre"><tr><td height="80px" valign="middle"><div class=tan><strong>Christmas Concert</strong><br>Thursday 17th December 2009<br>St Saviour’s Church,<br> Lupus Street<br>6:30-8:00pm<br><strong>All welcome</strong></div></td></tr></table>'
//singletext[4]='<div class=tan><b>On Windows/Linux:</b><br>ie4+ firefox1+ ns6+ opera7+ ns4+.<br><br><b>On Mac OS X</b>:<br>Safari, ie5+ firefox1+ opera7+.<br><br>Any message may be <b><i>as large as desired.</i></B><br>===<br><br><font color="olive">Any wider row will automatically be adjusted into as many rows as to fit the width you set for the scrolling area.</font><br><br>===<br>One may use <b><i>any basic HTML code.</i><br><br>===</B></div>';
//singletext[...]='...';
//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
var ii=0;
function goup(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}}

function start(){
if(document.getElementById){ns6div=document.getElementById('iens6div');ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[0];sizeup=ns6div.offsetHeight;ns6scroll();}
else 
if(document.layers){ns4layer=document.ns4div.document.ns4div1;ns4layer.top=sheight;ns4layer.document.write(singletext[0]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}
else 
if(document.all){iediv=iens6div;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[0];sizeup=iediv.offsetHeight;iescroll();}}
function iescroll(){if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll()",spause);}else 
if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed+"px";setTimeout("iescroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[ii];sizeup=iediv.offsetHeight;iescroll();}}
function ns4scroll(){if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll()",spause);}else 
if(ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;ns4layer.top=sheight;ns4layer.document.write(singletext[ii]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}}
function ns6scroll(){if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll()",spause);}else 
if(parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";setTimeout("ns6scroll()",100);}
else{if(ii==singletext.length-1)ii=0;else ii++;
ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetHeight;ns6scroll();}}
//-- end Algorithm -->