$.oSettings = {}; function setAriaInvalid(){ $('input, select, textarea').attr('aria-invalid','false'); $('.form-control.is-invalid, .was-validated .form-control:invalid').attr('aria-invalid','true'); } (function() { 'use strict'; window.addEventListener('load', function() { var forms = document.getElementsByClassName('needs-validation'); var validation = Array.prototype.filter.call(forms, function(form) { form.addEventListener('submit', function(event) { if (form.checkValidity() === false) { event.preventDefault(); event.stopPropagation(); form.classList.add('was-validated'); setAriaInvalid(); $('input, textarea').on('focusout, blur, keyup', function(){ setAriaInvalid(); }); $("select").change(function(){ setAriaInvalid(); }); $('input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true]').filter(':first').focus(); } }, false); }); }, false); })(); $(document).ready(function(){ function checkMinYrs(type,minyears,joint) { if (type == 'residence') { if (joint) { fieldsetID = "joint_previous_residence"; years = 'jointyearsatresidence'; months = 'jointmonthsatresidence'; } else { fieldsetID = "previous_residence"; years = 'yearsatresidence'; months = 'monthsatresidence'; } } else if (type == 'employer') { if (joint) { fieldsetID = "joint_previous_employer_information"; years = 'jointemployeryears'; months = 'jointemployermonths'; } else { fieldsetID = "previous_employer_information"; years = 'employeryears'; months = 'employermonths'; } } $('[name=' + years + '],' + '[name=' + months + ']').unbind("change").bind("change", function(event) { checkMinYrs(type,minyears,joint); }); if (fieldsetID) { var currentyears = ($('[name=' + years + ']').val()+'').replace(/\D/g,''); var currentmonths = ($('[name=' + months + ']').val()+'').replace(/\D/g,''); if (!currentyears || isNaN(currentyears)) currentyears = 0; if (!currentmonths || isNaN(currentmonths)) currentmonths = 0; var selector = '#' + fieldsetID + ' input, #' + fieldsetID + ' select, #' + fieldsetID + ' textarea'; $(selector).removeAttr("required").parent("div").siblings("label").removeClass("asterisk"); if (currentyears < minyears) { $(selector).each(function() { if ($(this).is(':visible')) { $(this).prop("required",true).parent("div").siblings("label").addClass("asterisk"); } }); } } } function spouseinfo(){ $("#spousename, #spouseincome").removeAttr("required").parent("div").siblings("label").removeClass("asterisk"); $('#field-spousename,#field-spouseincome').hide(); } spouseinfo(); $.oSettings.Category = { "dealerid":11381 ,"vehTypes":["Car","Truck","Golf Cart","Medium Duty Truck"] ,"categoryData":{"ATV":{"2004":["Arctic Cat\u00ae","Bombardier\u2122","Honda\u00ae","John Deere","Kawasaki","KYMCO","Polaris\u00ae","Suzuki","Yamaha"],"2005":["AlphaSports","Arctic Cat\u00ae","Bombardier\u2122","Honda\u00ae","John Deere","Kawasaki","KYMCO","Polaris\u00ae","Suzuki","Vento","Yamaha"],"2006":["Arctic Cat\u00ae","Bombardier\u2122","E-TON","Honda\u00ae","John Deere","Kawasaki","KYMCO","Polaris\u00ae","Suzuki","Tomberlin\u2122","United Motors","Vento","Yamaha"],"2007":["Arctic Cat\u00ae","Can-Am\u00ae","E-TON","Honda\u00ae","Hyosung","Kawasaki","KYMCO","Polaris\u00ae","Suzuki","Tomberlin\u2122","United Motors","Vento","Yamaha"],"2008":["Arctic Cat\u00ae","Can-Am\u00ae","E-TON","Honda\u00ae","Hyosung","Kawasaki","KTM","KYMCO","Polaris\u00ae","QLINK","Suzuki","Tomberlin\u2122","United Motors","Yamaha"],"2009":["Arctic Cat\u00ae","Can-Am\u00ae","E-TON","Honda\u00ae","Hyosung","Kawasaki","KTM","KYMCO","Polaris\u00ae","QLINK","Suzuki","Yamaha"],"2010":["Arctic Cat\u00ae","Can-Am\u00ae","Honda\u00ae","Kawasaki","KYMCO","Polaris\u00ae","QLINK","Suzuki","SYM","Yamaha"],"2011":["Arctic Cat\u00ae","Can-Am\u00ae","Honda\u00ae","Kawasaki","KYMCO","Polaris\u00ae","QLINK","Suzuki","Tomberlin\u2122","Yamaha"],"2012":["Arctic Cat\u00ae","Can-Am\u00ae"]},"Car":{"2013":["Kia","Mazda"],"2014":["Audi","Cadillac","Chevrolet","Chrysler","GMC","Honda Automobiles","Hyundai","Jaguar","Kia","Lexus","Mazda","Nissan","Porsche","Subaru"],"2015":["Audi","Cadillac","Chevrolet","Chrysler","Dodge","GMC","Honda Automobiles","Hyundai","Jeep\u00ae","Kia","Lexus","Mazda","Nissan"],"2016":["Alfa Romeo","Chevrolet","Chrysler","Dodge","FIAT\u00ae","Ford","GMC","Morgan Motor Co.","Subaru","Toyota","Westward Industries"],"2017":["Acura","Alfa Romeo","Audi","Backdraft Racing","BMS Motor","BMW Auto","Buick","Cadillac","Chevrolet","Chrysler","Dodge","FIAT\u00ae","Ford","GMC","GMC - old","Green Transporters","Honda Automobiles","Hyundai","Ice Bear","Ilderton Custom Vans","Infiniti","Jeep\u00ae","Kia","Land Rover","Lexus","Lincoln\u00ae","Lotus","Maserati","Mazda","Mini","Mobility Transportation Services","Morgan Motor Co.","Nissan","Porsche","Smart","Subaru","Sunset Vans","Tesla","Toyota","Volkswagen","Volvo"],"2018":["Acura","Alfa Romeo","American Fastbacks","Atomic Electric Vehicles","Audi","Bentley","BMW Auto","Buick","Cadillac","Chevrolet","Chrysler","Dodge","Dynamax","Ford","GMC","Honda Automobiles","Hyundai","Ice Bear","Jaguar","Jeep\u00ae","Kia","Lexus","Mazda","Mini","Morgan Motor Co.","Nissan","Subaru","Toyota","Volvo"],"2019":["Acura","Buick","Cadillac","Chevrolet","Dodge","Ford","GMC","Honda Automobiles","Hyundai","Jeep\u00ae","Subaru","Toyota"],"2020":["Cadillac","Chevrolet","Chrysler","Dodge","FIAT\u00ae","Ford","Jeep\u00ae","Kia","Kia V1","Nissan","Toyota"],"2021":["Buick","Chevrolet","Chrysler","Dodge","Ford","Honda Automobiles","Hyundai","Infiniti","Jeep\u00ae","Kandi America","Kawasaki Test ","Nissan","RAM","Subaru"],"2022":["Apollo ATVS","Buick","Chevrolet","Chrysler","Daymak","Dodge","FIAT\u00ae","Ford","GMC","Honda Automobiles","Hyundai","Jeep\u00ae","KeyLo\u2122","Lexus","Lincoln\u00ae","Subaru","Toyota","Volvo"],"2023":["Audi","Buick","Cadillac","Chevrolet","Chrysler","Daymak","Dodge","Ford","GMC","Honda Automobiles","Jeep\u00ae","Kia","Lexus","Lincoln\u00ae","Maserati","National Van Builders","Subaru","Toyota","Volkswagen","Volvo"],"2024":["Audi","Bollinger Motor","Buick","Chrysler","Dodge","Ford","GMC","Hyundai","Kia","Lincoln\u00ae","RapidView","Subaru"]},"Golf Cart":{"2005":["Yamaha Golf Car"],"2010":["Club Car\u00ae"],"2012":["Club Car\u00ae","Tracker Off Road"],"2013":["Club Car\u00ae","Columbia Parcar","E-Z-GO","Garia","Star EV","Western Golf Cars","Yamaha Golf Car"],"2014":["Club Car\u00ae","Columbia Parcar","E-Z-GO","Star EV","Yamaha Golf Car"],"2015":["Club Car\u00ae","E-Z-GO","Garia","Star EV","Western Golf Cars","Yamaha Golf Car"],"2016":["citEcar","Club Car\u00ae","Columbia Parcar","Cushman\u00ae","Evolution Electric Vehicles","E-Z-GO","Garia","HDK Electric Vehicles","Hisun Motors","Yamaha Golf Car"],"2017":["citEcar","Club Car\u00ae","Columbia Parcar","Cushman\u00ae","Evolution Electric Vehicles","E-Z-GO","Garia","Green Transporters","HDK Electric Vehicles","Hisun Motors","Star EV","Tomberlin\u2122","Western Golf Cars","Yamaha Golf Car","Yamaha UK"],"2018":["ACG, Inc.","Advanced EV","Bintelli Electric Vehicles","citEcar","Club Car\u00ae","Columbia Vehicle Group Inc.","Cushman\u00ae","Epic Carts","Evolution Electric Vehicles","E-Z-GO","Garia","Hisun Motors","ICON Electric Vehicles","Moto Electric Vehicles","Star EV","Streetrod Golf Cars","Tomberlin\u2122","United Smart Electric Vehicles","Yamaha Golf Car"],"2019":["Advanced EV","Bighorn Powersports","Club Car\u00ae","Cricket Mini Golf Carts","Cushman\u00ae","Evolution Electric Vehicles","E-Z-GO","Garia","Goggo","Hisun Motors","Star EV","Tomberlin\u2122","Yamaha Golf Car","Ziggy"],"2020":["Advanced EV","Bintelli Electric Vehicles","Cazador","Club Car\u00ae","Cricket Mini Golf Carts","Cushman\u00ae","Epic Carts","ETEC Electric Vehicle Co.","Evolution Electric Vehicles","E-Z-GO","Garia","Hisun Motors","ICON Electric Vehicles","Star EV","Tomberlin\u2122","Tracker Off Road","Yamaha Golf Car"],"2021":["Advanced EV","Bintelli Electric Vehicles","Cazador","Club Car\u00ae","Columbia Parcar","Cushman\u00ae","DoubleTake\u00ae","Eagle Parts & Products, Inc.","Epic Carts","ETECH","Evolution Electric Vehicles","E-Z-GO","Garia","Hisun Motors","ICON Electric Vehicles","Kandi","Pilotcar","Royal Electric Vehicles","Star EV","Tomberlin\u2122","Tracker Off Road","Vivid EV","Yamaha Golf Car","Ziggy"],"2022":["Advanced EV","Aetric EV","Apollo ATVS","Bintelli Electric Vehicles","Club Car\u00ae","Cushman\u00ae","Daymak","Elite EV","Epic Carts","Evolution Electric Vehicles","E-Z-GO","Garia","Hisun Motors","ICON Electric Vehicles","Iron Bull Carts","Kandi","Massimo Motor","Pilotcar","Royal Electric Vehicles","Star EV","Tomberlin\u2122","Vitacci","Vivid EV","Yamaha Golf Car"],"2023":["Advanced EV","Aetric EV","Alpha EV","Atlas Carts","Bintelli Electric Vehicles","Birdy EV","Club Car\u00ae","Coleman Powersports","Cricket Mini Golf Carts","Cushman\u00ae","DoubleTake\u00ae","Elite EV","Epic Carts","EV Titan","Evolution Electric Vehicles","E-Z-GO","Family Time Golf Carts","Garia","Gorilla\u2122 Rides EV","Hisun Motors","Honor LSV","ICON Electric Vehicles","Kandi","Kandi USA","Kodiak Electric Vehicles","MadJax\u00ae","Massimo Motor","Pilotcar","rEV","Royal Electric Vehicles","Star EV","Tao Motor","Tomberlin\u2122","Trojan EV","VCarts\u00ae","Vitacci","Vivid EV","Yamaha Golf Car"],"2024":["ActivEV","Advanced EV","Aetric EV","Alset EV","Atlas Carts","Bintelli Electric Vehicles","Club Car\u00ae","Cushman\u00ae","Denago EV","Epic Carts","Evolution Electric Vehicles","E-Z-GO","Garia","Honor LSV","ICON Electric Vehicles","Kandi","Legion EV","MadJax\u00ae","Massimo Motor","Sierra LSV","Star EV","Steeleng","Tomberlin\u2122","Venom EV","Vivid EV","Yamaha Golf Car"]},"Medium Duty Truck":{"2010":["Hino Trucks"],"2012":["UD Trucks"],"2013":["Presvac"],"2014":["Blue Bird","Chevrolet","Freightliner\u00ae","Kenworth","Ledwell","Ledwell","Mitsubishi Fuso","Nissan","Peterbilt","Peterbilt","X-vac"],"2015":["Blue Bird","Chevrolet","Cusco - DUP","Flowmark","Ford","Freightliner\u00ae","GMC","Hino Trucks","IC BUS","International\u00ae","Isuzu Trucks","Kenworth","Liebherr","Micro Bird","Mitsubishi Fuso","Nissan","Peterbilt","RAM","SportChassis\u2122","Sprinter","Terramac\u00ae","Thomas Built Buses","Trioliet","Tymco","Winnebago","Workhorse","X-vac"],"2016":["Blue Bird","Champion Bus","Chevrolet","Diamond Coach","Dodge","Ford","Freightliner\u00ae","Hino Trucks","IC BUS","International\u00ae","Isuzu Trucks","Kenworth","Mitsubishi Fuso","Peterbilt","SportChassis\u2122","Starcraft Bus","Swaploader","Terex\u00ae","Thomas Built Buses","Winnebago","Winnebago - DUP"],"2017":["Blue Bird","Champion Bus","Chevrolet","Flowmark","Flowmark - old","Ford","Ford","Freightliner\u00ae","GMC","Hino Trucks","International\u00ae","Isuzu Trucks","Kenworth","Kenworth Trucks - old","Ledwell","Ledwell","Ledwell - DUP","Ledwell - DUP","Mack Trucks","Micro Bird","Mitsubishi Fuso","Mobility Transportation Services","Peterbilt","Peterbilt - OLD","Presvac","RAM","RAM","SportChassis\u2122","Starcraft Bus","Swaploader","Terramac\u00ae","Thomas Built Buses","UD Trucks","X-vac"],"2018":["5150 Race Trailers","Blue Bird","Cemen Tech","Chevrolet","Diamond Coach","ElDorado","E-ONE","Federal Coach","Ford","Ford","Freightliner\u00ae","GMC","Hino Trucks","International\u00ae","Isuzu Trucks","Isuzu Trucks","Jerr-Dan\u00ae","Kenworth","KME","Micro Bird","Mitsubishi Fuso","New England Wheels","Osage Ambulances","Precision Manufacturing","SANY\u00ae","Snorkel","SportChassis\u2122","Starcraft Bus","Tico","Toyota","Turtle Top","Versalift","Wirtgen","World Trans","X-vac"],"2019":["5150 Race Trailers","Blue Bird","Chevrolet","EJ Metals","Etnyre","Ford","Ford","Freightliner Custom Chassis","Freightliner\u00ae","Henke","Hino Trucks","International\u00ae","Isuzu Trucks","Kenworth","Laird Manufacturing","LeeBoy","Liebherr","Mitsubishi Fuso","Peterbilt","RAM","SportChassis\u2122","SVI Trucks","SVI Trucks","Thomas Built Buses","Toyota","Winkel Manufacturing"],"2020":["Chevrolet","Ford","Freightliner\u00ae","Hino Trucks","International\u00ae","Isuzu Trucks","Kalmar Ottawa","Kenworth","Mack Trucks","Mitsubishi Fuso","Peterbilt","Swaploader"],"2021":["Chevrolet","Ford","Freightliner\u00ae","Hino Trucks","Hino Trucks","International\u00ae","Isuzu Trucks","Kalmar Ottawa","Kenworth","KME","Mack Trucks","Mitsubishi Fuso","Peterbilt","SportChassis\u2122","Swaploader","Tico"],"2022":["Chevrolet","Dennis Eagle","Ford","GMC","Hino Trucks","International\u00ae","Isuzu Trucks","Kalmar Ottawa","Kenworth","Kenworth","Mack Trucks","Peterbilt","SportChassis\u2122","Tico"],"2023":["Chevrolet","Chevrolet","GMC","Hino Trucks","International\u00ae","Isuzu Trucks","Kenworth","Mack Trucks","Peterbilt","RIZON","Tico"],"2024":["Bollinger Motor","Hino Trucks","International\u00ae","Isuzu Trucks","Mack Trucks"]},"Motorcycle / Scooter":{"2004":["Aprilia","BMW","Buell","Ducati","Harley-Davidson\u00ae","Honda\u00ae","Kawasaki","KTM","KYMCO","Moto Guzzi","Piaggio","Suzuki","Triumph","Vespa","Victory Motorcycles\u00ae","Yamaha"],"2005":["AlphaSports","American IronHorse","Aprilia","Big Dog","BMW","Buell","Ducati","Harley-Davidson\u00ae","Honda\u00ae","Husqvarna","Kawasaki","KTM","KYMCO","Moto Guzzi","MZ","Norton","Piaggio","Suzuki","Triumph","Ural","Vento","Vespa","Victory Motorcycles\u00ae","Yamaha"],"2006":["American IronHorse","Aprilia","Big Dog","BMW","Buell","Ducati","Honda\u00ae","Husqvarna","Hyosung","Kawasaki","KTM","KYMCO","Moto Guzzi","MV Agusta","Piaggio","Suzuki","Tomberlin\u2122","Triumph","United Motors","Ural","Vento","Vespa","Victory Motorcycles\u00ae","Yamaha"],"2007":["American IronHorse","Aprilia","Big Dog","BMW","Buell","Ducati","E-TON","Honda\u00ae","Husqvarna","Hyosung","Kawasaki","KTM","KYMCO","Moto Guzzi","MV Agusta","Piaggio","Schwinn","Suzuki","Tomberlin\u2122","Triumph","United Motors","Ural","Vento","Vespa","Victory Motorcycles\u00ae","Yamaha"],"2008":["American IronHorse","Aprilia","Big Bear Choppers","Big Dog","BMW","Buell","Can-Am\u00ae","Ducati","E-TON","Fischer","Genuine Scooter Co.","Honda\u00ae","Husaberg","Husqvarna","Hyosung","Kawasaki","KTM","KYMCO","Moto Guzzi","MV Agusta","Piaggio","QLINK","Schwinn","Suzuki","SYM","Tomberlin\u2122","Triumph","United Motors","Ural","Vectrix","Vento","Vespa","Victory Motorcycles\u00ae","Yamaha"],"2009":["Aprilia","Big Bear Choppers","Big Dog","BMW","Buell","Can-Am\u00ae","Ducati","E-TON","Fischer","Genuine Scooter Co.","Honda\u00ae","Husaberg","Husqvarna","Hyosung","Indian Motorcycle\u00ae","Kawasaki","KTM","KYMCO","Lambretta","Moto Guzzi","MV Agusta","Peirspeed","Piaggio","QLINK","Schwinn","Suzuki","SYM","Tomos","Triumph","United Motors","Ural","Vectrix","Vespa","Victory Motorcycles\u00ae","Yamaha"],"2010":["Aprilia","Big Bear Choppers","Big Dog","BMW","Brammo","Buell","California Scooter Co.","Can-Am\u00ae","Ducati","E-TON","Fischer","Flyscooters","Genuine Scooter Co.","Honda\u00ae","Husaberg","Husqvarna","Hyosung","Indian Motorcycle\u00ae","Kawasaki","KTM","KYMCO","Lance","Moto Guzzi","MV Agusta","Peirspeed","Piaggio","QLINK","Saxon Motorcycle","Schwinn","Suzuki","SYM","Tomos","Triumph","Ural","Vectrix","Vespa","Victory Motorcycles\u00ae","Yamaha","Zero"],"2011":["Aprilia","BETA","Big Dog","BMW","Brammo","California Scooter Co.","Can-Am\u00ae","Ducati","Fischer","GAS GAS","Genuine Scooter Co.","Honda\u00ae","Husaberg","Husqvarna","Hyosung","Indian Motorcycle\u00ae","Kawasaki","KTM","KYMCO","Moto Guzzi","MV Agusta","Peirspeed","Piaggio","QLINK","Saxon Motorcycle","Schwinn","Suzuki","Tomos","Triumph","Ural","Vectrix","Vespa","Victory Motorcycles\u00ae","Yamaha","Zero"],"2012":["BETA","BMW","Can-Am\u00ae","Ducati","GAS GAS","Genuine Scooter Co.","Kawasaki","Lance","Moto Guzzi","MV Agusta","Saxon Motorcycle","Suzuki"],"2013":["Victory Motorcycles\u00ae"]},"Personal Watercraft":{"2004":["Honda\u00ae","Kawasaki","Polaris\u00ae","Sea-Doo","Yamaha"],"2005":["Honda\u00ae","Kawasaki","Sea-Doo","Yamaha"],"2006":["Honda\u00ae","Kawasaki","Sea-Doo","Yamaha"],"2007":["Honda\u00ae","Kawasaki","Sea-Doo","Yamaha"],"2008":["Honda\u00ae","Kawasaki","Sea-Doo","Yamaha"],"2009":["Honda\u00ae","Kawasaki","Sea-Doo","Yamaha"],"2010":["Kawasaki","Sea-Doo","Yamaha"],"2011":["Kawasaki","Sea-Doo","Yamaha"],"2012":["Kawasaki","Sea-Doo"]},"Snowmobile":{"2004":["Arctic Cat\u00ae","Polaris\u00ae","Ski-Doo","Yamaha"],"2005":["Arctic Cat\u00ae","Polaris\u00ae","Ski-Doo","Yamaha"],"2006":["Arctic Cat\u00ae","Polaris\u00ae","Ski-Doo","Yamaha"],"2007":["Arctic Cat\u00ae","Polaris\u00ae","Ski-Doo","Yamaha"],"2008":["Arctic Cat\u00ae","Polaris\u00ae","Ski-Doo","Yamaha"],"2009":["Arctic Cat\u00ae","Polaris\u00ae","Ski-Doo","Yamaha"],"2010":["Arctic Cat\u00ae","Polaris\u00ae","Ski-Doo","Yamaha"],"2011":["Arctic Cat\u00ae","Polaris\u00ae","Ski-Doo","Yamaha"],"2012":["Arctic Cat\u00ae","Ski-Doo","Yamaha"],"2013":["Arctic Cat\u00ae","Ski-Doo","Yamaha"]},"Truck":{"2010":["Eagle"],"2013":["Aluma","Snake River Trailer"],"2014":["Aluma","Eby","Gooseneck"],"2015":["Aluma","CM\u00ae Truck Beds","Gooseneck","Performance Trailer","Snake River Trailer","SnoPro Trailers","Toyota"],"2016":["BAK","CargoPro Trailers","CM\u00ae Truck Beds","Fair MFG","Gooseneck","Iron Star","Maxwell Trailers","Performance Trailer","Ranch King Trailers","Snake River Trailer","SnoPro Trailers","UnderCover"],"2017":["Gooseneck","Iron Star","Knapheide Truck Bodies","Performance Trailer"],"2018":["4 Star Trailers","Adam Trailers","BAK","Century","Norstar","Southern Farm Supply"],"2019":["4 Star Trailers","Adam Trailers","Agri-Cover","BAK","Century","Featherlite Trailers"],"2020":["Century"],"2022":["Load King","Rugby Manufacturing","Vantage Vehicle International, Inc."],"2023":["Vantage Vehicle International, Inc.","Workhorse"],"2024":["RapidView"]},"Utility Vehicle":{"2005":["Bombardier\u2122","John Deere","Kawasaki","Kubota","Polaris\u00ae","Suzuki","Yamaha"],"2006":["Arctic Cat\u00ae","Cub Cadet","John Deere","Kawasaki","Kubota","Land Pride","Polaris\u00ae","Yamaha"],"2007":["Arctic Cat\u00ae","Cub Cadet","E-TON","John Deere","Kawasaki","Kubota","Land Pride","Polaris\u00ae","Yamaha"],"2008":["Arctic Cat\u00ae","Cub Cadet","E-TON","John Deere","Kawasaki","Kubota","Land Pride","Polaris\u00ae","QLINK","United Motors","Yamaha"],"2009":["Arctic Cat\u00ae","Cub Cadet","Honda\u00ae","John Deere","Kawasaki","Kubota","KYMCO","Polaris\u00ae","QLINK","Yamaha"],"2010":["Arctic Cat\u00ae","Bobcat\u00ae","Cub Cadet","Honda\u00ae","John Deere","Kawasaki","Kubota","KYMCO","New Holland","Polaris\u00ae","QLINK"],"2011":["Arctic Cat\u00ae","Bobcat\u00ae","Can-Am\u00ae","Case IH","Cub Cadet","Honda\u00ae","John Deere","Kawasaki","KIOTI","Kubota","KYMCO","New Holland","Polaris\u00ae","QLINK","Yamaha"],"2012":["Arctic Cat\u00ae","Cub Cadet","John Deere","Kubota"]}} ,"categoryList":{"Car":[{"id":3765,"bodySubType":"2 Door"},{"id":3265,"bodySubType":"2dr Car"},{"id":3767,"bodySubType":"3 Dr Hatchback"},{"id":3752,"bodySubType":"3-Wheel"},{"id":3764,"bodySubType":"4 Door"},{"id":2920,"bodySubType":"4dr Car"},{"id":3766,"bodySubType":"5 Dr Hatchback"},{"id":5021,"bodySubType":"Automobiles"},{"id":3759,"bodySubType":"Car"},{"id":4876,"bodySubType":"Cargo Van"},{"id":4796,"bodySubType":"Cars & SUVs"},{"id":2546,"bodySubType":"Convertible"},{"id":366,"bodySubType":"Coupe"},{"id":380,"bodySubType":"Crossover"},{"id":381,"bodySubType":"Crossover AWD"},{"id":4936,"bodySubType":"Electric"},{"id":367,"bodySubType":"Hatchback"},{"id":4346,"bodySubType":"Hybrid"},{"id":382,"bodySubType":"Minivan"},{"id":159,"bodySubType":"Other"},{"id":368,"bodySubType":"Sedan"},{"id":383,"bodySubType":"Sedan AWD"},{"id":2921,"bodySubType":"Station Wagon"},{"id":370,"bodySubType":"SUV"},{"id":385,"bodySubType":"SUV 4x4"},{"id":386,"bodySubType":"SUV AWD"},{"id":3892,"bodySubType":"Truck"},{"id":2545,"bodySubType":"Van"},{"id":369,"bodySubType":"Wagon"}],"Golf Cart":[{"id":6603,"bodySubType":"1 Passenger"},{"id":5240,"bodySubType":"1 Passenger - Gas"},{"id":4465,"bodySubType":"2 Passenger"},{"id":5241,"bodySubType":"2 Passenger - Electric"},{"id":5242,"bodySubType":"2 Passenger - Gas"},{"id":8383,"bodySubType":"2 Passenger - Lithium"},{"id":8753,"bodySubType":"3 Passenger - Gas"},{"id":4466,"bodySubType":"4 Passenger"},{"id":5243,"bodySubType":"4 Passenger - Electric"},{"id":5244,"bodySubType":"4 Passenger - Gas"},{"id":5245,"bodySubType":"4 Passenger - Hybrid"},{"id":8384,"bodySubType":"4 Passenger - Lithium"},{"id":8891,"bodySubType":"4 Passenger (2 Front + 2 Rear)"},{"id":8890,"bodySubType":"4 Passenger Forward Facing"},{"id":6292,"bodySubType":"4X4"},{"id":4467,"bodySubType":"6 Passenger"},{"id":5246,"bodySubType":"6 Passenger - Electric"},{"id":5372,"bodySubType":"6 Passenger - Gas"},{"id":8385,"bodySubType":"6 Passenger - Lithium"},{"id":4468,"bodySubType":"8 Passenger"},{"id":5247,"bodySubType":"8 Passenger - Gas"},{"id":8386,"bodySubType":"8 Passenger - Lithium"},{"id":6880,"bodySubType":"Battery Size: 2.0"},{"id":6879,"bodySubType":"Battery Size: 3.0"},{"id":6878,"bodySubType":"Battery Size: 4.0"},{"id":3057,"bodySubType":"Commercial"},{"id":6926,"bodySubType":"Custom Cart"},{"id":5643,"bodySubType":"Custom Carts"},{"id":8982,"bodySubType":"Electric"},{"id":7278,"bodySubType":"Fleet"},{"id":8740,"bodySubType":"Gas"},{"id":422,"bodySubType":"General"},{"id":5395,"bodySubType":"Golf"},{"id":8167,"bodySubType":"Golf Cart"},{"id":8741,"bodySubType":"Lead Acid 48V"},{"id":8742,"bodySubType":"Lead Acid 72V"},{"id":8743,"bodySubType":"Lithium"},{"id":4446,"bodySubType":"LSV - Street Legal"},{"id":8744,"bodySubType":"Other"},{"id":5393,"bodySubType":"Personal"},{"id":7279,"bodySubType":"Specialty"},{"id":5391,"bodySubType":"Transport"},{"id":5392,"bodySubType":"Utility"}],"Medium Duty Truck":[{"id":574,"bodySubType":"Air Mover"},{"id":507,"bodySubType":"Alternative Fuel"},{"id":1847,"bodySubType":"Ambulance"},{"id":4594,"bodySubType":"Asphalt Truck"},{"id":1848,"bodySubType":"Beverage Trucks"},{"id":4381,"bodySubType":"Boom Trucks"},{"id":1491,"bodySubType":"Box"},{"id":7088,"bodySubType":"Box Truck"},{"id":4453,"bodySubType":"Box Trucks"},{"id":547,"bodySubType":"Bucket / Boom"},{"id":4386,"bodySubType":"Bucket Trucks"},{"id":1849,"bodySubType":"Bucket Trucks / Boom Trucks"},{"id":4380,"bodySubType":"Budget Trucks"},{"id":510,"bodySubType":"Cab & Chassis"},{"id":1850,"bodySubType":"Cab & Chassis Trucks"},{"id":7087,"bodySubType":"Cabover"},{"id":3034,"bodySubType":"Cabover Trucks"},{"id":1851,"bodySubType":"Cabover Trucks w/o sleeper \u2013 City Tractor"},{"id":516,"bodySubType":"Cabover with Sleeper"},{"id":517,"bodySubType":"Cabover without Sleeper"},{"id":1852,"bodySubType":"Car Carrier Trucks"},{"id":8360,"bodySubType":"Cargo Trucks"},{"id":8362,"bodySubType":"Chip Trucks"},{"id":551,"bodySubType":"Chipper"},{"id":1853,"bodySubType":"Chipper Trucks"},{"id":4314,"bodySubType":"Coil Tubing"},{"id":3035,"bodySubType":"Conventional Trucks"},{"id":1854,"bodySubType":"Conventional Trucks w/o Sleeper - City Tractor"},{"id":514,"bodySubType":"Conventional with Sleeper"},{"id":515,"bodySubType":"Conventional without Sleeper"},{"id":505,"bodySubType":"Crane Truck"},{"id":1855,"bodySubType":"Crane Trucks"},{"id":1494,"bodySubType":"Curtain Side"},{"id":1497,"bodySubType":"Cutaway / Cube"},{"id":5379,"bodySubType":"Day Cab"},{"id":8127,"bodySubType":"Day Cab Tractors"},{"id":543,"bodySubType":"Digger Derrick"},{"id":1856,"bodySubType":"Digger Derrick Trucks"},{"id":908,"bodySubType":"DOT Code"},{"id":1506,"bodySubType":"Dry Cargo / Delivery"},{"id":6773,"bodySubType":"Dry Van"},{"id":7192,"bodySubType":"Dump - Tri Axle"},{"id":1858,"bodySubType":"Dump Chassis Trucks"},{"id":495,"bodySubType":"Dump Truck"},{"id":1857,"bodySubType":"Dump Trucks"},{"id":503,"bodySubType":"Emergency"},{"id":8739,"bodySubType":"Enclosed Service Bodies"},{"id":1532,"bodySubType":"Expediter"},{"id":1859,"bodySubType":"Expeditor Trucks / Hot Shot Trucks"},{"id":1860,"bodySubType":"Farm Trucks / Grain Trucks"},{"id":7547,"bodySubType":"Fire Tenders"},{"id":1861,"bodySubType":"Fire Trucks"},{"id":496,"bodySubType":"Flatbed"},{"id":1530,"bodySubType":"Flatbed Dump"},{"id":1862,"bodySubType":"Flatbed Trucks"},{"id":1863,"bodySubType":"Flatbed-Dump Trucks"},{"id":497,"bodySubType":"Food & Beverage"},{"id":8361,"bodySubType":"Forestry Trucks"},{"id":1864,"bodySubType":"Fuel Trucks / Lube Trucks"},{"id":1500,"bodySubType":"Furniture / Moving"},{"id":499,"bodySubType":"Garbage"},{"id":1865,"bodySubType":"Garbage Trucks"},{"id":508,"bodySubType":"Hauling"},{"id":7025,"bodySubType":"Heavy Haul"},{"id":1866,"bodySubType":"Hooklift Trucks"},{"id":577,"bodySubType":"Hydro-Excavator"},{"id":1867,"bodySubType":"Landscape Trucks"},{"id":1868,"bodySubType":"Lift Trucks"},{"id":886,"bodySubType":"Liquid Vacuum"},{"id":504,"bodySubType":"Logging"},{"id":1869,"bodySubType":"Logging Trucks"},{"id":1515,"bodySubType":"Mechanic"},{"id":5329,"bodySubType":"Medium Duty Truck"},{"id":7027,"bodySubType":"Milk Truck"},{"id":511,"bodySubType":"Mining"},{"id":506,"bodySubType":"Mixer"},{"id":1870,"bodySubType":"Mixer Trucks / Asphalt Trucks / Concrete Trucks"},{"id":1910,"bodySubType":"Other Trucks"},{"id":1509,"bodySubType":"Passenger"},{"id":562,"bodySubType":"Passenger Bus"},{"id":498,"bodySubType":"Pick-up & Delivery"},{"id":8353,"bodySubType":"Pick-Up Truck"},{"id":1871,"bodySubType":"Pick-Up Trucks"},{"id":512,"bodySubType":"Plow"},{"id":1872,"bodySubType":"Plow Trucks / Spreader Trucks"},{"id":571,"bodySubType":"Portable Restroom"},{"id":5522,"bodySubType":"PRT"},{"id":1874,"bodySubType":"Recycling Trucks"},{"id":1503,"bodySubType":"Reefer"},{"id":882,"bodySubType":"Refined Fuel"},{"id":5380,"bodySubType":"Refrigerated Van"},{"id":3742,"bodySubType":"Regular Cab Chassis-Cab"},{"id":690,"bodySubType":"Roll-Off"},{"id":1873,"bodySubType":"RV / Recreational Vehicles"},{"id":1875,"bodySubType":"Salvage Trucks"},{"id":580,"bodySubType":"Septic"},{"id":5523,"bodySubType":"Septic-Grease"},{"id":1876,"bodySubType":"Service Trucks / Utility Trucks / Mechanic Trucks"},{"id":568,"bodySubType":"Sewer Cleaner"},{"id":555,"bodySubType":"Shredder"},{"id":8812,"bodySubType":"Shuttle Bus"},{"id":3791,"bodySubType":"Single Axle Cab Chassis"},{"id":3785,"bodySubType":"Single Axle Chassis"},{"id":7463,"bodySubType":"Single Axle Tractors"},{"id":8128,"bodySubType":"Sleeper Tractors"},{"id":5524,"bodySubType":"Slide-ins"},{"id":4803,"bodySubType":"Specialty Vehicle"},{"id":1555,"bodySubType":"Stake Body"},{"id":1877,"bodySubType":"Stake Trucks"},{"id":1512,"bodySubType":"Step"},{"id":7459,"bodySubType":"Stepvan"},{"id":501,"bodySubType":"Sweeper"},{"id":1878,"bodySubType":"Sweeper Trucks"},{"id":509,"bodySubType":"Tank"},{"id":1879,"bodySubType":"Tank Trucks"},{"id":1880,"bodySubType":"Tank Trucks (Asphalt / Hot Oil)"},{"id":1881,"bodySubType":"Tank Trucks (Chemical / Acid)"},{"id":1882,"bodySubType":"Tank Trucks (Gasoline / Fuel)"},{"id":1883,"bodySubType":"Tank Trucks (LPG)"},{"id":1884,"bodySubType":"Tank Trucks (Milk)"},{"id":1885,"bodySubType":"Tank Trucks (Sewer Rodder / Septic)"},{"id":1886,"bodySubType":"Tank Trucks (Vacuum)"},{"id":1887,"bodySubType":"Tank Trucks (Water)"},{"id":5525,"bodySubType":"Tanks"},{"id":1531,"bodySubType":"Toter/Hauler"},{"id":1888,"bodySubType":"Tow Trucks"},{"id":1889,"bodySubType":"Tow Trucks (Roll-Back)"},{"id":1890,"bodySubType":"Tow Trucks (Wrecker)"},{"id":502,"bodySubType":"Towing & Recovery"},{"id":4300,"bodySubType":"Tri-Drive"},{"id":8992,"bodySubType":"Truck"},{"id":1891,"bodySubType":"Truck Body"},{"id":1892,"bodySubType":"Truck Body (Dump)"},{"id":1893,"bodySubType":"Truck Body (Flatbed)"},{"id":1898,"bodySubType":"Truck Body (Other)"},{"id":1894,"bodySubType":"Truck Body (Reefer Van)"},{"id":1895,"bodySubType":"Truck Body (Service)"},{"id":1896,"bodySubType":"Truck Body (Tank / Vacuum)"},{"id":1897,"bodySubType":"Truck Body (Van)"},{"id":6774,"bodySubType":"Utility"},{"id":500,"bodySubType":"Utility / Service"},{"id":8754,"bodySubType":"Utility/Service"},{"id":565,"bodySubType":"Vacuum"},{"id":1488,"bodySubType":"Van"},{"id":1528,"bodySubType":"Van - Dry Cargo"},{"id":1529,"bodySubType":"Van - Refrigerated"},{"id":3758,"bodySubType":"Van Body Trucks"},{"id":1899,"bodySubType":"Van Trucks / Box Trucks"},{"id":1900,"bodySubType":"Van Trucks / Box Trucks (Curtain Side)"},{"id":1901,"bodySubType":"Van Trucks / Box Trucks (Cutaway-Cube)"},{"id":1902,"bodySubType":"Van Trucks / Box Trucks (Dry Cargo-Delivery)"},{"id":1903,"bodySubType":"Van Trucks / Box Trucks (Moving)"},{"id":1904,"bodySubType":"Van Trucks / Box Trucks (Passenger)"},{"id":1905,"bodySubType":"Van Trucks / Box Trucks (Reefer)"},{"id":1906,"bodySubType":"Van Trucks / Box Trucks (Step)"},{"id":4454,"bodySubType":"Vans"},{"id":1907,"bodySubType":"Versatile Hauler Trucks"},{"id":5430,"bodySubType":"Vocation"},{"id":7026,"bodySubType":"Vocational Chassis"},{"id":6789,"bodySubType":"Water Truck"},{"id":902,"bodySubType":"Winch"},{"id":1908,"bodySubType":"Winch Trucks"},{"id":513,"bodySubType":"Yard Spotter"},{"id":1909,"bodySubType":"Yard Spotter Trucks"}],"Truck":[{"id":3771,"bodySubType":"2 Door"},{"id":5436,"bodySubType":"2 Wheel Drive"},{"id":3769,"bodySubType":"4 Door"},{"id":5437,"bodySubType":"4 Wheel Drive"},{"id":4538,"bodySubType":"Asphalt Truck"},{"id":812,"bodySubType":"Bale Bed"},{"id":2468,"bodySubType":"Beverage Trucks"},{"id":4797,"bodySubType":"Box Truck"},{"id":4309,"bodySubType":"Box Truck | Cutaway Cube Van | Dry Van"},{"id":2469,"bodySubType":"Box Trucks - Straight Trucks"},{"id":2470,"bodySubType":"Bucket - Boom - Crane Trucks"},{"id":7328,"bodySubType":"Bucket Trucks/Boom Trucks"},{"id":2471,"bodySubType":"Bus"},{"id":2472,"bodySubType":"Cab & Chassis Trucks"},{"id":2473,"bodySubType":"Cable Reel Trucks"},{"id":378,"bodySubType":"Cap"},{"id":6993,"bodySubType":"Cargo Van"},{"id":4376,"bodySubType":"Club Cab Pickup"},{"id":4805,"bodySubType":"Combo / Utility Truck"},{"id":4798,"bodySubType":"Combo Trucks"},{"id":6447,"bodySubType":"Commercial Truck"},{"id":4801,"bodySubType":"Contractor Truck"},{"id":7329,"bodySubType":"Conventional Day Cab Trucks"},{"id":7330,"bodySubType":"Conventional Trucks w/ Sleeper"},{"id":371,"bodySubType":"Crew Cab"},{"id":8389,"bodySubType":"Crew Cab Pickup"},{"id":2474,"bodySubType":"Digger Derrick Trucks"},{"id":387,"bodySubType":"Double Cab"},{"id":6578,"bodySubType":"Dry Freight Trucks"},{"id":7331,"bodySubType":"Dry Van Trucks/Straight Trucks"},{"id":2475,"bodySubType":"Dump Trucks"},{"id":5911,"bodySubType":"End Dump"},{"id":372,"bodySubType":"Extended Cab"},{"id":8390,"bodySubType":"Extended Cab Pickup"},{"id":2476,"bodySubType":"Farm Trucks - Grain Trucks"},{"id":811,"bodySubType":"Flat Bed"},{"id":2477,"bodySubType":"Flatbed Trucks"},{"id":3280,"bodySubType":"Fluid Transport"},{"id":2478,"bodySubType":"Forestry Trucks - Chipper Trucks"},{"id":2479,"bodySubType":"Fuel Trucks - Lube Trucks"},{"id":2480,"bodySubType":"Garbage Trucks - Recycling Trucks"},{"id":2931,"bodySubType":"General"},{"id":7332,"bodySubType":"Haul Truck"},{"id":7212,"bodySubType":"Heavy Duty Trucks - Cab & Chassis Trucks"},{"id":7208,"bodySubType":"Heavy Duty Trucks - Conventional Day Cab Trucks"},{"id":7207,"bodySubType":"Heavy Duty Trucks - Conventional Trucks w/ Sleeper"},{"id":7215,"bodySubType":"Heavy Duty Trucks - Dump Trucks"},{"id":7214,"bodySubType":"Heavy Duty Trucks - Flatbed Trucks"},{"id":7213,"bodySubType":"Heavy Duty Trucks - Garbage Trucks - Roll-Off"},{"id":7218,"bodySubType":"Heavy Duty Trucks - Service Trucks / Utility Truck"},{"id":7210,"bodySubType":"Heavy Duty Trucks - Tank Trucks - LPG"},{"id":7209,"bodySubType":"Heavy Duty Trucks - Tank Trucks - Water"},{"id":2481,"bodySubType":"Hooklift Trucks"},{"id":6588,"bodySubType":"Landscape Trucks"},{"id":7217,"bodySubType":"Light Duty Trucks - Van Trucks / Box Trucks - Dry "},{"id":7216,"bodySubType":"Medium Duty Trucks - Van Trucks / Box Trucks - Ste"},{"id":7211,"bodySubType":"Medium Duty Trucks - Versatile Hauler Trucks"},{"id":4807,"bodySubType":"Mega Cab"},{"id":2482,"bodySubType":"Mixer Trucks - Concrete Trucks"},{"id":160,"bodySubType":"Other"},{"id":373,"bodySubType":"Pickup"},{"id":2483,"bodySubType":"Pickup Trucks"},{"id":2484,"bodySubType":"Plow Trucks - Spreader Trucks"},{"id":389,"bodySubType":"Quad Cab"},{"id":388,"bodySubType":"Quad Cab 4x4"},{"id":2485,"bodySubType":"Reefer Trucks"},{"id":4375,"bodySubType":"Regular Cab"},{"id":8391,"bodySubType":"Regular Cab Pickup"},{"id":7333,"bodySubType":"Roll-Back Tow Truck"},{"id":2486,"bodySubType":"Rollback Trucks - Wrecker Trucks"},{"id":2487,"bodySubType":"Semi -Trucks"},{"id":7334,"bodySubType":"Septic Tank Trucks"},{"id":2488,"bodySubType":"Service Trucks - Utility Trucks"},{"id":4799,"bodySubType":"Specialty Truck"},{"id":4800,"bodySubType":"Stake Bed"},{"id":3770,"bodySubType":"Super Cab"},{"id":6449,"bodySubType":"Super Duty Crew"},{"id":3733,"bodySubType":"SuperCab"},{"id":384,"bodySubType":"Supercrew"},{"id":7335,"bodySubType":"Sweeper Trucks"},{"id":2489,"bodySubType":"Tank Trucks"},{"id":2490,"bodySubType":"Tire Trucks"},{"id":379,"bodySubType":"Tonneau Cover"},{"id":2491,"bodySubType":"Toter Trucks"},{"id":4780,"bodySubType":"Truck"},{"id":335,"bodySubType":"Truck Bed"},{"id":7182,"bodySubType":"Truck/Car/PKU"},{"id":6589,"bodySubType":"Utility / Service"},{"id":7336,"bodySubType":"Van Body Truck"},{"id":2492,"bodySubType":"Vans - Cars - SUV"},{"id":2493,"bodySubType":"Versatile Hauler Trucks"},{"id":7337,"bodySubType":"Water Tank Trucks"},{"id":2494,"bodySubType":"Welding Trucks"},{"id":2495,"bodySubType":"Winch Trucks"},{"id":2496,"bodySubType":"Yard Spotter Trucks"}]} }; $.oSettings.dealershipurl = "https://www.manessmotors.com/"; $("#previous_employer_information, #joint_previous_employer_information").prop("disabled", true).hide(); $.oSettings.SelectVehTypeOpt = $('#category').not('.customoptions').html(); $.oSettings.SelectMakeOpt = $('#make').not('.customoptions').html(); $.oSettings.SelectModelOpt = $('#model').not('.customoptions').html(); // Populate Vehicle Types $.oSettings.vehtypeOptions = ""; var vTypesArray = new Array(); $.oSettings.Category.vehTypes.sort(); $.each($.oSettings.Category.vehTypes, function(key, vehtype){ if(vehtype != '' && $.inArray(vehtype, vTypesArray) == -1){ $.oSettings.vehtypeOptions += ''; vTypesArray.push(vehtype); } }); $.each($.oSettings.Category.categoryData, function(vehtype,value){ $.oSettings.Category.categoryData[vehtype] = null; $.oSettings.Category.categoryData[vehtype.toLowerCase()] = value; }); if($.oSettings.vehtypeOptions) $('#category').not('.customoptions').html($.oSettings.SelectVehTypeOpt+$.oSettings.vehtypeOptions); switchIndividualJoint($('#applicationtype').val()); $('select.select-applicationtype').change(function(){ switchIndividualJoint($(this).val()); }); function switchIndividualJoint(this_val){ if(this_val != 'Joint'){ this_val = 'Individual'; } $('select.select-applicationtype').val(this_val); if($('#applicationtype').val() == 'Joint'){ $('.joint-app-element').not('#joint_previous_employer_information').show(); $('.joint-app-element input, .joint-app-element select, .joint-app-element textarea').prop('disabled', false); }else{ $('.joint-app-element').hide(); $('.joint-app-element input, .joint-app-element select, .joint-app-element textarea').prop('disabled', true); } } $('#switch-make-field').click(function(){ switchSelectText('make'); }); $('#switch-model-field').click(function(){ switchSelectText('model'); }); $('#category,#makeyear,#make').change(function(){ loadMakesModels(); }); function switchSelectText(fieldname){ $('#model,#modeltxt').val(''); if(fieldname == 'make') $('#make,#maketxt').val(''); var field = $('#field-' + fieldname); if(field.hasClass('display-select')){ field.removeClass('display-select'); if(fieldname == 'make') $('#field-model').removeClass('display-select'); }else if($('#' + fieldname).find('option').length > 1){ field.addClass('display-select'); } switchSelectTextDisable(); } function switchSelectTextDisable(){ $('#make:not([readonly]),#maketxt:not([readonly]),#model:not([readonly]),#modeltxt:not([readonly])').prop('disabled', false); if($('#field-make').hasClass('display-select')){ $('#maketxt:not([readonly])').prop('disabled', true); $('label#makelabel').attr('for','make'); }else{ $('#make:not([readonly])').prop('disabled', true); $('label#makelabel').attr('for','maketxt'); } if($('#field-model').hasClass('display-select')){ $('#modeltxt:not([readonly])').prop('disabled', true); $('label#modellabel').attr('for','model'); }else{ $('#model:not([readonly])').prop('disabled', true); $('label#modellabel').attr('for','modeltxt'); } } function cleankey(str){ var output = ((str === undefined || str === null || str == '') ? '' : str) + ""; output = output.toLowerCase(); output = $("
").html(output).text(); output = output.replace(/\W+/g,""); return output; } function loadMakesModels(){ $.oSettings.selectedYear = $('#makeyear').val(); $.oSettings.selectedMake = $('#make:visible').val() || ''; $.oSettings.selectedModel = $('#model:visible').val() || ''; $("#make").not('.customoptions').html($.oSettings.SelectMakeOpt); $("#model").not('.customoptions').html($.oSettings.SelectModelOpt); $.oSettings.selectedVehType = ($('#category').val() + '').toLowerCase(); // Populate Makes if($("select#make.customoptions").length <= 0){ $.oSettings.makeOptions = ''; $('#field-make').removeClass('display-select'); if($.oSettings.Category.categoryData[$.oSettings.selectedVehType] && $.oSettings.Category.categoryData[$.oSettings.selectedVehType][$.oSettings.selectedYear]){ if(($.oSettings.selectedVehType.length > 0) && ($.oSettings.selectedYear.length > 0)){ $.each($.oSettings.Category.categoryData[$.oSettings.selectedVehType][$.oSettings.selectedYear],function(key,make){ if(make) $.oSettings.makeOptions += ''; }); } }else{ $('#field-make, #field-model').removeClass('display-select'); } if($.oSettings.makeOptions){ $("#make").not('.customoptions').html($.oSettings.SelectMakeOpt + $.oSettings.makeOptions); $('#field-make').addClass('display-select'); }else{ $('#field-make').removeClass('display-select'); } } // Populate Models if($("select#model.customoptions").length <= 0){ $('#field-model').removeClass('display-select'); $.getJSON("incfiles/GetMakesModels.php",{ "dealershipurl":$.oSettings.dealershipurl ,"type":($('#category').val() ? encodeURIComponent($('#category').val()) : "") ,"year":($('#makeyear').val() ? encodeURIComponent($('#makeyear').val()) : "") ,"make":($('#make').val() ? encodeURIComponent($('#make').val()) : "") },function(j){ $.oSettings.modelOptions = ''; if (j && j.length > 0){ for (var i = 0; i < j.length; i++) { var model = j[i].modeltrim.replace(/ Base$/,""); $.oSettings.modelOptions += ''; } } if($.oSettings.modelOptions){ $('#model').not('.customoptions').html($.oSettings.SelectModelOpt + $.oSettings.modelOptions); $('#field-model').addClass('display-select'); }else{ $('#field-model').removeClass('display-select'); } switchSelectTextDisable(); }); } switchSelectTextDisable(); } loadMakesModels(); });