/* Author: 

*/
$(document).ready(function() {

	if (typeof page === 'undefined') {
		page = 'other';
	}
	
	/***********************************************
	* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
	* This notice MUST stay intact for legal use
	* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
	***********************************************/
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu1", //menu DIV id
		orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
		classname: 'ddsmoothmenu', //class added to menu's outer DIV
		//customtheme: ["#1c5a80", "#18374a"],
		contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	});


	if(page == 'event') {
		/* This is basic - uses default settings */
		//$("a#single_image").fancyox();
		
		/* Using custom settings */
		$("a#inline").fancybox({
			'hideOnContentClick': true
		});

	/* Apply fancybox to multiple items */
/*
	$("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
*/
	}

});


$('#albumID').change(function(){
	$('#albumForm').submit();
});
