$(document).ready(function(){
	$("#stundenplan_top a").click(function (event) {
			
			if(event.preventDefault){  
	   			event.preventDefault();
			}else{
	   			event.returnValue = false; 
			}
	});
	$("#gentle_info_li a").tooltip({ 
    	bodyHandler: function() { 
    		return $($(this).attr("href")).html(); 
    	}, 
    	showURL: false 
	});
	$("#mixed_info_li a").tooltip({ 
    	bodyHandler: function() { 
    		return $($(this).attr("href")).html(); 
    	}, 
    	showURL: false , left: -100 
	});
	$("#advanced_info_li a").tooltip({ 
    	bodyHandler: function() { 
    		return $($(this).attr("href")).html(); 
    	}, 
    	showURL: false , left: -200 
	});
	$("#iyengar_info_li a").tooltip({ 
    	bodyHandler: function() { 
    		return $($(this).attr("href")).html(); 
    	}, 
    	showURL: false, left: -400 
	});
	$("#yinyang_info_li a").tooltip({ 
    	bodyHandler: function() { 
    		return $($(this).attr("href")).html(); 
    	}, 
    	showURL: false, left: -520
	});
	$("#ishta_info_li a").tooltip({ 
    	bodyHandler: function() { 
    		return $($(this).attr("href")).html(); 
    	}, 
    	showURL: false, left: -700 
	});
	
	$("#stundenplan_box").corner()
	/* Apply fancybox to multiple items */
			$("a.grouped_elements").fancybox({
				'transitionIn'	:	'fade',
				'transitionOut'	:	'fade',
				'speedIn'		:	500, 
				'speedOut'		:	200, 
				'overlayShow'	:	true,
				'overlayOpacity': 0.7,
				'titlePosition'	: 'inside',
				'overlayColor' : 'black',
				'cyclic'		: true,
				'centerOnScroll'		:true,
				'titleFormat' : function(title, currentArray, currentIndex, currentOpts){
						return '<span id="fancy-title-over">Bild ' + (currentIndex+1) + ' von ' +currentArray.length + ' ' +title + '</span>';
				},
				//'titleShow' :false,
				'onComplete'	:	function() {
										$("#fancybox-wrap").hover(function() {
											$("#fancybox-title").show();
										}, 
										function() {
											$("#fancybox-title").hide();
										});
									}
			});
});
