$(document).ready(function(){
  $(".vmainmenu").bind("mouseenter", function(e) {
      $(".vsubmenu").fadeOut("fast");
      if ($("#s"+this.id).is(":hidden")) {
        ofs=$(this).offset();
        $("#s"+this.id).css("left", (ofs.left+145)+"px");
        $("#s"+this.id).css("top", (ofs.top)+"px");
        $("#s"+this.id).fadeIn("fast");
      }
      $(this).toggleClass("btnover");
  });
  $(".vmainmenu").bind("mouseleave", function(e) {
      $(this).removeClass("btnover");
  });
  $(".vsubmenu").bind("mouseleave", function(e) {
      $(this).fadeOut("normal");
  });
  $(".vsubmenuitem").bind("mouseenter", function(e) {
      $(this).toggleClass("btnover");
  });
  $(".vsubmenuitem").bind("mouseleave", function(e) {
      $(this).removeClass("btnover");
  });
});

  function photoDisplayShow(p) {
    $("#photoDisplayBgr").height($(document).height());
    $("#photoDisplayBgr").show();
    $("#photoDisplayPic").html('<a href="#" onClick="return photoDisplayHide();"><img src="'+p+'" border="5" style="border-color:#FFFFFF"></a>');
    $("#photoDisplayTbl").height($(window).height());
    $("#photoDisplayTbl").width($(document).width());
    topscroll=0+(window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop); $("#photoDisplayTbl").css("top",topscroll);
    $("#photoDisplayTbl").show();
    return false;
  }
  function photoDisplayHide() {
    $("#photoDisplayTbl").hide();
    $("#photoDisplayBgr").hide();
    return false;
  }


