$(document).ready(function(){ 
	//$(document).pngFix();
	$(".csc-textpic a.fb, .single .fb, .bodytext a.imgpopup").fancybox({
		'hideOnContentClick': true,
		'zoomSpeedIn': 400,
		'zoomSpeedOut': 400,
		'easingIn': 'easeOutBack',
		'easingOut': 'easeInBack',
		'easingChange': 'easeInBack',
		'overlayShow': true,
		'overlayOpacity': 0.8 
	});
	$('.slideshow').cycle({ 
		fx:      'scrollDown', 
		speedIn:  800, 
		speedOut: 500, 
		slideExpr: 'dl.csc-textpic-image',
		delay:  -3000
	});
	/*$('.slideshow').hover(
		function() { $('#controls').fadeIn(); },
		function() { $('#controls').fadeOut(); }
	);
	$('#pause').click(function() {
		$('.slideshow .slides').cycle('pause');
		$('#pause').replaceWith('<a href="#" id="play"><img src="/fileadmin/templates/img/play.png" /></a>');
		$('#play').click(function() {
			$('.slideshow .slides').cycle('resume');
			$('#play').replaceWith('<a href="#" id="pause"><img src="/fileadmin/templates/img/pause.png" /></a>');
			return false;
		});
		return false;
	});*/	
});