/***********************************************
* 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
***********************************************/

//configure the below five variables to change the style of the scroller
var scrollerdelay='7000' //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth='150px'
var scrollerheight='125px'
var scrollerbgcolor=''
//set below to '' if you don't wish to use a background image
var scrollerbackground=''

//configure the below variable to change the contents of the scroller
var messages=new Array()

messages[0]="<font size=1 font face='verdana' color=#434851><a href='contact.shtml'>Credit Cards Accepted</a><br>We now accept VISA, MasterCard, and Discover.</font>"

messages[1]="<font size=1 font face='verdana' color=#434851><a href='contact.shtml'>From Our Clients</a><br>I was nervous at first, but Bob's professionalism put me at ease. I became more aware of how I felt between appointments, and this helped me communicate with both my Chiropractor and General Practitioner - Dover, NH. </font>"

messages[2]="<font size=1 font face='verdana' color=#434851><a href='http://www.seacoastonline.com/2005news/yorkweekly/04202005/business/37964.htm'>York Weekly Article</a><br>Therapist’s moves refined by karate skills.  Read the full story here. </font>"

messages[3]="<font size=1 font face='verdana' color=#434851><a href='contact.shtml'>From Our Clients</a><br>I have been treating with Bob for a little over a year now. Quite simply Bob's treatments have given me relief that other therapists never could. I highly recommend Bob as a therapist - Shane.</font>"

messages[4]="<font size=1 font face='verdana' color=#434851><a href='http://www.kitterykenshinkan.com'>Kittery Kenshin Kan Karate Dojo</a><br>Visit my website for the Dojo where I instruct.</font>"

messages[5]="<font size=1 font face='verdana' color=#434851><a href='contact.shtml'>From Our Clients</a><br>Professional and Personable - Bob truly knows his clients and his work! His technique and approach are effective and have helped my chronic arm and lower back pain substantially - BR - S Berwick.</font>"

messages[6]="<font size=1 font face='verdana' color=#434851><a href='http://www.amtamassage.org/etouch/CONSUMER1.0.html'>Related Article</a><br>An estimated six million Americans suffer from fibromyalgia (FM), a syndrome that produces chronic pain. Find out how massage can provide relief.</font>"

messages[7]="<font size=1 font face='verdana' color=#434851><a href='contact.shtml'>From Our Clients</a><br>I am a runner and massage helps deal with the various aches and pains that come with running. I would highly recommend Bob for anyone who is seeking a caring, effective massage therapist - Michael O - Rollinsford, NH.</font>"

messages[8]="<font size=1 font face='verdana' color=#434851><a href='contact.shtml'>Gift Certificates</a><br>we offer Gift Certificates in any amount. Also ask about our discounted 5 and 10 massage Gift Cards. </font>"

messages[9]="<font size=1 font face='verdana' color=#434851><a href='contact.shtml'>From Our Clients</a><br>Bob has been a vital part of my health maintenance for quite some time now. Through his skillful treatments I know where my efforts need to be focused in order to maintain mobility. Thank you, Bob! - Margit G</font>"

messages[10]="<font size=1 font face='verdana' color=#434851><a href=' http://www.amtamassage.org/etouch/CONSUMER14.html'>Related Article</a><br>Learn how massage can ease depression.</font>"

messages[11]="<font size=1 font face='verdana' color=#434851> <a href='http://www.visionfitnesscenter.com/news.cfm?WhatID=45'>Sports Massage For Athletes</a><br>Learn how Sports Massage can help your athletic training and peformance.</font>"

messages[12]="<font size=1 font face='verdana' color=#434851> <a href='http://www.amtamassage.org/etouch/CONSUMER2.html'>Related Article</a><br>Suffer from Computer Fatigue? Learn how massage can help. </font>"

messages[13]="<font size=1 font face='verdana' color=#434851> <a href='http://www.amtamassage.org/etouch/CONSUMER5.html'>Related Article</a><br>This feature discusses alternative therapies for asthma patients.  </font>"


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

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

if (messages.length>2)
i=2
else
i=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[i]
if (i==messages.length-1)
i=0
else
i++
}
}

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[i]
if (i==messages.length-1)
i=0
else
i++
}
}

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

