//
// 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.
  $("#frontpage-7").addClass("Wrap-6-7").hide();
  $("#frontpage-6").addClass("Wrap-6-7");
  $(".Wrap-6-7").hover(
    function(){ $("#frontpage-7").show(); $("#frontpage-6").hide(); },
    function(){ $("#frontpage-6").show(); $("#frontpage-7").hide(); });
  $("#frontpage-21").addClass("Wrap-20-21").hide();
  $("#frontpage-20").addClass("Wrap-20-21");
  $(".Wrap-20-21").hover(
    function(){ $("#frontpage-21").show(); $("#frontpage-20").hide(); },
    function(){ $("#frontpage-20").show(); $("#frontpage-21").hide(); });
  $("#frontpage-35").addClass("Wrap-34-35").hide();
  $("#frontpage-34").addClass("Wrap-34-35");
  $(".Wrap-34-35").hover(
    function(){ $("#frontpage-35").show(); $("#frontpage-34").hide(); },
    function(){ $("#frontpage-34").show(); $("#frontpage-35").hide(); });
  $("#frontpage-53").addClass("Wrap-52-53").hide();
  $("#frontpage-52").addClass("Wrap-52-53");
  $(".Wrap-52-53").hover(
    function(){ $("#frontpage-53").show(); $("#frontpage-52").hide(); },
    function(){ $("#frontpage-52").show(); $("#frontpage-53").hide(); });
  $("#frontpage-55").addClass("Wrap-54-55").hide();
  $("#frontpage-54").addClass("Wrap-54-55");
  $(".Wrap-54-55").hover(
    function(){ $("#frontpage-55").show(); $("#frontpage-54").hide(); },
    function(){ $("#frontpage-54").show(); $("#frontpage-55").hide(); });
  $("#frontpage-57").addClass("Wrap-56-57").hide();
  $("#frontpage-56").addClass("Wrap-56-57");
  $(".Wrap-56-57").hover(
    function(){ $("#frontpage-57").show(); $("#frontpage-56").hide(); },
    function(){ $("#frontpage-56").show(); $("#frontpage-57").hide(); });
  $("#frontpage-61").addClass("Wrap-60-61").hide();
  $("#frontpage-60").addClass("Wrap-60-61");
  $(".Wrap-60-61").hover(
    function(){ $("#frontpage-61").show(); $("#frontpage-60").hide(); },
    function(){ $("#frontpage-60").show(); $("#frontpage-61").hide(); });
  $("#frontpage-63").addClass("Wrap-62-63").hide();
  $("#frontpage-62").addClass("Wrap-62-63");
  $(".Wrap-62-63").hover(
    function(){ $("#frontpage-63").show(); $("#frontpage-62").hide(); },
    function(){ $("#frontpage-62").show(); $("#frontpage-63").hide(); });
  $("#frontpage-65").addClass("Wrap-64-65").hide();
  $("#frontpage-64").addClass("Wrap-64-65");
  $(".Wrap-64-65").hover(
    function(){ $("#frontpage-65").show(); $("#frontpage-64").hide(); },
    function(){ $("#frontpage-64").show(); $("#frontpage-65").hide(); });
  $("#frontpage-67").addClass("Wrap-66-67").hide();
  $("#frontpage-66").addClass("Wrap-66-67");
  $(".Wrap-66-67").hover(
    function(){ $("#frontpage-67").show(); $("#frontpage-66").hide(); },
    function(){ $("#frontpage-66").show(); $("#frontpage-67").hide(); });
  $("#frontpage-69").addClass("Wrap-68-69").hide();
  $("#frontpage-68").addClass("Wrap-68-69");
  $(".Wrap-68-69").hover(
    function(){ $("#frontpage-69").show(); $("#frontpage-68").hide(); },
    function(){ $("#frontpage-68").show(); $("#frontpage-69").hide(); });
  $("#frontpage-72").addClass("Wrap-71-72").hide();
  $("#frontpage-71").addClass("Wrap-71-72");
  $(".Wrap-71-72").hover(
    function(){ $("#frontpage-72").show(); $("#frontpage-71").hide(); },
    function(){ $("#frontpage-71").show(); $("#frontpage-72").hide(); });
  
  // This is code to handle the contact_hmenu menu
  $("#frontpage-50").hide().addClass("allMenus");
  $("#frontpage-51").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#frontpage-50").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( '$("#frontpage-50").hide()', 2000 );
  });
  
  // This is code to handle the ourwork_hmenu menu
  $("#frontpage-59").hide().addClass("allMenus");
  $("#frontpage-58").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#frontpage-59").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( '$("#frontpage-59").hide()', 2000 );
  });

});
