/* Script to enable Main Dropdown Navigation */
function mainmenu() {
    $(" #mainNav ul ").css({ display: "none" }); // Opera Fix
    $(" #mainNav li").hover(function() {
        $(this).find('ul:first').css({ visibility: "visible", display: "none" }).show(400);
    }, function() {
        $(this).find('ul:first').css({ visibility: "hidden" });
    });
}

$(document).ready(function() {
    mainmenu();
});

/* Script to enable hover function in IE6 */
$().ready(function() {
    $('.hoverable').hover(
      function() {
          $(this).addClass('hovered');     /* On hover add the class 'hovered' and apply the hovered styles */
      }, function() {
          $(this).removeClass('hovered');  /* On mouseout remove the class 'hovered' and reset the styles   */
      }
   );
});

/* Script to enable Cart Quick View */
$(document).ready
(
    function() {
        $(".cartViewBtn").hover
	    (
            function() {
                openCart();
            },
            function() {
                //Do nothing on hover out
            }
	    );
    }
);
function closeCart() {
    $("#cartContainer").animate({
        height: "0px"
    });
}
function openCart() {
    var cartContainerHeight = document.getElementById('tblCartContainer').offsetHeight;
    $("#cartContainer").animate({
        height: cartContainerHeight + "px"
    })
}

 

