var pausecontent=new Array()
pausecontent[0]='"I could not imagine that such a wonderful stadium can be man-made. This is really a creation of God"'
pausecontent[1]='"His creation - beyond description."'
pausecontent[2]='"God’s creation is perfect. Best exhibit of how one Institution works to fulfill His mission."'
pausecontent[3]='"This is unimaginable.  Will of Swami and future of our nation."'
pausecontent[4]='"One of the most beautiful places at Prasanthi."'
pausecontent[5]='"Maintenance is very good. Hope it will carry on for ever."'
pausecontent[6]='"Another magnificent work of God."'
pausecontent[7]='"The stadium built in  four months is a Masterpiece by the Grace of Bhagwan."'
pausecontent[8]='"It is going to earn laurels in future; throughout the country."'
pausecontent[9]='"I could not imagine that such a wonderful Stadium can be man-made. This is really a creation of God."'
pausecontent[10]='"With the Blessings of Baba, everything is His creation- beyond description in words."'
pausecontent[11]='"We have not seen such a type of stadium in life."'
pausecontent[12]='"One of the most beautiful and sacred in the World & Divinity."'
pausecontent[13]='"Excellent. It is a lesson to all, about our Swami."'
pausecontent[14]='"One of the most beautiful places at Prasanthi. May God’s will make this place a spiritual Sports Center for all countries."'
pausecontent[15]='"It is  gorgeous."'
pausecontent[16]='"Excellence marked everywhere."'
pausecontent[17]='"It is beyond imagination."'
pausecontent[18]='"I haven’t seen such a Complex previously. Astounding. This is very Tremendous."'
pausecontent[19]='"We will never forget this place. It is really beautiful."'
pausecontent[20]='"We feel HIS Grace that we are Sai Devoteee. Proud that such lovely places are there in Prasanthi Nilayam."'
pausecontent[21]='"It is a wonderful Stadium. Never seen before in my life of 61 years."'
pausecontent[22]='"It is a wonderful creation of Baba."'
pausecontent[23]='"This marvelous stadium build in just four months is Masterpiece by Grace of Bhagawan. The quotations are worth emulation. Everything has been designed and executed with excellence."'
pausecontent[24]='"I hope the Indoor Stadium will produce rising players of India."'
pausecontent[25]='"Marvelous - That’s incredible.  It is the love of Swamiji."'
pausecontent[26]='"Something new and wonderful."'
pausecontent[27]='"Fantastic and Unbelievable."'
pausecontent[28]='"Excellent maintenance."'
pausecontent[29]='"Excellent, simply Excellent and Excellent."'
pausecontent[30]='"Another magnificent work of Bhagawan."'
pausecontent[31]='"It is very nice. I would like to study in this small village and participate in these activities."'
pausecontent[32]='"Very impressive."'
pausecontent[33]='"Inspiring, Marvelous."'
pausecontent[34]='"Indoor Stadium is a Milestone in India’s progress of games."'
pausecontent[35]='"Beautiful, Hygienic, Marvelous."'
pausecontent[36]='"Fantastic place. Well maintained."'
pausecontent[37]='"Worth seeing. Will provide incentive to all visitors."'
pausecontent[38]='"The Best of the Best."'
pausecontent[39]='"We are overwhelmed."'
pausecontent[40]='"This is the Best."'
pausecontent[41]='"No words to express the deep impact it leaves on our minds-nothing less than Excellent, as Swami wants us to be."'
pausecontent[42]='"It suggests a mixture of sports & spirituality."'
pausecontent[43]='"First stadium in the world."'
pausecontent[44]='"A wonderful image that can provide to the devotees of Bhagwan Sri Sathya Sai Baba."'
pausecontent[45]='"Constructed in record time is indication of the very Divinity. It is going to earn laurels in future throughout the country of India."'
pausecontent[46]='"It will be only possible for Divine force to have such a beautiful Sports Center."'
pausecontent[47]='"Our joys know no bounds and have no words to speak the Divinity of our BABA. The sermons are jewels. We pledge to follow HIS (BABA’s) principles."'
pausecontent[48]='"Very nice & well maintained. Keep it up!!!"'
pausecontent[49]='"It is excellent and very beautiful. Seeing this,we must learn Discipline from Baba."'
pausecontent[50]='"Amazing experience for overseas devotees. An example of real education for us."'
pausecontent[51]='"Wonderful & Excellently Beautiful. It is a matter of great pride for Indians to have such an Institution of International standards."'
pausecontent[52]='"A great experience. May Sai be with all and Bless us."'
pausecontent[53]='"Par excellence, only Swami can do it."'
pausecontent[54]='"One of the wonders in the World. Really a Unique creation of Swami."'
pausecontent[55]='"It was wonderful experience for me to see new Table Tennis tables because I am a National level TT player."'
pausecontent[56]='"Very excellent display. It is not possible to build this Complex in a period of four months without the Divinity of BABA."'
pausecontent[57]='"The writings (Sayings) are extra ordinary and thought provoking. Every man should read many times and strictly follow them."'
pausecontent[58]='"Unparallel in the whole world."'
pausecontent[59]='"I am proud to be an Indian."'
pausecontent[60]='"Stadium is very Miraculous and Marvelous."'
pausecontent[61]='"I am very fortunate to see such a wonderful Sports Complex, which we rarely see."'
pausecontent[62]='"It is not the work of man. It is God’s Creation. Never forget God and God be with you always."'
pausecontent[63]='"Swami is Swami. It is not possible for anybody to do like this."'
pausecontent[64]='"It is a glorious and exemplary work done by this Institution."'
pausecontent[65]='"It is indeed a beautiful creation of Bhagwan. We should be grateful to Bhagwan for this Gift."'
pausecontent[66]='"Everything is the Bliss of Baba."'
pausecontent[67]='"It is only miracle of Swami. Humans cannot do this work. Only Swami can do."'
pausecontent[68]='"Too Nice."'
pausecontent[69]='"The Stadium is World’s 1st."'
pausecontent[70]='"Everything seen here is simply unimaginable. The presence of Lord’s planning is felt in every corner."'
pausecontent[71]='"Excellent. Cannot explain in words. Havn’t seen ever."'
pausecontent[72]='"It is wonderful. I have no words to express. Everything is Bhagawan’s Sankalapa."'
pausecontent[73]='"Keep it up."'
pausecontent[74]='"This is Amazing, Marvelous and it is very Astounding."'
pausecontent[75]='"The best Stadium I have ever seen. Fantastic."'
pausecontent[76]='"I like the Sayings very much. Everything is nice and Disciplined."'
pausecontent[77]='"The Youth Group from Gujarat visited this place. It is just Wonder, Wonder, Wonder."'
pausecontent[78]='"Just Wonderful. Sai Ram"'
pausecontent[79]='"Apart from beauty of the Indoor Stadium, the literature & Swami’s Teachings have made me Blissful and happy."'
pausecontent[80]='"Very Beautiful and Amazing."'
pausecontent[81]='"Miracle, Great creation, Amazing."'
pausecontent[82]='"Brilliant is an understatement."'
pausecontent[83]='"Sai Education is the need of time for world glorification in establishing Universe as one family "'
pausecontent[84]='"It’s Brilliant!!! Words are just not enough to explain how well it has been done up."'
pausecontent[85]='"I have never seen in my life this type of Peace, Discipline & Prosperity. It inspired me very much."'
pausecontent[86]='"This Indoor Stadium is one of the Wonders of the World."'
pausecontent[87]='"Unbelievable, only our Beloved God can do it."'


phraseCnt = pausecontent.length;

function pausescroller(content, divId, divClass, delay){

randomNum1 = Math.floor ((Math.random() * phraseCnt))
randomNum2 = Math.floor ((Math.random() * (phraseCnt-1)))

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">'+pausecontent[randomNum1]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+pausecontent[randomNum2]+'</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()}, 10000)
}

// -------------------------------------------------------------------
// 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
}