		//Cufon.replace('#menu', { hover: true, fontFamily: 'Georgia' });
		Cufon.replace('#left h4, #left ul li, #right h4, #content h1, #content h2, #footer, legend, #menu', { hover: true, fontFamily: 'Myriad Pro' });
		
		$(document).ready(function(){	
								   
			$(".jqzoom").jqzoom();	
			$("#data_nasterii").datepicker({ dateFormat: 'yy-mm-dd', changeMonth: true,
			changeYear: true, yearRange: '1930:2015'
			});
	
		$("img.zoom").thumbPopup({
		imgSmallFlag: "thumb_",
		imgLargeFlag: "large_"
		})
	
			$("#slider").easySlider({
				auto: true, 
				continuous: true,
				controlsShow: false
			});

			$("a.iframe").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'autoScale'     :   false,
		'height'        :   400,
		'width'         :   400,
		'titlePosition' :   'inside',
		'transitionIn'  :   'elastic',
		'transitionOut' :   'elastic',
		'overlayOpacity':   0.2,
		'scrolling'     :   'no',
		'overlayShow'	:	true
	});
	

		
		


//Larger thumbnail preview 
$("ul.thumb li").hover(function() {
	$(this).css({'z-index' : '10'});
	$(this).find('img').addClass("hover").stop()
		.animate({
			marginTop: '-160px', 
			marginLeft: '-160px', 
			top: '50%', 
			left: '50%', 
			width: '250px', 
			height: '250px',
			padding: '40px' 
		}, 200);
	
	} , function() {
	$(this).css({'z-index' : '0'});
	$(this).find('img').removeClass("hover").stop()
		.animate({
			marginTop: '0', 
			marginLeft: '0',
			top: '0', 
			left: '0', 
			width: '110px', 
			height: '110px', 
			padding: '10px'
		}, 400);
});

		//Swap Image on Click
			$("ul.thumb li a").click(function() {
				
				var mainImage = $(this).attr("href"); //Find Image Name
				$("#main_view img").attr({ src: mainImage });
					
			});

					$('ul#portfolio').innerfade({
						speed: 1000,
						timeout: 15000,
						type: 'sequence',
						containerheight: '1820px'
					});

		});
