//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   August 18, 2009, 9:42 pm with psd2css Online version 1.44

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.
  $("#contact_linkover").addClass("Wrap-5-4").hide();
  $("#contact_link").addClass("Wrap-5-4");
  $(".Wrap-5-4").hover(
    function(){ $("#contact_linkover").show(); $("#contact_link").hide(); },
    function(){ $("#contact_link").show(); $("#contact_linkover").hide(); });
  $("#contactme_linkover").addClass("Wrap-8-7").hide();
  $("#contactme_link").addClass("Wrap-8-7");
  $(".Wrap-8-7").hover(
    function(){ $("#contactme_linkover").show(); $("#contactme_link").hide(); },
    function(){ $("#contactme_link").show(); $("#contactme_linkover").hide(); });
  $("#about_linkover").addClass("Wrap-10-9").hide();
  $("#about_link").addClass("Wrap-10-9");
  $(".Wrap-10-9").hover(
    function(){ $("#about_linkover").show(); $("#about_link").hide(); },
    function(){ $("#about_link").show(); $("#about_linkover").hide(); });
  $("#portfolio_linkover").addClass("Wrap-12-11").hide();
  $("#portfolio_link").addClass("Wrap-12-11");
  $(".Wrap-12-11").hover(
    function(){ $("#portfolio_linkover").show(); $("#portfolio_link").hide(); },
    function(){ $("#portfolio_link").show(); $("#portfolio_linkover").hide(); });
  $("#photography_linkover").addClass("Wrap-15-14").hide();
  $("#photography_link").addClass("Wrap-15-14");
  $(".Wrap-15-14").hover(
    function(){ $("#photography_linkover").show(); $("#photography_link").hide(); },
    function(){ $("#photography_link").show(); $("#photography_linkover").hide(); });
  $("#webdesign_linkover").addClass("Wrap-17-16").hide();
  $("#webdesign_link").addClass("Wrap-17-16");
  $(".Wrap-17-16").hover(
    function(){ $("#webdesign_linkover").show(); $("#webdesign_link").hide(); },
    function(){ $("#webdesign_link").show(); $("#webdesign_linkover").hide(); });
  $("#services_linkover").addClass("Wrap-19-18").hide();
  $("#services_link").addClass("Wrap-19-18");
  $(".Wrap-19-18").hover(
    function(){ $("#services_linkover").show(); $("#services_link").hide(); },
    function(){ $("#services_link").show(); $("#services_linkover").hide(); });
  $("#socialnetworking_linkover").addClass("Wrap-22-21").hide();
  $("#socialnetworking_link").addClass("Wrap-22-21");
  $(".Wrap-22-21").hover(
    function(){ $("#socialnetworking_linkover").show(); $("#socialnetworking_link").hide(); },
    function(){ $("#socialnetworking_link").show(); $("#socialnetworking_linkover").hide(); });
  $("#flash_linkover").addClass("Wrap-24-23").hide();
  $("#flash_link").addClass("Wrap-24-23");
  $(".Wrap-24-23").hover(
    function(){ $("#flash_linkover").show(); $("#flash_link").hide(); },
    function(){ $("#flash_link").show(); $("#flash_linkover").hide(); });
  $("#database_linkover").addClass("Wrap-26-25").hide();
  $("#database_link").addClass("Wrap-26-25");
  $(".Wrap-26-25").hover(
    function(){ $("#database_linkover").show(); $("#database_link").hide(); },
    function(){ $("#database_link").show(); $("#database_linkover").hide(); });
  $("#brochure_linkover").addClass("Wrap-28-27").hide();
  $("#brochure_link").addClass("Wrap-28-27");
  $(".Wrap-28-27").hover(
    function(){ $("#brochure_linkover").show(); $("#brochure_link").hide(); },
    function(){ $("#brochure_link").show(); $("#brochure_linkover").hide(); });
  $("#home_linkover").addClass("Wrap-30-29").hide();
  $("#home_link").addClass("Wrap-30-29");
  $(".Wrap-30-29").hover(
    function(){ $("#home_linkover").show(); $("#home_link").hide(); },
    function(){ $("#home_link").show(); $("#home_linkover").hide(); });
  
  // This is code to handle the contact_menu menu
  $("#contact_menu").hide().addClass("allMenus");
  $("#contact_linkover").click(function(e){
    e.preventDefault();
    $(".allMenus").hide("slow");
    $("#contact_menu").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( '$("#contact_menu").hide("slow")', 4000 );
  });
  
  // This is code to handle the portfolio_menu menu
  $("#portfolio_menu").hide().addClass("allMenus");
  $("#portfolio_linkover").click(function(e){
    e.preventDefault();
    $(".allMenus").hide("slow");
    $("#portfolio_menu").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( '$("#portfolio_menu").hide("slow")', 4000 );
  });
  
  // This is code to handle the services_menu menu
  $("#services_menu").hide().addClass("allMenus");
  $("#services_linkover").click(function(e){
    e.preventDefault();
    $(".allMenus").hide("slow");
    $("#services_menu").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( '$("#services_menu").hide("slow")', 4000 );
  });

});

