/**
 * 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">Kirsty A, Blackstone MA</td></tr><tr><td valign="right" class="tan">Great Service a Ira in Milford. Friendly staff and very helpful. I will be bringing my service to you. Thank you for the great service.</td></tr></table>';
singletext[1]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Cindi B, Milford MA</td></tr><tr><td valign="right" class="tan">All of your service representatives have been cordial, responsive to my questions and willing to take the time to fully explain the problems and recommended repairs. I promptly received another car when the repairs were extensive and I was quite impressed with Adams offer to assist me mouseproof my vehicle once repairs were complete. Thank you.</td></tr></table>';
singletext[2]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Richard M, Milford MA</td></tr><tr><td valign="right" class="tan">I walked into the service area and Paul Rota recognized me right away and remembered my car also. I was surprised and very glad for the reception. Paul gave me an excellent service and it was by far my best experience at Ira Toyota of Milford.</td></tr></table>';
singletext[3]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Marilyn B, Milford MA</td></tr><tr><td valign="right" class="tan">Very exceptional service and handling of our requests. We have even purchased 4 new tires for our vehicle in Milford by phone while we were on vacation 2000 miles away. We are very happy with the outcome thanks to Bill. It does not get much better that that.</td></tr></table>';
singletext[4]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Faith N, Worcester MA</td></tr><tr><td valign="right" class="tan">The person who helped me upon arrival was Paul, he was very friendly, professional and welcoming. We have a Toyota dealer in the town I live in but I travel to your Milford site due to its 100 percent cheerful, clean, and the service upon arrival exceeds my expectations every time I am there. Thank you for the questionnaire to ensure that your customers are treated extremely well.</td></tr></table>';
singletext[5]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Michael P, Wrentham MA</td></tr><tr><td valign="right" class="tan">I had an awesome experience at Ira Toyota of Milford. I recently purchased my 3rd car their in 4 years!</td></tr></table>';
singletext[6]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">D Benedetti, Pawtucket RI</td></tr><tr><td valign="right" class="tan">Great service, great attitudes among the staff towards us. My salesman Vinnie was a pleasure to deal with and made everything easy. Great presentation and introduction to my car on delivery. Would do business with your dealership again, and would happily refer people I know to see a Toyota at Ira first. Five Stars for Ira!</td></tr></table>';
singletext[7]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Dona S, Bellingham MA</td></tr><tr><td valign="right" class="tan">I have been a loyal customer of Ira Toyota of Milford for 10 years. I am extremely satisfied with all aspects of the dealership.</td></tr></table>';
singletext[8]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Kimberly H, Watertown MA</td></tr><tr><td valign="right" class="tan">Everyone was very helpful and friendly and willing to work with us to get the best deal and really wanted to help me find the right car. This is my second experience at Ira Toyota of Milford and once again, it was a positive one. Thank you!</td></tr></table>';
singletext[9]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Patrick O, Uxbridge MA</td></tr><tr><td valign="right" class="tan">This is the second time we leased a car from Ira Toyota in Milford. Both times were wonderful and would recommend this dealership. Believe it or not it was pain free.</td></tr></table>';
singletext[10]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">John A, Franklin MA</td></tr><tr><td valign="right" class="tan">I dealt with Roger Wood a very fine gentleman, you might have thought that he had known me all my life. He answered any questions I had and was polite and very professional. I would recommend your dealership to my friends. Thank you.</td></tr></table>';
singletext[11]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Kimberly S, Canton MA</td></tr><tr><td valign="right" class="tan">This was the best car buying experience I ever had. The staff was honest, upfront and really friendly. I will highly recommend this dealership. A very very pleasant experience.</td></tr></table>';
singletext[12]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Debra H, Cumberland RI</td></tr><tr><td valign="right" class="tan">Your customer service is the best around.....I own 3 Toyotas and they are all serviced by you guys.</td></tr></table>';
singletext[13]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Janet N, Milford MA</td></tr><tr><td valign="right" class="tan">Good service rep; good service; love the shuttle.</td></tr></table>';
singletext[14]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Rosemary T, Hopedale MA</td></tr><tr><td valign="right" class="tan">This was my first experience purchasing a car at Ira Toyota of Milford. I would certainly recommend this dealership. Their level of professionalism and customer care was outstanding! Each and every question was not only welcomed but thoroughly answered by Paul, Vince or Karl. Thank You!</td></tr></table>';
singletext[15]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Daniel R, Milford MA</td></tr><tr><td valign="right" class="tan">Thanks to Bill, Kevin, Vince, Karl and Gene of Ira Toyota of Milford, I will definitely consider this team as my number one choice in future automotive purchases and recommend to family and friends looking to purchase or lease a quality vehicle in a friendly, non-pressure atmosphere.</td></tr></table>';
singletext[16]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">India N, Hopkinton MA</td></tr><tr><td valign="right" class="tan">This past week I purchased my 6th Toyota, a 2011 Camry. Both my Salesperson, Terry Burke, and his manager, Pat Bradley (frankly all the staff there) were friendly, welcoming, and obviously committed to true customer service. As an Assistant Director in a busy public library, my mission is customer service excellence...so I am especially appreciative when it is presented in a professional, consistent manner. I do love my Hopkinton Car Mechanic, but I will be servicing my Camry through Ira Toyota of Milford.</td></tr></table>';
singletext[17]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Bob P, Medfield MA</td></tr><tr><td valign="right" class="tan">I enjoyed all aspects of the purchase of my new 2010 Highlander Hybrid. Dave Gamari was my sales exec, and did a fantastic job with excellent personal attention. This is my second Highlander Hybrid, and I love it! I like to show off the Toyoyta Hybrid technology to everyone I meet. When they ask where I got it, I always recommend Ira Toyota. Thank you for your great customer service!</td></tr></table>';
singletext[18]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Gary M, Franklin MA</td></tr><tr><td valign="right" class="tan">It was a pleasure doing business with both Jim and Vince, as well as the business manager (Chris). The whole process went very smooth and I would be happy to refer my family and friends to Ira. Thank you!</td></tr></table>';
singletext[19]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">J Jamoulis, Milford MA</td></tr><tr><td valign="right" class="tan">"I felt no pressure in buying my Toyota Camry. The negotiations were simple, honest and straight forward."</td></tr></table>';
singletext[20]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">W Foniri, Cambridge MA</td></tr><tr><td valign="right" class="tan">"My entire family has been buying from Ira dealerships for years.  It is always fast, easy and enjoyable.  It is unlike any other dealership experience I have ever had."</td></tr></table>';
singletext[21]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">S Hogarty, Milford MA</td></tr><tr><td valign="right" class="tan">"At Ira Toyota of Milford, I got the car I wanted at the price I was looking to pay for it. It was quick and easy and everyone involved was pleasant and helpful."</td></tr></table>';
singletext[22]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">L Barnum, Walpole MA</td></tr><tr><td valign="right" class="tan">"Did not feel pressured or intimidated by the sales staff.  We felt very welcomed to the dealership."</td></tr></table>';
singletext[23]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">E Machacz, Uxbridge MA</td></tr><tr><td valign="right" class="tan">"The service staff at Ira Toyota of Milford, time and time again, have demonstrated to be top-shelf service advisors. Very competent in conversing technical topics in a courteous and intelligent manner. The personal touch makes one feel more like a friend not just a customer."</td></tr></table>';
singletext[24]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">C High, Dover MA</td></tr><tr><td valign="right" class="tan">"Your financial services are 1st rate!"</td></tr></table>';
singletext[25]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">T Myette, Wrentham MA</td></tr><tr><td valign="right" class="tan">"The individual attention and ease of dropping off a car for service was great."</td></tr></table>';
singletext[26]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Arthur G, Bellingham MA</td></tr><tr><td valign="right" class="tan">Service Consultant did a great job hope to deal with in future. Thank you Art.</td></tr></table>';
singletext[27]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Marjorie L, Milford MA</td></tr><tr><td valign="right" class="tan">I have a 1999 Rav 4 which just turned 300,000 miles last week. I think I owe that in part to your service department for taking such good care of it.  Thanks.</td></tr></table>';
singletext[28]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Tiffany G, Milford MA</td></tr><tr><td valign="right" class="tan">Bill Shaw did a great job helping me with my vehicle and having it out in a timely manner.</td></tr></table>';
singletext[29]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Scott M, Wrentham MA</td></tr><tr><td valign="right" class="tan">My thanks to Mark and the entire service crew. Timing was an issue due to the necessary repair, I was told that the car would have to stay overnight and be finished the next day, but because of my schedule and needing the car to get to the airport, your service technician stayed late and finished the job. This is what I call service. Something that is, unfortunately, rare these day. I was impressed with the Ira dealership when I purchased the truck and new even more impressed with the professionialism and consideration toward the customer and their needs. Thanks.</td></tr></table>';
singletext[30]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Christine R, Whitinsville MA</td></tr><tr><td valign="right" class="tan">Friendly and prompt service. I love my car and Ira Toyota in Milford are the best.</td></tr></table>';
singletext[31]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">John A, Pembroke MA</td></tr><tr><td valign="right" class="tan">I just wanted you to know how much I appreciated the time and effort Paul put in to get my car repaired. From the moment I contacted him with my unique situation, he was the consumate professional in addressing my problem. Thank you.</td></tr></table>';
singletext[32]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Jack A</td></tr><tr><td valign="right" class="tan">I just wanted you to know how much I appreciated the time and effort Paul put in to get my car repaired. From the moment I contacted him with my unique situation, he was the consumate professional in addressing my problem.  Thank you.</td></tr></table>';
singletext[33]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Priscilla M</td></tr><tr><td valign="right" class="tan">Totally satisfied, Mark booked our appointment at the vary last minute and Paul was extremely professional and efficient from reception through delivery back of vehicle. This quality of service is why we continue using IRA III for our service needs.</td></tr></table>';
singletext[34]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Lynette W</td></tr><tr><td valign="right" class="tan">I have always received excellent service at Ira, that is why I keep returning.</td></tr></table>';
singletext[35]='<table CELLSPACING="0" CELLPADDING="0" align="center"><tr><td valign="right" class="tabb">Chris C</td></tr><tr><td valign="right" class="tan">Paul Rota was my service advisor for my visit to Ira. He did his job well and with exceptional skill. I look forward to bringing my car back for service.</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 -->

