
  $(function() {

    // Boxtoggle
    $('.reitercontent.hidden').hide();
	$('.erwsucheWrap').hide();
	
	if (window.location.hash != ""){
		
		var hash_str = window.location.hash;
		var hashid = hash_str.replace(/#/g, "");
		var content = hashid;
		
		$('.reitercontent').hide();
		$('.reitercontent').css('reitercontent');
		$('.reiter').attr('class', 'reiter');
		
		$('#'+ hashid +'Reiter').attr('class', 'reiter ac');
		$('#'+content).show();
		
		//zum reiter springen
		//window.location.hash = hashid +'Reiter';
	}
	
	$('.reiter').click(function() {
		
		
		var content = $(this).attr("title");
		
		$('.reitercontent').hide();
		$('.reitercontent').css('reitercontent');
		$('.reiter').attr('class', 'reiter');
		
		$(this).attr('class', 'reiter ac');
		
		$('#'+content).show();
		
		return false;
	});
	
	
	$('.searchlink').click(function() {
		
		$('.erwsucheWrap').show('slow');
		$(this).hide();
		
		return false;
	});	
	
	var mapcheck = false;
	
	$('#Lagelink').click(function() {
		
		if (!mapcheck){
			
			var adresse = $('#hotelmap').html();
			loadUserMap(adresse);
			mapcheck = true;
		}
	});

  });
