jQuery(document).ready(function(){header_init();if(cur_year=="2012"){jQuery("#vehicle_nav_container").append("<div class='social'><a name='&amp;lid=facebook&amp;lpos=header' href=\"javascript:flexWin('/exitpage/index.html?tname=facebook&amp;url=http://www.facebook.com/RamTrucks&amp;message=true','yes','1050','800','ram_trucks_facebook','resizable=yes');\"><img src='/shared/images/icon_fb.png' id='fb_icon'></a><a name='&amp;lid=twitter&amp;lpos=header' href=\"javascript:flexWin('/exitpage/index.html?tname=twitter&amp;url=http://twitter.com/ramtrucks&amp;message=true','yes','1024','768','twitter','all');\"><img src='/shared/images/icon_twitter.png' id='twitter_icon'></a></div>");}var b={year:" ",vehicle:" "};var a={ram_1500:"2012",ram_2500:"2012",chassis_cab_3500:"2012",ram_cv:"2012"};jQuery.each(a,function(c,d){b.year=d;b.vehicle=c;jQuery("#"+c+"_msrp_"+d).html(Vehicles.getMSRP(b));});});function is_touch_device(){try{document.createEvent("TouchEvent");return true;}catch(a){return false;}}function header_init(){jQuery(".dropdownable").mouseover(function(){if(jQuery(this).hasClass("active")){return;}var c=jQuery(this).attr("id");jQuery(".dropdownable").removeClass("active");jQuery(".facade_dropdown").hide();jQuery("#"+c+"_dropdown").show();jQuery(this).addClass("active");if(c=="ourtruck"){jQuery(".ramtrucks").hide();jQuery(".trucklinks a").removeClass("active");jQuery("#light").addClass("active");jQuery("#light_facade_2012").show();}});jQuery(".facade_dropdown").hover(function(){},function(){jQuery(".ramtrucks").hide();jQuery(".facade_dropdown").hide();jQuery(".dropdownable").removeClass("active");});jQuery(".toplinks").hover(function(){},function(){jQuery(".shadow").removeClass("active");});jQuery(".toplinks").mouseover(function(){console.log("Top Links");var c=jQuery(this).attr("id");console.log(c);if(c=="six"){jQuery("#local").removeClass("active");jQuery("#search").removeClass("active");jQuery("#local_dropdown").css("display","none");jQuery("#search_dropdown").css("display","none");}});jQuery(".trucklinks a").mouseover(function(){if(jQuery(this).hasClass("active")){return;}jQuery(".trucklinks a").removeClass("active");jQuery(this).addClass("active");jQuery(".ramtrucks").hide();jQuery("#"+jQuery(this).attr("id")+"_facade_2012").show();});jQuery(".window .close").click(function(c){c.preventDefault();jQuery("#mask").hide();jQuery("#mask").removeClass("active");jQuery(".window").hide();});if(/en\/2011/.test(location.href)){a="navtruck";}try{var a=nav_id;}catch(b){var a="";}if(a!=""){jQuery(".mainnav").attr("id",a);}if(is_touch_device()){jQuery(".dropdownable").click(function(c){c.preventDefault();});}}function gallery_init(){jQuery("div.scrollable").scrollable({speed:700,circular:true});jQuery(".videocontainer").hover(function(){jQuery(".videocontainer").css({"background-color":"#323130"});},function(){jQuery(".videocontainer").css({"background-color":"#1f1f1f"});});}function promo_init(){jQuery.easing.custom=function(e,f,a,i,h){var g=1.70158;if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a;}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a;};jQuery(function(){jQuery(".footerscroller").jCarouselLite({btnNext:".nextscroller",btnPrev:".prevscroller",easing:"custom",speed:700});});}onload_register("promo_init()");jQuery("ul.brochure li").hover(function(){jQuery("ul:first",this).css("visibility","visible");},function(){jQuery("ul:first",this).css("visibility","hidden");});function changePrice(c,a){var b="";if(cur_vehicle=="ram_1500"){switch(c){case"LONGHORN":b="1500 Crew Cab Laramie Longhorn&#8482;";break;case"LARAMIE":b="1500 Crew Cab Laramie";break;case"SPORT":b="1500 Crew Cab Sport";break;case"OUTDOORSMAN":b="1500 Crew Cab Outdoorsman";break;case"SLT":b="1500 Quad Cab SLT";break;case"ST":b="1500 Regular Cab ST";break;case"EXPRESS":b="Ram 1500 Express";break;case"TRADESMAN":b="Tradesman";break;}}else{if(cur_vehicle=="ram_2500_3500"){switch(c){case"LONGHORN":b="3500 Mega Cab&#174; Laramie Longhorn&#8482;";break;case"LARAMIE":b="3500 Mega Cab&#174; Laramie";break;case"POWER WAGON":b="Power Wagon&#174;";break;case"OUTDOORSMAN":b="2500 Crew Cab Outdoorsman";break;case"SLT":b="2500 Crew Cab SLT";break;case"ST":b="2500 Regular Cab ST";break;}}else{if(cur_vehicle=="ram_chassis_cab"){switch(c){case"5500 Crew Laramie":b="5500 Crew Cab Laramie&#174;";break;case"5500 Reg SLT":b="5500 Regular Cab SLT";break;case"4500 Crew SLT":b="4500 Crew Cab SLT";break;case"4500 Reg ST":b="4500 Regular Cab ST";break;case"3500 Reg ST":b="3500 Regular Cab ST";break;}}else{if(cur_vehicle=="dakota"){switch(c){case"BIG HORN":b="Extended Cab Big Horn";break;case"LARAMIE":b="Crew Cab Laramie";break;}}else{if(cur_vehicle=="outdoorsman"){switch(c){case"2500 OUTDOORSMAN":b="2500 Crew Cab Outdoorsman";break;case"1500 OUTDOORSMAN":b="1500 Crew Cab Outdoorsman";break;}}else{if(cur_vehicle=="longhorn"){switch(c){case"3500":b="3500 Mega Cab&#174; Laramie Longhorn";break;case"1500":b="1500 Crew Cab Laramie Longhorn";break;}}}}}}}jQuery("span.msrpline2").html(b+' shown starting at <span class="boldprice">$'+a+"</span>");}jQuery(document).ready(function(){jQuery(".features_list").each(function(){jQuery(this).find("li").children("p").children('a:contains("Body Builder Guide")').addClass("downloadIcon");});});
