var pausecontent=new Array()
//pausecontent[0]='<div class="detail1">Ganesh Chaturthi Holiday on 03-09-08</div>'
//pausecontent[0]='<div class="detail1">Holiday on 24/11/08 (Monday) on account of Guru Parv</div>'
//pausecontent[1]='<div class="detail1">Parents Teacher Meeting on 22/11/08 (Saturday)</div>'
//pausecontent[1]='<div class="detail1"><a href="admission-notice-nursery2009.htm"  class="detail1"><img src="image/new-new.gif"/>Admission open for Nursery Session 2009-2010.</a></div>'
//pausecontent[0]='<div class="detail1"> 9<sup>th</sup> Feb 2009 (monday) is a holiday on account of Guru Ravidas Jayanti.  </div>'
//pausecontent[0]='<div class="detail1">The PTM is on  25<sup>th</sup> Apr 09  between 9:00am to 11:00am </div>'
//pausecontent[0]='<div class="detail1">The School will Remain closed on 14<sup>th</sup> Jan  2010 &amp; 15<sup>th</sup> Jan 2010</div>'
pausecontent[0]='<div class="detail1">The School Will Remain Closed On 5th July 2010 (Monday) </a></div>'

pausecontent[1]='<div class="detail1">SJPS is celebrating <i>Health Week</i> from 7/Apr/10 to 16/Apr/10. </a></div>'
pausecontent[2]='<div class="detail1">14th Apr 2010 will be  a holiday on account of Ambedkar Jayanti'

//pausecontent[0]='<div class="detail1"><a href="../downloads/datesheet(10).doc" class="detail1">Final Term Examination (2009-2010) Schedule</a></div>'
//pausecontent[1]='<div class="detail1">Adventure Camp for class Nur, KG & I<sup>st</sup> on 09/03/10</div>'
//pausecontent[2]='<div class="detail1">Adventure Camp for class II<sup>nd </sup> to V<sup>th</sup> on 20/03/10</div>'
//pausecontent[3]='<div class="detail1">SJPS is celebrating <i>Talent Hunt  </i>for Class Nur on 06/03/10</div>'
//pausecontent[4]='<div class="detail1"><i>Talent Hunt  </i>for KG  was Celebrated on  20/02/10</div>'
//pausecontent[0]='<div class="detail1">The second term examination has been postponed till 11<sup>th</sup> December 2009 </div>'

//pausecontent[1]='<div class="detail1">The school will be closed for Nursery and K.G. classes on 29<sup>th</sup>, 30<sup>th</sup> September & 1<sup>st</sup> October 2009 </div>'
//pausecontent[2]='<div class="detail1">The school will be working for classes I to V on 29<sup>th</sup>, 30<sup>th</sup> September & 1<sup>st</sup> October 2009. </div>'
//pausecontent[3]='<div class="detail1">7<sup>th</sup> October 2009 will be a holiday on account of Karva Chauth </div>'
//pausecontent[5]='<div class="detail1"><i>Hindi Diwas </i> Celebrated from 14/09/09 to  25/09/09 </div>'


//pausecontent[6]='<div class="detail1"><i>Maths Week</i> Celebrated from 24/08/09 to  28/08/09 </div>'

//pausecontent[7]='<div class="detail1">Parents Teacher Meeting and Report Card Distribution  on 22/08/09 (Saturday)</div>'

//pausecontent[2]='<div class="detail1">The School will Remain closed from 14<sup>th</sup> Aug 2009 to 16<sup>th</sup> Aug 2009</div>'
//pausecontent[8]='<div class="detail1">The School celebrated 62<sup>nd</sup> INDEPENDENCE DAY on 13<sup>th</sup> Aug 2009</div>'
//pausecontent[9]='<div class="detail1">The School celebrated PATRIOTIC WEEK from  10<sup>th</sup> Aug 2009 to 13<sup>th</sup> Aug 2009</div>'
//pausecontent[10]='<div class="detail1">The School celebrated HEALTH WEEK from 1<sup>st</sup> Aug 2009 to 7<sup>th</sup> Aug 2009</div>'

//pausecontent[0]='<div class="detail1">The School will reopen on 8<sup>th</sup> July 2009</div>'

//pausecontent[0]='<div class="detail1"> 14<sup>th</sup> Apr 09 was a holiday on account of Dr. Ambedkar jayanti </div>'
//pausecontent[1]='<div class="detail1"> 3<sup>rd</sup> Apr 09  is a holiday on account of Ram Navmi </div>'
//pausecontent[2]='<div class="detail1"> 7<sup>th</sup> Apr 09  is a holiday on account of Mahavir Jayanti  </div>'
//pausecontent[3]='<div class="detail1"> 10<sup>th</sup> Apr 09  is a holiday on account of Good friday </div>'
//pausecontent[7]='<div class="detail1"> SJPS celebrated <b>Foundation Day</b> on 2<sup>nd</sup> Apr 09   </div>'

//pausecontent[5]='<div class="detail1"> New session  for class I to V  is started from 30<sup>th</sup> March 09   </div>'
//pausecontent[6]='<div class="detail1"> New session  for class Nur and K.G.  is starting from 6<sup>th</sup> Apr 09  </div>'
//pausecontent[8]='<div class="detail1"> Orientation Day  was celebrated on  28<sup>th</sup> March 09 </div>'
//pausecontent[9]='<div class="detail1"> SJPS  Celebrated Earth Hour  on   28<sup>th</sup> March 09 from 8:30 pm to 9:30 pm  </div>'
//[0]='<div class="detail1"> Day Adventure Campon 14<sup>th</sup> Feb 09 for the students of class Nursery to III<sup>rd</sup> at Salwan Public School, Rajinder Nagar  </div>'
//pausecontent[1]='<div class="detail1"> <a href="athletic.html"  class="detail1">SJPS hosted the 2<sup>nd</sup> Inter School Junior Atlhetic Meet 2009 for primary classes on 31<sup>st</sup> Jan 2009 at Army Public School.</a>  </div>'

//pausecontent[10]='<div class="detail1"> 3 Silver and 1 bronze medals were won by SJPS in 2<sup>th</sup> Inter School Junior Athletic Meet 2009.  </div>'
//pausecontent[3]='<div class="detail1"> S.A.V.E. (Salwan Awareness Volunteers for the Environment), an exhibition ,  on 21<sup>st</sup> Feb 2009 by montessori wing of SJPS</div>'
//pausecontent[4]='<div class="detail1"><a href="doordarshan.htm"  class="detail1"> Schedule of programs on Doordarshan   </a> </div>'

//pausecontent[0]='<div class="detail1"> 14<sup>th</sup> Jan 2009 is working day in the school.  </div>'

//pausecontent[0]='<div class="detail1">Winter Break from 25<sup>th</sup> Dec 2008 to 4<sup>th</sup> Jan 2009.<br>School will reopen on 5<sup>th </sup> Jan 2009</div>'
//pausecontent[1]='<div class="detail1">Report Card distribution  of Term-II on 20<sup>th</sup> Dec 2008 between 9 A.M. to 11 A.M </div>'


//pausecontent[1]='<div class="detail1">Annual Day celebrated on 13-11-2008 AT AIRFORCE Auditorium, Subroto Park.</div>'
//pausecontent[2]='<div class="detail1">Second List of Pre-School (Nursery) admissions will be displayed on 19<sup>th</sup> Jan. 2009</div>'
//pausecontent[1]='<div class="detail1">IInd Term Exams for Classes IVth and Vth have been postponed to the Month of December</div>'


//pausecontent[0]='<a href="../downloads/IInd-Cycletest-08.doc" class="detail1">II<sup>nd</sup> Cycle test for class II and III</a>'
//pausecontent[1]='<div class="detail1">Independence Day celebrated on 13<sup>th</sup> Aug 2008</div>'
//pausecontent[2]='<div class="detail1">20/10/08 (Monday) is a holiday on account of completion of 300 yrs of Guru Granth Sahib.</div>'
//pausecontent[3]='<div class="detail1">Health Week  celebrated from 28-07-08 to 2-08-08</div>'
//pausecontent[4]='<div class="detail1"> Celebrated Health Week 2008  from 28-07-08 to 2-08-08</div>'

var pausecontent2=new Array()
pausecontent2[0]='<a href="http://www.news.com">News.com: Technology and business reports</a>'
pausecontent2[1]='<a href="http://www.cnn.com">CNN: Headline and breaking news 24/7</a>'
pausecontent2[2]='<a href="http://news.bbc.co.uk">BBC News: UK and international news</a>'


/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}