var HoverActive = true;

function InitHover()
{
  $("body").removeClass("noscript");
  
  $("#navigation1 a").each(function() {
    $(this).hover(function() {
      if (!($(this).hasClass("selected"))) 
        $(this).animate({ backgroundColor: "#825349", color: "white" }, 300); 
    }, function() { 
      if (!($(this).hasClass("selected")))
        $(this).animate({ backgroundColor: "#5E2735", color: "#C8C0AE" }, 800);
    });
  });
  
  $(".language-selector .active").fadeTo("fast", 0.01);
  $(".language-selector").each(function() {
    $(this).hover(function() {
      $(this).find(".active").fadeTo("fast", 1);
    }, function () {
      $(this).find(".active").fadeTo("slow", 0.01);
    });
  });
}

function InitSeriesHover()
{
  // this must be in InitSeriesScroll (series.js) when another series is added!! 
  $("#scrolling-container").css("overflow-x", "hidden");

  $(".item").each(function() {
    $(this).hover(function() {
      $(this).find(".item-image img").fadeTo(300, 1);
      $(this).find(".item-text").animate({ letterSpacing: "0.7em" }, 500);
    }, function() {
      $(this).find(".item-image img").fadeTo(500, 0.9);
      $(this).find(".item-text").animate({ letterSpacing: "0.3em" }, 500);
    });
  });
  
  $("#backbutton").each(function() {
    $(this).hover(function() {
      $(this).fadeTo(500, 1);
    }, function() {
      $(this).fadeTo(700, 0.7);
    });
  });
}

function InitIndexHover()
{
  $("#side_content a").each(function() {
    $(this).hover(function() {
      $(this).animate({ marginLeft: "12pt" }, 800);
    }, function() {
      $(this).animate({ marginLeft: "0" }, 1200);
    });
  });
}