//
// 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.
  $("#featurefilm-48").addClass("Wrap-47-48").hide();
  $("#featurefilm-47").addClass("Wrap-47-48");
  $(".Wrap-47-48").hover(
    function(){ $("#featurefilm-48").show(); $("#featurefilm-47").hide(); },
    function(){ $("#featurefilm-47").show(); $("#featurefilm-48").hide(); });
  $("#featurefilm-50").addClass("Wrap-49-50").hide();
  $("#featurefilm-49").addClass("Wrap-49-50");
  $(".Wrap-49-50").hover(
    function(){ $("#featurefilm-50").show(); $("#featurefilm-49").hide(); },
    function(){ $("#featurefilm-49").show(); $("#featurefilm-50").hide(); });
  $("#featurefilm-52").addClass("Wrap-51-52").hide();
  $("#featurefilm-51").addClass("Wrap-51-52");
  $(".Wrap-51-52").hover(
    function(){ $("#featurefilm-52").show(); $("#featurefilm-51").hide(); },
    function(){ $("#featurefilm-51").show(); $("#featurefilm-52").hide(); });
  $("#featurefilm-56").addClass("Wrap-55-56").hide();
  $("#featurefilm-55").addClass("Wrap-55-56");
  $(".Wrap-55-56").hover(
    function(){ $("#featurefilm-56").show(); $("#featurefilm-55").hide(); },
    function(){ $("#featurefilm-55").show(); $("#featurefilm-56").hide(); });
  $("#featurefilm-58").addClass("Wrap-57-58").hide();
  $("#featurefilm-57").addClass("Wrap-57-58");
  $(".Wrap-57-58").hover(
    function(){ $("#featurefilm-58").show(); $("#featurefilm-57").hide(); },
    function(){ $("#featurefilm-57").show(); $("#featurefilm-58").hide(); });
  $("#featurefilm-60").addClass("Wrap-59-60").hide();
  $("#featurefilm-59").addClass("Wrap-59-60");
  $(".Wrap-59-60").hover(
    function(){ $("#featurefilm-60").show(); $("#featurefilm-59").hide(); },
    function(){ $("#featurefilm-59").show(); $("#featurefilm-60").hide(); });
  $("#featurefilm-62").addClass("Wrap-61-62").hide();
  $("#featurefilm-61").addClass("Wrap-61-62");
  $(".Wrap-61-62").hover(
    function(){ $("#featurefilm-62").show(); $("#featurefilm-61").hide(); },
    function(){ $("#featurefilm-61").show(); $("#featurefilm-62").hide(); });
  $("#featurefilm-64").addClass("Wrap-63-64").hide();
  $("#featurefilm-63").addClass("Wrap-63-64");
  $(".Wrap-63-64").hover(
    function(){ $("#featurefilm-64").show(); $("#featurefilm-63").hide(); },
    function(){ $("#featurefilm-63").show(); $("#featurefilm-64").hide(); });
  
  // This is code to handle the contact_hmenu menu
  $("#featurefilm-45").hide().addClass("allMenus");
  $("#featurefilm-46").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#featurefilm-45").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( '$("#featurefilm-45").hide()', 2500 );
  });
  
  // This is code to handle the ourwork_hmenu menu
  $("#featurefilm-54").hide().addClass("allMenus");
  $("#featurefilm-53").mouseover(function(e){
    e.preventDefault();
    $(".allMenus").hide();
    $("#featurefilm-54").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( '$("#featurefilm-54").hide()', 2500 );
  });

});

