// Scrollers width here (in pixels)
var scrollerwidth="198px"

// Scrollers height here
var scrollerheight="350px"

// Scrollers speed here (larger is faster 1-10)
var scrollerspeed=1

// Scrollers content goes here! Keep all of the message on the same line!

var scrollercontent=
 '<a href="http://www.alislam.org/ramadhan/index.html" target="_blank"><img src="../Images/AllImages/ramadan_icon.bmp" width="40" height="35" border="0"></a>'
+'<a class="SpecialLink9" href="http://www.alislam.org/ramadhan/index.html" target="_blank"> Ramadhan 2012</a></br>'
+'<font face="Arial" color="#D7DF01" size="1">First day of Ramadhan - <br>Sunday, 22nd July 2012 (provisional)</font><br><br><br>'
+'<a href="http://www.alislam.org/eid/" target="_blank"><img src="../Images/AllImages/EidulFitr.gif" width="40" height="35" border="0"></a>&nbsp;'
+'<a class="SpecialLink9" href="http://www.alislam.org/eid/" target="_blank">Eidul Fitr 2012</a><br>'
+'<font face="Arial" color="#D7DF01" size="1">Eidul Fitr will inshalla be celebrated on Monday, 20th August, 2012 (provisional)</font><br><br><br>'
+'<a href="http://www.alislam.org/eid/" target="_blank"><img src="../Images/AllImages/EdulAdha.jpg" width="40" height="35" border="0"></a>&nbsp;'
+'<a class="SpecialLink9" href="http://www.alislam.org/eid/" target="_blank">Eidul Adhia 2012</a><br>'
+'<font face="Arial" color="#D7DF01" size="1">Eidul Adhia will inshalla be celebrated on Saturday 27th Oct, 2012 (provisional)</font><br><br><br>'
+'<a href="http://www.jalsasalana.org/uk/" target="_blank"><img src="../Images/AllImages/logo-jalsa.gif" width="40" height="35" border="0"></a>&nbsp;'
+'<a class="SpecialLink9" href="http://www.jalsasalana.org/uk/" target="_blank">Jalsa UK 2012</a><br>'
+'<font face="Arial" color="#D7DF01" size="1">Jalsa Salana UK 2012 dates are 7th, 8th and 9th September 2012 (provisional)</font><br><br><br>'

var pauseit=10


// Change nothing below!

scrollerspeed=(document.all)? scrollerspeed : Math.max(1, scrollerspeed-1) //slow speed down by 1 for NS
var copyspeed=scrollerspeed
var iedom=document.all||document.getElementById
var actualheight=''
var cross_scroller, ns_scroller
var pausespeed=(pauseit==0)? copyspeed: 0

function populate(){
if (iedom){
cross_scroller=document.getElementById? document.getElementById("iescroller") : document.all.iescroller
cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
cross_scroller.innerHTML=scrollercontent
actualheight=cross_scroller.offsetHeight
}
else if (document.layers){
ns_scroller=document.ns_scroller.document.ns_scroller2
ns_scroller.top=parseInt(scrollerheight)+8
ns_scroller.document.write(scrollercontent)
ns_scroller.document.close()
actualheight=ns_scroller.document.height
}
lefttime=setInterval("scrollscroller()",20)
}
window.onload=populate

function scrollscroller(){

if (iedom){
if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+8))
cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px"
else
cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
}
else if (document.layers){
if (ns_scroller.top>(actualheight*(-1)+8))
ns_scroller.top-=copyspeed
else
ns_scroller.top=parseInt(scrollerheight)+8
}
}

if (iedom||document.layers){
with (document){
if (iedom){
write('<div style="background:#125C12;border: 0px solid #000000;position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed">')
write('<div id="iescroller" style="position:absolute;left:0px;top:0px;width:100%;background:#125C12;">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+scrollerwidth+' height='+scrollerheight+' name="ns_scroller">')
write('<layer name="ns_scroller2" width='+scrollerwidth+' height='+scrollerheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed"></layer>')
write('</ilayer>')
}
}
}

