  // Show country selection on click  function changeCountry() {    if ($("#change_country").hasClass("active")) {      $("#change_country").removeClass("active");      $("#division_choice").hide("medium");    } else {      $("#change_country").addClass("active");      $("#division_choice").show("medium");    }  }$(document).ready(function() {  // Toggle default search phrase in quicksearch form  $("#quicksearch input:first").attr("value", enter_searchphrase).focus(function(){    if ($(this).attr("value") == enter_searchphrase) {        $(this).attr("value", "");    }  }).blur(function() {      if (!$(this).attr("value")) {        $(this).attr("value", enter_searchphrase);      }  });    /* Safari Fix */  /*if(window.devicePixelRatio){    $("#change_country a:first").click(function() {      if ($("#change_country").hasClass("active")) {        $("#change_country").removeClass("active");        $("#division_choice").hide("medium");      } else {        $("#change_country").addClass("active");        $("#division_choice").show("medium");      }    });  }*/  // Hide country selection  $("html").click(function(event) {    var target = $(event.target);    //if (!target.is("#division_choice") && !target.parents().is('#division_choice')) {    if (!target.is("#change_country") && !target.parents().is('#change_country')) {      $("#change_country").removeClass("active");      $("#division_choice").hide("medium");    }  });  // Show subnav on mouseover  $("#nav li").hover(    function() {      $(this).addClass("hover"); // IE6 Bugfix for mouse over subnav      $(this).children("ul").show();    },    function() {      $(this).removeClass("hover");      $(this).children("ul").hide();    }  );    // Ensure Image-Mouseover stays active when over subnav  if (!$("#nav").hasClass("nav_text")) {    $("#nav li ul").hover(      function() {        over($(this).parent().find("img:first").attr("id"));      },      function() {        out($(this).parent().find("img:first").attr("id"));      }    );  }  //---------------------- Arbeiten bei FOERSTER-Page ----------------------------  // Show popup on mouseover headline  $(".headline-popup-textbox h2").click(function(){            if($(this).next(".underlinedHeadline").hasClass("active")){        $(this).next(".underlinedHeadline").hide("fast");        $(this).next(".underlinedHeadline").removeClass("active");      }else {        $(this).next(".underlinedHeadline").show("fast");        $(this).next(".underlinedHeadline").addClass("active");      }      $(".popup-textbox").children("span").hide("fast");      $(".popup-textbox").children("span").removeClass("active");      $(".popup-textbox-item").removeClass("active");    }  );  // Show/hide popup on click  $(".popup-subtitle").click(function(){      $(".headline-popup-textbox").children(".underlinedHeadline").hide("fast");      if($(this).next(".popup-textbox").children("span").hasClass("active")) {        $(".popup-textbox").children("span").removeClass("active");        $(this).next(".popup-textbox").children("span").hide("fast");        $(this).parent(".popup-textbox-item").removeClass("active");      }else {        $(".popup-textbox").children("span").hide("fast");        $(".popup-textbox").children("span").removeClass("active");        $(".popup-textbox-item").removeClass("active");        $(this).next(".popup-textbox").children("span").show("fast");        $(this).next(".popup-textbox").children("span").addClass("active");        $(this).parent(".popup-textbox-item").addClass("active");      }      $(".underlinedHeadline").removeClass("active");    }  );  // List-Hover-Effect  $(".popup-textbox-item").hover(function(){    $(this).addClass("hover");  },function(){    $(this).removeClass("hover");  });//------------------------------------------------------------------------------});
