//
// psd2css.js
//
//   This is where all the javascript required by your design is written.
//
//   Originally generated at http://psd2cssonline.com 
//   February 6, 2010, 1:26 am with psd2css Online version 1.72

$(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 ); });

  // 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 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-35").addClass("Wrap-36-35").hide();
  $("#Layer-36").addClass("Wrap-36-35");
  $(".Wrap-36-35").hover(
    function(){ $("#Layer-35").show(); $("#Layer-36").hide(); },
    function(){ $("#Layer-36").show(); $("#Layer-35").hide(); });
  $("#Layer-39").addClass("Wrap-40-39").hide();
  $("#Layer-40").addClass("Wrap-40-39");
  $(".Wrap-40-39").hover(
    function(){ $("#Layer-39").show(); $("#Layer-40").hide(); },
    function(){ $("#Layer-40").show(); $("#Layer-39").hide(); });
  $("#Layer-41").addClass("Wrap-42-41").hide();
  $("#Layer-42").addClass("Wrap-42-41");
  $(".Wrap-42-41").hover(
    function(){ $("#Layer-41").show(); $("#Layer-42").hide(); },
    function(){ $("#Layer-42").show(); $("#Layer-41").hide(); });
  $("#Layer-43").addClass("Wrap-44-43").hide();
  $("#Layer-44").addClass("Wrap-44-43");
  $(".Wrap-44-43").hover(
    function(){ $("#Layer-43").show(); $("#Layer-44").hide(); },
    function(){ $("#Layer-44").show(); $("#Layer-43").hide(); });
  $("#Layer-45").addClass("Wrap-46-45").hide();
  $("#Layer-46").addClass("Wrap-46-45");
  $(".Wrap-46-45").hover(
    function(){ $("#Layer-45").show(); $("#Layer-46").hide(); },
    function(){ $("#Layer-46").show(); $("#Layer-45").hide(); });
  $("#Layer-47").addClass("Wrap-48-47").hide();
  $("#Layer-48").addClass("Wrap-48-47");
  $(".Wrap-48-47").hover(
    function(){ $("#Layer-47").show(); $("#Layer-48").hide(); },
    function(){ $("#Layer-48").show(); $("#Layer-47").hide(); });
  $("#Layer-49").addClass("Wrap-50-49").hide();
  $("#Layer-50").addClass("Wrap-50-49");
  $(".Wrap-50-49").hover(
    function(){ $("#Layer-49").show(); $("#Layer-50").hide(); },
    function(){ $("#Layer-50").show(); $("#Layer-49").hide(); });
  $("#Layer-51").addClass("Wrap-52-51").hide();
  $("#Layer-52").addClass("Wrap-52-51");
  $(".Wrap-52-51").hover(
    function(){ $("#Layer-51").show(); $("#Layer-52").hide(); },
    function(){ $("#Layer-52").show(); $("#Layer-51").hide(); });
  $("#Layer-53").addClass("Wrap-54-53").hide();
  $("#Layer-54").addClass("Wrap-54-53");
  $(".Wrap-54-53").hover(
    function(){ $("#Layer-53").show(); $("#Layer-54").hide(); },
    function(){ $("#Layer-54").show(); $("#Layer-53").hide(); });
  $("#Layer-55").addClass("Wrap-56-55").hide();
  $("#Layer-56").addClass("Wrap-56-55");
  $(".Wrap-56-55").hover(
    function(){ $("#Layer-55").show(); $("#Layer-56").hide(); },
    function(){ $("#Layer-56").show(); $("#Layer-55").hide(); });
  $("#Layer-57").addClass("Wrap-58-57").hide();
  $("#Layer-58").addClass("Wrap-58-57");
  $(".Wrap-58-57").hover(
    function(){ $("#Layer-57").show(); $("#Layer-58").hide(); },
    function(){ $("#Layer-58").show(); $("#Layer-57").hide(); });


  /* This is where we hook up the Facebook Share button to Facebook  */
  $("#Layer-57").css('cursor', 'pointer');
  $("#Layer-57").click(function(){ FB.share(); return false; });
  $("#Layer-58").css('cursor', 'pointer');
  $("#Layer-58").click(function(){ FB.share(); return false; });

});
