	$(document).ready(function(){
		//Larger thumbnail preview 
		$("ul.thumb li").hover(function() {
			$(this).css({'z-index' : '10'});
			$(this).find('img').addClass("hover").stop()
				.animate({
					marginTop: '-65px', 
					marginLeft: '-65px', 
					top: '55%', 
					left: '50%', 
					width: '120px', 
					height: '120px',
					padding: '5px' 
				}, 50);
			
			} , function() {
			$(this).css({'z-index' : '0'});
			$(this).find('img').removeClass("hover").stop()
				.animate({
					marginTop: '0', 
					marginLeft: '0',
					top: '0', 
					left: '0', 
					width: '65px', 
					height: '65px', 
					padding: '5px'
				}, 50);
		});
		
		//Swap Image on Click
		$("ul.thumbi li a").click(function() {
			var mainImage = $(this).attr("href"); //Find Image Name
			$(".main_view img").attr({ src: mainImage });
			$(".main_view img").fadeOut("slow");
			$(".main_view img").hide();
			$(document).ready(function()
				{$('.main_view img').each(function()
				{$(this).hide();
				 $(this).load(function()
					{
						$(this).fadeIn("slow");
					});
				});
		  });
	
			//$(".main_view img").fadeIn(3000);
			return false;		
		});
	
		$("ul.thumba li a").click(function() {
			var mainImage = $(this).attr("href"); //Find Image Name
			$(".main_view img").attr({ src: mainImage });
			$(".main_view img").fadeOut("slow");
			$(".main_view img").hide();
			$(document).ready(function()
				{$('.main_view img').each(function()
				{$(this).hide();
				 $(this).load(function()
					{
						$(this).fadeIn("slow");
					});
				});
		  });
	
			//$(".main_view img").fadeIn(3000);
			return false;		
		});		
    });

