$(document).ready(function(){$("a[rel^='prettyPhoto']").prettyPhoto(
	{theme: 'light_square', allow_resize: false}
);});


	$(document).ready(function() {
	

    $('#scrollContainer').cycle({
		fx: 'fade',
		timeout: 3500,
		pager: '#slidepanel',
	    pagerAnchorBuilder: function(ind, slide) { 

	        //var cl = jQuery(slide).children().eq(0).text();
	        var elname = '<li><a href="#slide' + (ind+1) + '" class="slide' + (ind+1) + '">';
    		if (ind == 0) elname = 'Start-Termine';
    		else if (ind == 1) elname = 'Preise';
    		else if (ind == 2) elname = 'Flexible Kurse';
    		else if (ind == 3) elname = 'Hochzeit';
    		elname = elname + '</a></li>';
    		
			return elname;
	    }
	});
	
	$('.slide1').click(function() { 
    	$('#scrollContainer').cycle(0); 
    	return false; 
	});
	$('.slide2').click(function() { 
    	$('#scrollContainer').cycle(1); 
    	return false; 
	});
	$('.slide3').click(function() { 
    	$('#scrollContainer').cycle(2); 
    	return false; 
	});
	$('.slide4').click(function() { 
    	$('#scrollContainer').cycle(3); 
    	return false; 
	});

	// initialize tooltip
	$(".bubble img[title]").tooltip({
	
	   // tweak the position
	   offset: [10, 0],
	   tip: '#tooltip',
	
	   // use the "slide" effect
	   effect: 'slide'
	
	// add dynamic plugin with optional configuration for bottom edge
	}).dynamic({ bottom: { direction: 'down', bounce: true } });

});

