//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   October 30, 2009, 7:31 pm with psd2css Online version 1.56


$(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.

  $("#home_on").addClass("Wrap-Home").hide();
  $("#home").addClass("Wrap-Home");
  $(".Wrap-Home").hover(
    function(){ $("#home_on").show(); $("#home").hide(); },
    function(){ $("#home").show(); $("#home_on").hide(); });

  $("#who_on").addClass("Wrap-Who").hide();
  $("#who").addClass("Wrap-Who");
  $(".Wrap-Who").hover(
    function(){ $("#who_on").show(); $("#who").hide(); },
    function(){ $("#who").show(); $("#who_on").hide(); });

  $("#films_on").addClass("Wrap-Films").hide();
  $("#films").addClass("Wrap-Films");
  $(".Wrap-Films").hover(
    function(){ $("#films_on").show(); $("#films").hide(); },
    function(){ $("#films").show(); $("#films_on").hide(); });

  $("#contact_on").addClass("Wrap-Contact").hide();
  $("#contact").addClass("Wrap-Contact");
  $(".Wrap-Contact").hover(
    function(){ $("#contact_on").show(); $("#contact").hide(); },
    function(){ $("#contact").show(); $("#contact_on").hide(); });



});

