$(document).ready(function() {
	$(".slide").hover(
	  function () {
		if($("p", this).is(':animated')) {
			("p", this).stop();
		}
		$("p", this).fadeIn();
	  },
	  function () {
		if($("p", this).is(':animated')) {
			("p", this).stop();
		}	  
		$("p", this).fadeOut();
	  }
	);
	
	$("a[rel^='prettyPhoto']").prettyPhoto({theme: 'facebook', overlay_gallery: false });
	$("a[rel^='lightbox']").prettyPhoto({theme: 'facebook', overlay_gallery: false });
});


/**
 * Bilder, oder Elemente mit der Class .rollover_fade bekommen den Effekt
 */
jQuery(document).ready(function($) {
	$('.rollover_fade').hover(function() {
		$(this).stop(true,true).animate({opacity: 0.7}, 300, 'swing');
	}, function() {
		$(this).stop(true,true).animate({opacity: 1}, 300, 'swing');
	});
});

/* Slider Initializer */

$(document).ready(function() {	
	$('#headimg').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		random: true,
		timeout: 5000
	});					
});	
