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

});

