// toggles display of photographer contact info on about_us.php 

$(function() {
	$('p#photographer').click(function() {
		$('#photographer-contact').toggle('slow');
	});
});

// uses jquery-crossslide.js to rotate welcome-photos on welcome.php

$(function() {
	$('#welcome-photos').crossSlide({
		sleep: 2,
  		fade: 1
	}, [
	  { src: 'images/welcome/welcome1.jpg'  },
	  { src: 'images/welcome/welcome3.jpg'  },
	  { src: 'images/welcome/welcome4.jpg'  },
	  { src: 'images/welcome/welcome5.jpg'  },
	  { src: 'images/welcome/welcome6.jpg'  },
	  { src: 'images/welcome/welcome7.jpg'  },
	  { src: 'images/welcome/welcome8.jpg'  },
	  { src: 'images/welcome/welcome9.jpg'  },
	  { src: 'images/welcome/welcome10.jpg' },
	  { src: 'images/welcome/welcome11.jpg' },
	  { src: 'images/welcome/welcome12.jpg' },
	  { src: 'images/welcome/welcome13.jpg' },
	  { src: 'images/welcome/welcome14.jpg' }
	]);
});

// view full-size gallery photos using prettyphoto.js

$(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'fast', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.75, /* Value betwee 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: false, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square */
		hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
		modal: false, /* If set to true, only the close button will close the window */
		changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
		callback: function(){} /* Called when prettyPhoto is closed */
	});
});
