$(document).ready(function() {
      $('ul#deutschlandkarte div.info').addClass('hiddeninfo');
      $('ul#deutschlandkarte div.info').removeClass('info');
      $('ul#deutschlandkarte a').click(function() {

        $('div.geoobjekt').hide();
        
        var geoobject = $(this).attr('class');
        
        $('div.geoobjekt').filter(function (index) {
                  return $(this).hasClass(geoobject);
                }).show();

        return false;
      });
      /* $('div.immoobjekt div.padding').hide();
      $('div.geoobjekt div.immoobjekt:first-child div.padding').show();
      $('div.geoobjekt div.immoobjekt:first-child').addClass('active'); */
      
      $('div.immoobjekt h3').css('cursor', 'pointer');
      $('div.immoobjekt h3').hover(
        function() {
          $(this).css('text-decoration', 'underline');
        }, 
        function () {
          $(this).css('text-decoration', 'none');
        }
      );

      $('div.immoobjekt h3').click(function() {
        $(this).parent().parent().children().children('.padding').slideUp("slow");
        $(this).parent().children('.padding').slideDown("slow");
        $(this).parent().parent().children('.immoobjekt').removeClass('active');
        $(this).parent().addClass('active');

        return false;
      });

    });
