  /*gallery*/
$(document).ready(function() {
				var gallery = $('#gallery').galleriffic('#navigation', {
					delay:                2000,
					numThumbs:            12,
					imageContainerSel:    '#slideshow',
					controlsContainerSel: '#controls',
					titleContainerSel:    '#image-title',
					descContainerSel:     '#image-desc',
					downloadLinkSel:      '#download-link'
				});
				
				gallery.onFadeOut = function() {
					$('#details').fadeOut('fast');
				};
				
				gallery.onFadeIn = function() {
					$('#details').fadeIn('fast');
				};
			
			});


  /*bgPosition*/
$(function(){
	$('#nav a')
	.css( {backgroundPosition: "0 0"} )
	.mouseover(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 -85px)"}, 
			{duration:200})
		})
	.mouseout(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 0)"}, 
			{duration:200})
		})
});
