/**
 * 2006-11-12 08:43
 */

/* Ã¼Å© ¹Ú½º==============================================*/
function imgCbox(N, tabstop) {
<!--
	var objs, cboxes, Img, Span, A;

	if (N == undefined) return false;
	if (tabstop == undefined) tabstop = true;
	if ((objs=document.getElementsByName(N)) == null) return false;

	for (var i=0; i < objs.length; i++) {
		if (objs[i].tagName.toLowerCase() != "input" || objs[i].type.toLowerCase() != "checkbox") continue;
		
		if (imgCbox.Objs[N] == undefined) {
			imgCbox.Objs[N] = imgCbox.ImgObjs[N] = [];
		}
		
		var len = imgCbox.Objs[N].length;
		imgCbox.Objs[N][len] = objs[i];
		imgCbox.ImgObjs[N][len] = {};
	
		// anchor element for tab stop
		A = document.createElement("A");
		if (tabstop) {
			A.href = "javascript:;";
		}
		A.onclick =  new Function("imgCbox.onclick('"+N+"','"+len+"')");
		A.style.borderWidth = "0px";
		A.style.cursor = "pointer";

		// for image cache
		Img = document.createElement("IMG");
		Img.src = objs[i].getAttribute("onsrc");
		Img.style.borderWidth = "0px";
		Img.style.display = objs[i].checked?"":"none";
		imgCbox.ImgObjs[N][len]["on"] = Img;
		A.appendChild(Img);

		Img = document.createElement("IMG");
		Img.src = objs[i].getAttribute("offsrc");
		Img.style.borderWidth = "0px";
		Img.style.display = objs[i].checked?"none":"";
		imgCbox.ImgObjs[N][len]["off"] = Img;
		A.appendChild(Img);

		// insert object
		Span = objs[i].parentNode;
		Span.style.display = "none";
		Span.parentNode.insertBefore(A, Span);

	}
}
imgCbox.onclick = function(N, idx) {
	var C = imgCbox.Objs[N][idx];
	var I = imgCbox.ImgObjs[N][idx];

	C.checked = !C.checked;
	if (C.checked) {
		I["on"].style.display = "";
		I["off"].style.display = "none";
	} else {
		I["on"].style.display = "none";
		I["off"].style.display = "";
	}
	
	// fire event
	if (C.onclick != undefined && C.onclick != null) C.onclick();
}
imgCbox.Objs = {};
imgCbox.ImgObjs = {};

/* ·Ñ¿À¹ö ÀÌ¹ÌÁö==============================================*/

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/* ÇÃ·¡½¬ È£Ãâ==============================================*/
// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,vars,win){	
	
	var so = new SWFObject(url, id, w, h, "9", bg);
	so.addParam("wmode", win);
	so.addParam("menu", "false");
	so.addParam("quality", "high");
	so.addParam("allowScriptAccess", "always");
	so.addParam("flashVars", vars);
	
	document.write(so.getSWFHTML());
	
	/*
	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='transparent' />"+
	//"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	//"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);
	*/
}


	// common.js¿¡ Æ÷ÇÔ½ÃÄÑÁÖ¼¼¿ä.
	//popLayer.html ÆÄÀÏ¿¡¼­ »ç¿ë
	function correctPNG(img)
	{
		var arVersion = navigator.appVersion.split("MSIE")
		var version = parseFloat(arVersion[1])
		if ((version >= 5.5) && (document.body.filters)) 
		{
			var imgID = (img.id) ? "id='" + img.id + "' " : ""
			var imgClass = (img.className) ? "class='" + img.className + "' " : ""
			var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
			var imgStyle = "display:inline-block;" + img.style.cssText 
			if (img.align == "left") imgStyle = "float:left;" + imgStyle
			if (img.align == "right") imgStyle = "float:right;" + imgStyle
			if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
			var strNewHTML = "<span " + imgID + imgClass + imgTitle
			+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
			+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
			+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
			img.outerHTML = strNewHTML
		}
	}

/*ÆË¾÷ ¶ç¿ì±â =============================*/
function popupWin(filename,winname,width,height,scroll,left,top)	{
window.open("" + filename + "","" + winname +"","scrollbars=" + scroll + ",toolbar=no,location=no,directories=no,width=" + width + ",height=" + height + ",resizable=no,mebar=no,left=" + left + ",top=" + top + ""); 
}




/**
 * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
 *   legal reasons.
 */
if(typeof deconcept == "undefined") var deconcept = new Object();
if(typeof deconcept.util == "undefined") deconcept.util = new Object();
if(typeof deconcept.SWFObjectUtil == "undefined") deconcept.SWFObjectUtil = new Object();
deconcept.SWFObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, xiRedirectUrl, redirectUrl, detectKey){
	if (!document.getElementById) { return; }
	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
	this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
	//////////////////////////////
	// 2006.11.17 added by Ghi Nam
	// MS phishing filter ·Î ÀÎÇØ swfobject detectflash ±â´ÉÀÌ ÀÇ½ÉµÇ´Â phishing object·Î °£ÁÖµÇ¾î
	// SWFObject °¡ ½ÇÇàÀÌ ¾ÈµÇ´Â °ÍÀ» ¹æÁöÇÏ±â À§ÇØ detecting ±â´ÉÀ» Á¦¿ÜÇÑ´Ù.
	this.skipDetect=true;
	//////////////////////////////
	this.params = new Object();
	this.variables = new Object();
	this.attributes = new Array();
	if(swf) { this.setAttribute('swf', swf); }
	if(id) { this.setAttribute('id', id); }
	if(w) { this.setAttribute('width', w); }
	if(h) { this.setAttribute('height', h); }
	if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }
	this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
	if(c) { this.addParam('bgcolor', c); }
	var q = quality ? quality : 'high';
	this.addParam('quality', q);
	this.setAttribute('useExpressInstall', useExpressInstall);
	this.setAttribute('doExpressInstall', false);
	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
	this.setAttribute('xiRedirectUrl', xir);
	this.setAttribute('redirectUrl', '');
	if(redirectUrl) { this.setAttribute('redirectUrl', redirectUrl); }
}
deconcept.SWFObject.prototype = {
	setAttribute: function(name, value){
		this.attributes[name] = value;
	},
	getAttribute: function(name){
		return this.attributes[name];
	},
	addParam: function(name, value){
		this.params[name] = value;
	},
	getParams: function(){
		return this.params;
	},
	addVariable: function(name, value){
		this.variables[name] = value;
	},
	getVariable: function(name){
		return this.variables[name];
	},
	getVariables: function(){
		return this.variables;
	},
	getVariablePairs: function(){
		var variablePairs = new Array();
		var key;
		var variables = this.getVariables();
		for(key in variables){
			variablePairs.push(key +"="+ variables[key]);
		}
		return variablePairs;
	},
	getSWFHTML: function() {
		var swfNode = "";
		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
			if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); }
			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"';
			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
			var params = this.getParams();
			 for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }
			var pairs = this.getVariablePairs().join("&");
			 if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
			swfNode += '/>';
		} else { // PC IE
			if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); }
			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'">';
			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
			var params = this.getParams();
			for(var key in params) {
			 swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
			}
			var pairs = this.getVariablePairs().join("&");
			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
			swfNode += "</object>";
		}
		return swfNode;
	},
	write: function(elementId){
		if(this.getAttribute('useExpressInstall')) {
			// check to see if we need to do an express install
			var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
			if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
				this.setAttribute('doExpressInstall', true);
				this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
				document.title = document.title.slice(0, 47) + " - Flash Player Installation";
				this.addVariable("MMdoctitle", document.title);
			}
		}
		if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){
			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
			n.innerHTML = this.getSWFHTML();
			return true;
		}else{
			if(this.getAttribute('redirectUrl') != "") {
				document.location.replace(this.getAttribute('redirectUrl'));
			}
		}
		return false;
	}
}

/* ---- detection functions ---- */
deconcept.SWFObjectUtil.getPlayerVersion = function(){
	var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
		}
	}else{
		// do minor version lookup in IE, but avoid fp6 crashing issues
		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
		try{
			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		}catch(e){
			try {
				var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				PlayerVersion = new deconcept.PlayerVersion([6,0,21]);
				axo.AllowScriptAccess = "always"; // throws if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
			} catch(e) {
				if (PlayerVersion.major == 6) {
					return PlayerVersion;
				}
			}
			try {
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			} catch(e) {}
		}
		if (axo != null) {
			PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
		}
	}
	return PlayerVersion;
}
deconcept.PlayerVersion = function(arrVersion){
	this.major = arrVersion[0] != null ? parseInt(arrVersion[0]) : 0;
	this.minor = arrVersion[1] != null ? parseInt(arrVersion[1]) : 0;
	this.rev = arrVersion[2] != null ? parseInt(arrVersion[2]) : 0;
}
deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
	if(this.major < fv.major) return false;
	if(this.major > fv.major) return true;
	if(this.minor < fv.minor) return false;
	if(this.minor > fv.minor) return true;
	if(this.rev < fv.rev) return false;
	return true;
}
/* ---- get value of query string param ---- */
deconcept.util = {
	getRequestParameter: function(param) {
		var q = document.location.search || document.location.hash;
		if(q) {
			var pairs = q.substring(1).split("&");
			for (var i=0; i < pairs.length; i++) {
				if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
					return pairs[i].substring((pairs[i].indexOf("=")+1));
				}
			}
		}
		return "";
	}
}
/* fix for video streaming bug */
deconcept.SWFObjectUtil.cleanupSWFs = function() {
	if (window.opera || !document.all) return;
	var objects = document.getElementsByTagName("OBJECT");
	for (var i=0; i < objects.length; i++) {
		objects[i].style.display = 'none';
		for (var x in objects[i]) {
			if (typeof objects[i][x] == 'function') {
				objects[i][x] = function(){};
			}
		}
	}
}
// fixes bug in fp9 see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
deconcept.SWFObjectUtil.prepUnload = function() {
	__flash_unloadHandler = function(){};
	__flash_savedUnloadHandler = function(){};
	if (typeof window.onunload == 'function') {
		var oldUnload = window.onunload;
		window.onunload = function() {
			deconcept.SWFObjectUtil.cleanupSWFs();
			oldUnload();
		}
	} else {
		window.onunload = deconcept.SWFObjectUtil.cleanupSWFs;
	}
}
if (typeof window.onbeforeunload == 'function') {
	var oldBeforeUnload = window.onbeforeunload;
	window.onbeforeunload = function() {
		deconcept.SWFObjectUtil.prepUnload();
		oldBeforeUnload();
	}
} else {
	window.onbeforeunload = deconcept.SWFObjectUtil.prepUnload;
}
/* add Array.push if needed (ie5) */
if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}

/* add some aliases for ease of use/backwards compatibility */
var getQueryParamValue = deconcept.util.getRequestParameter;
var FlashObject = deconcept.SWFObject; // for legacy support
var SWFObject = deconcept.SWFObject;
// SWFObject end
////////////////////////////////////////////////////////////////////////////////


function foldSearch() {
		var __div=document.getElementById("layGNB");
		var f=__div.getElementsByTagName("object")[0];
		f.setVariable("activated", "false");
}


/**
* »óÇ° ¸®½ºÆ® ¾ÆÀÌÄÜ View 
* »óÇ°ÀÌ ÀÖ´Â °æ¿ìÀÇ ¾ÆÀÌÄÜ ¼³¸í ·¹ÀÌ¾î
* @param	n
* @param	product_code
*/
function iconComment(n, product_code) {
	if(n == 0)
	{
		for(var i = 1; i < 5; i++) {
			obj_C = document.getElementById(product_code +'_icon_'+i);
			if(obj_C == undefined)
			{
				continue;
			}
			obj_C.style.display = "none";
		}
		return;
	}
	
	for(var i = 1; i < 5; i++) {
		obj_C = document.getElementById(product_code +'_icon_'+i);
		if(obj_C == undefined)
		{
			continue;
		}
		if ( n == i ) {
			obj_C.style.display = "block";
		} else {
			obj_C.style.display = "none";
		}
	}
}

/**
* »óÇ°ÀÌ Ç°ÀýÀÎ °æ¿ìÀÇ ¾ÆÀÌÄÜ ¼³¸í ·¹ÀÌ¾î
* @param	n
* @param	product_code
*/
function iconComment2(n, product_code) {
	if(n == 0)
	{
		for(var i = 1; i < 5; i++) {
			obj_C = document.getElementById(product_code +'_icon_'+i);
			if(obj_C == undefined)
			{
				continue;
			}
			obj_C.style.display = "none";
		}
		return;
	}
	
	for(var i = 1; i < 4; i++) {
		obj_C = document.getElementById(product_code +'_icon_'+i);
		if(obj_C == undefined)
		{
			continue;
		}
		if ( n == i ) {
			obj_C.style.display = "block";
		} else {
			obj_C.style.display = "none";
		}
	}
}
	
	// ¸¶¿ì½º ¿À¹ö½Ã »óÇ° ¾ÆÀÌÄÜ
/**
* 
* @param	chr_case
* @param	product_code
*/
function product_icon_write(chr_case, product_code) {
	var AffiliateGBCookie=getCookie("AffiliateGBCookie");
	if(window.parent.wc != undefined)
	{
		if(AffiliateGBCookie != "true" )
		{
			// arguments[2] == "002301" ÀÌ¸é.. Mall »óÇ°ÀÎ °æ¿ìÀÌ´Ù.
			// Mall »óÇ°Àº Ç°ÀýÀÌ¶óµµ ÀçÀÔ°í ¾Ë¸®¹Ì ¾ÆÀÌÄÜÀ» º¸¿©ÁÖÁö ¾Ê´Â´Ù.
			var isMall=false;
			
			if(arguments[2] != undefined && arguments[2] == "002301")
			{
				isMall=true;
			}
			
			// ¾ÆÀÌÄÜ ·¹ÀÌ¾îÀû¿ëÀ» À§ÇÑ ½ºÅ¸ÀÏ Å¬·¡½º ÀÌ¸§À» Á¤ÇÑ´Ù
			var iconClassName="divListIcon";
			if(arguments[3] != undefined && typeof(arguments[3]) == "string")
			{
				iconClassName += "_" + arguments[3];
			}
				
			if(chr_case=="01") {		
				// »óÇ°ÀÌ ÀÖ´Â °æ¿ìÀÇ ¾ÆÀÌÄÜ ################
				var iconCommentTag = "";
				iconCommentTag +="<div id='" + product_code + "' class='" + iconClassName + "'>";
				iconCommentTag +="<a href='#' onMouseover='iconComment(1, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList_01.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_01on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_01.gif"' + "' onclick='openQuickView(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment(2, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList_02.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_02on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_02.gif"' + "' onclick='addWishListItemHtml(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment(3, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList_03.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_03on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_03.gif"' + "' onclick='addCartItem(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment(4, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList_04.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_04on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_04.gif"' + "' onclick='buyNowItem(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<div class='divListIcon2'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment_01.gif' id='" + product_code + "_icon_1' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment_02.gif' id='" + product_code + "_icon_2' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment_03.gif' id='" + product_code + "_icon_3' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment_04.gif' id='" + product_code + "_icon_4' style='display:none'>";
				iconCommentTag +="</div>";
				iconCommentTag +="	</div>";
				
				document.write(iconCommentTag);
			} else if(chr_case == "04") {
				// »óÇ°ÀÌ Ç°ÀýµÈ °æ¿ìÀÇ ¾ÆÀÌÄÜ ################
				var iconCommentTag = "";
				iconCommentTag +="	<div id='" + product_code + "' class='" + iconClassName + "'>";
				iconCommentTag +="<a href='#' onMouseover='iconComment2(1, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01.gif"' + "' onclick='openQuickView(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment2(2, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02.gif"' + "' onclick='addWishListItemHtml(" + '"' + product_code + '"' + "); return false;'></a>";
				if(isMall != true)	
				{
					iconCommentTag +="<a href='#' onMouseover='iconComment2(3, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03.gif"' + "' onclick='requestWarehousingAlarm(" + '"' + product_code + '"' + "); return false;'></a>";
				}
				iconCommentTag +="<div class='divListIcon2'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_01.gif' id='" + product_code + "_icon_1' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_02.gif' id='" + product_code + "_icon_2' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_03.gif' id='" + product_code + "_icon_3' style='display:none'>";
				iconCommentTag +="</div>";
				iconCommentTag +="	</div>";
		
				document.write(iconCommentTag);
			} else {	
				// »óÇ°ÀÌ Ç°ÀýµÈ °æ¿ìÀÇ ¾ÆÀÌÄÜ ################
				var iconCommentTag = "";
				iconCommentTag +="	<div id='" + product_code + "' class='" + iconClassName + "'>";
				iconCommentTag +="<a href='#' onMouseover='iconComment2(1, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01.gif"' + "' onclick='openQuickView(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment2(2, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02.gif"' + "' onclick='addWishListItemHtml(" + '"' + product_code + '"' + "); return false;'></a>";
				if(isMall != true)	
				{
					iconCommentTag +="<a href='#' onMouseover='iconComment2(3, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03.gif"' + "' onclick='requestWarehousingAlarm(" + '"' + product_code + '"' + "); return false;'></a>";
				}
				iconCommentTag +="<div class='divListIcon2'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_01.gif' id='" + product_code + "_icon_1' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_02.gif' id='" + product_code + "_icon_2' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_03.gif' id='" + product_code + "_icon_3' style='display:none'>";
				iconCommentTag +="</div>";
				iconCommentTag +="	</div>";
		
				document.write(iconCommentTag);
			}
		}
	}
}

/**
* 
* @param	chr_case
* @param	product_code
*/
function product_icon(chr_case, product_code) {
	var AffiliateGBCookie=getCookie("AffiliateGBCookie");
	if(window.parent.wc != undefined)
	{
		if(AffiliateGBCookie != "true" )
		{
			obj_product_code = document.getElementById(product_code);
			if(chr_case=="01") {
				obj_product_code.style.display = 'block';
			} else if(chr_case == "04") {
				obj_product_code.style.display = 'none';
			}
		}
	}
}


function product_icon_writet(chr_case, product_code) {
	var AffiliateGBCookie=getCookie("AffiliateGBCookie");
	if(window.parent.wc != undefined)
	{
	//alert("AffiliateGBCookie:"+AffiliateGBCookie);
	
		if(AffiliateGBCookie != "true" )
		{
			// arguments[2] == "002301" ÀÌ¸é.. Mall »óÇ°ÀÎ °æ¿ìÀÌ´Ù.
			// Mall »óÇ°Àº Ç°ÀýÀÌ¶óµµ ÀçÀÔ°í ¾Ë¸®¹Ì ¾ÆÀÌÄÜÀ» º¸¿©ÁÖÁö ¾Ê´Â´Ù.
			var isMall=false;
			
			if(arguments[2] != undefined && arguments[2] == "002301")
			{
				isMall=true;
			}
				
			// ¾ÆÀÌÄÜ ·¹ÀÌ¾îÀû¿ëÀ» À§ÇÑ ½ºÅ¸ÀÏ Å¬·¡½º ÀÌ¸§À» Á¤ÇÑ´Ù
			var iconClassName="divListIcon";
			if(arguments[3] != undefined && typeof(arguments[3]) == "string")
			{
				iconClassName += "_" + arguments[3];
			}
			
			if(chr_case=="01") {		
				// »óÇ°ÀÌ ÀÖ´Â °æ¿ìÀÇ ¾ÆÀÌÄÜ ################
				var iconCommentTag = "";
				iconCommentTag +="	<div id='" + product_code + "' class='" + iconClassName + "'>";
				iconCommentTag +="<a href='#' onMouseover='iconComment(1, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList_01.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_01on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_01.gif"' + "' onclick='openQuickView(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment(2, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList_02.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_02on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_02.gif"' + "' onclick='addWishListItemHtml(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment(3, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList_03.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_03on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_03.gif"' + "' onclick='addCartItem(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment(4, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList_04.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_04on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList_04.gif"' + "' onclick='buyNowItem(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<div class='divListIcon2'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment_01.gif' id='" + product_code + "_icon_1' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment_02.gif' id='" + product_code + "_icon_2' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment_03.gif' id='" + product_code + "_icon_3' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment_04.gif' id='" + product_code + "_icon_4' style='display:none'>";
				iconCommentTag +="</div>";
				iconCommentTag +="	</div>";
				
				document.write(iconCommentTag);
			} else if(chr_case == "04") {
				// »óÇ°ÀÌ Ç°ÀýµÈ °æ¿ìÀÇ ¾ÆÀÌÄÜ ################			
				var iconCommentTag = "";
				iconCommentTag +="	<div id='" + product_code + "' class='" + iconClassName + "'>";
				iconCommentTag +="<a href='#' onMouseover='iconComment2(1, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01.gif"' + "' onclick='openQuickView(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment2(2, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02.gif"' + "' onclick='addWishListItemHtml(" + '"' + product_code + '"' + "); return false;'></a>";
				if(isMall != true)	
				{
					iconCommentTag +="<a href='#' onMouseover='iconComment2(3, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03.gif"' + "' onclick='requestWarehousingAlarm(" + '"' + product_code + '"' + "); return false;'></a>";
				}
				iconCommentTag +="<div class='divListIcon2'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_01.gif' id='" + product_code + "_icon_1' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_02.gif' id='" + product_code + "_icon_2' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_03.gif' id='" + product_code + "_icon_3' style='display:none'>";
				iconCommentTag +="</div>";
				iconCommentTag +="	</div>";
		
				document.write(iconCommentTag);
			} else {	
				// »óÇ°ÀÌ Ç°ÀýµÈ °æ¿ìÀÇ ¾ÆÀÌÄÜ  ################
				var iconCommentTag = "";
				iconCommentTag +="	<div id='" + product_code + "' class='" + iconClassName + "'>";
				iconCommentTag +="<a href='#' onMouseover='iconComment2(1, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_01.gif"' + "' onclick='openQuickView(" + '"' + product_code + '"' + "); return false;'></a>";
				iconCommentTag +="<a href='#' onMouseover='iconComment2(2, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_02.gif"' + "' onclick='addWishListItemHtml(" + '"' + product_code + '"' + "); return false;'></a>";
				if(isMall != true)	
				{
					iconCommentTag +="<a href='#' onMouseover='iconComment2(3, " + '"' + product_code + '"' + ")' onMouseout='iconComment(0, " + '"' + product_code + '"' + ")'><img src='http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03.gif' onMouseOver='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03on.gif"' + "' onMouseOut='this.src=" +'"http://img.wizwid.com/Wizwid/2006/img/common/iconList2_03.gif"' + "' onclick='requestWarehousingAlarm(" + '"' + product_code + '"' + "); return false;'></a>";
				}
				iconCommentTag +="<div class='divListIcon2'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_01.gif' id='" + product_code + "_icon_1' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_02.gif' id='" + product_code + "_icon_2' style='display:none'>";
				iconCommentTag +="<img src='http://img.wizwid.com/Wizwid/2006/img/common/iconListComment2_03.gif' id='" + product_code + "_icon_3' style='display:none'>";
				iconCommentTag +="</div>";
				iconCommentTag +="	</div>";
		
				document.write(iconCommentTag);
			}
		}
	}
}

/**
* 
* @param	chr_case
* @param	product_code
*/
function product_icont(chr_case, product_code) {
	var AffiliateGBCookie=getCookie("AffiliateGBCookie");
	if(window.parent.wc != undefined)
	{
		if(AffiliateGBCookie != "true" )
		{
			obj_product_code = document.getElementById(product_code);
			if(chr_case=="01") {
				obj_product_code.style.display = 'block';
			} else if(chr_case == "04") {
				obj_product_code.style.display = 'none';
			}
		}
	}
}

// »óÇ° ¸®½ºÆ® ¾ÆÀÌÄÜ View ###########################


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function jumpMenu(selObj) {
	var url = selObj.options[selObj.selectedIndex].value;
	
	if(url.length > 0)
		window.open(url, '');
}




//////////////////////////////////////////////////////////////////////////////////
//////////////////////////// wisecart util ///////////////////////////////////////
var OPTIONBOARD_TYPE_CART="0";
var OPTIONBOARD_TYPE_BUYNOW="1";
var OPTIONBOARD_TYPE_WAREHOUSING="2";

var EXEC_TYPE_ADDCART="addcart";
var EXEC_TYPE_BUYNOW="buynow";
var EXEC_TYPE_REQUESTWAREHOUSINGALARM="requestwarehousingalarm";


/**
* À§½Ã¸®½ºÆ®¾ÆÀÌÅÛÀ» Ãß°¡ÇÑ´Ù. »óÇ°¸ñ·ÏÆäÀÌÁö¿¡¼­ "À§½Ã¸®½ºÆ®¿¡´ã±â"¹öÆ°À» ´­·¶À» °æ¿ì È£ÃâµÈ´Ù.
* @param	index
*/
function addWishListItem(assort_id)
{	
	trace("addWishListItem");
	
	// TODO : 
	// ¼­¹ö¿¡ ÇØ´ç ¾ÆÀÌÅÛÀ» Ãß°¡ÇÑ´Ù.
	// °á°ú ..¿ÍÀÌÁîÄ«Æ®¿¡ ¾ÆÀÌÅÛÃß°¡¿äÃ»À» ÇÑ´Ù.
	
	// temp
	addWishListItemToWiseCart(assort_id);
}

/**
* À§½Ã¸®½ºÆ®¾ÆÀÌÅÛÃß°¡¸¦ ¿ÍÀÌÁîÄ«Æ®¿¡ ¿äÃ»ÇÑ´Ù. 
* @param	assort_id
*/
function addWishListItemToWiseCart(assort_id, setassortid1, setassortid2)
{
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
			wisecart.addWishListItem(assort_id, setassortid1, setassortid2);
		}
	}
}

/**
* À§½Ã¸®½ºÆ®¾ÆÀÌÅÛº¯°æÀ» ¿ÍÀÌÁîÄ«Æ®¿¡ ¿äÃ»ÇÑ´Ù.
* @param	assort_id
*/
function editWishListItemToWiseCart(assort_id)
{
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
			wisecart.editWishListItem(assort_id);
		}
	}
}

/**
* À§½Ã¸®½ºÆ®¾ÆÀÌÅÛ»èÁ¦¸¦ ¿ÍÀÌÁîÄ«Æ®¿¡ ¿äÃ»ÇÑ´Ù.
* @param	item	(Object) - {assort_id}/(Array) - [{assort_id}]
*/
function deleteWishListItemToWiseCart(item)
{
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
			wisecart.deleteWishListItem(item);
		}
	}
}

/**
* ¼îÇÎÄ«Æ®¸®½ºÆ®¾ÆÀÌÅÛÀ» Ãß°¡ÇÑ´Ù. »óÇ°¸ñ·ÏÆäÀÌÁö¿¡¼­ "¼îÇÎÄ«Æ®¿¡´ã±â"¹öÆ°À» ´­·¶À» °æ¿ì È£ÃâµÈ´Ù.
* @param	index
*/
function addCartItem(assort_id)
{
	trace("addCartItem");
	// ¿É¼Ç¼±ÅÃÀÌ ¼±ÇàµÇ¾î¾ßÇÏ±â ¶§¹®¿¡ ¿É¼Ç¼±ÅÃÈ­¸éÀ» º¸ÀÎ´Ù.
	showOptionBoard(assort_id, OPTIONBOARD_TYPE_CART);
}

/**
* ¼îÇÎÄ«Æ®¸®½ºÆ®¾ÆÀÌÅÛÃß°¡¸¦ ¼­¹ö¿¡ ¿äÃ»ÇÑ´Ù. ¿É¼Ç¼±ÅÃÇÃ·¡½Ã¹«ºñ¿¡¼­ È£ÃâµÈ´Ù.
* 
* »óÇ°ÀÌ ´ÜÀÏ»óÇ°ÀÏ °æ¿ì
* item == {assort_id, item_id, option_nm1, option_nm2}
* »óÇÄÀÌ ¼ÂÆ®»óÇ°ÀÏ °æ¿ì
* item == {assort_id, unitProducts[{assort_id, item_id, option_nm1, option_nm2}, {assort_id, item_id, option_nm1, option_nm2}]}
* @param	item
*/
function addCartItemToServer(item)
{
	// TODO : 
	// ¼­¹ö¿¡ ¼îÇÎÄ«Æ®¸®½ºÆ®¾ÆÀÌÅÛÀ» Ãß°¡ÇÑ´Ù.
	// °á°ú ..¿ÍÀÌÁîÄ«Æ®ÀÇ ¼îÇÎÄ«Æ® ¾÷µ¥ÀÌÆ®¸¦ ¿äÃ»ÇÑ´Ù.
	
	// temp
	// test
	updateWiseCart("01");
}

/**
* ¿ÍÀÌÁîÄ«Æ®ÀÇ ¼îÇÎÄ«Æ® ¾÷µ¥ÀÌÆ®¸¦ ¿äÃ»ÇÑ´Ù.
* @param	basket_gb
*/
function updateWiseCart(basket_gb)
{
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
			wisecart.updateCart(basket_gb);
		}
	}
}

/**
* HTML order completed.
* @param	assort_id
*/
function notifyOrderCompleted(basket_gb)
{
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
			wisecart.notifyOrderCompleted(basket_gb);
		}
	}
}

/**
* ÁÖ¹®¸®½ºÆ®¾ÆÀÌÅÛÀ» Ãß°¡ÇÑ´Ù. »óÇ°¸ñ·Ï ÆäÀÌÁö¿¡¼­ "¹Ù·Î±¸¸Å"¹öÆ°À» ´­·¶À» °Ü¿õ È£ÃâµÈ´Ù.
* @param	assort_id
*/
function buyNowItem(assort_id)
{
	trace("buyNowItem");
	// ¿É¼Ç¼±ÅÃÀÌ ¼±ÇàµÇ¾î¾ßÇÏ±â ¶§¹®¿¡ ¿É¼Ç¼±ÅÃÈ­¸éÀ» º¸ÀÎ´Ù.
	showOptionBoard(assort_id, OPTIONBOARD_TYPE_BUYNOW);
}

/**
* ÁÖ¹®¸®½ºÆ®¾ÆÀÌÅÛÀ» ¼­¹ö¿¡ Ãß°¡ÇÑ´Ù. ¿É¼Ç¼±ÅÃÇÃ·¡½Ã¹«ºñ¿¡¼­ È£ÃâµÈ´Ù.
* @param	item
*/
function addOrderItemToServer(item)
{
	// TODO : 
	// ¼­¹ö¿¡ ÁÖ¹®Àü¿ë ¹Ù½ºÄÏ¿¡ ¾ÆÀÌÅÛÀ» Ãß°¡ÇÑ´Ù.
	// °á°ú ..¿ÍÀÌÁîÄ«Æ®¿¡ ÇØ´ç ÁÖ¹®Àü¿ë ¹Ù½ºÄÏÀÇ ÁÖ¹®ÇÁ·Î¼¼½º »çÀÛÀ» ¿äÃ»ÇÑ´Ù.
}

/**
* ¿ÍÀÌÁîÄ«Æ®¿¡ ÁÖ¹®¹Ù½ºÄÏÀÇ ÁÖ¹®ÇÁ·Î¼¼½º½ÃÀÛÀ» ¿äÃ»ÇÑ´Ù.
* @param	basket_gb
*/
function startOrderingProcess(basket_gb)
{
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");	
			wisecart.startOrderingProcess(basket_gb);
		}
	}
}

/**
* ÇØ´ç »óÇ°ÀÇ Äüºä¸¦ º¸ÀÎ´Ù. »óÇ°¸ñ·ÏÆäÀÌÁö¿¡¼­ "Äüºäº¸±â"¹öÆ°À» ´­·¶À» °æ¿ì È£ÃâµÈ´Ù.
* @param	assort_id
*/
function openQuickView(assort_id)
{
	trace("openQuickView : " + assort_id);
	var wisecart=window.parent.wc.getFlashMovie("wisecart");
	wisecart.openQuickView(assort_id);
}

/**
* ÀçÀÔ°í¾Ë¸²À» ¿äÃ»ÇÑ´Ù. »óÇ°¸ñ·ÏÆäÀÌÁö, »óÇ°»ó¼¼ÆäÀÌÁö¿¡¼­ "ÀçÀÔ°í¾Ë¸²"¹öÆ°À» ´­·¶À» °æ¿ì È£ÃâµÈ´Ù.
* @param	assort_id
*/
function requestWarehousingAlarm(assort_id)
{
	trace("requestWarehousingAlarm");
	
	// ·Î±×ÀÎÀÌ µÇ¾îÀÖÁö ¾ÊÀ¸¸é ¿É¼ÇÃ¢ ¶ç¿ìÁö ¾Ê°í °æ°í¸Þ½ÃÁö¸¦ ¶ç¿î´Ù.
	var singIn=window.parent.wc.getSignInState();
	
	if(singIn == false)
	{
		// TODO : °æ°í¸Þ½ÃÁö "·Î±×ÀÎÀ» ÇÏ¼Å¾ß ÀçÀÔ°í¾Ë¸² ¼­ºñ½º ½ÅÃ»À» ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.";
		
		// temp
		trace("·Î±×ÀÎÀ» ÇÏ¼Å¾ß ÀçÀÔ°í¾Ë¸²¼­ºñ½º ½ÅÃ»À» ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
	}
	else
	{	
		// ¿É¼Ç¼±ÅÃÀÌ ¼±ÇàµÇ¾î¾ßÇÏ±â ¶§¹®¿¡ ¿É¼Ç¼±ÅÃÈ­¸éÀ» º¸ÀÎ´Ù.
		showOptionBoard(assort_id, OPTIONBOARD_TYPE_WAREHOUSING);
	}	
}

/**
* »óÇ°ÀÇ »ó¼¼ÆäÀÌÁö·Î ÀÌµ¿ÇÑ´Ù.
* @param	assort_id
*/
function gotoDetail(assort_id)
{	
	trace("gotoDetail");
	
	// TODO : »ó¼¼ÆäÀÌÁö·Î ÀÌµ¿ÇÑ´Ù.
	
	// test addTodayListItem
//	addTodayListItem(assort_id);
	
	var item=new Object();
	item.assort_id=assort_id;
	item.vendor_id="002201";	// shop
	
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			window.parent.wc.openProductDetailPage(item);
		}
	}
}

/**
* Åõµ¥ÀÌ¸®½ºÆ®¾ÆÀÌÅÛÀ» Ãß°¡ÇÑ´Ù.
* »ç¿ëÀÚ°¡ »óÇ°ÀÇ »ó¼¼ÆäÀÌÁö¸¦ º¸¾ÒÀ» °æ¿ì Ãß°¡µÇ¾î¾ßÇÏ±â ¶§¹®¿¡ »óÇ°»ó¼¼ÆäÀÌÁö¿¡¼­ È£ÃâµÇ¾î¾ßÇÑ´Ù.
* @param	assort_id
*/
function addTodayListItem(assort_id)
{
	trace("addTodayListItem");
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
			wisecart.addTodayListItem(assort_id);
		}
	}
}

/**
* Áñ°ÜÃ£±â ¾ÆÀÌÅÛÀ» ¿ÍÀÌÁîÄ«Æ®¿¡ Ãß°¡ÇÑ´Ù.
* ½ÇÁ¦´Â ÆäÀÌÁö»óÀÇ "Áñ°ÜÃ£±âÃß°¡"¹öÆ°À» ´­·¶À» °æ¿ì ÆË¾÷µÇ´Â ·¹ÀÌ¾î¿¡¼­
* Áñ°ÜÃ£±â Á¦¸ñÀ» ±âÀÔÇÏ°í È®ÀÎ ¹öÆ°À» ´­·¶À» °æ¿ì ¼­¹ö¿¡ Áñ°ÜÃ£±â¾ÆÀÌÅÛÀ» 
* Ãß°¡¿äÃ»ÇÏ°í Ã³¸® °á°ú¸¦ ¹Þ¾Æ¼­ ¼º°øÀ» ÇßÀ» °æ¿ì¿¡¸¸ È£ÃâµÇ¾î¾ßÇÑ´Ù.
* @param	id	string)- ""
* @param	title	(string) - Áñ°ÜÃ£±â Á¦¸ñ
* @param	url	(string) - Áñ°ÜÃ£±â URL
*/
function addLinkListItem(id, title, url)
{
	trace("addLinkListItem");
	
	// ¸µÅ© ¾ÆÀÌÅÛÀ» ¸¸µç´Ù.
	var linkItem=new Object();
	linkItem.id=id;	
	linkItem.title=title;	
	linkItem.url=url;	
	
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
			wisecart.addLinkListItem(linkItem);
		}
	}
}

/**
* ¿É¼Ç¼±ÅÃ ·¹ÀÌ¾î¸¦ º¸¿©ÁØ´Ù.
* @param	assort_id	(string) - ÇØ´ç »óÇ°ÀÇ assort_id
*/
function showOptionBoard(assort_id, type)
{	
	trace("showOptionBoard");
	
	// ¿ÍÀÌÁîÄ«Æ®¸¦ µ¤´Â´Ù.
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
			if(wisecart.foldWiseCart != undefined)
			{
				wisecart.foldWiseCart();
			}
		}
	}
	
	var flash_w=400;
	var flash_h=230;
	
	var optionDiv=document.getElementById("div_optionFlash");
	if(optionDiv != undefined)
	{
		// do nothing
	}
	else
	{
		optionDiv=document.createElement("DIV");
		optionDiv.setAttribute("id", "div_optionFlash");
		optionDiv.setAttribute("name", "div_optionFlash");
		optionDiv.style.display="none";
	//	writeFlashPopUpLayer(optionDiv, "div_optionFlash", flash_w, flash_h);
		document.body.appendChild(optionDiv);
	}
	
	var so = new SWFObject("http://img.wizwid.com/Wizwid/2006/flash/optionstandalone.swf", "option_flash", flash_w.toString(), flash_h.toString(), "9", "#ffffff");
	so.addParam("allowScriptAccess", "always");
	so.addVariable("assort_id", assort_id);
	so.addVariable("type", type);
	so.addVariable("IsLogin", IsLogin);
	so.addVariable("CustGB", CustGB);
	so.addVariable("configUrl", "http://img.wizwid.com/Wizwid/2006/flash/quickviewconfiguration.xml");
	so.addParam("scale", "noscale");
	so.addParam("wmode", "transparent");
	so.write("div_optionFlash");

	var x=(event.clientX+document.body.scrollLeft);
	var y=(event.clientY+document.body.scrollTop);
	
	x -= 40;
	y -= 80;
	
	if(x+flash_w > (document.body.clientWidth+document.body.scrollLeft))
	{
		x -= (x+flash_w - document.body.clientWidth - document.body.scrollLeft);
	}
	
	/*
	if(y+flash_h+80 > (document.body.clientHeight+document.body.scrollTop))
	{
		y -= (y+flash_h+80 - document.body.clientHeight - document.body.scrollTop);
	}
	*/
	
	setStyles(optionDiv, {position:"absolute", display:"block", zIndex:"1000", left:x, top:y});
	
	var option_flash=document.getElementById("option_flash");
	if(option_flash != undefined)
	{
		optionDiv.focus();
	}
}

/**
* ¿É¼Ç¼±ÅÃ HTML ·¹ÀÌ¾î¸¦ ¾ø¾Ø´Ù.
*/
function hideOptionBoard()
{
//	trace("hideOptionBoard");
	
	var optionDiv=document.getElementById("div_optionFlash");
	if(optionDiv != undefined)
	{
	//	optionDiv.removeChild(optionDiv.children(0));
		setStyles(optionDiv, {position:"absolute", display:"none", zIndex:"1000", left:"0", top:"-1000"});
	}
	else
	{
		// do nothing
	}
}

/**
* ¿É¼Çº¸µå¿¡¼­ ÇØ´ç »óÇ°ÀÇ ¿É¼ÇÇÊ¼ö¿©ºÎ(OPTION_YN)°¡ "N" ÀÏ °æ¿ì È£ÃâµÈ´Ù.
* @param	assort_id
* @param	type
*/
/*
function optionBoard_onNonRequired(assort_id, type)
{
	if(type == undefined)
	{
		trace("¿É¼Çº¸µå Å¸ÀÔ Á¤º¸°¡ ¾ø½À´Ï´Ù.");
		return;
	}
	
	// TODO : 
	// ÇØ´ç Å¸ÀÔ¿¡ µû¶ó À§µåÀ§ÁîÃø¿¡¼­ ÁØºñÇÑ ÇÔ¼ö¸¦ È£ÃâÇÑ´Ù.
	switch(type)
	{
		case OPTIONBOARD_TYPE_CART:
			
			break;
		case OPTIONBOARD_TYPE_BUYNOW:
		
			break;
		case OPTIONBOARD_TYPE_WAREHOUSING:
		
			break;
		default:
			trace("¿É¼Çº¸µå Å¸ÀÔ Á¤º¸°¡ ¿Ã¹Ù¸£°Ô ¼³Á¤µÇÁö ¾Ê¾Ò½À´Ï´Ù.");
			break;
	}
}
*/

/**
* ¿É¼Çº¸µå¿¡¼­ ÇØ´ç »óÇ°ÀÇ ¿É¼ÇÁ¤º¸¿Í ÇÔ²¾  Æ¯Á¤ ½ÇÇàÀ» ¿äÃ»ÇÑ´Ù.
* data : 	´ÜÇ°ÀÇ °æ¿ì 
			{CategoryID, AssortID, AddAmt, ItemID}
			¼ÂÆ®»óÇ°ÀÏ °æ¿ì
			{CategoryID, AssortID, AddAmt, ItemID, SetAssortID1, SetItemID1, SetSeq1, SetAssortID2, SetItemID2, SetSeq2}
* @param	data	instance of com.wizwid.Product
* @param	execType	
*/
function optionBoard_onExecute(data, execType)
{
	trace("optionBoard_onExecute : execType == " + execType);
	
//	alert("optionBoard_onExecute : execType == " + execType);
	
	if(data == undefined || execType == undefined)
	{
		trace("ÇØ´ç ¿äÃ»À» ¼öÇàÇÒ ¼ö ¾ø½À´Ï´Ù.");
	//	alert("ÇØ´ç ¿äÃ»À» ¼öÇàÇÒ ¼ö ¾ø½À´Ï´Ù.");
		return;
	}
	
	// TODO : 
	// ¿ÍÀÌÁîÄ«Æ®·Î À§ÀÓÇÑ´Ù.
	var wc=window.parent.wc;
	if(wc == undefined)
	{
		trace("wc null");
		return;
	}
	
	switch(execType)
	{
		case EXEC_TYPE_ADDCART:
			wc.quickView_addCartItem(data);
			break;
		case EXEC_TYPE_BUYNOW:
			wc.quickView_buyNowItem(data);
			break;
		case EXEC_TYPE_REQUESTWAREHOUSINGALARM:
			wc.quickView_requestWarehousingNotification(data);
			break;
		default:
		//	trace("½ÇÇà Å¸ÀÔ Á¤º¸°¡ ¿Ã¹Ù¸£°Ô ¼³Á¤µÇÁö ¾Ê¾Ò½À´Ï´Ù.");
			break;
	}
}

function billboard_openQuickView(assort_id)
{
	trace("billboard_openQuickView : " + assort_id);
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var f=window.parent.document.getElementById("wisecart").billboard_openQuickView;
			window.parent.document.getElementById("wisecart").billboard_openQuickView(assort_id);
		//	trace(window.parent.document.getElementById("wisecart").id.toString());
		//	var wisecart=window.parent.wc.getFlashMovie("wisecart");
		//	trace(wisecart.billboard_openQuickView);
		//	wisecart.billboard_openQuickView(assort_id);
		//	window.parent.document.getElementById("wisecart").billboard_openQuickView(assort_id);
		}
	}
}

function billboard_addWishListItem(assort_id)
{
	// ¸ÞÀÎºôº¸µå º£½ºÆ®¿Àºêº£½ºÆ®¿¡¼­ ¼îÇÎÄ«Æ®¾ÆÀÌÄÜ Å¬¸¯ÇÏ¸é ºÒ·ÁÁø´Ù.
	// ¹Ù²î¾ú´Ù.!!!
	trace("billboard_addWishListItem : " + assort_id);
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
		//	wisecart.billboard_addWishListItem(assort_id);
			// temp
			wisecart.billboard_addCartListItem(assort_id);
		}
	}
}

function billboard_addCartListItem(assort_id)
{
	// ¸ÞÀÎºôº¸µå º£½ºÆ®¿Àºêº£½ºÆ®¿¡¼­ À§½Ã¸®½ºÆ®¾ÆÀÌÄÜ Å¬¸¯ÇÏ¸é ºÒ·ÁÁø´Ù.
	// ¹Ù²î¾ú´Ù.!!!
	trace("billboard_addCartListItem : " + assort_id);
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
		//	wisecart.billboard_addCartListItem(assort_id);
			// temp
			wisecart.billboard_addWishListItem(assort_id);
		}
	}
}

function billboard_buyNowItem(assort_id)
{
	trace("billboard_buyNowItem : " + assort_id);
	if(window.parent != undefined)
	{
		if(window.parent.wc != undefined)
		{
			var wisecart=window.parent.wc.getFlashMovie("wisecart");
			wisecart.billboard_buyNowItem(assort_id);
		}
	}
}

//////////////////////////////////////////////////////////////
	
/**
* ÇØ´ç HTML ¿ÀºêÁ§Æ®¿¡ ½ºÅ¸ÀÏÀ» Àû¿ëÇÑ´Ù.
* @param	obj	HTML ¿ÀºêÁ§Æ®
* @param	styleObj	½ºÅ¸ÀÏ Á¤º¸¸¦ ´ãÀº Object °´Ã¼
*/
function setStyles(obj, styleObj)
{	
	for(var i in styleObj)
	{
		obj.style[i]=styleObj[i];
	}
}

function showMessageFromFlash(message)
{
	if(message != undefined)
	{
		alert(message);
	}
}

/**
* ¹®ÀÚ¿­À» Ãâ·ÂÇÑ´Ù.
* @param	str
*/
function trace(str)
{
//	alert(str);
//	window.status=str;
}

function getCookie(cookieName)
{
	var search=cookieName + "=";
	if(document.cookie.length > 0) // ÄíÅ°°¡ ¼³Á¤µÇ¾î ÀÖ´Ù¸é
	{
		offset = document.cookie.indexOf(search);
		if(offset != -1) // ÄíÅ°°¡ Á¸ÀçÇÏ¸é
		{
			offset += search.length;
			// set index of beginning of value
			end=document.cookie.indexOf(";", offset);
			// ÄíÅ° °ªÀÇ ¸¶Áö¸· À§Ä¡ ÀÎµ¦½º ¹øÈ£ ¼³Á¤
			if(end == -1)
			{
				end=document.cookie.length;
			}
				
			return unescape(document.cookie.substring(offset, end));
		}
	}
	return "";
}

function setCookie(name, value)
{
	var argv = setCookie.arguments;
	var argc = setCookie.arguments.length;
	var expires = (2 < argc) ? argv[2] : null;
	var path = (3 < argc) ? argv[3] : null;
	var domain = (4 < argc) ? argv[4] : null;
	var secure = (5 < argc) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); 
}


if(window.parent != undefined)
{
	if(window.parent.wc != undefined)
	{
		if(window.parent.wc.getFlashMovie != undefined)
		{
			var f=window.parent.wc.getFlashMovie("wisecart");
			if(f != undefined)
			{
				if(f.notifySignIn != undefined)
				{
					f.notifySignIn();
				}
			}
		}	
	}
}


if(window.parent != undefined)
{
	if(window.parent.saveConentFrameSrc != undefined)
	{
		window.parent.saveConentFrameSrc(document.URL);
	}
}


/*
var AffiliateGBCookie=getCookie("AffiliateGBCookie");
if(AffiliateGBCookie != "true")
{
	if(window.opener == undefined)
	{	
		if(window.parent.wc == undefined)
		{
			var mainPage="http://www.wizwid.com/CSW/handler/wizwid/kr/MainView-MainView";
			var currentPage=document.URL;
			if(mainPage != currentPage)
			{
				if(currentPage != "http://www.wizwid.com/CSW/handler/wizwid/kr/MainView-MainView")
				{
					setCookie("contentFrameSrc", currentPage);	
					document.URL="http://www.wizwid.com/CSW/handler/wizwid/kr/MainView-MainView";
				}
			}
		}
	}
}
*/

/////////////////////////////// wisecart util end ////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////



/*Áñ°ÜÃ£±â */
function showLinkAddition()
{
	if(window.parent == undefined)
	{
		return;
	}
	else
	{
		if(window.parent.wc == undefined)
		{
			return;
		}
	}
	var AffiliateGBCookie=getCookie("AffiliateGBCookie");

	var logIn=getCookie("IsLogin");
	var custGB=getCookie("CustGB");
	
	if(AffiliateGBCookie != "true" )
	{
		if(logIn != "true" && custGB != "03")
		{
			alert("·Î±×ÀÎÀ» ÇÏ¼Å¾ß Áñ°ÜÃ£±â Ãß°¡¸¦ ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			//document.URL="http://www.wizwid.com/CSW/handler/wizwid/kr/Login-Start";
			return;
		}
	
		var title;
		var el=window.event.srcElement;
		var node=el.previousSibling;
		if(node == undefined)
		{
			node=el.parentNode;
		}
		
		var cnt=0;
		while(node)
		{	
			// È¤ ¹«ÇÑ·çÇÁ µµ´Â °É ¸·´Â´Ù.
			if(cnt > 100)
			{
				title="";
				break;
			}
			
			if(node.nodeType == "1")	// element
			{
				if(node.nodeName == "A")
				{
					if(node.href != null && node.href != undefined && node.href != "" && node.href != "#")
					{
						title=node.innerText;
					}
				}
				else
				{
					title=node.innerText;
				}
			}
			else if(node.nodeType == "3")	// text
			{
				var idx=title.indexOf(">");
				if(idx != -1)
				{
					title=title.substr(idx+1);
				}
			}
				
			
			if(title != undefined)
			{
				if(trim(title) != undefined && trim(title) != "")
				{
					break;
				}
			}
		
			title="";
			node=node.previousSibling;
			if(node == undefined)
			{
				node=el.parentNode;
			}
			
			++cnt;
		}
		
	//	alert("title : " + title);
		title=trim(title);
		showLinkAdditionBoard(title);
	}
}

function tshowLinkAddition()
{
	/*if(window.parent == undefined)
	{
		return;
	}
	else
	{
		if(window.parent.wc == undefined)
		{
			return;
		}
	}*/
	var AffiliateGBCookie=getCookie("AffiliateGBCookie");

	var logIn=getCookie("IsLogin");
	var custGB=getCookie("CustGB");
			
	if(AffiliateGBCookie != "true" )
	{
		if(logIn != "true" && custGB != "03")
		{
			alert("·Î±×ÀÎÀ» ÇÏ¼Å¾ß Áñ°ÜÃ£±â Ãß°¡¸¦ ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù."); 
			document.URL="http://www.wizwid.com/CSW/handler/wizwid/kr/Login-Start";
			return;
		}
	
		var title;
		var el=window.event.srcElement;
		var node=el.previousSibling;
		if(node == undefined)
		{
			node=el.parentNode;
		}
		
		var cnt=0;
		while(node)
		{	
			// È¤ ¹«ÇÑ·çÇÁ µµ´Â °É ¸·´Â´Ù.
			if(cnt > 100)
			{
				title="";
				break;
			}
			
			if(node.nodeType == "1")	// element
			{
				if(node.nodeName == "A")
				{
					if(node.href != null && node.href != undefined && node.href != "" && node.href != "#")
					{
						title=node.innerText;
					}
				}
				else
				{
					title=node.innerText;
				}
			}
			else if(node.nodeType == "3")	// text
			{
				var idx=title.indexOf(">");
				if(idx != -1)
				{
					title=title.substr(idx+1);
				}
			}
				
			
			if(title != undefined)
			{
				if(trim(title) != undefined && trim(title) != "")
				{
					break;
				}
			}
		
			title="";
			node=node.previousSibling;
			if(node == undefined)
			{
				node=el.parentNode;
			}
			
			++cnt;
		}
		
	//	alert("title : " + title);
		title=trim(title);
		showLinkAdditionBoard(title);
	}
}			
function trim (strSource) 
{
	if(strSource == undefined)
	{
		return;
	}
	re = /^\s+|\s+$/g;

	return strSource.replace(re, '');
}


			
function showLinkAdditionBoard(title)
{
	if(title == undefined || title == null)
		title="";

	var _div=document.createElement("DIV");
	_div.setAttribute("id", "bookmarkContainer");
	_div.setAttribute("class", "bookmark");
	_div.style.zIndex="1001";
	/*
	_div.style.left="783";
	_div.style.top="247";
	*/
	_div.style.left=window.event.clientX-200;
	_div.style.top=document.body.scrollTop+window.event.clientY+10;
	_div.style.position="absolute";
	_div.innerHTML="<table width='186' height='118' background='http://img.wizwid.com/Wizwid/2006/img/common/bookmark_bg.gif' cellpadding='0' cellspacing='0' border='0'><tr><td align='center'><br/><input type='text' id='bookmarkTitle' value='" + title + "' class='add_input'></td></tr><tr><td class='btn' align='center'><a href='#' onclick='executeLinkAddition(true);'><img src='http://img.wizwid.com/Wizwid/2006/img/common/btn_confirm.gif' align='absmiddle'></a><a href='#' onclick='executeLinkAddition(false);'><img src='http://img.wizwid.com/Wizwid/2006/img/common/btn_cancel.gif' align='absmiddle'></a></td></tr></table>";
	document.getElementById("body").appendChild(_div);
}

function executeLinkAddition(b)
{
	if(b == true)
	{
		var txt=document.getElementById("bookmarkTitle");
		if(txt.value.length == 0)
		{
			alert("Áñ°ÜÃ£±â Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ½Ê½Ã¿À.");
			return;
		}
		
		addLinkListItem("", txt.value, document.URL);
	}
	
	var _div=document.getElementById("bookmarkContainer");
	var _body=document.getElementById("body");
	_div.parentNode.removeChild(_div);
	_div.removeNode();
}




/**
 * leftmenu È°¼ºÈ­
 */
function active_leftmenu() {
	try
	{
		if(depth3!="") {

			depth3_id = "leftmenu"+depth3;
				
			document.getElementById("on_"+depth3_id).style.display = "block";
			document.getElementById(depth3_id).style.display = "none";

			var active_depth3_target = "balloon_sub_"+depth3;
			var target_el = document.getElementById(active_depth3_target);
			if(target_el) {
				if(target_el.style.display=="none") target_el.style.display = "block";
			}
		}
		if((depth3!="") && (depth4!="")) {
			var depth4_num = eval(depth4 - 1);
			var target_el2 = target_el.getElementsByTagName("a");
			if(target_el2[depth4_num]) {
				var target_depth4 = target_el2[depth4_num].getElementsByTagName("img");
				if(target_depth4[0]) target_depth4[0].style.display = "block";
				if(target_depth4[1]) target_depth4[1].style.display = "none";
			}
		}	
	} catch(e) {}
	
}
	

/**
* ¸µÅ© Á¡¼± ¾ø¾Ö±â
*/
function bluring()
{
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")
	{
		document.body.focus();
	}
}
document.onfocusin=bluring;


//
// o File    : nvscroll.js
// o Author  : Kukjin Kang
// o Date    : 2004. 7. 6
// o Cont.   : scroll object
//
function NvScroll() {

this.version = "0.2";
this.name = "NvScroll";
this.item = new Array();
this.itemcount = 0;
this.currentspeed = 0;
this.scrollspeed = 50;
this.pausedelay = 1000;
this.pausemouseover = false;
this.stop = false;
this.type = 1;
this.height = 100;
this.width = 100;
this.stopHeight=0;
this.i=0;

this.add = function () {
	var text = arguments[0];
	this.item[this.itemcount] = text;
	this.itemcount = this.itemcount + 1;
};

this.add2 = function () {
	var url = arguments[0];
	var title = arguments[1];
	this.item[this.itemcount] = "<a href=" + url + ">" + title + "</a>";
	this.itemcount = this.itemcount + 1;
};

this.start = function () {
	if ( this.itemcount == 1 ) {
		this.add(this.item[0]);
	}
	this.display();
	this.currentspeed = this.scrollspeed;
	if ( this.type == 1 || this.type == 2 ) {
		this.stop = true;
		setTimeout(this.name+'.scroll()',this.currentspeed);
		window.setTimeout(this.name+".stop = false", this.pausedelay);
	} else if ( this.type == 3 ) {
		this.stop = true;
		setTimeout(this.name+'.rolling()',this.currentspeed);
		window.setTimeout(this.name+".stop = false", this.pausedelay);
	}
};

this.display = function () {
	document.write('<div id="'+this.name+'" style="height:'+this.height+'; width:'+this.width+'; position:relative; overflow:hidden; " OnMouseOver="'+this.name+'.onmouseover(); " OnMouseOut="'+this.name+'.onmouseout(); ">');
	for(var i = 0; i < this.itemcount; i++) {
		if ( this.type == 1 ) {
			document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+'; position:absolute; top:'+(this.height*i)+'px; ">');
			document.write(this.item[i]);
			document.write('</div>');
		} else if ( this.type == 2 || this.type == 3 ) {
			document.write('<div id="'+this.name+'item'+i+'"style="left:'+(this.width*i)+'px; width:'+this.width+'; position:absolute; top:0px; ">');
			document.write(this.item[i]);
			document.write('</div>');
		}
	}
	document.write('</div>');
};

this.scroll = function () {

	if ( this.pause == true ) {

		window.setTimeout(this.name+".scroll()",this.pausedelay);
		this.pause = false;

	} else {

		this.currentspeed = this.scrollspeed;
		if ( !this.stop ) {
			for (i = 0; i < this.itemcount; i++) {
				obj = document.getElementById(this.name+'item'+i).style;
				if ( this.type == 1 ) {
					obj.top = parseInt(obj.top) - 1;
					if ( parseInt(obj.top) <= this.height * (-1) ) obj.top = this.height * (this.itemcount-1);
					if ( parseInt(obj.top) == 0 ) this.currentspeed = this.pausedelay;
				} else if ( this.type == 2 ) {
					obj.left = parseInt(obj.left) - 1;
					if ( parseInt(obj.left) <= this.width * (-1) ) obj.left = this.width * (this.itemcount-1);
					if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;
				}
			}
		}
		window.setTimeout(this.name+".scroll()",this.currentspeed);
	}
};

this.rolling = function () {
	if ( this.stop == false  ) {
		this.next();
	}
	window.setTimeout(this.name+".rolling()",this.scrollspeed);
}

this.onmouseover = function () {
	if ( this.pausemouseover ) {
		this.stop = true;
	}
};

this.onmouseout = function () {
	if ( this.pausemouseover ) {
		this.stop = false;
	}
};

this.next = function() {

	for (i = 0; i < this.itemcount; i++) {
		obj = document.getElementById(this.name+'item'+i).style;
		if ( parseInt(obj.left) < 1 ) { 
			width = this.width + parseInt(obj.left);
			break;
		}
	}
	for (i = 0; i < this.itemcount; i++) {
		obj = document.getElementById(this.name+'item'+i).style;
		if ( parseInt(obj.left) < 1 ) { 
			obj.left = this.width * (this.itemcount-1);
		} else {
			obj.left = parseInt(obj.left) - width;
		}
	}

}

this.prev = function() {

	for (i = 0; i < this.itemcount; i++) {
		obj = document.getElementById(this.name+'item'+i).style;
		if ( parseInt(obj.left) < 1 ) { 
			width = parseInt(obj.left) * (-1);
			break;
		}
	}
	if ( width == 0 ) {
		total_width = this.width * (this.itemcount-1);
		for (i = 0; i < this.itemcount; i++) {
			obj = document.getElementById(this.name+'item'+i).style;
			if ( parseInt(obj.left) + 1 > total_width ) { 
				obj.left = 0;
			} else {
				obj.left = parseInt(obj.left) + this.width;
			}
		}
	} else {
		for (i = 0; i < this.itemcount; i++) {
			obj = document.getElementById(this.name+'item'+i).style;
			if ( parseInt(obj.left) < 1 ) { 
				obj.left = 0;
			} else {
				obj.left = parseInt(obj.left) + width;
			}
		}
	}
}

this.unext = function () {
	this.onmouseover();
	this.next();
	window.setTimeout(this.name+".onmouseout()",this.pausedelay);
}

this.uprev = function () {
	this.onmouseover();
	this.prev();
	window.setTimeout(this.name+".onmouseout()",this.pausedelay);
}
}

/* WIZWID 7th EVENT - Find Star!! */
function eventCommemorationFindStar()
{
	var curURL = top.location.href;
	//var linkURL = "http://test.wizwid.com/CSW/handler/wizwid/kr";
	
	if(curURL != null && curURL != "" && curURL.indexOf("wizwid.com") >= 0)
	{
		var rand = Math.floor(Math.random() * 3 + 1);
	
		document.write("<div id='findStar' style='position:absolute; visibility:hidden; top:225; left:expression((document.body.clientWidth) / 2 + 290); z-index:1000'>");
		document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='140' height='110' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='http://img.wizwid.com/Wizwid/event/comemoration/findstar.swf' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><param name='bgcolor' value='#ffffff' /><embed src='http://img.wizwid.com/Wizwid/event/comemoration/findstar.swf' quality='high' bgcolor='#ffffff' width='140' height='110' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
		document.write("</div>");
				
		if(rand == 1)
			document.all.findStar.style.visibility = 'visible';
	}
}
