		$(document).ready(function() {
			/*
			*   images
			*/
 
			$(".tip7").fancybox({
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'titlePosition' 	: 'inside',
				'cyclic'			: true,
				'speedIn' 			: 500,
				'speedOut'			: 500,
                'overlayOpacity'	: 0.7,
				'centerOnScroll'	: true,
				'autoScale'			: true,
				'showCloseButton'	: false,
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
    return '<div id="tip7-title"><span><a href="javascript:;" onclick="$.fancybox.close();"><img src="fancybox/closelabel.gif" border="0"/></a></span>'/* + (title && title.length ? '<b>' + title + '</b>' : '' ) */+ '' + (currentIndex + 1) + ' di ' + currentArray.length + '</div>';
}
			});
			
			/* This is for ISSUU */
			$("a[rel=issuu]").fancybox({
				'width'				: 956,
				'height'			: 630,
				//'autoScale'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe',
				'speedIn' 			: 500,
				'speedOut'			: 500,
				'centerOnScroll'	: true,
				'overlayOpacity'	: 0.7,
				'showNavArrows'		: false
			});
			
			/*This is for Sketchbox */
			
			$("a[rel=sketch]").fancybox({
				'width'				: 602,
				'height'			: 559,
				//'autoScale'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe',
				'speedIn' 			: 500,
				'speedOut'			: 500,
				'centerOnScroll'	: true,
				'overlayOpacity'	: 0.7,
				'showNavArrows'		: false
			});
			
			/* ----- */
			
			$("a[rel=blog]").fancybox({
				'width'				: '90%',
				'height'			: '90%',
				'autoScale'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe',
				'speedIn' 			: 500,
				'speedOut'			: 500,
				'centerOnScroll'	: true,
				'overlayOpacity'	: 0.7,
				'showNavArrows'		: false
			});
			
			$("#inline").fancybox({
				'titlePosition'		:'outside',
				'overlayOpacity'	: 0.7
			});
			$("#inline2").fancybox({
				'titlePosition'		:'outside',
				'overlayOpacity'	: 0.7
			});
			
			$("#inline7").fancybox({
				'titlePosition'		:'outside',
				'overlayOpacity'	: 0.7
			});
			
			
			$("#inline-map").fancybox({
				'titlePosition'		:'outside',
				'overlayOpacity'	: 0.7,
				'width'				: 970,
				'height'			: 620
				
			});
 

			$("#various3").fancybox({
				'width'				: '90%',
				'height'			: '100%',
				'autoScale'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe',
				'speedIn' 			: 500,
				'speedOut'			: 500,
				'centerOnScroll'	: true,
                'overlayOpacity'	: 0.7
			});
			
			$("#various4").fancybox({
				'width'				: '90%',
				'height'			: '100%',
				'autoScale'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe',
				'speedIn' 			: 500,
				'speedOut'			: 500,
				'overlayOpacity'	: 0.7,
				'centerOnScroll'	: true
			});
			
			$("a[rel=footer_group]").fancybox({
				'width'				: '90%',
				'height'			: '90%',
				'autoScale'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe',
				'speedIn' 			: 500,
				'speedOut'			: 500,
				'centerOnScroll'	: true,
				'overlayOpacity'	: 0.7,
				'showNavArrows'		: false
			});
			
			$("a[rel=frame_group]").fancybox({
				'width'				: '90%',
				'height'			: '90%',
				'autoScale'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe',
				'speedIn' 			: 500,
				'speedOut'			: 500,
				'centerOnScroll'	: true,
				'overlayOpacity'	: 0.7,
				'showNavArrows'		: false
			});
			
			$("#img_gen").fancybox({
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'titlePosition' 	: 'outside',
				'centerOnScroll'	: true,
				'overlayOpacity'	: 0.7,
				'autoScale'			: true
				
			});
			
						$("#yt").click(function() {
			$.fancybox({
			'overlayOpacity': 0.7,
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'title'			: this.title,
			'width'			: 400,
			'height'		: 325,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'			: 'transparent',
			'allowfullscreen': 'true'
			}
		});

	return false;
});
			//other video
			
						$("#yt2").click(function() {
			$.fancybox({
			'overlayOpacity': 0.7,
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'title'			: this.title,
			'width'			: 700,
			'height'		: 420,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'			: 'transparent',
			'allowfullscreen': 'true'
			}
		});

	return false;
});
			//other video 2
			
						$("#yt3").click(function() {
			$.fancybox({
			'overlayOpacity': 0.7,
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'title'			: this.title,
			'width'			: 700,
			'height'		: 420,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'			: 'transparent',
			'allowfullscreen': 'true'
			}
		});

	return false;
});
			
			//other video 3
			
						$("#yt4").click(function() {
			$.fancybox({
			'overlayOpacity': 0.7,
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'title'			: this.title,
			'width'			: 700,
			'height'		: 420,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'			: 'transparent',
			'allowfullscreen': 'true'
			}
		});

	return false;
});
			//other video 4
			
						$("#yt5").click(function() {
			$.fancybox({
			'overlayOpacity': 0.7,
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'title'			: this.title,
			'width'			: 700,
			'height'		: 420,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'			: 'transparent',
			'allowfullscreen': 'true'
			}
		});

	return false;
});
		});
