// JavaScript Document

 
/*
Scrolling Text script- 
Distributed by http://www.hypergurl.com
*/
 
 
//Change script's width (in pixels)
var marqueewidth=300
//Change script's height (in pixels, pertains only to NS)
var marqueeheight=20
//Change script's scroll speed (larger is faster)
var speed=6
//Change script's contents
var marqueecontents= '<a href="news_events.html" class="bodytext" style="text-decoration:none">&lt;&nbsp;&nbsp;&nbsp;&nbsp; 14.01.09 &ndash;  Pageantry launch new website &nbsp;&nbsp;&nbsp;&nbsp;&lt;&nbsp;&nbsp;&nbsp;&nbsp; 16.01.09 &ndash;  Pageantry continue to support UK schools wirelessly &nbsp;&nbsp;&nbsp;&nbsp;&lt;&nbsp;&nbsp;&nbsp;&nbsp; 14.01.09 &ndash;  Pageantry launch new website </a>'
 
if (document.all)
document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'" onMouseOver="this.stop()" onMouseOut="this.start()">'+marqueecontents+'</marquee>')
 
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}
 
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.width
scrollit()
}
 
function scrollit(){
if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.left-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.left=marqueewidth
scrollit()
}
}
 
window.onload=regenerate2
