	$(document).ready(function(){
							   
		//slideshow function
		
		$('#slideshow').cycle({
			fx:'fade',
			timeout:8000,
			pager:'#pager'
		 });
		
		//dbca link-->
		
		$('span.dbcaLink').hover(
			function(){
			$('#dbca').addClass('dbcaColor');
			},
			function(){
			$('#dbca').removeClass('dbcaColor');
		});
		
		//email link
		
		$('a.emailButton').hover(
			function(){
				$('span.email').addClass('blue');
			},
			function(){
				$('span.email').removeClass('blue');
			});
		
		//fancybox init
		
		$('.gallery_group').fancybox({
			'zoomSpeedIn':	3000, 
			'zoomSpeedOut':	300, 
			'overlayShow':	true,
			'zoomOpacity':	true,
			'hideOnOverlayClick': true,
			'titlePosition': 'inside'
		});
		
		//thumb effect
		
		$('div.thumb, div.thumbLast').css('opacity','0.75');
		
		$('div.thumb, div.thumbLast').hover(function(){
			$(this).stop().animate({
				opacity:1.0
				},'slow');
				 },
		function(){
			$(this).stop().animate({
				opacity:0.75
				},'slow');
		});
		
		//menu float
		
		$('#galleryNavBox').stickyfloat({duration: 800});
		
		//localscroll
		
		//$.scrollTo('#containerMain');
		
	$.localScroll({
		queue:true,
		duration:500,
		hash:false,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});


		
	});

