//
// java.js
//
//   This is where all the javascript required by your design is written.
//

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-32").addClass("Wrap-31-32").hide();
  $("#contact-31").addClass("Wrap-31-32");
  $(".Wrap-31-32").hover(
    function(){ $("#contact-32").show(); $("#contact-31").hide(); },
    function(){ $("#contact-31").show(); $("#contact-32").hide(); });
  $("#contact-34").addClass("Wrap-33-34").hide();
  $("#contact-33").addClass("Wrap-33-34");
  $(".Wrap-33-34").hover(
    function(){ $("#contact-34").show(); $("#contact-33").hide(); },
    function(){ $("#contact-33").show(); $("#contact-34").hide(); });
  $("#contact-36").addClass("Wrap-35-36").hide();
  $("#contact-35").addClass("Wrap-35-36");
  $(".Wrap-35-36").hover(
    function(){ $("#contact-36").show(); $("#contact-35").hide(); },
    function(){ $("#contact-35").show(); $("#contact-36").hide(); });
  $("#contact-40").addClass("Wrap-39-40").hide();
  $("#contact-39").addClass("Wrap-39-40");
  $(".Wrap-39-40").hover(
    function(){ $("#contact-40").show(); $("#contact-39").hide(); },
    function(){ $("#contact-39").show(); $("#contact-40").hide(); });
  $("#contact-42").addClass("Wrap-41-42").hide();
  $("#contact-41").addClass("Wrap-41-42");
  $(".Wrap-41-42").hover(
    function(){ $("#contact-42").show(); $("#contact-41").hide(); },
    function(){ $("#contact-41").show(); $("#contact-42").hide(); });
  $("#contact-44").addClass("Wrap-43-44").hide();
  $("#contact-43").addClass("Wrap-43-44");
  $(".Wrap-43-44").hover(
    function(){ $("#contact-44").show(); $("#contact-43").hide(); },
    function(){ $("#contact-43").show(); $("#contact-44").hide(); });
  $("#contact-46").addClass("Wrap-45-46").hide();
  $("#contact-45").addClass("Wrap-45-46");
  $(".Wrap-45-46").hover(
    function(){ $("#contact-46").show(); $("#contact-45").hide(); },
    function(){ $("#contact-45").show(); $("#contact-46").hide(); });
  $("#contact-48").addClass("Wrap-47-48").hide();
  $("#contact-47").addClass("Wrap-47-48");
  $(".Wrap-47-48").hover(
    function(){ $("#contact-48").show(); $("#contact-47").hide(); },
    function(){ $("#contact-47").show(); $("#contact-48").hide(); });
  
  // This is code to handle the contact_hmenu menu
  $("#contact-29").hide().addClass("allMenus");
  $("#contact-30").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#contact-29").show();
    // 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-29").hide()', 2500 );
  });
  
  // This is code to handle the ourwork_hmenu menu
  $("#contact-38").hide().addClass("allMenus");
  $("#contact-37").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#contact-38").show();
    // 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-38").hide()', 2500 );
  });

});
