$(document).ready(function(){
  
  /* --------------- Sidebar Hover Behavior ----------------- */

  $("#TB_Advocacy_Opportunities").mouseover(function(){
    if(GcurrentLanguage == "sp") $(this).attr("src", "/page/-/images/tbAdvocacyOppsHoverSP.jpg");
    else if(GcurrentLanguage == "jp") $(this).attr("src", "/page/-/images/tbAdvocacyOppsHoverJP.jpg");
    else $(this).attr("src", "/page/-/images/tbAdvocacyOpportunitiesHove.jpg");
  }).mouseout(function(){
    if(GcurrentLanguage == "sp") $(this).attr("src", "/page/-/images/tbAdvocacyOppsSP.jpg");
    else if(GcurrentLanguage == "jp") $(this).attr("src", "/page/-/images/tbAdvocacyOppsJP.jpg");
    else $(this).attr("src", "/page/-/images/tbAdvocacyOpportunities.jpg");
  });
  
  $("#Tell_A_Friend").mouseover(function(){
    if(GcurrentLanguage == "sp") $(this).attr("src", "/page/-/images/tellAFriendHoverSP.jpg");
    else if(GcurrentLanguage == "jp") $(this).attr("src", "/page/-/images/tellAFriendHoverJP.jpg");
    else $(this).attr("src", "http://www.action.org/page/-/images/tellAFriendHover.jpg");
  }).mouseout(function(){
    if(GcurrentLanguage == "sp") $(this).attr("src", "/page/-/images/tellAFriendSP.jpg");
    else if(GcurrentLanguage == "jp") $(this).attr("src", "/page/-/images/tellAFriendJP.jpg");
    else $(this).attr("src", "http://www.action.org/page/-/images/tellAFriend.jpg");
  });
  
  $("#Donate_Now").mouseover(function(){
    if(GcurrentLanguage == "sp") $(this).attr("src", "/page/-/images/donateNowHoverSP.jpg");
    else if(GcurrentLanguage == "jp") $(this).attr("src", "/page/-/images/donateNowHoverJP.jpg");
    else $(this).attr("src", "http://www.action.org/page/-/images/donateNowHover.jpg");
  }).mouseout(function(){
    if(GcurrentLanguage == "sp") $(this).attr("src", "/page/-/images/donateNowSP.jpg");
    else if(GcurrentLanguage == "jp") $(this).attr("src", "/page/-/images/donateNowJP.jpg");
    else $(this).attr("src", "http://www.action.org/page/-/images/donateNow.jpg");
  });
  
  $("#Our_Progress").mouseover(function(){
    $(this).attr("src", "http://www.action.org/page/-/images/ourProgressReportButtonHover.png");
  }).mouseout(function(){
    $(this).attr("src", "http://www.action.org/page/-/images/ourProgressReportButton.png");
  });
  
  /* --------------- Navigation Menu Interaction ----------------- */
  
  /*$("ul#Navigation_Menu ul.root").each(function() {
    $(this).removeClass("root");
    $(this).addClass("expandable");
    $(this).css({ opacity: 0, height: "1px" });
  });*/
  
  $("ul#Navigation_Menu li#Get_Educated_Menu").each(function() {
    $(this).hover(function() {$(this).children("ul:first").stop().css("display","block");}, function(){$(this).children("ul:first").stop().css("display","none");});
  });
  
  $("ul#Navigation_Menu li#Get_Involved_Menu").each(function() {
    $(this).hover(function() {$(this).children("ul:first").stop().css("display","block");}, function(){$(this).children("ul:first").stop().css("display","none");});
  });
  
  $("ul#Navigation_Menu li#Newsroom_Menu").each(function() {
    $(this).hover(function() {$(this).children("ul:first").stop().css("display","block");}, function(){$(this).children("ul:first").stop().css("display","none");});
  });
  
  /* --------------- Print Button Hover ----------------- */
  $("#print_link").hover(function() {$(this).find("img").attr("src","http://www.results.org/images/printer_friendly_hover.gif");}, function() {$(this).find("img").attr("src","http://www.results.org/images/printer_friendly.gif");});
  
});