/**
 * 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">Gail B, Dracut MA</td></tr><tr><td valign="right" class="tan">The young woman that was my service rep was excellent. She was very professional and very easy to deal with.</td></tr></table>';
singletext[1]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Christina C, Wilmington MA</td></tr><tr><td valign="right" class="tan">Most liked - Speed, amenities, friendliness</td></tr></table>';
singletext[2]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Charles C, Medford MA</td></tr><tr><td valign="right" class="tan">Ken Oeun was very professional, answered all our questions and had a very good knowledge of the Toyota we leased. I would gladly and confidently refer any of my friends or relatives to him.</td></tr></table>';
singletext[3]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Sally M, Lowell MA</td></tr><tr><td valign="right" class="tan">All contacts with personnel were professional yet friendly. I like it when I set up an appointment that people take the time to see that I have been there before.</td></tr></table>';
singletext[4]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Jose F, Tewksbury MA</td></tr><tr><td valign="right" class="tan">Very easy to deal with, quick to the price and bottom line. My salesperson was excellent, best I ever had.</td></tr></table>';
singletext[5]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Shirley C, Lowell MA</td></tr><tr><td valign="right" class="tan">Service department provides excellent service - the man who did the intake and follow through was most courteous and explained in detail what needed to be done that day and what I should have done next time I brought the car in for service. I feel confident that my vehicle is serviced thoroughly and honestly with Ira Toyota.</td></tr></table>';
singletext[6]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Stacy S, Haverhill, MA </td></tr><tr><td valign="right" class="tan">"Everyone at IRA Toyota was so friendly and helpful. It was a great experience. The customer care representative (Caesar) was excellent. The manager was so friendly and honest (Dan Gilday) and Kenny (sales rep) was terrific."</td></tr></table>';
singletext[7]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Dorothy F, Billerica, MA </td></tr><tr><td valign="right" class="tan">"I like that you drive in, get waited on by courteous advisor and you can wait. I made my appt on line, it was simple and then I received a confirmation of my appt and a phone call."</td></tr></table>';
singletext[8]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">William H, Wilmington, MA </td></tr><tr><td valign="right" class="tan">"Service advisor, David Brown, courteous, knowledgeable, helpful. Fast intake and clear explanation of service. Comfortable waiting room and amenities."</td></tr></table>';
singletext[9]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Nina B, Stoneham Ma</td></tr><tr><td valign="right" class="tan">"Everyone was so friendly and knowledgeable, Ed was very funny. He made me less nervous."</td></tr></table>';
singletext[10]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">QP, Haverhill MA</td></tr><tr><td valign="right" class="tan">"This was probably the easiest and most enjoyable car buying experience that I have ever experienced."</td></tr></table>';
singletext[11]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Ann T, Wakefield MA</td></tr><tr><td valign="right" class="tan">"Excellent service, friendly, knowledgeable sales staff."</td></tr></table>';
singletext[12]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Kristen T, Chelmsford, MA</td></tr><tr><td valign="right" class="tan">"Zack was very pleasant and a pleasure to work with, They worked with me to meet my required monthly payments, What a nice guy!! Did he job great, The employees made me feel comfortable and they were wonderful to work with to make a smooth transaction.</td></tr></table>';
singletext[13]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Jane C, N Chelmsford MA</td></tr><tr><td valign="right" class="tan">"We were met courtesy and a recognition of the fact that we had done our homework and new what we felt was a fair price for the car. Overall honesty and fairness regarding the purchase price and the turn in. I do not have any suggestions as I was completely satisfied."</td></tr></table>';
singletext[14]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Nancy K, Wilmington MA</td></tr><tr><td valign="right" class="tan">"Everyone was so nice.  Wonderful dealership.  All the sales people and staff were great."</td></tr></table>';
singletext[15]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Jonathan L, Lowell MA</td></tr><tr><td valign="right" class="tan">"Everyone was very pleasant and at no time did I feel any pressure."</td></tr></table>';
singletext[16]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Francis M, Dracut MA</td></tr><tr><td valign="right" class="tan">"Fausto was outstanding. He greeted us promptly and was very thorough and courteous throughout our experience, People seem friendly and honest so I would have no problem servicing my car there"</td></tr></table>';
singletext[17]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Haydee F, Methuen MA</td></tr><tr><td valign="right" class="tan">"I received overall excellent service! Could not have been better! Great team."</td></tr></table>';
singletext[18]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Ralph N, Amherst NH</td></tr><tr><td valign="right" class="tan">"I truly wish that I had visited the Ira dealership before purchasing two new vehicles for my wife and son earlier this year.  I will highly recommend this dealership to anyone who asks!!!"</td></tr></table>';
singletext[19]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">David H, Chelmsford MA</td></tr><tr><td valign="right" class="tan">We were very happy with the service provided by Dimitri. He did an excellent job making sure we found a vehicle that matched our needs. Great service.</td></tr></table>';
singletext[20]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Kathryn H, Reading MA</td></tr><tr><td valign="right" class="tan">I was very satisfied with the entire process. The salesperson was very knowledgeable as well as courteous. I appreciated the fact that there was no high pressure involved in the transaction. I felt that the salesperson really cared and that I would fee comfortable calling on him in the future if need be. The entire process could not have been more efficient and smooth. I liked the fact that there was no excessive pressure to buy. I felt that the salesperson knew I was serious about buying and he was serious about selling and it was pretty much an even playing field, which from past experience, is not always the case. I felt very comfortable with the experience and satisfied with the end result.</td></tr></table>';
singletext[21]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Bob D, Chelmsford MA</td></tr><tr><td valign="right" class="tan">Service was friendly, timely and met my needs.</td></tr></table>';
singletext[22]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Sara H, Lowell MA</td></tr><tr><td valign="right" class="tan">Brian was friendly and got everything done in a timely manner.</td></tr></table>';
singletext[23]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Kathryn G, Chelmsford MA</td></tr><tr><td valign="right" class="tan">I was impressed that my car was ready ahead of schedule and the best part was having my car vacuumed out for me.</td></tr></table>';
singletext[24]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Marian H, North Billerica MA</td></tr><tr><td valign="right" class="tan">Friendly. Larry remembered my name, kept me up to date.</td></tr></table>';
singletext[25]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Karen L, North Billerica MA</td></tr><tr><td valign="right" class="tan">Service tech was extremely nice and knowledgeable.</td></tr></table>';
singletext[26]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Alice M, Tewksbury MA</td></tr><tr><td valign="right" class="tan">Everyone was very kind and helpful and answered any questions I had. Work was done very quickly and on time. The friendliness of everyone, means a lot to my husband and I.</td></tr></table>';
singletext[27]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Lisa S, Tyngsboro MA</td></tr><tr><td valign="right" class="tan">I love the coffee machine and internet. Pleasant service tech, and amenities.</td></tr></table>';
singletext[28]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Alex B, Lynn MA</td></tr><tr><td valign="right" class="tan">Jodie was spectacular and very thorough. I will be back because of her.</td></tr></table>';
singletext[29]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Patrick G, Wilmington MA</td></tr><tr><td valign="right" class="tan">Ron our salesperson was fantastic. Made the experience really easy and quick. Told him what we were looking for and he provided it. A plus plus job. Very happy with the whole process. Could not have gone smoother. Will be happy to return at the end of the lease to see what we can do and when we are ready to purchase or lease another car. Not pressure sales.</td></tr></table>';
singletext[30]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Donna A</td></tr><tr><td valign="right" class="tan">Every touch point of this service experience was very positive, from making the appointment, dropping off the car, receiving updates, picking up the car and paying for the service. Being in the customer service industry myself I find most of my service experiences fall short of my expectations. Not this time. This was truly an excellent customer service experience. It is hard to just pick one thing. In a nutshell, probably that everything was easy for me. But I have to say that being treated respectfully while having my expectations exceeded is very impressive.</td></tr></table>';
singletext[31]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Ricardo A</td></tr><tr><td valign="right" class="tan">It was a very good experience. I always most enjoy the friendliness and complete expectations I get for cost and required or recommended additional services. I never feel taken advantage of. So I do not cringe at the costs.</td></tr></table>';
singletext[32]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Barbara B</td></tr><tr><td valign="right" class="tan">My vehicle needed the 5000 mile authorized checkup. I will continue to go to Ira for all my needs for my car as I was very happy with the way I was treated. The service was excellent, the personnel were pleasant, knowledgeable and prompt. The service was explained to me before it was done in language I could understand and how much it would cost, which I appreciated.</td></tr></table>';
singletext[33]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">William B</td></tr><tr><td valign="right" class="tan">The Service Advisor, Mr Al Lopes was extremely knowledgeable and courteous, throughout the entire process of having my 4Runner repaired.</td></tr></table>';
singletext[34]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Steven B</td></tr><tr><td valign="right" class="tan">The speed of the service and how nice everyone is there.</td></tr></table>';
singletext[35]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Sheila F, Tewksbury MA</td></tr><tr><td valign="right" class="tan">Probably the best experience I have had in 40 years. My salesperson was honest and straighforward. Did not play the game of making me think it was him and me against the sales manager.</td></tr></table>';
singletext[36]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Samol L, Lowell MA</td></tr><tr><td valign="right" class="tan">He is a good salesperson in your dealership, very friendly and gave a lot of ideas for customer. That is why I bought this car. I love this car. It is a good car. Thank you so much.</td></tr></table>';
singletext[37]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Kim R, Somerville MA</td></tr><tr><td valign="right" class="tan">Keith Henderson, Kenny Leuing and Hitesh Patel assisted with my vehicle purchase, and they were all very professional. My husband and I were especially pleased to work with Mr Leung and appreciated his positive and friendly attitude. He worked with us, answered all our questions and always returned our phone calls in a timely manner. Mr Leungs customer service is outstanding.</td></tr></table>';
singletext[38]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Paul S, North Chelmsford MA</td></tr><tr><td valign="right" class="tan">I have bought here before and have always had good service.</td></tr></table>';
singletext[39]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Padma S, Lexington MA</td></tr><tr><td valign="right" class="tan">Excellent experience throughout our vehicle purchase. We had taken a price quote from internet that was honored without question. A dealer installed navigation and multimedia system (Rosen) froze and the dealer support was excellent and prompt. Courteous and knowledgeable sales personnel, thorough and detailed. Nice dealership facility.</td></tr></table>';
singletext[40]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Vanny T, Lowell MA</td></tr><tr><td valign="right" class="tan">He did an excellent job and made it a great experience for me. My salesperson made sure I was pleased with my vehicle and I appreciate him for checking up on me. He explained all the features of the car for me and he answered all my questions.  I enjoyed being able to really get inside the vehicle and being able to experience it.</td></tr></table>';
singletext[41]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Gerard C, Tewksbury MA</td></tr><tr><td valign="right" class="tan">This is the second time I have dealt with Mr Chittavong and he continues to be courteous and goest out of his way to understand my needs. The Finance Manager was very professional and understanding. He was efficient and the signing of all the papers was reasonably quick. Everyones concern that I was satisfied with the transaction of choosing the correct vehicle, negotiating cost and closing contracting paperwork. Everything went well. This is my third lease with Ira Toyota and each time I have been very satisfied.</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 -->

