//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   June 30, 2009, 4:11 am with psd2css Online version 1.41

var timerId;
$(document).ready(function(){

  // This is required for the PNG fix to work.
  if( $.fn.pngfix != null )
    $("img[@src$=png]").pngfix();

  // This is some javascript to stop IE from displaying the img alt attributes
  // when you mouse over imagess.  If you would like IE to display the alt attributes,
  // just comment out the following 4 lines.  Don't worry, if you leave this in 
  // place, your ALT attributes are still readable by the search engines.
  var tmpalt;
  $("img").hover( 
    function(){ tmpalt = $(this).attr( "alt" ); $(this).attr( "alt", "" ); },
    function(){ $(this).attr( "alt", tmpalt ); });

  // This is code to handle all of the _linkover events.  It works by
  // creating a special Wrap class, adding it to the link and linkover
  // divs of each link and linkover pair, and assigning a hover event to
  // that.
  $("#Layer-13").addClass("Wrap-7-13").hide();
  $("#Layer-7").addClass("Wrap-7-13");
  $(".Wrap-7-13").hover(
    function(){ $("#Layer-13").show(); $("#Layer-7").hide(); },
    function(){ $("#Layer-7").show(); $("#Layer-13").hide(); });
  $("#Layer-14").addClass("Wrap-8-14").hide();
  $("#Layer-8").addClass("Wrap-8-14");
  $(".Wrap-8-14").hover(
    function(){ $("#Layer-14").show(); $("#Layer-8").hide(); },
    function(){ $("#Layer-8").show(); $("#Layer-14").hide(); });
  $("#Layer-15").addClass("Wrap-9-15").hide();
  $("#Layer-9").addClass("Wrap-9-15");
  $(".Wrap-9-15").hover(
    function(){ $("#Layer-15").show(); $("#Layer-9").hide(); },
    function(){ $("#Layer-9").show(); $("#Layer-15").hide(); });
  $("#Layer-16").addClass("Wrap-10-16").hide();
  $("#Layer-10").addClass("Wrap-10-16");
  $(".Wrap-10-16").hover(
    function(){ $("#Layer-16").show(); $("#Layer-10").hide(); },
    function(){ $("#Layer-10").show(); $("#Layer-16").hide(); });
  $("#Layer-17").addClass("Wrap-11-17").hide();
  $("#Layer-11").addClass("Wrap-11-17");
  $(".Wrap-11-17").hover(
    function(){ $("#Layer-17").show(); $("#Layer-11").hide(); },
    function(){ $("#Layer-11").show(); $("#Layer-17").hide(); });
  $("#Layer-18").addClass("Wrap-12-18").hide();
  $("#Layer-12").addClass("Wrap-12-18");
  $(".Wrap-12-18").hover(
    function(){ $("#Layer-18").show(); $("#Layer-12").hide(); },
    function(){ $("#Layer-12").show(); $("#Layer-18").hide(); });
  $("#Layer-24").addClass("Wrap-20-24").hide();
  $("#Layer-20").addClass("Wrap-20-24");
  $(".Wrap-20-24").hover(
    function(){ $("#Layer-24").show(); $("#Layer-20").hide(); },
    function(){ $("#Layer-20").show(); $("#Layer-24").hide(); });
  $("#Layer-25").addClass("Wrap-21-25").hide();
  $("#Layer-21").addClass("Wrap-21-25");
  $(".Wrap-21-25").hover(
    function(){ $("#Layer-25").show(); $("#Layer-21").hide(); },
    function(){ $("#Layer-21").show(); $("#Layer-25").hide(); });
  $("#Layer-26").addClass("Wrap-22-26").hide();
  $("#Layer-22").addClass("Wrap-22-26");
  $(".Wrap-22-26").hover(
    function(){ $("#Layer-26").show(); $("#Layer-22").hide(); },
    function(){ $("#Layer-22").show(); $("#Layer-26").hide(); });
  $("#Layer-27").addClass("Wrap-23-27").hide();
  $("#Layer-23").addClass("Wrap-23-27");
  $(".Wrap-23-27").hover(
    function(){ $("#Layer-27").show(); $("#Layer-23").hide(); },
    function(){ $("#Layer-23").show(); $("#Layer-27").hide(); });
  
  // This is code to handle the galleries_hmenu menu
  $("#Layer-19").hide().addClass("allMenus");
  $("#Layer-13").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#Layer-19").show();
    // Remove the following 2 lines if you don't want this menu to dissappear
    // automatically.  Change how long the menu stays visible by changing
    // the 4000 to another number of milliseconds
    clearTimeout( timerId );
    timerId = setTimeout( '$("#Layer-19").hide()', 4000 );
  });

});
