//
// home.js
//

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

// ========================================================
// = This section removes the rollover effect for iphones =
// ========================================================
// var ua = navigator.userAgent;
//   if (ua.indexOf('iPhone') == -1) {

// ============================
// = Regular rollover effects =
// ============================
  $("#home-14").addClass("Wrap-15-14").hide();
  $("#home-15").addClass("Wrap-15-14");
  $(".Wrap-15-14").hover(
    function(){ $("#home-14").show(); $("#home-15").hide(); },
    function(){ $("#home-15").show(); $("#home-14").hide(); });
  $("#home-16").addClass("Wrap-17-16").hide();
  $("#home-17").addClass("Wrap-17-16");
  $(".Wrap-17-16").hover(
    function(){ $("#home-16").show(); $("#home-17").hide(); },
    function(){ $("#home-17").show(); $("#home-16").hide(); });
  $("#home-18").addClass("Wrap-19-18").hide();
  $("#home-19").addClass("Wrap-19-18");
  $(".Wrap-19-18").hover(
    function(){ $("#home-18").show(); $("#home-19").hide(); },
    function(){ $("#home-19").show(); $("#home-18").hide(); });
  $("#home-20").addClass("Wrap-21-20").hide();
  $("#home-21").addClass("Wrap-21-20");
  $(".Wrap-21-20").hover(
    function(){ $("#home-20").show(); $("#home-21").hide(); },
    function(){ $("#home-21").show(); $("#home-20").hide(); });
  $("#home-23").addClass("Wrap-22-23").hide();
  $("#home-22").addClass("Wrap-22-23");
  $(".Wrap-22-23").hover(
    function(){ $("#home-23").show(); $("#home-22").hide(); },
    function(){ $("#home-22").show(); $("#home-23").hide(); });

// }
});

