// Global jquery functions
$(document).ready(function(){
	// notifications
	//$("span.notification").fadeIn(500).fadeTo(7000, 1).fadeOut(2000);
	$("p.notification").fadeIn(500).fadeTo(7000, 1);
	// errors
	//$(".error").fadeIn(1000);
	 // toggles display of div with a link click
	$('#toggleLink').click(function() {
		$('#toggleDiv').toggle("fast");
		return false;
	});
	//$("a[rel^='prettyPhoto']").prettyPhoto({
	//	animationSpeed: 'normal', /* fast/slow/normal */
	//	padding: 40, /* padding for each side of the picture */
	//	opacity: 0.35, /* Value between 0 and 1 */
	//	showTitle: true, /* true/false */
	//	allowresize: true, /* true/false */
	//	counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
	//	theme: 'light_rounded' /* light_rounded / dark_rounded / light_square / dark_square */
	//});
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.35, /* Value between 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: true, /* true/false */
		counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'dark_rounded', /* 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 */
	});
	// this makes the cmyc box on homepage pulsate and gives it a yellow background and bold font
	// $("#homepageModule9").css({'background-color' : '#FFFFCC', 'font-weight' : 'bold'}).effect("pulsate", { times: 3 }, 1200);
 });