document.writeln('<link rel="stylesheet" href="http://uishopimage.hanmail.net/4shopimage/07dnshop/css/dnshop_header_ver2.css" type="text/css">');
document.writeln('<link rel="stylesheet" href="http://uishopimage.hanmail.net/4shopimage/07dnshop/css/dnshop_maintop.css" type="text/css">');
document.writeln('<link rel="shortcut icon" href="http://uishopimage.hanmail.net/4shopimage/06common/dnshop.ico">');
document.writeln('<link rel="stylesheet" href="http://uishopimage.hanmail.net/v3/gnb/css/gnb.css" type="text/css">');

if (document.location.toString().indexOf("SearchNew") < 0 && document.location.toString().indexOf("DnshopSearchResult") < 0)
	document.writeln('<link rel="stylesheet" href="http://uishopimage.hanmail.net/v3/search/css/suggest.css" type="text/css">');

document.writeln('<script type="text/vbscript">');
document.writeln('on error resume next');
document.writeln('Sub topModule_FSCommand(ByVal command, ByVal args)');
document.writeln('	call topModule_DoFSCommand(command, args)');
document.writeln('End Sub');
document.writeln('Sub leftCategory_FSCommand(ByVal command, ByVal args)');
document.writeln('	call leftCategory_DoFSCommand(command, args)');
document.writeln('End Sub');
document.writeln('</script>');


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_changeProp(objName,x,theProp,theValue) { //v6.0
	var obj = MM_findObj(objName);

	if (obj && (theProp.indexOf("style.") == -1 || obj.style)) {
		if (theValue == true || theValue == false) eval("obj." + theProp + "=" + theValue);
		else eval("obj." + theProp + "='" + theValue + "'");
	}
}

function showHideCategory(w, h){
	MM_changeProp('leftCategoryLayer', '', 'style.width', w, 'DIV');
	MM_changeProp('leftCategoryLayer', '', 'style.height', h, 'DIV');
}

// ÅëÇÕ°Ë»ö Type1
function fnSSType1() {
	this.GoodsSetting = function() {
		this.Obj = document.getElementById(this.DivName);
		this.ObjSelect = this.Obj.getElementsByTagName("select")[0];
		this.ObjOption = this.ObjSelect.getElementsByTagName("option");
		this.ObjOptionNum = this.ObjOption.length;

		this.ObjSelectValue = this.ObjSelect.item(this.ObjSelect.selectedIndex).firstChild.nodeValue;
		
		this.SelectTi = document.createElement('div');
		this.SelectTi.className = "SelectDesign_Type1";
		this.SelectTi.style.width = this.SelectWidth + "px";
		this.SelectTi.style.height = this.SelectHeight + "px";
		this.SelectTi.style.lineHeight = this.SelectHeight - 2 + "px";

		if ( navigator.appName.indexOf("Explorer") != -1 ) {
			this.SelectTi.style.top = "0px";
			this.SelectTi.style.left = "0px";
		} else {
			this.SelectTi.style.top = "0px";
			this.SelectTi.style.left = "0px";
		}
		
		if ( navigator.userAgent.indexOf("Chrome") != -1 ) {
			this.SelectTi.style.top = "0px";
			this.SelectTi.style.left = "0px";
		}

		this.Obj.appendChild(this.SelectTi);
		
		this.SelectTiLink = document.createElement('a');
		this.SelectTiLink.href = "#";
		this.SelectTiLink.fnName = this.fnName;
		this.SelectTiLink.onmouseover = function() { eval(this.fnName + ".SelectClick(this)"); return false; }
		this.SelectTiLink.appendChild(document.createTextNode(this.ObjSelectValue));
		this.SelectTi.appendChild(this.SelectTiLink);
		
		this.SelectCo = document.createElement('div');
		this.SelectCo.className = "SelectDesign_Type1List";
		this.SelectCo.style.width = this.SelectWidth + "px";
		this.SelectCo.fnName = this.fnName;
		this.SelectCo.onmouseout = function() { eval(this.fnName + ".SelectClose(this)"); }
		this.SelectCo.onmouseover = function() { eval(this.fnName + ".SelectOepn(this)"); }

		if (navigator.appName.indexOf("Explorer") != -1) {
			this.SelectCo.style.top = "0px";
			this.SelectCo.style.left = "0px";
		} else {
			this.SelectCo.style.top = "0px";
			this.SelectCo.style.left = "0px";
		}
		
		if (navigator.userAgent.indexOf("Chrome") != -1) {
			this.SelectCo.style.top = "0px";
			this.SelectCo.style.left = "0px";
		}

		this.Obj.appendChild(this.SelectCo);
		
		this.SelectCoUl = document.createElement('ul');
		this.SelectCoUl.style.width = this.SelectWidth + "px";
		this.SelectCo.appendChild(this.SelectCoUl);
		
		for (var i=0; i<this.ObjOptionNum; i++) {
			this.SelectCoLi = document.createElement('li');
			this.SelectCoUl.appendChild(this.SelectCoLi);
			
			this.SelectCoLiLink = document.createElement('a');
			this.SelectCoLiLink.href = "#";
			this.SelectCoLiLink.fnName = this.fnName;
			this.SelectCoLiLink.i = i;
			this.SelectCoLiLink.onclick = function() { eval(this.fnName + ".SelectIndexClick(this," + this.i + ")"); return false; }
			this.SelectCoLiLink.appendChild(document.createTextNode(this.ObjOption.item(i).firstChild.nodeValue));
			this.SelectCoLi.appendChild(this.SelectCoLiLink);
		}
		
		this.ObjSelect.style.display = "none";
	}
	
	this.SelectClick = function(val) {
		this.SC_Div = val.parentNode.parentNode;
		this.SCTarget = this.SC_Div.getElementsByTagName("div")[1];
		this.SCTarget.style.display = "block";
		this.SelectTiLink.style.display = "none";
	}

	this.SelectIndexClick = function(val,valnum) {
		this.SCI_Div = val.parentNode.parentNode.parentNode.parentNode;
		this.SelectTargetIndex = this.SCI_Div.getElementsByTagName("div")[0].getElementsByTagName("a")[0];
		this.SCI_Div.getElementsByTagName("select")[0].selectedIndex = valnum;
		this.SCI_Div.getElementsByTagName("div")[1].style.display = "none";
		this.SelectTargetIndex.innerHTML = this.SCI_Div.getElementsByTagName("select")[0].getElementsByTagName("option")[valnum].firstChild.nodeValue;
		this.SelectTiLink.style.display = "block";
	}

	this.SelectOepn = function(val) {
		val.style.display = "block";
		this.SelectTiLink.style.display = "none";
	}

	this.SelectClose = function(val) {
		val.style.display = "none";
		this.SelectTiLink.style.display = "block";
	}
}

var n = Math.random();
var m = n;
var filterTag =new Array("script", "alert");

function tagfilter(w) {
	for (i=0 ; i<filterTag.length ; i++) {
		if ((w.toLowerCase()).indexOf(filterTag[i]) > -1) {
			alert("°Ë»ö¾î·Î [" + filterTag[i] + "]¸¦ Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.");
			return false;
		}
	}

	return true;
}

function BranchSearch() {
	if (document.SEARCH.SEARCH_KEYWORD.style.backgroundImage == "" && document.SEARCH.SEARCH_KEYWORD.value != "¿£Á©ÇÍ") {
		w = document.SEARCH.SEARCH_KEYWORD.value;

		if (!tagfilter(w)) return;

		_goDnshopSearch();
	} else {
		adGoUrl(n);
	}
}

var tails = "";

if (document.domain.indexOf("dnblog") > -1) {
	tails = "<div class=\"specialize\"><img src=\"http://uishopimage.hanmail.net/v3/gnb/img/specialize/bg_dnblog.jpg\" alt=\"\" width=\"968\" height=\"9\" /></div>";
}

var source  = ''
+'<div id="partnerMiniDaum1" style="display:none;">'
+'	<div id="DaumUI__minidaum"><iframe src="http://go.daum.net/bin/minidaum.cgi?category=shop&amp;tag=iframe" width="968" height="20" frameborder="0" scrolling="no"></iframe></div>'
+'</div>'

+'<div id="wrap" style="display:none;">'
+'	<dl id="mini_list_01">'
+'		<dt><img src="http://uishopimage.hanmail.net/4shopimage/07dnshop/top_img/ico_dnshop_star.gif" width="7" height="7" alt="" style="vertical-align:top;margin:1px 3px 0 0;"><a target="_top" style="cursor:hand;" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.dnshop.com\');"><strong>µð¾Ø¼¥</strong> ´Ü°ñ°í°´µÇ±â</a></dt>'
+'		<dd>'
+'		<ul>'
+'			<li class="none"><a href="http://www.dnshop.com/?Sid=0020_79010400_01_01" class="mini000">µð¾Ø¼¥È¨</a></li>'
+'			<!-- li><a href="http://www.onket.com/?Sid=0020_79010400_02_01" target="_blank">¿ÂÄÏ</a></li>'
+'			<li><a href="http://dnstore.dnshop.com/dnstore/front/DnstoreTop?Sid=0020_79010400_03_01">µð¾Ø½ºÅä¾î</a></li -->'
+'			<li><a href="javascript:goDomainUrl(\'http://www.dnshop.com/front/newsLetter?Sid=0020_79010400_04_01\');">´º½º·¹ÅÍ½ÅÃ»ÇÏ±â</a></li>'
+'			<!-- li id="shoppingLetter"><a href="/html/shop/shopmagazine/magazine_sample.html?Sid=0020_79010400_07_01">´º½º·¹ÅÍ½ÅÃ»ÇÏ±â</a></li>'
+'			<!-- li id="dsMemberReg"><a href="https://register.dnshop.com/JoinInDnshop?Sid=0020_79010400_06_01" class="mini000">È¸¿ø°¡ÀÔ</a></li -->'
+'			<script language="javascript">'
+'				document.write(\'<li class="none" id="signon"><a href="http://www.dnshop.com/front/Login?rtnUrl=\'+escape(location.href)+\'"><img src="http://uishopimage.hanmail.net/4shopimage/07dnshop/top_img/btn_login_01.gif" width="34" height="15" border="0" alt="·Î±×ÀÎ" style="margin:-1px 0 2px 0;"><\/a><\/li>\');'
+'			</script>'
+'			<li class="none" id="signoff"><a href="http://www.dnshop.com/front/Logout"><img src="http://uishopimage.hanmail.net/4shopimage/07dnshop/top_img/btn_logout_01.gif" width="44" height="15" alt="·Î±×¾Æ¿ô" style="margin:-1px 0 2px 0;"></a></li>'
+'		</ul>'
+'		</dd>'
+'	</dl>'
+'</div>'

+'<div id="Gnb_flash">'
+'	<!-- gnb°Ë»ö -->'
+'	<div id="Gnb_Search">'
+'		<div id="Gnb_Search_Sub">'
+'			<form name="SEARCH" method="get" action="javascript:BranchSearch()">'
+'			<input type="hidden" name="search_text" value="">'
+'			<input type="hidden" name="flag" value="">'
+'			<input type="hidden" name="collection" value="Product1">'
+'				<div id="Gnb_Search_Select">'
+'					<select name="TARGET_TYPE">'
+'						<option value="1">ÀÏ¹Ý»óÇ°</option>'
+'						<option value="2">µµ¼­</option>'
+'						<option value="3">À½¹Ý</option>'
+'						<option value="4">DVD</option>'
//+'						<option value="S">À½¹Ý°¡¼ö</option>'
//+'						<option value="A">À½¹ÝÁ¦¸ñ</option>'
//+'						<option value="T">À½¹Ý³ë·¡</option>'
//+'						<option value="GT">°ÔÀÓ</option>'
//+'						<option value="DT">DVD</option>'
+'					</select>'
+'				</div>'
+'				<div id="Gnb_Search_Input">'
+'					<input type="text" name="SEARCH_KEYWORD" class="search_box" onmousedown="return keyback()">'
+'				</div>'
+'				<div id="Gnb_Search_Submit">'
+'					<input type="image" src="http://uishopimage.hanmail.net/4shopimage/07dnshop/top_img/blank.gif" title="°Ë»ö">'
+'				</div>'
+'			</form>'
+'		</div>'
+'	</div>'
+'	<script type="text/javascript">'
+'		var GnbSS = new fnSSType1();'
+'		GnbSS.DivName = "Gnb_Search_Select";'
+'		GnbSS.fnName = "GnbSS";'
+'		GnbSS.SelectWidth = 82;'
+'		GnbSS.SelectHeight = 18;'

+'		GnbSS.GoodsSetting();'
+'	</script>'

+'	<script type="text/javascript" src="http://uishopimage.hanmail.net/html/script/suggest_200901.js"></script>'
+'	<!-- [ Suggest Start ] -->'
+'	<div id="Suggest_Wrap">'
+'	<div id="Suggest_Wrap_Sub">'
+'		<dl id="suggest_200901">'
+'			<dt><img src="http://uishopimage.hanmail.net/v3/search/images/stit_keyword.gif"></dt>'
+'			<dd id="suggest_box">'
+'				<ul id="suggest_list">'
+'				</ul>'
+'			</dd>'
+'			<dd class="close"><a nohref><img src="http://uishopimage.hanmail.net/v3/search/images/btn_close01.gif" alt="´Ý±â" class="close" onclick="hideSuggestBox();"></a></dd>'
+'		</dl>'
+'		<div id="suggest_200901_product">'
+'		</div>'
+'	</div>'
+'	</div>'
+'	<!--// [ Suggest End ] -->'

+'	<!-- suggest °Ë»ö ±â´É Ãß°¡ ## 1 -->'
+'	<script language="javascript" type="text/javascript">'
+'		bgimg(n);'
+'		checkDnshopDomain();'
+'		checkPartnerMiniDaum();'
+'	</script>'
+'	<!-- //gnb°Ë»ö -->'

+'	<div class="top_flash_mini">'
+'		<div id="top_line" class="box">'
+'			<!-- ´Ù¸¥¸ÅÀå ÀÌµ¿ÇÏ±â -->'
+'			<div style="overflow: hidden; width: 192px; height: 29px;" class="go_cate" id="leftCategoryLayer">'
+'				<script type="text/javascript">common_swf(\'100%\',\'100%\',\'http://uishopimage.hanmail.net/4shopimage/07dnshop/swf/08_4th/categorySub.swf\',\'header1\',\'&amp;dummy=080201\');</script>'
+'			</div>'
+'			<!-- //´Ù¸¥¸ÅÀå ÀÌµ¿ÇÏ±â -->'
+'			<script type="text/javascript">common_swf(\'968\',\'31\',\'http://uishopimage.hanmail.net/4shopimage/07dnshop/swf/08_4th/headerStep.swf\',\'header2\',\'&amp;dummy=090310\');</script>'
+'		</div>'
+'	</div>'
+'	<!-- GNBÇÃ·¡½Ã -->'
+'	<div id="top_flash" class="bg_D000">'
+'		<script type="text/javascript">common_swf(\'968\',\'105\',\'http://uishopimage.hanmail.net/4shopimage/07dnshop/swf/08_4th/headerSub.swf\',\'header3\',\'&amp;dummy=080201\');</script>'
+'	</div>'
+'	<!-- //GNBÇÃ·¡½Ã -->'
+'</div>'
+'<!-- // top flash GNB-->'

+ tails;

document.write(source);

function fnIECSSLoad() {
	var obj = document.getElementById("Gnb_flash");
	var objCssLink = document.createElement('link');
	objCssLink.rel = "stylesheet";
	objCssLink.type = "text/css";
	objCssLink.href = "http://uishopimage.hanmail.net/v3/gnb/css/gnb.css";
	obj.appendChild(objCssLink);
}

fnIECSSLoad();
