$(document).ready(function() {
	$(".fancyPop").fancybox({
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'		:	100, 
		'speedOut'		:	100, 
		'autoScale'			: true,
		'overlayColor'		: '#000',
		'overlayShow'	:	true
	});

	$(".fancyPopif").fancybox({
		'transitionIn'		:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'			:	100, 
		'speedOut'		:	100, 
		'autoScale'		: true,
		'overlayColor'	: '#000',
		'overlayShow'	:	true
	});

	$("#locationKN").click(function() {
		$.fancybox([
			{
				'href'	: '/images/contents/bls/location/kn_step1.jpg',
				'title'	: 'Step 1 : 강남역 6번 출구로 나와 정면으로 약 100m를 직진합니다. 1층에 카페베네가 보이시나요?'
			},
			{
				'href'	: '/images/contents/bls/location/kn_step2.jpg',
				'title'	: '위를 보시면 우리은행도 보입니다. 그 건물 11층이 강남BLS클리닉입니다.'
			}
		], {
			'padding'			: 5,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'speedIn'			: 100,
			'speedOut'		: 100,
			'changeSpeed'	: 150,
			'type'              : 'image',
			'showNavArrows'	: true,
			'changeFade'        : 0
		});
	});

	$("#kn").click(function() {
		$.fancybox([
			{
				'href'	: '/images/contents/bls/location/kn.jpg',
				'title'	: '강남BLS 전경사진'
			}
		], {
			'padding'			: 5,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'speedIn'			: 100,
			'speedOut'		: 100,
			'changeSpeed'	: 150,
			'type'              : 'image',
			'showNavArrows'	: true,
			'changeFade'        : 0
		});
	});

	$("#yg").click(function() {
		$.fancybox([
			{
				'href'	: '/images/contents/bls/location/yg.jpg',
				'title'	: '압구정BLS 전경사진'
			}
		], {
			'padding'			: 5,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'speedIn'			: 100,
			'speedOut'		: 100,
			'changeSpeed'	: 150,
			'type'              : 'image',
			'showNavArrows'	: true,
			'changeFade'        : 0
		});
	});

	$("#locationYG").click(function() {
		$.fancybox([
			{
				'href'	: '/images/contents/bls/location/yg_step1.jpg',
				'title'	: 'Step 1 : 압구정역 3번 출구로 나오셔서 전방으로 CGV 방면으로 직진합니다.'
			},
			{
				'href'	: '/images/contents/bls/location/yg_step2.jpg',
				'title'	: 'Step 2 : 전방 약간 좌측에 보이시는 영화관(CGV) 방면으로 직진합니다.'
			},
			{
				'href'	: '/images/contents/bls/location/yg_step3.jpg',
				'title'	: 'Step 3 : 200m쯤 직진하시면 좌측에 VIP성형외과가 있습니다. 거의 다왔습니다 조금만 더 직진!'
			},
			{
				'href'	: '/images/contents/bls/location/yg_step4.jpg',
				'title'	: 'Step 4 : 조금 더 오시면 1층에 파리바게트와 Fedex가 있는 건물 8층 입니다.'
			}
		], {
			'padding'			: 5,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'speedIn'			: 100,
			'speedOut'		: 100,
			'changeSpeed'	: 150,
			'type'              : 'image',
			'showNavArrows'	: true,
			'changeFade'        : 0
		});
	});
	
	$('#bottom_a UL#bottom_submenu li.bsub1').fancybox({
		'width'				: '75%',
		'height'			: '75%',
		'autoScale'			: true,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
//		'overlayColor'		: '#fff',
		'type'				: 'iframe'
	});

	$('#bottom_a UL#bottom_submenu li.bsub2').fancybox({
		'width'				: '75%',
		'height'			: '75%',
		'autoScale'			: true,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
//		'overlayColor'		: '#fff',
		'type'				: 'iframe'
	});

	$('#bottom_a UL#bottom_submenu li.bsub3').fancybox({
		'width'				: '75%',
		'height'			: '75%',
		'autoScale'			: true,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
//		'overlayColor'		: '#fff',
		'type'				: 'iframe'
	});

	$('#bottom_a UL#bottom_submenu li.bsub4').fancybox({
		'width'				: '75%',
		'height'			: '75%',
		'autoScale'			: true,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
//		'overlayColor'		: '#fff',
		'type'				: 'iframe'
	});

	$("#bottom_b UL#copyright li.bLogo").fancybox({
		'scrolling'		: 'no',
		'titleShow'		: false,
		'onClosed'		: function() {
			$("#login_error").hide();
		}
	});

	$('.privicy').fancybox({
		'width'				: '75%',
		'height'			: '75%',
		'autoScale'			: true,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
//		'overlayColor'		: '#fff',
		'type'				: 'iframe'
	});

	$('#quick_login .login').fancybox({
		'scrolling'		: 'no',
		'titleShow'		: false,
		'onClosed'		: function() {
			$("#login_error").hide();
		}
	});

	$('TABLE TD a.login').fancybox({
		'scrolling'		: 'no',
		'titleShow'		: false,
		'onClosed'		: function() {
			$("#login_error").hide();
		}
	});

	$('UL#quickmenu li a.jemo').fancybox({
		'scrolling'		: 'no',
		'autoScale'			: true,
		'titleShow'		: false,
		'onClosed'		: function() {
			$("#jemo_error").hide();
		}
	});
	
	$("a.kn").fancybox({
			'padding'			: 5,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'speedIn'			: 100,
			'speedOut'		: 100,
			'changeSpeed'	: 150,
			'type'              : 'image',
			'showNavArrows'	: true,
			'changeFade'        : 0
	});

	$("a.previews_").fancybox({
			'padding'			: 5,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'speedIn'			: 100,
			'speedOut'		: 100,
			'changeSpeed'	: 150,
			'type'              : 'image',
			'showNavArrows'	: true,
			'changeFade'        : 0
	});


	$("DIV#kn_parking").click(function() {
		$.fancybox([
			{
				'href'	: '/images/contents/bls/location/kn_parking.gif',
				'title'	: '강남BLS 주차 안내 및 주차불가/만차시 우회 주차장 안내'
			}
		], {
			'padding'			: 5,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'speedIn'			: 100,
			'speedOut'		: 100,
			'changeSpeed'	: 150,
			'type'              : 'image',
			'showNavArrows'	: true,
			'changeFade'        : 0
		});
	});

	$("DIV#yg_parking").click(function() {
		$.fancybox([
			{
				'href'	: '/images/contents/bls/location/yg_parking.gif',
				'title'	: '압구정BLS 주차 안내 및 주차불가/만차시 우회 주차장 안내'
			}
		], {
			'padding'			: 5,
			'transitionIn'		: 'fade',
			'transitionOut'		: 'fade',
			'speedIn'			: 100,
			'speedOut'		: 100,
			'changeSpeed'	: 150,
			'type'              : 'image',
			'showNavArrows'	: true,
			'changeFade'        : 0
		});
	});

	$('DIV#kn_mms').fancybox({
		'width'				: '55%',
		'height'			: '40%',
		'autoScale'			: true,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
//		'overlayColor'		: '#fff',
		'type'				: 'iframe'
	});

	$('DIV#yg_mms').fancybox({
		'width'				: '55%',
		'height'			: '40%',
		'autoScale'			: true,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
//		'overlayColor'		: '#fff',
		'type'				: 'iframe'
	});
});

