// vehicle selector position(coordinates) and size...
var pos_left = 550;
var pos_top = 90;
var width = 210;


if (isMac) {
    pullDownLength="-------------&nbsp\;";
    pullDownHeight=30;
} else if (isNav4) {
    pullDownLength="-------------------------------&nbsp\;";
    pullDownHeight=26;
} else {
    pullDownLength="-------------------------------&nbsp\;";
    pullDownHeight=30;
}

var vehicle_selector_code = "";

if (isNav4)
{
    vehicle_selector_code += "<LAYER NAME='findcar' LEFT=" + pos_left + " TOP=" + pos_top + " WIDTH=" + width + ">\n";
} else {
    vehicle_selector_code += "<DIV ID='findcar' STYLE='position:absolute; left:" + pos_left + "; top:" + pos_top + "; width:" + width + ";'>\n";
}

if (!isNav6)
{
    vehicle_selector_code += "<FORM NAME='vehicles'>\n";
}

vehicle_selector_code += "<TABLE CELLPADDING='0' CELLSPACING='0' BORDER='0' WIDTH='210'>\n";

if (isNav6)
{
    vehicle_selector_code += "<FORM NAME='vehicles'>\n";
}

vehicle_selector_code += "<TR><TD COLSPAN='4'><IMG SRC='images/en/global/vehicle_selector.gif' WIDTH='210' HEIGHT='31'></TD></TR>\n";
vehicle_selector_code += "<TR BGCOLOR='#FFFFCC'>\n";
vehicle_selector_code += "<TD><IMG SRC='images/en/global/nothing.gif' WIDTH='10' HEIGHT='1'></TD>\n";
vehicle_selector_code += "<TD><IMG SRC='images/en/global/nothing.gif' WIDTH='163' HEIGHT='1'></TD>\n";
vehicle_selector_code += "<TD><IMG SRC='images/en/global/nothing.gif' WIDTH='27' HEIGHT='1'></TD>\n";
vehicle_selector_code += "<TD><IMG SRC='images/en/global/nothing.gif' WIDTH='10' HEIGHT='10'></TD></TR>\n";

vehicle_selector_code += "<TR BGCOLOR='#FFFFCC'>\n";
vehicle_selector_code += "<TD><IMG SRC='images/en/global/nothing.gif' HEIGHT='"+ pullDownHeight +"' WIDTH='1'></TD>\n";
vehicle_selector_code += "<TD VALIGN='top'><SELECT NAME='brand' onChange='vehicle_selector.change_brand()' ID='Select1'>\n";
vehicle_selector_code += "<OPTION SELECTED>Choose a Brand\n";
vehicle_selector_code += "<OPTION>"+ pullDownLength +"\n";
vehicle_selector_code += "<OPTION>\n";
vehicle_selector_code += "<OPTION>\n";
vehicle_selector_code += "</SELECT></TD>\n";
vehicle_selector_code += "<TD COLSPAN='2'><IMG SRC='images/en/global/nothing.gif' HEIGHT='1' WIDTH='1'></TD></TR>\n";

vehicle_selector_code += "<TR BGCOLOR='#FFFFCC'>\n";
vehicle_selector_code += "<TD><IMG SRC='images/en/global/nothing.gif' HEIGHT='"+ pullDownHeight +"' WIDTH='1'></TD>\n";
vehicle_selector_code += "<TD VALIGN='top'><SELECT NAME='choice' onChange='if (this.selectedIndex<2) this.selectedIndex=0' ID='Select2'>\n";
vehicle_selector_code += "<OPTION SELECTED>Choose a Model\n";
vehicle_selector_code += "<OPTION>"+ pullDownLength +"\n";
vehicle_selector_code += "<OPTION>\n";
vehicle_selector_code += "<OPTION>\n";
vehicle_selector_code += "</SELECT></TD>\n";
vehicle_selector_code += "<TD><A HREF='javascript:check_dropdown('vehicles','choice', 2, 'findcar')'><IMG SRC='images/en/global/go.gif' WIDTH='27' HEIGHT='16' BORDER='0'></A></TD>\n";
vehicle_selector_code += "<TD><IMG SRC='images/en/global/nothing.gif' HEIGHT='1' WIDTH='1'></TD></TR>\n";

vehicle_selector_code += "<TR BGCOLOR='#FFFFCC'>\n";
vehicle_selector_code += "<TD COLSPAN='4'><IMG SRC='images/en/global/nothing.gif' HEIGHT='5' WIDTH='1'></TD></TR></TABLE>\n";

if (isNav4)
{
    vehicle_selector_code += "</LAYER>\n";
} else {
    vehicle_selector_code += "</DIV>\n";
}

var vehicle_selector = new dyn_dropdown('vehicles', 'findcar');

function init_vehicle_selector()
{

    vehicle_selector.add_brand('Ford');
    vehicle_selector.add_brand('Lincoln');
    vehicle_selector.add_brand('Mercury');
    vehicle_selector.add_brand('Mazda');
    vehicle_selector.add_brand('Volvo');
    vehicle_selector.add_brand('Jaguar');
    vehicle_selector.add_brand('Land Rover');
    vehicle_selector.add_brand('Aston Martin');


    vehicle_selector.brands[0].add_choice('ZX2', 'http://www.ford.com/en/ourVehicles/allVehicles/fordZX2.htm');
    vehicle_selector.brands[0].add_choice('Focus', 'http://www.ford.com/en/ourVehicles/allVehicles/fordFocus.htm');
    vehicle_selector.brands[0].add_choice('Focus SE Wagon', 'http://www.ford.com/en/ourVehicles/allVehicles/fordFocusSEWagon.htm');
    vehicle_selector.brands[0].add_choice('Mustang Coupe', 'http://www.ford.com/en/ourVehicles/allVehicles/fordMustangCoupe.htm');
    vehicle_selector.brands[0].add_choice('Mustang Convertible', 'http://www.ford.com/en/ourVehicles/allVehicles/fordMustangConvertible.htm');
    vehicle_selector.brands[0].add_choice('SVT Mustang Cobra Coupe', 'http://www.ford.com/en/ourVehicles/allVehicles/fordSVTMustangCobraCoupe.htm');
    vehicle_selector.brands[0].add_choice('SVT Mustang Cobra Convertible', 'http://www.ford.com/en/ourVehicles/allVehicles/fordSVTMustangCobraConvertible.htm');
    vehicle_selector.brands[0].add_choice('Thunderbird', 'http://www.ford.com/en/ourVehicles/allVehicles/fordThunderbird.htm');
    vehicle_selector.brands[0].add_choice('Taurus', 'http://www.ford.com/en/ourVehicles/allVehicles/fordTaurus.htm');
    vehicle_selector.brands[0].add_choice('Taurus Wagon', 'http://www.ford.com/en/ourVehicles/allVehicles/fordTaurusWagon.htm');
    vehicle_selector.brands[0].add_choice('Crown Victoria', 'http://www.ford.com/en/ourVehicles/allVehicles/fordCrownVictoria.htm');
    vehicle_selector.brands[0].add_choice('Windstar', 'http://www.ford.com/en/ourVehicles/allVehicles/fordWindstar.htm');
    vehicle_selector.brands[0].add_choice('Escape', 'http://www.ford.com/en/ourVehicles/allVehicles/fordEscape.htm');
    vehicle_selector.brands[0].add_choice('Explorer Sport', 'http://www.ford.com/en/ourVehicles/allVehicles/fordExplorerSport.htm');
    vehicle_selector.brands[0].add_choice('Explorer Sport Trac', 'http://www.ford.com/en/ourVehicles/allVehicles/fordExplorerSportTrac.htm');
    vehicle_selector.brands[0].add_choice('Explorer', 'http://www.ford.com/en/ourVehicles/allVehicles/fordExplorer.htm');
    vehicle_selector.brands[0].add_choice('Expedition', 'http://www.ford.com/en/ourVehicles/allVehicles/fordExpedition.htm');
    vehicle_selector.brands[0].add_choice('Excursion', 'http://www.ford.com/en/ourVehicles/allVehicles/fordExcursion.htm');
    vehicle_selector.brands[0].add_choice('Ranger', 'http://www.ford.com/en/ourVehicles/allVehicles/fordRanger.htm');
    vehicle_selector.brands[0].add_choice('F-150', 'http://www.ford.com/en/ourVehicles/allVehicles/fordF150.htm');
    vehicle_selector.brands[0].add_choice('SVT F-150 Lightning', 'http://www.ford.com/en/ourVehicles/allVehicles/fordSVTF150Lightning.htm');
    vehicle_selector.brands[0].add_choice('F-250', 'http://www.ford.com/en/ourVehicles/allVehicles/fordF250.htm');
    vehicle_selector.brands[0].add_choice('F-350', 'http://www.ford.com/en/ourVehicles/allVehicles/fordF350.htm');
    vehicle_selector.brands[0].add_choice('Econoline E-150', 'http://www.ford.com/en/ourVehicles/allVehicles/fordEconolineE150.htm');
    vehicle_selector.brands[0].add_choice('Econoline E-250', 'http://www.ford.com/en/ourVehicles/allVehicles/fordeconolineE250.htm');
    vehicle_selector.brands[0].add_choice('Econoline E-350', 'http://www.ford.com/en/ourVehicles/allVehicles/fordEconolineE350.htm');
    vehicle_selector.brands[1].add_choice('LS', 'http://www.ford.com/en/ourVehicles/allVehicles/lincolnLS.htm');
    vehicle_selector.brands[1].add_choice('Continental', 'http://www.ford.com/en/ourVehicles/allVehicles/lincolnContinental.htm');
    vehicle_selector.brands[1].add_choice('Town Car', 'http://www.ford.com/en/ourVehicles/allVehicles/lincolnTownCar.htm');
    vehicle_selector.brands[1].add_choice('Navigator', 'http://www.ford.com/en/ourVehicles/allVehicles/lincolnNavigator.htm');
    vehicle_selector.brands[1].add_choice('Blackwood', 'http://www.ford.com/en/ourVehicles/allVehicles/lincolnBlackwood.htm');
    vehicle_selector.brands[2].add_choice('Cougar', 'http://www.ford.com/en/ourVehicles/allVehicles/mercuryCougar.htm');
    vehicle_selector.brands[2].add_choice('Sable', 'http://www.ford.com/en/ourVehicles/allVehicles/mercurySable.htm');
    vehicle_selector.brands[2].add_choice('Sable Wagon', 'http://www.ford.com/en/ourVehicles/allVehicles/mercurySableWagon.htm');
    vehicle_selector.brands[2].add_choice('Grand Marquis', 'http://www.ford.com/en/ourVehicles/allVehicles/mercuryGrandMarquis.htm');
    vehicle_selector.brands[2].add_choice('Villager', 'http://www.ford.com/en/ourVehicles/allVehicles/mercuryVillager.htm');
    vehicle_selector.brands[2].add_choice('Mountaineer', 'http://www.ford.com/en/ourVehicles/allVehicles/mercuryMountaineer.htm');
    vehicle_selector.brands[3].add_choice('Miata', 'http://www.ford.com/en/ourVehicles/allVehicles/mazdaMiata.htm');
    vehicle_selector.brands[3].add_choice('Protege', 'http://www.ford.com/en/ourVehicles/allVehicles/mazdaProtege.htm');
    vehicle_selector.brands[3].add_choice('626', 'http://www.ford.com/en/ourVehicles/allVehicles/mazda626.htm');
    vehicle_selector.brands[3].add_choice('Millenia', 'http://www.ford.com/en/ourVehicles/allVehicles/mazdaMillenia.htm');
    vehicle_selector.brands[3].add_choice('MPV', 'http://www.ford.com/en/ourVehicles/allVehicles/mazdaMPV.htm');
    vehicle_selector.brands[3].add_choice('Tribute', 'http://www.ford.com/en/ourVehicles/allVehicles/mazdaTribute.htm');
    vehicle_selector.brands[3].add_choice('B Pickup', 'http://www.ford.com/en/ourVehicles/allVehicles/mazdaBPickup.htm');
    vehicle_selector.brands[4].add_choice('S40', 'http://www.ford.com/en/ourVehicles/allVehicles/volvoS40.htm');
    vehicle_selector.brands[4].add_choice('V40', 'http://www.ford.com/en/ourVehicles/allVehicles/volvoV40.htm');
    vehicle_selector.brands[4].add_choice('S60', 'http://www.ford.com/en/ourVehicles/allVehicles/volvoS60.htm');
    vehicle_selector.brands[4].add_choice('C70 Coupe', 'http://www.ford.com/en/ourVehicles/allVehicles/volvoC70Coupe.htm');
    vehicle_selector.brands[4].add_choice('C70 Convertible', 'http://www.ford.com/en/ourVehicles/allVehicles/volvoC70Convertible.htm');
    vehicle_selector.brands[4].add_choice('V70', 'http://www.ford.com/en/ourVehicles/allVehicles/volvoV70.htm');
    vehicle_selector.brands[4].add_choice('Cross Country', 'http://www.ford.com/en/ourVehicles/allVehicles/volvoCrossCountry.htm');
    vehicle_selector.brands[4].add_choice('S80', 'http://www.ford.com/en/ourVehicles/allVehicles/volvoS80.htm');
    vehicle_selector.brands[5].add_choice('X-Type', 'http://www.ford.com/en/ourVehicles/allVehicles/jaguarXType.htm');
    vehicle_selector.brands[5].add_choice('XK8 Coupe', 'http://www.ford.com/en/ourVehicles/allVehicles/jaguarXK8Coupe.htm');
    vehicle_selector.brands[5].add_choice('XK8 Convertible', 'http://www.ford.com/en/ourVehicles/allVehicles/jaguarXK8Convertible.htm');
    vehicle_selector.brands[5].add_choice('S-Type', 'http://www.ford.com/en/ourVehicles/allVehicles/jaguarSType.htm');
    vehicle_selector.brands[5].add_choice('XJ Sedan', 'http://www.ford.com/en/ourVehicles/allVehicles/jaguarXJSedan.htm');
    vehicle_selector.brands[6].add_choice('Freelander', 'http://www.ford.com/en/ourVehicles/allVehicles/landRoverFreelander.htm');
    vehicle_selector.brands[6].add_choice('Discovery II', 'http://www.ford.com/en/ourVehicles/allVehicles/landRoverDiscoveryII.htm');
    vehicle_selector.brands[6].add_choice('Range Rover', 'http://www.ford.com/en/ourVehicles/allVehicles/landRoverRangeRover.htm');
    vehicle_selector.brands[7].add_choice('V12 Vanquish', 'http://www.ford.com/en/ourVehicles/allVehicles/astonMartinV12Vanquish.htm');
    vehicle_selector.brands[7].add_choice('DB7 Vantage', 'http://www.ford.com/en/ourVehicles/allVehicles/astonMartinDB7Vantage.htm');
    vehicle_selector.brands[7].add_choice('DB7 Vantage Volante', 'http://www.ford.com/en/ourVehicles/allVehicles/astonMartinDB7VantageVolante.htm');
    vehicle_selector.load_brands();
}
