//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   June 17, 2009, 2:16 pm with psd2css Online version 1.40

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 ); });

  // Some iPhone support
  var ua = navigator.userAgent;
  if (ua.indexOf("iPhone") > 0) {
    if ($.iPhone) {
      $.iPhone.hideURLbar(1);
      $.iPhone.orientchange(function(){ $.iPhone.hideURLbar(1); });
    }
    $('head').append( '<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>' );
  }

  
  // This is code to handle the m2_menu menu
  $("#Layer-7").hide().addClass("allMenus");
  $("#Layer-8").click(function(e){
    e.preventDefault();
    $(".allMenus").hide("slow");
    $("#Layer-7").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
    clearTimeout( timerId );
    timerId = setTimeout( '$("#Layer-7").hide("slow")', 4000 );
  });

});

