    var menutimer = null;
    
    $(document).ready(function(){

      $(document).bind("contextmenu", function(e) {
        return false;
      });

      $("#product").addClass("tablesorter");
      $("#product tr:odd").addClass("odd");
      
      if ($("#product th").length == 3) {
        $("#product tr td:nth-child(3)").css('text-align', 'right').prepend('$');
      } else {
        $("#product tr th:nth-child(4), #product tr th:nth-child(5), #product tr th:nth-child(6)").css('text-align', 'right');
        $("#product tr td:nth-child(4), #product tr td:nth-child(5), #product tr td:nth-child(6)").css('text-align', 'right');
      }
      
    $("#product").tablesorter({headers: { 0: { sorter: false}, 1: { sorter: false}, 2: { sorter: false}, 3: { sorter: false}, 4: { sorter: false}, 5: { sorter: false}, 6: { sorter: false} } });
      
    $("#navigation > li > a.activateSubmenu").hover(
    function () {
      if (menutimer != null) {
        clearTimeout(menutimer);
        menutimer = null;
      }
      var menuindex = parseInt($("#navigation > li > a.activateSubmenu").index(this));
      $("#submenu-arrow").css("background", "transparent url(/images/layout/submenu-arrow.gif) no-repeat " + (menuindex * 97) + "px 0px");
      $("#submenu-box div:eq(1)").html(menuOptions[menuindex]);
      $("#submenu").show();
    },
    function () {
      menutimer = setTimeout("hideSubmenu()", 600);
    });
      
    $("#submenu, #submenu-box, #submenu-arrow").hover(
    function () {
      if (menutimer != null) {
        clearTimeout(menutimer);
        menutimer = null;
      }
    },
    function () {
      menutimer = setTimeout("hideSubmenu()", 350);
    });

    $("a.left-nav-button:eq(0)").hover(
    function () {
      $(this).css('background-image', 'url(/images/layout/left-nav-button-gallery-over.gif)').css('color','#FFF');
    },
    function () {
      $(this).css('background-image', 'url(/images/layout/left-nav-button-gallery.gif)').css('color','#009889');
    });

    $("a.left-nav-button:eq(1)").hover(
    function () {
      $(this).css('background-image', 'url(/images/layout/left-nav-button-acrobat-over.gif)').css('color','#FFF');
    },
    function () {
      $(this).css('background-image', 'url(/images/layout/left-nav-button-acrobat.gif)').css('color','#009889');
    });
    
    $("a.left-nav-mini-button:eq(0)").hover(
    function () {
      $(this).css('background-image', 'url(/images/layout/left-nav-gallery-over.gif)').css('color','#FFF');
    },
    function () {
      $(this).css('background-image', 'url(/images/layout/left-nav-gallery.gif)').css('color','#009889');
    });

    $("a.left-nav-mini-button:eq(1)").hover(
    function () {
      $(this).css('background-image', 'url(/images/layout/left-nav-form-over.gif)').css('color','#FFF');
    },
    function () {
      $(this).css('background-image', 'url(/images/layout/left-nav-form.gif)').css('color','#009889');
    });

    $(".openThumb").lightBox();
    $("a.print").click(function() { window.print(); return false; });
    
    $("#dropNav").change(function() { document.location = $("#dropNav option:selected").val(); });
  });
    
    function hideSubmenu() {
      $("#submenu").hide();
      menutimer = null;
    }
