
jQuery(document).ready(function() {
	openpage_fancybox();
});

function openpage_fancybox(){
	$("a[rel=openpage]").fancybox({
		'autoDimensions'	: false,
		'width'        		: 400,
		'height'       		: 200,
		'margin'			: 0,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe',
		'overlayColor'		: '#000',
		'overlayOpacity'	: '0.8',
		'titleShow'			: false,
		'cyclic'			: false,
		'showCloseButton'	: true,
		'showNavArrows'		: false,
		'padding'			: 0,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic'
	});
	$("a[rel=openpage2]").fancybox({
		'autoDimensions'	: false,
		'width'        		: 1050,
		'height'       		: 750,
		'margin'			: 0,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe',
		'overlayColor'		: '#000',
		'overlayOpacity'	: '0.8',
		'titleShow'			: false,
		'cyclic'			: false,
		'showCloseButton'	: true,
		'showNavArrows'		: false,
		'padding'			: 0,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic'
	});
	$("a[rel=openpage3]").fancybox({
		'autoDimensions'	: false,
		'width'        		: 700,
		'height'       		: 600,
		'margin'			: 0,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe',
		'overlayColor'		: '#000',
		'overlayOpacity'	: '0.8',
		'titleShow'			: false,
		'cyclic'			: false,
		'showCloseButton'	: true,
		'showNavArrows'		: false,
		'padding'			: 0,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic'
	});
	$("a[rel=openpage_bottom]").fancybox({
		'autoDimensions'	: false,
		'width'        		: 700,
		'height'       		: 550,
		'margin'			: 0,
        'autoScale'     	: true,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe',
		'overlayColor'		: '#000',
		'overlayOpacity'	: '0.5',
		'titleShow'			: false,
		'cyclic'			: false,
		'showCloseButton'	: true,
		'showNavArrows'		: false,
		'padding'			: 0,
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic'
	});
}


