$(document).ready(function () {
if($.browser.mozilla){
$("body").addClass("loading");
$(window).load(function() {
$("body").removeClass("loading",500);//I'm using the jQuery UI animation here to fade content in, omit the ",500" if you aren't loading jqueryui.1.7.2.js.
});
};
$("ul.menu").supersubs({
        minWidth: 12,     
        maxWidth: 35,
        extraWidth: 1 
    }).superfish({
        delay: 100
    });
    $(".ListTable tr.ItemRowOdd, .ListTable tr.ItemRowEven ").click(function(){
    window.location=$(this).find("a").attr("href");return true;
	});
	$('.GetLowestPriceLink a').click(function(event){
	event.stopPropagation()
	});


setTimeout("$('h1 object').show()", 5000);

if ($('.StockNo:contains("Rentals")').length > 0) {
			$('#container').addClass("rentalDetail");
				}
		$('a.btnRentalApp').appendTo('.Pricing')
        $("a.ContactUs").bind("click", function() {
            var id = $(this).attr("rel");
            $("#InlineContactForm").slideDown( "slow", function() {
                $("#ICF_Frame").attr("src", "/detail-contact.aspx?InventoryId=" + id);
            });
			
            return false;
        });
		
		
		var id = $('a.ContactUs').attr("rel");
		$(".btnRentalApp").attr("href", "/contact-us-rentals.aspx?InventoryId=" + id);

        $("a.CloseInlineContactForm").bind("click", function() {
            $("#InlineContactForm").slideUp();
            return false;
        });
		

// add current class to navigation
 $(function(){
   var path = location.pathname.substring(1);
   if ( path )
     $('#nav a[href$="' + path + '"]').attr('class', 'current');
 });
 
});		
 
