$(document).ready(function(){

//Larger thumbnail preview 

$("ul.thumb li").hover(function() {
	$(this).css({'z-index' : '10'});
	$(this).find('img').addClass("hover").stop()
		.animate({
			marginTop: '-11px', 
			marginLeft: '-17px',
			width: '120px', 
			height: '76px'
		},{
		    duration: 200, 
		    easing: 'linear'
		});
	
	} , function() {
	$(this).find('img').removeClass("hover").stop()
		.animate({
			marginTop: '0px', 
			marginLeft: '0px',
			width: '85px', 
			height: '54px'
		},{
		    duration: 200, 
		    easing: 'linear', 
		    complete: function() {
		      $(this).parent().css({'z-index' : '0'});
		    }
		});
});

//Swap Image on Click
	$("ul.thumb li a").click(function() {
		
		var mainImage = $(this).attr("href"); //Find Image Name
		$("#main_view img").attr({ src: mainImage });
		return false;		
	});
	$('#slideshowHolder').jqFancyTransitions({
		effect: '', // wave, zipper, curtain
		width: 279, // width of panel 714
		height: 385, // height of panel
		strips: 10, // number of strips
		delay: 6000, // delay between images in ms
		stripDelay: 50, // delay beetwen strips in ms
		titleOpacity: 0.7, // opacity of title
		titleSpeed: 1000, // speed of title appereance in ms
		position: 'alternate', // top, bottom, alternate, curtain
		direction: 'fountainAlternate', // left, right, alternate, random, fountain, fountainAlternate
		navigation: false, // prev and next navigation buttons
		links: true // show images as links
	});
});
