$(document).ready(function () {


$('.UnitListControl h3').html('New inventory for this line will be arriving soon. <a href="/contactUs.aspx">Click here</a> to receive information or an alert when inventory is available.')

window.setTimeout(function() {
			$('.skype_pnh_container').html('');
			$('.skype_pnh_print_container').removeClass('skype_pnh_print_container');
		}, 800);


    $(".ListTable tr.ItemRowOdd, .ListTable tr.ItemRowEven ").click(function () {
        window.location = $(this).find("a").attr("href");
        return true;
    });
    $('.GetLowestPriceLink a').click(function (event) {
        event.stopPropagation()
    });


    // add current class to navigation
    $(function () {
        var path = location.pathname.substring(1);
        if (path) $('#nav a[href$="' + path + '"]').addClass('current');
    });

    $('.ItemRowEven a:contains("Used"), .ItemRowOdd a:contains("Used")').each(function () {
        var f = $(this).parent()
        f.html(f.html().replace("MSRP", "NADA Retail Price ")).find('.SavingsLabel, .SavingsText').hide();
    });
	
	var url = location.pathname;
 
  if((url.indexOf('Used') > -1) && (url.indexOf('inventory') > -1)) {
   	 var f = $('.PriceInfo')
        f.html(f.html().replace("MSRP", "NADA Retail Price ")).find('.SavingsLabel, .SavingsText').hide();
  };
});

var params = {
    wmode: "transparent"
};
//swfobject.embedSWF("/flash/ExploreUSA-Header.swf", "flash", "645", "144", "9.0.0", "/flash/expressInstall.swf", null, params, null);
swfobject.embedSWF("/flash/flash-header-top50.swf", "flash", "645", "144", "9.0.0", "/flash/expressInstall.swf", null, params, null);
