var Landing={};Landing.getMakeFace=function(a){dropdowns.mki=parseInt(a,10);dropdowns.mdi=999;dropdowns.year=0;var b={method:"post",parameters:"make_id="+dropdowns.mki,onSuccess:Landing.showMakeView,onFailure:QU.fracaso};QU.ajaxRequest("/ajax/landing.php",b,dropdowns);dropdowns.getModels()};Landing.getModelFace=function(c,a){dropdowns.mdi=parseInt(c,10);if(a!==undefined){dropdowns.year=parseInt(a,10);dropdowns.getModelYears();Landing.getYearModel()}else{dropdowns.year=0;dropdowns.getModelYears();var b={method:"post",parameters:"model_id="+c,onSuccess:Landing.showModelView,onFailure:QU.fracaso};QU.ajaxRequest("/ajax/landing.php",b,dropdowns)}};Landing.getYearModel=function(){var a={method:"post",parameters:"model_id="+dropdowns.mdi+"&year="+dropdowns.year,onSuccess:Landing.showYearModel,onFailure:QU.fracaso};QU.ajaxRequest("/ajax/model.php",a,dropdowns)};Landing.showMakeView=function(d){var b,c=Com.evalJSON(d.responseText),a='<table id="car_table" border="0" width="224" cellpadding="0" cellspacing="0">';if(c.models===undefined){return}for(b=0;b<c.models.length;b+=1){a+='<tr valign="top"><td class="car_box_background"><a title="'+c.models[b].year+" "+c.models[b].make_name+" "+c.models[b].model_name+'" href="javascript:dropdowns.resetMakeModels('+c.models[b].make_id+","+c.models[b].model_id+");Landing.getModelFace("+c.models[b].model_id+","+c.models[b].year+");QU.imageCall('http://metrics.carpricesecrets.com/b/ss/cvennewscars/1/H.14/?ns=classifiedventures1&events=event5');\"><img id=\"vi"+b+'" src="'+Local.imagePath+"/"+c.models[b].image+'-U.jpg" alt="'+c.models[b].year+" "+c.models[b].make_name+" "+c.models[b].model_name+'" border="0" class="imgborder" /></a></td></tr><tr><td align="center" class="toppicks"><a title="'+c.models[b].year+" "+c.models[b].make_name+" "+c.models[b].model_name+'" href="javascript:dropdowns.resetMakeModels('+c.models[b].make_id+","+c.models[b].model_id+");Landing.getModelFace("+c.models[b].model_id+","+c.models[b].year+');">'+c.models[b].year+" "+c.models[b].make_name+" "+c.models[b].model_name+"</a></td></tr>"}Com.$("cars").innerHTML=a+"</table>";Com.$("seo").innerHTML="<h2>New "+c.models[0].make_name+' Vehicles Overview</h2><br /><span class="hometext">'+c.seo+"</span>";Com.$("quote_headline").innerHTML="Did You Know Every New "+c.models[0].make_name+" "+Landing.geo+" Has a Secret Price?"};Landing.showModelView=function(b){var a=Com.evalJSON(b.responseText);if(a.models[0]===undefined){return}Landing.modelYearHTML(a.models[0].year,a.models[0].image,a.models[0].make_name,a.models[0].model_name,a.price_range[0],a.price_range[1],a.seo);Local.turnON()};Landing.showYearModel=function(b){var a=Com.evalJSON(b.responseText);if(typeof a!=="object"){return}Landing.modelYearHTML(a.year,a.img,Com.$("ajax_make_id").options[Com.$("ajax_make_id").selectedIndex].innerHTML,Com.$("ajax_model_id").options[Com.$("ajax_model_id").selectedIndex].innerHTML,a.msrp_min,a.msrp_max,a.txt)};Landing.modelYearHTML=function(g,c,e,a,b,h,f){var d='<table id="car_table" border="0" width="224" cellpadding="0" cellspacing="0"><tr valign="top"><td class="car_box_background"><a id="vfl" title="'+g+" "+e+" "+a+'" href="javascript:Landing.setFocus()"><img src="'+Local.imagePath+"/"+c+'-U.jpg" alt="'+g+" "+e+" "+a+'" border="0" class="imgborder" /></a></td></tr><tr><td align="center" valign="top" class="car_guide_trans"><br /><a id="vfl2" title="'+g+" "+e+" "+a+'" href="javascript:Landing.setFocus()">'+g+" "+e+" "+a+'</a></tr><tr><td class="guide_body"><div id="testimonial_1"><img src="'+Local.imagePath+'/nd_032509_testimonial.jpg" alt="Car Price Secrets Testimonial" id="testimonial_pic" /><p class="hometextsmall">&quot;...This was my first time buying a new car, and I really didn\'t know where to start. I used your site to get quotes from dealers near me and compared them to the Market Price. Then, I used the knowledge I got from reading your Secrets book to make sure I didn\'t pay more than I should. It was so easy! I love my new car!&quot;</p><p class="testimonial_sig">-Sonya S.<br />Los Angeles, CA</p></div></td></tr><tr><td class="guide_bottom">&nbsp;</td></tr>';Com.$("cars").innerHTML=d;d="<b>"+g+" "+e+" "+a+' Overview</b><p class="hometext" id="price_range">';if(b!==h){d+='<b>Price Range:</b> <span class="label_alt"><strike style="color:#900"><b>$'+b+'</b></strike></span> <b>to</b> <span class="label_alt"><strike style="color:#900"><b>$'+h+"</b></strike></span>"}else{d+='<b>Price:</b> <span class="label_alt"><strike style="color:#900"><b>'+(b?"$"+b:"N/A")+"</b></strike></span>"}d+='</p><p class="hometext"><b>Your Price:</b> <a id="ask" title="'+g+" "+e+" "+a+' Price Quote" href="javascript:Landing.setFocus();"><b>Ask Us</b></a><div class="hometext" id="seo_blurb">'+f+"</div>";Com.$("seo").innerHTML=d;Landing.fixHeadline("Did You Know Every New "+e+" "+a+" "+Landing.geo+" Has a Secret Price?");Com.$("2f_zipcode").focus()};Landing.fixHeadline=function(a){if(a.length>78){Com.$("quote_headline").style.fontSize="20px"}else{Com.$("quote_headline").style.fontSize="24px"}Com.$("quote_headline").innerHTML=a};Landing.setFocus=function(){window.scrollTo(0,0);alert("To receive your free price quote, simply confirm\nyour desired make and model in the drop-down menus,\nenter your valid U.S. ZIP code, and submit.");Com.$("2f_zipcode").focus()};