$(document).ready(function() {

	/* FANCY BOX */

	$(".fancybox").fancybox({
	'overlayOpacity'	:	0.7,
	'zoomOpacity'		:	true,
	'zoomSpeedChang'	:	500
	});
	
	$(".fancymap").fancybox({
	'overlayOpacity'	:	0.7,
	'zoomOpacity'		:	true,
	'zoomSpeedChang'	:	500,
	'frameWidth'		:	640,
	'frameHeight'		:	480
	});

	/* QTIP */

	$(".qtip").qtip({
	content: { // By suppling no content attribute, the library uses each elements title attribute by default
		text: false // Use each elements title attribute
		},
	style: { 
		// width: 200,
		padding: 2,
		background: '#333333',
		color: '#fafafa',
		fontSize: 14,
		textAlign: 'center',
		border: {
			width: 10,
			radius: 10,
			color: '#333333'
		},
    tip: 'bottomLeft', //Position Eggli an Bubble
    name: 'cream'
	},
	position: {
		corner: {
		target: 'topRight', //Position ganzer Bubble
		tooltip: 'bottomLeft'
		}	
	}
	});
	

	$(".qtip2").qtip({
	content: { // By suppling no content attribute, the library uses each elements title attribute by default
		text: false // Use each elements title attribute
		},
	style: { 
		// width: 200,
		padding: 2,
		background: '#eb4831',
		color: '#f7f1e3',
		fontSize: 14,
		textAlign: 'center',
		border: {
			width: 10,
			radius: 10,
			color: '#eb4831'
		},
    tip: 'bottomRight', //Position Eggli an Bubble
    name: 'cream'
	},
	position: {
		corner: {
		target: 'topLeft', //Position ganzer Bubble
		tooltip: 'bottomRight'
		}	
	}
	});
	
});

/* LAVALAMP */

	$(function() {
	$('#menu').lavaLamp({fx: 'swing', speed: 333});
});
	

/* ACCORDEON */

	$(".accordion .accordion-title:first").addClass("");
	$(".accordion .accordion-text").hide();

	$(".accordion .accordion-title").click(function(){

	  $(this).next(".accordion-text").slideToggle("slow")
	  .siblings(".accordion-text:visible").slideUp("slow");
	  $(this).toggleClass("active");
	  $(this).siblings(".accordion-title").removeClass("active");
		
	});
