//-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=205;

//scroller's height
var sheight=125;

//scroller's speed 
var sspeed=2;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause
//var spause=2000;
var spause=0;
//scroller's background
var sbcolor="#f0bd88";

//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]='<table width="100%" border="0" cellspacing="0" cellpadding="0">'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3">FEBRUARY 2012<br><br>Batu Caves Murugan Temple - Cleaning Activity for Thaipusam 2012</span><br><b>Date: </b>6th & 7th Feb 2012                <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3"><br>Blood Donation campaign at Sree Vadivelu building                               </span><br><b>Date: </b>12th Feb 2012 (10am - 4pm)      <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3">MARCH 2012<br><br>Annual General Meeting                                             </span><br><b>Date: </b> To be confirm                  <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3"><br>Sree Maha Durgai Amma Khumbavasigem                                              </span><br><b>Date: </b> To be confirm                  <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3">APRIL 2012<br><br>Charity Dinner at Kemuning Golf Resort                             </span><br><b>Date: </b>14 April 2012                  <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3">MAY 2012<br><br>Mothers Day Celebration                                              </span><br><b>Date: </b>13 May 2012                    <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3">JUNE 2012<br><br>Vaikasi Visagem Chaturu Samhara Trisati Archani Homam               </span><br><b>Date: </b>2nd & 3rd June 2012            <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3"><br>Sree Maha Karuppar Swamy Annual prayers festival                                 </span><br><b>Date: </b>13th to 15th  June 2012         <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3">SEPTEMBER 2012<br><br>Sri Vinayager Charthurthi                                      </span><br><b>Date: </b>19th Sep 2012                  <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3">OCTOBER 2012<br><br>Navarathiri Villa                                                </span><br><b>Date: </b>16th to 24th Oct 2012            <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3">NOVEMBER 2012<br><br>Deepavali Hamper presentation to the needy                      </span><br><b>Date: </b>4th Nov 2012                     <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+
'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="5" height="11"></td><td><div align="left"><a href="html/events-poojas.htm" class="breadcrumlinknew"><span class="red3">DECEMBER 2012<br><br>Kala Bairava Astami- Maha Bairava Homam                         </span><br><b>Date: </b>6th Dec 2012                     <br></a></div></td></tr>'+

'<tr><td valign="top"><img src="images/spacer.gif" width="4" height="5"></td><td><img src="images/spacer.gif" width="11" height="5"></td></tr>'+


'</table>';
//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
var ii=0;
function goup(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}}
function godown(){if(sspeed>rspeed){sspeed=sspeed/2;restart=sspeed;}}
function start(){
if(document.getElementById){ns6div=document.getElementById('iens6div');ns6div.style.top=sheight;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;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;setTimeout("iescroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;iediv.style.pixelTop=sheight;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;setTimeout("ns6scroll()",100);}
else{if(ii==singletext.length-1)ii=0;else ii++;
ns6div.style.top=sheight;ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetHeight;ns6scroll();}}
//-- end Algorithm -->

