<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">$(function(){
	
	//�곹뭹�붿뒪�뚮젅�댁쓽 �숈쁺�곹겢由�떆 -&gt; �숈쁺�곸옄�숈떎�됱꽕�뺣릺�댁엳�댁빞��
	$(".goodsDisplayVideoWrap").live("click",function(e){
		$(this).find("img").addClass("hide");
		$(this).find(".thumbnailvideo").hide();
		$(this).find(".mobilethumbnailvideo").hide();
		$(this).find("iframe").removeClass("hide");
		$(this).find("embed").removeClass("hide");
	});
	
	//�숈쁺�곷꽔湲곗쓽 �숈쁺�곹겢由�떆-&gt; �숈쁺�곸옄�숈떎�됱꽕�뺣릺�댁엳�댁빞��
	$(".DisplayVideoWrap").live("click",function(e){
		$(this).find("img").addClass("hide");
		$(this).find(".thumbnailvideo").hide();
		$(this).find(".mobilethumbnailvideo").hide();
			$(this).find("iframe").removeClass("hide");
			$(this).find("embed").removeClass("hide"); 
	});
	
	/* �숈쁺�곷꽔湲�/�곹뭹�붿뒪�뚮젅�� �숈쁺�곸씠誘몄�泥댄겕 */ 
	$(".thumbnailvideo").each(function(){
		var width = ($(this).attr("width"))?$(this).attr("width"):400;
		var height = ($(this).attr("height"))?$(this).attr("height"):200;
		$(this).css({'width':width});
		$(this).css({'height':height});
	});
	
	$(".mobilethumbnailvideo").each(function(){
		var width = ($(this).attr("width"))?$(this).attr("width"):150;
		var height = ($(this).attr("height"))?$(this).attr("height"):50;
		$(this).css({'width':width});
		$(this).css({'height':height});
	});
	
	$(".datepicker").datepicker("option",{
		showOn: "focus",
		buttonImage: null,
		buttonImageOnly: false
	});
	
	/* ajax濡� 而⑦뀗痢� 濡쒕뱶(留덉씠�섏씠吏�,怨좉컼�쇳꽣�먯꽌 �ъ슜) */
	$("a[mobileAjaxCall]").live('click',function(){
		var mobileAjaxCall = $(this).attr('mobileAjaxCall');
		var url = $(this).attr('href');
		var contentsObj = $("div[mobileAjaxCall='"+mobileAjaxCall+"']");
		var that = this;
		
		$("div[mobileAjaxCall]").not(contentsObj).slideUp();
		
		if($(document).data('mobileAjaxCallIng')=='1') {
			alert('�ㅽ뻾以묒엯�덈떎.');
			return;
		}else{
			$(document).data('mobileAjaxCallIng','1');
			loadingStart(that,{segments: 12, steps: 3, width:2, space: 1, length: 3, color: '#030303', speed: 1.5});
		}
		
		mobileAjaxContentsLoad(url,mobileAjaxCall,function(){
			contentsObj.slideDown();
			loadingStop(that,true);
			$(document).data('mobileAjaxCallIng','');
		});
		
		return false;		
	});
	
	$(window).load(function(){
		//window.scrollTo(0,1);
	});
});

/* ajax濡� 而⑦뀗痢� 濡쒕뱶(留덉씠�섏씠吏�,怨좉컼�쇳꽣�먯꽌 �ъ슜) */
function mobileAjaxContentsLoad(url,mobileAjaxCall,callbackFunction){	
	var contentsObj = $("div[mobileAjaxCall='"+mobileAjaxCall+"']");
	var urlLeft = url.split('?').length&gt;1 ? url.split('?')[0] : url;
	var urlRight = url.split('?').length&gt;1 ? "?"+url.split('?')[1]+"&amp;mobileAjaxCall="+mobileAjaxCall : "?mobileAjaxCall="+mobileAjaxCall;
	
	contentsObj.load(urlLeft+urlRight,function(){
		if(callbackFunction) callbackFunction();	
	});	
}

function openDialogAlert(msg,width,height,callback){
	msg = msg.replaceAll("&lt;br \\/&gt;","\n");
	msg = msg.replaceAll("&lt;br\\/&gt;","\n");
	msg = msg.replaceAll("&lt;br&gt;","\n");
	msg = strip_tags(msg);
	alert(decodeEntities(msg));
	if(callback) callback();
}

function openDialogConfirm(msg,width,height,yesCallback,noCallback){
	msg = msg.replaceAll("&lt;br \\/&gt;","\n");
	msg = msg.replaceAll("&lt;br\\/&gt;","\n");
	msg = msg.replaceAll("&lt;br&gt;","\n");
	msg = strip_tags(msg);
	
	if(confirm(decodeEntities(msg))){
		if(yesCallback) yesCallback();
	}else{
		if(noCallback) noCallback();
	}
}

function openDialogAlertmobile(msg,width,height,callback){
	msg = msg.replaceAll("&lt;br \\/&gt;","\n");
	msg = msg.replaceAll("&lt;br\\/&gt;","\n");
	msg = msg.replaceAll("&lt;br&gt;","\n");
	msg = strip_tags(msg);
	alert(decodeEntities(msg));
	if(callback) callback();
}

function openDialogConfirmmobile(msg,width,height,yesCallback,noCallback){
	msg = msg.replaceAll("&lt;br \\/&gt;","\n");
	msg = msg.replaceAll("&lt;br\\/&gt;","\n");
	msg = msg.replaceAll("&lt;br&gt;","\n");
	msg = strip_tags(msg);
	if(confirm(decodeEntities(msg))){
		if(yesCallback) yesCallback();
	}else{
		if(noCallback) noCallback();
	}
}

function openDialog2(title, layerId, customOptions, callback){

	if((typeof layerId) != 'string') var layerSelector = layerId;
	else if(layerId.substring(0,1)=='#' || layerId.substring(0,1)=='.' || (typeof layerId) != 'string') var layerSelector = layerId;
	else var layerSelector = "#"+layerId;
	
	var options = {
		"zIndex" : 10000,
//		"show" : "fade",
//		"hide" : "fade",
		"modal" : true,
		"resizable" : false,
		"draggable" : true,
		"noClose" : false,
		"top" : -500
	};

	if(customOptions != undefined){
		for(var i in customOptions){
			options[i] = customOptions[i];
		}
	}
	
	options['title'] = title;

	if(callback){
		$(layerSelector).dialog({
			"modal" : options['modal'],
			"close" : function(){
				callback();
			}
		});
	}

	$(function(){
		if(customOptions['autoOpen']==false){
			
			$(layerSelector)
			.dialog({"autoOpen" : false})
			.dialog("option", options);
			
		}else{
			$(layerSelector)
			.dialog({"autoOpen" : false})
			.dialog("option", options)
			.dialog("open")
			.focus();
		}

		if(options['noClose']==false){
			$(".ui-dialog-titlebar-close",$(layerSelector).closest(".ui-dialog")).show();
			$(".ui-dialog-titlebar-close").bind("click",function(){
				if(layerId=='recommendDisplayGoodsSelect'){
					parent.$("body").css("overflow-y","auto");
					$(this).dialog("close");
				}else{
					$("body").css("overflow-y","auto");
					$(this).dialog("close");
				}
			});
		}else{
			$(".ui-dialog-titlebar-close",$(layerSelector).closest(".ui-dialog")).hide();
			$(layerSelector).dialog("option","close",function(){
				if(options['noClose'])	$(layerSelector).dialog("open").focus();
			});
		}
	});
	
}

/* �ㅼ씠�쇰줈洹� �꾩슦湲� (���댄�, �덉씠�댁븘�대뵒, �듭뀡) */
function openDialog(title, layerId, customOptions){
	
	if((typeof layerId) != 'string') var layerSelector = layerId;
	else if(layerId.substring(0,1)=='#' || layerId.substring(0,1)=='.' || (typeof layerId) != 'string') var layerSelector = layerId;
	else var layerSelector = "#"+layerId;

	var options = {
		"zIndex" : 10000,
//		"show" : "fade",
//		"hide" : "fade",
		"modal" : true,
		"resizable" : false,
		"draggable" : true
	};

	if(customOptions != undefined){
		for(var i in customOptions){
			options[i] = customOptions[i];
		}
	}

	options['modal'] = true;
	options['title'] = title;
	options['width'] = "93%";
	if(options['height'] != undefined){
		options['height'] = options['height'] &amp;&amp; options['height'] &gt; $(window).height() ? $(window).height() : options['height'];
	}

	if( layerId == "couponDownloadDialog" ) {//荑좏룿�덉씠李� �먭�
	var sheight = $('body').prop("scrollHeight");
		var layerheight = $(layerSelector).attr("height");
		if( layerheight != undefined) {
			options['height'] = layerheight;
		}else{
			options['height'] = sheight;
		}
	}

	$(function(){
		if(customOptions['autoOpen']==false){
			$(layerSelector)
			.dialog({"autoOpen" : false})
			.dialog("option", options);
		}else{
			$(layerSelector)
			.dialog({"autoOpen" : false})
			.dialog("option", options)
			.dialog("open");

		}

		$(".ui-dialog-titlebar-close").bind("click",function(){
			if(layerId=='recommendDisplayGoodsSelect'){
				parent.$("body").css("overflow-y","auto");
				$(this).dialog("close");
			}else{
				$("body").css("overflow-y","auto");
				$(this).dialog("close");
			}
		});
	});

}

//�뺤떇 �ㅽ뵂洹몃씪��&gt;諛붾줈援щℓ�� �곸슜
function getfbopengraph(gdseq, type, urldomain, id)
{
	
	 if (document.location.protocol == "https:") {
		var url = 'https://'+urldomain+'/sns_process/fbopengraph';
	 }else{
		var url = 'http://'+urldomain+'/sns_process/fbopengraph';
	 }
	$.getJSON(url + "?no="+gdseq+"&amp;id="+id+"&amp;type="+type+"&amp;jsoncallback=?"); 
}

//�섏씠�ㅻ턿&gt;me/feed 湲��④린湲�
function getfbmefeed(boardseq, type, urldomain, boardid)
{	
	 if (document.location.protocol == "https:") {
		var url = 'https://'+urldomain+'/sns_process/fbmefeed';
	 }else{
		var url = 'http://'+urldomain+'/sns_process/fbmefeed';
	 }
	$.getJSON(url + "?no="+boardseq+"&amp;id="+boardid+"&amp;type="+type+"&amp;jsoncallback=?"); 
}

/*
 * html �뷀떚�� �붿퐫��
 * openDialog �� 寃쎌슦 紐⑤컮�쇱뿉�� �⑥닚 alert�� comfirm�쇰줈 �ъ슜�섎뒗 寃쎌슦媛� �덈뒗��
 * �� �� html �뷀떚�곕� �뺤긽�곸쑝濡� 異쒕젰�섏� 紐� �섏뿬 �붿퐫�⑺븯�� 異쒕젰��.
 */ 
var decodeEntities = (function(){
    var cache = {},
        character,
        e = document.createElement('div');

    return function(html){
        return html.replace(/([&amp;][^&amp;; ]+[;])/g, function(entity){
            character = cache[entity];
            if (!character) {
                e.innerHTML = entity;
                if (e.childNodes[0]){
                    character = cache[entity] = e.childNodes[0].nodeValue;
                } else { 
                    character = '';
                }
            }
            return character;
        });
    };
})();
</pre></body></html>