
/*

	Cufon.replace('#layoutmitte .box h2', {
		
		color: '#ad5653',
		fontSize : '20px'
	});
	
	Cufon.replace('#layoutmitte .box.bericht h2', {
		
		color: '#ad5653',
		fontSize : '16px'
	});
	
	Cufon.replace('#linkespalte .box h2', {
		
		color: '#ffffff',
		fontSize : '16px'
	});
	
	Cufon.replace('h2.eintrag-title', {
		
		color: '#ad5653',
		fontSize : '14px',
		fontWeight : 'bold'
	});	
	
	Cufon.replace('.text h1', {
		
		color: '#ad5653',
		fontSize : '22px'
	});
	
	Cufon.replace('.text h2', {
		
		color: '#ad5653',
		fontSize : '16px'
	});

	Cufon.replace('h2.wikiTitle', {
		
		color: '#ad5653',
		fontSize : '16px'
	});
	
	*/
	
    $(function() {

    // Boxtoggle
    $('.reitercontent.hidden').hide();
	$('.erwsucheWrap').hide();

	
	$('.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;
		}
	});
	
	
	//Suche
	$('#kopfsuche a.suchbutton').click(function(event) {
	 
		 $('#kopfsuche .listeWrap').toggle('fast');
		 return false;
	 });
	
	//Suche
	$('.langtext').hide();
	
	$('a.langtextlink').click(function(event) {
	 
		 $('.langtext').show();
		 $('.kurztext').hide();
		 $('a.langtextlink').hide();
		 return false;
	 });
	
	$('a.toggleDropdown').click(function(event) {
	 
		 $(this).next('ul').toggle();
		 return false;
	});
	
	
	
		var rotatingCount = 0;
		var rotatingInterval;
		
		//fancy box für popup fenster
		$(".sliderimg").fancybox({
		  'cyclic' : true,
		  'overlayOpacity' : 0.6 ,
		  'overlayColor' : '#000',
		  'zoomSpeedIn': 300,
		  'zoomSpeedOut': 300,
		  'changeSpeed' : 300,
		  'changeFade' : 'fast',
		  'overlayShow': true,
		  'hideOnContentClick': true,
		  'titlePosition'  : 'inside',
		  'showNavArrows' : true,
		  'scrolling' : 'no',
		  'opacity' : true,
		  'transitionIn' : 'elastic',
		  'transitionOut' : 'elastic',
		  'onClosed' :function() {
			
			//rotatingCount = 0;
			//rotatingInterval = setInterval(fancyslide, 5000);
		  }
		}
		);
		
		if(tiefe == 0)
		{
		  rotatingInterval = setInterval(fancyslide, 5000);
		}
		
		$('#fancybox-right').click(function(){
			
			clearInterval(rotatingInterval);
		});
		
		$('#fancybox-left').click(function(){
			
			clearInterval(rotatingInterval);
		});
		
		function fancyslide()
		{
		  $.fancybox.next();
		  rotatingCount++;
		  
		  if (rotatingCount == 2)
		  {
			clearInterval(rotatingInterval);  
		  }
		}
	
    });
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
