$(function() {

  $("#country-selection").change(function(){
    var country=$(this).attr("value");
    window.location.href=country;
    return false;
  });
  $(".jqa_countryLink, .jqa_cityLink").live("click", function(){
      var me = $(this);

      $("#info-body").empty();
      $(".jqa_countryLink, .jqa_cityLink").each(function(){
          if ($(this).hasClass("on") && $(this) != me) {
              $(this).removeClass("on");
          }
      });
      me.addClass("on");

      if ($(this).attr("href") != "#") {
        $("#info-body").load(encodeURI($(this).attr("href")), function(data){
              $('#fd-gallery').cycle({
                  prev:   '#prev',
                  next:   '#next',
                  timeout: 8000,
                  speed:   1000
              });

              $(".displaynone").next().hide();

              $(".content-show a").click(function() {
                  $('.element h3').removeClass("displaynone");
                  $('.element p').show(200);
                  return false;
              });

              $(".element h3").click(function() {
                  $(this).next().toggle(100);
                  $(this).toggleClass("displaynone");
                  return false;
              });

          });
      }
      return false;
  });

});

