//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   February 10, 2010, 10:18 pm with psd2css Online version 1.72

var timerId;
$(document).ready(function(){

  // This is required for the PNG fix to work.
  if (window.DD_belatedPNG)
    DD_belatedPNG.fix('.pngimg');

  // 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 the Pcg_menu_emptry_text menu
  $("#Layer-7").hide().addClass("allMenus");
  $("#Layer-10").click(function(e){
    e.preventDefault();
    $(".allMenus").fadeOut("slow");
    $("#Layer-7").fadeIn("slow");
    // 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
  
  });
  
  // This is code to handle the Wf_menu_emptry_text menu
  $("#Layer-9").hide().addClass("allMenus");
  $("#Layer-11").click(function(e){
    e.preventDefault();
    $(".allMenus").hide("slow");
    $("#Layer-9").show("slow");
    // 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
   
  });
  
  // This is code to handle the Co-op_menu_emptry_text menu
  $("#Layer-8").hide().addClass("allMenus");
  $("#Layer-12").click(function(e){
    e.preventDefault();
     $(".allMenus").fadeOut("slow");
    $("#Layer-8").fadeIn("slow");
    // 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
   
  });
  
  // This is code to handle the d_menu menu
  $("#Layer-17").hide().addClass("allMenus");
 
 $("#Layer-16").click(function(e){
    e.preventDefault();
    $(".allMenus").fadeOut("slow");
    $("#Layer-17").fadeIn("slow");
    // 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
    
  });


  /* Here we take care of any _close layers you have made */
  $("#Layer-23").click(function(){ $("#Layer-23").parent().hide("slow"); });
$("#Layer-22").click(function(e){
    e.preventDefault();
    $.post( "formmail.php", 
      { 
        email: $("#email").val(),
        message: $("#message").val(),
        recipients: "weallsorbet@trulyrawgourmet.com",
        subject: "TRG Sorbet Site Mail",
        env_report: "REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER"
      },
      function(data){ $("#Layer-19").fadeOut("slow"); 
    }); 
  });

});
