/*
 * Url preview script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 //grossansicht for galerie
this.grossansichtPreview = function(){	
	/* CONFIG */
		
		xOffset = -10;
		yOffset = 350;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$("a.grossansicht").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='grossansicht'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>");								 
		$("#grossansicht")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX - yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		$("#grossansicht").remove();
    });	
	$("a.grossansicht").mousemove(function(e){
		$("#grossansicht")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX - yOffset) + "px");
	});			
};


// starting the script on page load
$(document).ready(function(){
	grossansichtPreview();
});

//funktion for navi links

$(document).ready(function(){
	
	$(".accordion h3:first").addClass("active");
	$(".accordion p:not(:first)").hide();

	$(".accordion h3").click(function(){
		$(this).next("p").slideToggle("slow")
		.siblings("p:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});

});

/*

jQuery(document).ready(function(){
	$('.accordion .head').click(function() {
		$(this).next().toggle('slow');
		return false;
	}).next().hide();
});

*/