$(function()
{


	// slideshows
		
		$('div#slideshow').before('<ul id="slidepager">').cycle({
			fx: 'fade',
			timeout: 8000,
			cleartype: !$.support.opacity,
			cleartypeNoBg: true,
			//pager: 'ul#slidepager',
			pagerAnchorBuilder: function(idx, slide)
			{ 
				return '<li><a href="#"><span>' + idx + '</span></a></li>'; 
			} 
		});

		$.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) 
		{ 
			$(pager).find('li').removeClass('active').filter('li:eq('+currSlideIndex+')').addClass('active'); 
		}; 



	// image overlays

		//$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow', theme:'light_square', slideshow:2000});
		//$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast', slideshow:10000});
		

		$("a[rel^='prettyPhoto']").prettyPhoto(
		{
			overlay_gallery: false,
			show_title: false,
			keyboard_shortcuts: false,
			social_tools:false
		});


});
