/***********************************************
* Pausing updown message scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
* changed var i to ii to eliminate conflict with menu bar
***********************************************/

//configure the below five variables to change the style of the scroller
var scrollerdelay='5000' //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth='800px'
var scrollerheight='120px'
var scrollerbgcolor=''
var scrollerbackground=''

var messages=new Array()
messages[0]="<h5>&quot;I value Qi Gong for its slow, centered approach to movement, partly because that is something I feel I don't connect with enough in my daily life, yet often crave.&quot;</h5><h6><p>Casey Bledsoe</h6>"
messages[1]="<h5>&quot;I experience Paddy Tawada as having a clear, quiet, grounded strength--an ability to listen deeply.<P>That presence, along with a real mastery of skills, make her a very effective healer.&quot;</h5><h6><P>Diane Haug, M.A., LPCC, Transpersonal Therapist</h6>"
messages[2]="<h5>&quot;After one week of practicing Qi Gong daily, I went to my oncologist and my T-cell count had doubled.&quot;</h5><h6><P>M.C., Cancer Survivor</h6>"
messages[3]="<h5>&quot;Paddy's amazing intuition and great insight have helped me to address deeper issues.<P>She has an ability to understand the healing process on many, many levels.&quot;<P>&quot;I highly recommend her.&quot;</h5><h6><P>Dr. Patricia Gregg, D.C.</h6>"
messages[4]="<h5>&quot;Paddy is gentle, non-judgemental and insightful in her suggestions and coaching.<P>The impact was very liberating and quite different than what I thought would happen with coaching....this has been one of the greatest things I have ever experienced and I am very grateful.&quot;</h5><h6><P>Sabina O'Laughlin, MD</h6>"
messages[5]="<h5>&quot;Working with Paddy is truly a mind-body-spirit experience characterized by gentle nurturance and profound wisdom. I came to Paddy looking for help with weight loss after failing repeatedly with various programs. Almost immediately my cravings disappeared and I found the vitality, clarity, and enthusiasm for life that had eluded me for years. On a deeper level, a surprising inner shift has occurred replacing my old feelings of frustration and discouragement with confidence and strength. I am deeply grateful.&quot;</h5><h6><P>Clare Grace, MBA</h6>"

///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (messages.length>2)
ii=2
else
ii=0

function move(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("move(tdiv)",scrollerdelay)
setTimeout("move2(second2_obj)",scrollerdelay)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("move(tdiv)",50)
}
else{
tdiv.style.top=parseInt(scrollerheight)+"px"
tdiv.innerHTML=messages[ii]
if (ii==messages.length-1)
ii=0
else
ii++
}
}

function move2(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("move2(tdiv2)",scrollerdelay)
setTimeout("move(first2_obj)",scrollerdelay)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("move2(second2_obj)",50)
}
else{
tdiv2.style.top=parseInt(scrollerheight)+"px"
tdiv2.innerHTML=messages[ii]
if (ii==messages.length-1)
ii=0
else
ii++
}
}

function startscroll(){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}

if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}

if (window.addEventListener)
window.addEventListener("load", startscroll, false)
else if (window.attachEvent)
window.attachEvent("onload", startscroll)
else if (ie||dom)
window.onload=startscroll
