/**
 * 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">Kayandpee02</td></tr><tr><td valign="right" class="tan">Patrick Oriol was an excellent salesman. He was very attentive and worked very hard to get me into the car I wanted. He listened to what I wanted instead of trying to sell me something to his benefit. He was very knowledgeable of the vehicles and worked really hard to make sure I was happy.
Jerry Billiot was an EXCELLENT Financial Manager. He was very involved in making sure I got what I wanted for an excellent price. He was very informative about the financial part and did everything he could to keep my husband and I very happy. He is by far one of the best financial managers I've had the pleasure of working with.

</td></tr></table>';
singletext[1]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Linda Lott</td></tr><tr><td valign="right" class="tan">My Review of Pat Peck Nissan Kia:
The experience at Pat Peck Nissan of Gulfport was the best one I have ever had at a car dealership. I never felt as if they thought I did not understand the process and truly believe everyone wanted me to be happy, not just "close the deal." Mike spent a good deal of time with me and was extremly thorough in explaining the car's details. There is no doubt that I will recommend them to anyone interested in purchasing a vechile, and I will be back there for future business.

</td></tr></table>';
singletext[2]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">HannahV23</td></tr><tr><td valign="right" class="tan">Daniel Wild and the other workers at Pat Peck Nissan were awesome. They were so helpful and honest. I will definitely purchase other vehicles from them in the future. I will recommend everyone I hear about needing to purchase a vehicle. Other dealers were giving me the run around. Pat Peck was straightforward and no bologna.

</td></tr></table>';
singletext[3]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Cheryllsu</td></tr><tr><td valign="right" class="tan">This is the second new car I have purchased from Pat Peck Nissan and once again, I could not be happier. On top of the great price, their service department has always taken excellent care of me. I would definitely recommend them to anyone. In fact, most of my family has already purchased there.

</td></tr></table>';
singletext[4]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Vick214</td></tr><tr><td valign="right" class="tan">Brad and Brian were fantastic. I had an issue that needed to be resolved with my car before a last minute family out-of-state emergency. I took my car in and was greeted immediately by Cathy and all members of the team were very helpful, Brian was even attentive to my kids and was very friendly while I waited and conversed with me through the process. Brad was very helpful in describing what issue needed to be done and the process in which to take care it. Thanks so much we will see you soon for our next check-up.

</td></tr></table>';
singletext[5]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Ruby W</td></tr><tr><td valign="right" class="tan">My sales representative was excellent and really listened to my needs. I have never had a car salesman that was so respectful and who worked so hard to get me and my family what we need.</td></tr></table>';
singletext[6]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Amber D</td></tr><tr><td valign="right" class="tan">My Salesperson Teri was great. Honestly one of the best car shopping experiences I have ever had. Thank you for hiring her. Very smart woman. I only hope all your employees are as great as she was.</td></tr></table>';
singletext[7]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Terri M</td></tr><tr><td valign="right" class="tan">I just bought my car yesterday and have already referred a friend to Pat Peck Nissan. Patrick was my Sales Representive and he is a great guy. I was very pleased with him and the Maxima that I bought.</td></tr></table>';
singletext[8]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Victor A.</td></tr><tr><td valign="right" class="tan">The car buying process was probably the best I have ever experienced, now I can also say the service end of it also is the best I have ever experienced. Very nice and professional people that work there at your business.
</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 -->

