// Umschalter Anfrage
function schalter(vari) {
	if (vari=='n') {
	document.getElementById('reservierungsanfrage').style.display = 'none';
	document.getElementById('newsletter').style.display = 'inline';
	}
	if (vari=='a') {
	document.getElementById('reservierungsanfrage').style.display = 'inline';
	document.getElementById('newsletter').style.display = 'none';
	}
}


// LIGHTBOX
    $(document).ready(function() {
        $("a[rel='external']").click(function(event){
            window.open($(this).attr("href"));
            event.preventDefault();
        });
       
        $('a[@rel*=lightbox]').lightBox();
        
    });
    
// HOVER FUER MENU
	  $(document).ready(function(){
	  
			$("#nav-one li").hover(
			
				function(e){ 
				    $("ul", this).hide().fadeIn("slow");
				 }, 
				function() {  } 
			);
	  	if (document.all) {
				$("#nav-one li").hoverClass ("sfHover");
			}
	  });
	  
		$.fn.hoverClass = function(c) {
			return this.each(function(){
				$(this).hover( 
					function() { $(this).addClass(c);  },
					function() { $(this).removeClass(c); }
				);
			});
		};	  
// SLIDER FÜR PREISE

$(document).ready(function(){
	
	$(".accordion h5:first").addClass("true");
	$(".accordion div:not(:first)").hide();

	$(".accordion h5").click(function(){
		$(this).next("div").slideToggle("slow")
		.siblings("div:visible").slideUp("slow");
		$(this).toggleClass("true");
		$(this).siblings("h5").removeClass("true");
	});
/*$(document).ready(function(){
	
	$(".accordion h5:first").addClass("active");
	$(".accordion div:not(:first)").hide();

	$(".accordion h5").click(function(){
		$(this).next("div").slideToggle("slow")
		.siblings("div:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h5").removeClass("active");
	});*/
});



