/**
 * scrollingtext
 * 
 * Javascript to run the scroller
 * 
 * @version		
 * 
 * @author		vbarsan.com
 * @copyright		Copyright vbarsan.com
 */

/**************************************
* http://vertical-scroller.vbarsan.com/
*    This notice may not be removed 
**************************************/

//-- Begin Scroller's Parameters and messages -->
//scroller's width - set from XML
var swidth=180;

//scroller's height- set from XML
var sheight=150;


//scroller's speed 
var sspeed=2;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause 
var spause=2000;

//scroller's background - set from XML
//var sbcolor="#ffffff";
var sbcolor="";

//messages - set from XML
var singletext=new Array();
singletext[0]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">shancrv</td></tr><tr><td valign="right" class="tan">I bought a 2011 CRV, Ron was extremely knowledgeable about this car and didnt try to play the "games" that other dealers have tried in the past. The whole experience was good until my credit union started trying to jerk me around, but the guys at Pat Peck Honda came through for me, gave me other options and we finished up the deal, they gave me a good price on my trade-in and still took off some of the price of the CRV. thanks, guys; I will be back.

</td></tr></table>';
singletext[1]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">George</td></tr><tr><td valign="right" class="tan">Lee Morgan is an honest salesman and he understands the need of his customers. This is the second new car I have gotten from him. I would recommend Lee Morgan to all my friends in Gulfport if they are looking for a new Honda or a used car. I got the new 2011 Honda Accord EXL-WNAV. He treated me like a customer should be treated. If you ever go to Pat Peck Honda in Gulfport, MS ask for Lee and tell him George sent you.

</td></tr></table>';
singletext[2]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Ibelle</td></tr><tr><td valign="right" class="tan">Teddy was extremely helpful in the purchase of our new car. We didnt get the typical "car salesman" pitch with him, which was greatly appreciated. Would certainly recommend Teddy to other perspective buyers. Suprisingly, our car purhase was rather enjoyable. Thanks Teddy!

</td></tr></table>';
singletext[3]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Jacob</td></tr><tr><td valign="right" class="tan">Cornelius was very nice, and was very respectful. Because of him I will definately come back for a car and tell my friends to go there. Its a very professional dealership. My parents and my friends that were with me loved the dealership. It was the most professional place we went to.

</td></tr></table>';
singletext[4]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">dmbfan511</td></tr><tr><td valign="right" class="tan">I bought a 2011 Honda CRZ today (my 3rd Honda car) from Jeff, and it was, by far, the best experience I  had buying a vehicle from a dealer. Everyone I dealt with was very friendly. They gave me a great price on my trade (a 2005 Accord)--no haggling necessary. They offered great financing as well. It was a smooth transaction from start to finish, and I would definitely buy from them again.

</td></tr></table>';
singletext[5]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Colemanbe</td></tr><tr><td valign="right" class="tan">When we pull up on the lot, Mr Taylor came up ask us what he could do to help us find car and make everything quick and easy. He answered all our question we had, he find out what we were looking for and all other details, so that he could show us what we wanted to see on the lot. We test drove, he explain all details about the car. He was a very respectful and a very good saleman, infact when they ask where did I buy my car from I told and said, * if you want a good salesman that knows what he is doing then, you would need to ask for Cornelius at honda in Gulport, he will do what ever it takes
to make sure your visit is a successful one at Honda.

</td></tr></table>';
singletext[6]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Sirena G. Gulfport, MS</td></tr><tr><td valign="right" class="tan">"I just wanted to let you know how much I appreciate Tarrance. His easy going, no pressure sale tactic is so refreshing. And it does not stop there. Last Fall, Tarrance brought my 2008 Pilot to my office so we could handle all the paperwork. Just recently he came to my house, picked up my auto, took it to the dealership so that i did not have to bring my 2 small children. Tarrance is the reason I have purchased 3 new autos from Pat Peck Honda. This letter is to Thank Tarrance for his commitment to service."</td></tr></table>';
singletext[7]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Robin P. Gulfport, Ms</td></tr><tr><td valign="right" class="tan">"I have been a customer of Peck Peck for over 3 years and the service has ALWAYS been outstanding! Thank you!"</td></tr></table>';
singletext[8]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Michael D. Gulfport, MS</td></tr><tr><td valign="right" class="tan">"Everything was great the service person is always friendly and remembered me from months ago. 5 Star service and employees..."</td></tr></table>';
singletext[9]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Robert F. Ocean Springs, MS</td></tr><tr><td valign="right" class="tan">"Great bunch of folks you have in your service department. Work was completed quickly and efficiently. Thanks to all of them."</td></tr></table>';
singletext[10]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Lydia L. Houma, LA</td></tr><tr><td valign="right" class="tan">"The Service Department at Pat Peck Honda is great! They are prompt and courteous and happy to answer all questions and explain everything. I got both an email and a phone call to remind me of my appointment as well as a call to let me know when my vehicle was ready to be picked up. I am very pleased with my experience. Thank you!"</td></tr></table>';

//singletext[...]='...';
//-- end Parameters and message -->


//-- begin: Scroller's Algorithm -->
var ii=0;
function goup(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}}

function startscrolling(){
if(document.getElementById){ns6div=document.getElementById('iens6div');ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[0];sizeup=ns6div.offsetHeight;ns6scroll();}
else 
if(document.layers){ns4layer=document.ns4div.document.ns4div1;ns4layer.top=sheight;ns4layer.document.write(singletext[0]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}
else 
if(document.all){iediv=iens6div;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[0];sizeup=iediv.offsetHeight;iescroll();}}
function iescroll(){if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll()",spause);}else 
if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed+"px";setTimeout("iescroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[ii];sizeup=iediv.offsetHeight;iescroll();}}
function ns4scroll(){if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll()",spause);}else 
if(ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;ns4layer.top=sheight;ns4layer.document.write(singletext[ii]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}}
function ns6scroll(){if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll()",spause);}else 
if(parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";setTimeout("ns6scroll()",100);}
else{if(ii==singletext.length-1)ii=0;else ii++;
ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetHeight;ns6scroll();}}
//-- end Algorithm -->

