
$(document).ready(function() {	

	if( $("a.ext").length )
	{
		$("a.ext").click(function(){
		window.open(this.href); // pop a new window
		return false; // keep the actual link click from actuating				
		});		
	}
	if( $("#thumbs").length )
	{
	    $('#thumbs').galleriffic({
	        delay:                     3000, // in milliseconds
	        enableTopPager:            false,
	        enableBottomPager:         false,
	        imageContainerSel:         '#slideshow', // The CSS selector for the element within which the main slideshow image should be rendered
	        enableKeyboardNavigation:  true, // Specifies whether keyboard navigation is enabled
	        autoStart:                 true, // Specifies whether the slideshow should be playing or paused when the page first loads
	        syncTransitions:           true, // Specifies whether the out and in transitions occur simultaneously or distinctly
	        defaultTransitionDuration: 1000 // If using the default transitions, specifies the duration of the transitions
	    });	
	/*	$('.slideshow-container').hover(function(){
			$('.slideshow_button').show();
		},function(){
			$('.slideshow_button').fadeOut();			
		}); */
	}
});
