

$(document).ready(function() {
             // single image
			$("a#popimage").fancybox({
				'opacity'       : true,
				'titlePosition'	: 'over',
				'onComplete'	:	function() {
		
			$("#fancybox-wrap").hover(function() {
				$("#fancybox-title").show();
				}, function() {
			$("#fancybox-title").hide();
			});
			}

		});
			//iframe
			$("a#popiframe").fancybox({

				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'

		});
			//youtube
			$("#popyoutube").click(function() {
											
				$.fancybox({
			   
				'padding'		: 0,
				'autoScale'		: false,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'title'			: this.title,
				'titlePosition'	: 'inside',
				'width'			: 680,
				'height'		: 495,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
				'type'			: 'swf',
				'swf'			: {
				'wmode'			: 'transparent',
				'allowfullscreen'	: 'true'
				
				}
		});
		
		return false;
	
	});

});
