//Slide-in scoller- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com

//Configure delay between messages (4000=4 secs):
var delay=15000
//Configure scroller width
var scrollwidth=475
//Configure scroller height
var scrollheight=125
var message=new Array()
//Configure messages. Extend array as needed:
var openingtag='<font face="Times New Roman, Times, serif" size=3><font color="#CC0033">'
message[0]='<b><i> Mr. Renner,<br><br>I am writing to acknowledge your quality service and exceptional work. I have thought about getting a remote car starter for quite some time. My consulting business requires many cold, very early morning, departures. I had visited one of the larger providers and was not impressed with them. My husband saw your add in our local Penny Saver and the fact that you make house calls appealed to me.</i></b>'
message[1]='<b><font color="#CA9800"><i>When I contacted you, I was impressed with your knowledge of the technology and your personal manner.  You came to my home, and while I worked you did your work.</i></b>'
message[2]='<b><font color="#0099FF"><i>Over the past month I have been well prepared for many cold mornings. I no longer have to struggle with ice or snow on my car. I turn the car on from the bedroom. It warms up and when I leave 15 minutes later, I am ready to drive off in a warm car - no scraping!!</i></b>'
message[3]='<b><font color="#009900"><i>You did such a good job, we had you put a remote starter in my husband\'s car.</i><b/>'
message[4]='<b><i>Through our various conversations, I discover that you returned from a second deployment in Iraq over the past year.  There are many of us who appreciate and applaud your service to our country. I plan to share your name with others as a way of demonstrating my appreciation for what you have given to each of us who experience the blessing of living in the USA.<br><br>Ginny Berger<br>Principal, Partners For Performing Consulting Services<br>Phone: 412-882-3285<br>Fax: 412-882-3295</i></b>'

var closingtag='</font>'

//This variable specifies the initial negative offset of each msg
//You may wish to increase it if your scroller is to the right of page horizontally
var hoffset=-10

var inc=1
var ns4=document.layers
var ie5ns6=document.getElementById||document.all

if (ie5ns6)
document.write(openingtag+'<div id="flyin" style="position:relative;width:'+scrollwidth+';height:'+scrollheight+';">'+message[0]+'</div>'+closingtag)


function updatemsg(){
crossobj.style.left=-2000
crossobj.style.fontStyle="italic"
crossobj.innerHTML=message[inc]
crossobj.style.left=crossobj.offsetWidth*(-1)+hoffset
start=setInterval("animatein()",50)
inc=(inc<message.length-1)? inc+1 : 0
}

function animatein(){
if (parseInt(crossobj.style.left)<0)
crossobj.style.left=parseInt(crossobj.style.left)+20
else{
crossobj.style.left=0
crossobj.style.fontStyle="normal"
clearInterval(start)
}
}

function updatemsgns4(){
document.sslide.document.sslide2.document.write(openingtag+message[inc]+closingtag)
document.sslide.document.sslide2.document.close()
inc=(inc<message.length-1)? inc+1 : 0
}

function initialize(){
if (ie5ns6){
crossobj=document.getElementById? document.getElementById("flyin") : document.all.flyin
setInterval("updatemsg()",delay+1000)
}
else if (ns4){
document.sslide.document.sslide2.document.write(openingtag+message[0]+closingtag)
document.sslide.document.sslide2.document.close()
setInterval("updatemsgns4()",delay)
}
}

window.onload=initialize

