// Javascript incentives display
var playId;
var currentIncentive=0;
function play() {
if (incentiveCount() > 0) {
document.getElementById("incentives_display_area").innerHTML=incentives[0];
playId=setInterval("next()", 3000);
}
}
function findIncentiveIndex() {
return currentIncentive;
}
function next() {
var index=findIncentiveIndex();
if (index!=-1) {
if (index == (incentiveCount()-1)) { index=0; } else { index++; }
currentIncentive=index;
document.getElementById("incentives_display_area").innerHTML=incentives[index];
}
}
function incentiveCount() {
var count=0;
for (ind in incentives) { count++; }
return count;
}
var incentives=new Object();
incentives[0]='
2010 New Avalon
Factory Rebate
or
reduced apr
0.0% up to 36 Months
0.0% up to 48 Months
0.0% up to 60 Months
Tier I+, I, II, III
Reduced APR Available
Expires: April 05, 2010
';
incentives[2]='2010 New Camry
reduced apr
0.0% up to 36 Months
0.0% up to 48 Months
0.0% up to 60 Months
Tier I+, I, II, III
Reduced APR Available
Expires: April 05, 2010
';
incentives[3]='2010 New Corolla
reduced apr
0.0% up to 36 Months
0.0% up to 48 Months
0.0% up to 60 Months
Tier I+, I, II, III
Reduced APR Available
Expires: April 05, 2010
';
incentives[4]='2010 New Highlander
reduced apr
0.0% up to 36 Months
0.0% up to 48 Months
0.0% up to 60 Months
Tier I+, I, II, III
Reduced APR Available
Expires: April 05, 2010
';
incentives[5]='2010 New Matrix
reduced apr
0.0% up to 36 Months
0.0% up to 48 Months
0.0% up to 60 Months
Tier I+, I, II, III
Reduced APR Available
Expires: April 05, 2010
';
incentives[6]='2010 New RAV4
reduced apr
0.0% up to 36 Months
0.0% up to 48 Months
0.0% up to 60 Months
Tier I+, I, II, III
Reduced APR Available
Expires: April 05, 2010
';
incentives[7]='2010 New Sienna
reduced apr
0.0% up to 36 Months
0.0% up to 48 Months
0.0% up to 60 Months
Tier I+, I, II, III
Reduced APR Available
Expires: April 05, 2010
';
incentives[8]='2010 New Tundra
Factory Rebate
or
reduced apr
0.0% up to 36 Months
0.0% up to 48 Months
0.0% up to 60 Months
Tier I+, I, II, III
Reduced APR Available
Expires: April 05, 2010
';
incentives[9]='2010 New Yaris
Factory Rebate
or
reduced apr
0.0% up to 36 Months
0.0% up to 48 Months
0.0% up to 60 Months
Tier I+, I, II, III
Reduced APR Available
Expires: April 05, 2010
';