function Hinweis() {
  return;
}
function displayGeolocationPopup(){
  alert("t");
      $('body').addClass('fixed');
      if($(document).height() > $(window).height()){
        $('body').css('padding-right','17px');
      }
      if(checkBrowserName('opera')) $('body').addClass('fixed_opera');
      $('.overlay').css('opacity','0').removeClass('hidden').animate({
        opacity: 0.6
      }, 500, function() {
        //$('.popuplayer').removeClass('hidden'); //direkte Einblendung ohne fading
        $('.popuplayer').css('opacity','0').removeClass('hidden').animate({
          opacity: 1
        }, 250, function() {
          // Animation complete.
        });
      })
    }

    function hideGeolocationPopup(){
      $('.popuplayer,.overlay').addClass('hidden');
      $('body').removeAttr('class').removeAttr('style');
    }

    function checkBrowserName(name){
      var agent = navigator.userAgent.toLowerCase();
      if (agent.indexOf(name.toLowerCase())>-1) {
        return true;
      }
      return false;
    }

    function getUrlVar(name)
    {
        var vars = [], hash;
        var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
        for(var i = 0; i < hashes.length; i++)
        {
            hash = hashes[i].split('=');
            vars.push(hash[0]);
            //vars[hash[0]] = hash[1];
            if(hash[0]==name) return hash[1];
        }
        return false;
    }

    $(document).ready(function()
    {
    return;
      $('form#countrychoise select option').click(function(){
        if($(this).attr('value')!=""){
          $('form#countrychoise').attr('action','http://www.mercateo.'+$(this).attr('value')).submit();
        }
      });

      $('map#europe > area').mouseover(function(){
        $('#mapimage').addClass($(this).attr('id')+'_hover');
      }).mouseout(function(){
        $('#mapimage').removeClass($(this).attr('id')+'_hover');
      });

      var positionbalance = 0;
      var titleboxwidth = 0;
      var scrollbarwidth = 21;
      $('map#europe > area').mouseout(function(){
        $('#mapimage').removeClass($(this).attr('id')+'_hover');
        $('#tooltip').css('display','none');
        $('#tooltip').text('');
      }).mouseover(function(event){
        $('#mapimage').addClass($(this).attr('id')+'_hover');
        var title = $(this).attr('title');
        $('#tooltip').html('<table cellpadding=0 cellspacing=0 border=0><tr><td style="padding-top:4px;"><img src="flag_'+$(this).attr('id')+'.gif" alt="" />&nbsp;&nbsp;</td><td class="fs_11 fw_b">'+$(this).attr('alt')+'</td></tr></table>');
        titleboxwidth = $('#tooltip').outerWidth();
        $('#tooltip').css('left',event.pageX-positionbalance);
        $('#tooltip').css('top',event.pageY+21);
        $('#tooltip').fadeIn('fast', function(){});
      }).mousemove(function(event){
        $('#tooltip').css('left',event.pageX-positionbalance);
        $('#tooltip').css('top',event.pageY+21);
      });

      $('#europe_close').click(function(){
        hideGeolocationPopup();
      });
      $('#europe_show').click(function(){
        displayGeolocationPopup();
      });
      /*
      if (getUrlVar("popupdelay") != false){
        setTimeout("displayGeolocationPopup()",getUrlVar("popupdelay"));
      }else{
        displayGeolocationPopup();
      }
      */
    });

