var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}
var isNS = navigator.appName == "Netscape";
function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 0;   // À§ÂÊ À§Ä¡
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 0; // À§ÂÊ À§Ä¡
		if(yMenuTo >158)
			yMenuTo-=158;
		else yMenuTo=0;
	}
	timeoutNextCheck = 500;
	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}

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.0
  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 && document.getElementById) x=document.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];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

// form.reset
function formClear(Obj)
{
	Obj.reset();
}

//°´Ã¼ È°¼º,ºñÈ°¼º ¼³Á¤ ÇÔ¼ö
function showObject(Obj,Boolen)
{
	if(Boolen){					//È°¼ºÈ­
		Obj.disabled = false;
		Obj.style.background = "#ffffff";
	}
	else{						//ºñÈ°¼ºÈ­
		Obj.disabled = true;
		Obj.style.background = "#dddddd";
	}
}
//°´Ã¼ È°¼º,ºñÈ°¼º ¼³Á¤ ÇÔ¼ö
function checkshowObject(Obj,Boolen)
{
	Boolen ? Obj.disabled = false: Obj.disabled = true;
}

/* ¹è¿­ Ã³¸® ÇÔ¼ö */
//Ãß°¡
function addArray(Obj,Val)
{
	var arrLength= Obj.length;
	Obj[arrLength] = Val;
}

//»èÁ¦
function delArray(Obj,Index)
{
	var temp=new Array();
	var nextIndex = Index +1;

	for(i=0,j=0;i<Obj.length;i++){
		if(i!=Index){
			temp[j] = Obj[i];
			j++;
		}
	}
	for(i=0;i<temp.length;i++)
		Obj[i]=temp[i];
	return temp.length;
}

//Á¤·Ä   0:³»¸²Â÷¼ø  1:¿À¸§Â÷¼ø
function sortArray(Obj,Method)
{
	Obj.sort();
	if(!Method)
		Obj.reverse();
}

//ÇÑ±ÛÃ¼Å©
function hanCheck(Str)
{
	var Re=false;
	for(i=0;i<Str.length;i++){
		var a=Str.charCodeAt(i);
		if (a > 128) {
			Re=true;
		}
	}
	return Re;
}

//ÆÄÀÏ¸í ÇÑ±Û Ã¼Å©
function filehanCheck(Str)
{
	var Arr = new Array();
	var Re=false;
	Arr=Str.split("\\");
	return hanCheck(Arr[Arr.length-1]);
}

//¼ýÀÚÃ¼Å©
function numCheck(Str)
{
    var Re=true;
	for(i=0;i<Str.length;i++){
		var a=Str.charCodeAt(i);
		if(a<48 || a>57)
			Re=false;
	}
	return Re;		
}

//¿¬¶ôÃ³Ã¼Å©
function telCheck(Tel1, Tel2, Tel3){
	var Re=true;
	if(!numCheck(Tel1) ||!numCheck(Tel2) ||!numCheck(Tel3) )
		Re = false;
	else if(Tel1.length <2 || Tel1.length >3)
		Re = false;
	else if(Tel2.length <3 || Tel2.length >4)
		Re = false;
	else if(Tel3.length <4 || Tel3.length >4)
		Re = false;
	return Re;
}
//°ü·ÃÀÌ¹ÌÁö ¿Ã¸®±â »õÃ¢
function inputImg(Part,Code)
{
	var form=document.writeForm;
	window.open("input_img.php?part="+Part+"&code="+Code,"","scrollbars=yes,left=200,top=200,width=467,height=500");
}
//ÀÌ¹ÌÁöÈ®´ë
function zoom(File,Width,Height)
{
	if(!Width || !Height){
		alert("ÀÌ¹ÌÁö°¡ Á¸ÀçÇÏÁö ¾Ê°Å³ª ÀÌ¹ÌÁö Å©±âÁ¤º¸°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
	}else{
		window.open("zoom.php?img="+File,"","scrollbars=no,width="+Width+",height="+Height+",top=200,left=200");
	}
}
function zoom2(File,Width,Height)
{
	if(!Width || !Height){
		alert("ÀÌ¹ÌÁö°¡ Á¸ÀçÇÏÁö ¾Ê°Å³ª ÀÌ¹ÌÁö Å©±âÁ¤º¸°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
	}else{
		window.open("zoom2.php?idx="+File,"","scrollbars=no,width="+Width+",height="+Height+",top=200,left=200");
	}
}
function zoom3(File,Width,Height)
{
	if(!Width || !Height){
		alert("ÀÌ¹ÌÁö°¡ Á¸ÀçÇÏÁö ¾Ê°Å³ª ÀÌ¹ÌÁö Å©±âÁ¤º¸°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
	}else{
		window.open("zoom3.php?idx="+File,"","scrollbars=no,width="+Width+",height="+Height+",top=200,left=200");
	}
}

function zoom2_gongu(File,Width,Height)
{
	
		window.open("zoom2_gongu.php?idx="+File,"","scrollbars=no,width="+Width+",height="+Height+",top=50,left=200");
	
}
//ÀÌ¹ÌÁöÈ®´ë (Å¸ÀÌÆ²)
function zoomTitle(File,Width,Height,Title)
{
	if(!Width || !Height){
		alert("ÀÌ¹ÌÁö°¡ Á¸ÀçÇÏÁö ¾Ê°Å³ª ÀÌ¹ÌÁö Å©±âÁ¤º¸°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
	}else{
		window.open("zoom.php?img="+File+"&title="+Title,"","scrollbars=no,width="+Width+",height="+Height+",top=200,left=200");
	}
}

//<tr> ¹è°æ»ö ¹Ù²Ù±â
function bgcolorChange(Obj,Color)
{
	Obj.backgroundColor = Color;
}

//ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å©
function bsshChek(str_jumin1,str_jumin2)
{
	var i3=0;
	var re_value=true;
    for (var i=0;i<str_jumin1.length;i++)
    {
		var ch1 = str_jumin1.substring(i,i+1);
        if (ch1<'0' || ch1>'9') { i3=i3+1 }
    }
    if ((str_jumin1 == '') || ( i3 != 0 ))
		re_value=false;
	
    var i4=0;
    for (var i=0;i<str_jumin2.length;i++)
    {
		var ch1 = str_jumin2.substring(i,i+1);
        if (ch1<'0' || ch1>'9') { i4=i4+1 }
    }
	if ((str_jumin2 == '') || ( i4 != 0 ))
		re_value=false;
    if(str_jumin1.substring(0,1) < 4)
		re_value=false;
    if(str_jumin2.substring(0,1) > 2)
		re_value=false;
    if((str_jumin1.length > 7) || (str_jumin2.length > 8))
		re_value=false;
    if ((str_jumin1 == '72') || ( str_jumin2 == '18'))
		re_value=false;
                
    var f1=str_jumin1.substring(0,1)
    var f2=str_jumin1.substring(1,2)
    var f3=str_jumin1.substring(2,3)
    var f4=str_jumin1.substring(3,4)
    var f5=str_jumin1.substring(4,5)
    var f6=str_jumin1.substring(5,6)
    var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7
    var l1=str_jumin2.substring(0,1)
    var l2=str_jumin2.substring(1,2)
    var l3=str_jumin2.substring(2,3)
    var l4=str_jumin2.substring(3,4)
    var l5=str_jumin2.substring(4,5)
    var l6=str_jumin2.substring(5,6)
    var l7=str_jumin2.substring(6,7)
    hap=hap+l1*8+l2*9+l3*2+l4*3+l5*4+l6*5;
    hap=hap%11;
    hap=11-hap;
    hap=hap%10;

	if (hap != l7) 
		re_value=false;
    var i9=0;

	return re_value;
}

//¸¸³ªÀÌ Ã¼Å©
function manChek(ssh1)
{
	var today = new Date();
	var day = today.getDate();
	var month = today.getMonth()+1;
	var year = today.getYear();

	ssh=year*10000+month*100+day;
	ssh=ssh-ssh1-19000000;
	return ssh;
}

//ÀÌ¸ÞÀÏÃ¼Å©
function isEmail(str) {
  var supported = 0;
  if (window.RegExp) {
    var tempStr = "a";
    var tempReg = new RegExp(tempStr);
    if (tempReg.test(tempStr)) supported = 1;
  }
  if (!supported) 
    return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
  return (!r1.test(str) && r2.test(str));
}

//»óÇ° ¼±ÅÃ
function selectGoods(Obj)
{
	Action="goods_select.php?Obj="+Obj;
	window.open(Action,"","scrollbars=yes,width=500,height=670,top=100,left=150");
}

//ÄíÅ°ÀúÀå
function setCookie( name, value, expiredays )
{
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
	//document.cookie = name + "=" + escape( value ) + "; path=/;";
}

//Ä®·¯ ¹Ú½º
//       setColor(string mul|sin, string bg|style  string  id)
function setColor(Part1,Part2,Obj)
{
	window.open("color.php?part1="+Part1+"&part2="+Part2+"&target="+Obj,"","scrollbars=yes,width=350,height=110,left=300,top=300");
}
function subsetColor(Part1,Part2,Obj,tForm)
{
	window.open("sub_color.php?part1="+Part1+"&part2="+Part2+"&target="+Obj+"&tForm="+tForm,"","scrollbars=yes,width=350,height=110,left=300,top=300");
}
//1Â÷Ä«Å×°í¸® ¸¶¿ì½º ¾Æ¿ô ¼³Á¤
function layerImgOut(Name,Src)
{
	Name.src=Src;
}

//»óÇ° °Ë»ö Æû
function goodsSearchSendit(Obj)
{
	if(Obj.searchstring.value==""){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
		Obj.searchstring.focus();
	}else if(Obj.search.selectedIndex==1 && !numCheck(Obj.searchstring.value)){
		alert("°¡°Ý ¼³Á¤ÀÌ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
		Obj.searchstring.focus();
	}else{
		Obj.submit();
	}
}

//¸ÞÀÏº¸³»±â
function sendMail(To)
{
	window.open("./email/mail.php?To="+To,"","scrollbars=no,left=200,top=200,width=380,height=483");
}
//°ü·ÃÀÌ¹ÌÁö ¿Ã¸®±â »õÃ¢
function inputImg(Part,Code)
{
	var form=document.writeForm;
	window.open("input_img.php?part="+Part+"&code="+Code,"","scrollbars=yes,left=200,top=200,width=467,height=500");
}
function askloginErr()
{
	alert("È¸¿ø¸Þ´ºÀÔ´Ï´Ù. ·Î±×ÀÎ ÇØÁÖ½Ê½Ã¿À.");
	location.href="login.php?url=ask_list.php";
}
function banner_write(Obj,idx)
{
       window.open("banner_write.php?Obj="+Obj+"&idx="+idx,"","scrollbars=yes,left=200,top=50,width=300,height=500");
}

//°øÁö»çÇ× º¸±â
function noticeView(Idx,App,Width,Height,bPopup)
{
	if(App=='n'){
		var popup_height =Height+40;
		var popup_width	 =Width+20;
		window.open("notice_view_html.php?bcook=no&idx="+Idx,"","scrollbars=yes,width="+popup_width+",height="+popup_height+",top=100,left=100");		   
	}else{
		window.open("notice_view_text.php?bcook=no&idx="+Idx,"","scrollbars=yes,width=516,height=485,top=100,left=100");
	}
}

//±âº» º¸±â
function bbsView(Idx,code,bPopup)
{
		window.open("bbs_view_text.php?bcook=no&idx="+Idx+"&code="+code,"","scrollbars=yes,width=516,height=485,top=100,left=100");
}

//==== ¿À¸¥ÂÊ ¸¶¿ì½º ¹öÆ° ¸·±â 
function js_event_anti_right(e) { 
 evt = e || event; 
    try{ 
  if (document.all){ 
  if(evt.button == 2 || evt.button == 3) {    
 alert('¿À¸¥ÂÊ ¸¶¿ì½º´Â »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.');  
    js_event_anti_stop_event(evt); 
    return false;    } 
  }else {  
  if(evt.which == 3 || evt.which == 2) {  
 alert('¿À¸¥ÂÊ ¸¶¿ì½º´Â »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.');  
    js_event_anti_stop_event(evt); 
    return false; } 
  } 
    }catch(ex){ 
  return false; 
    } 
} 
/*
//==== Å°º¸µå ÀÔ·Â ¸·±â 
function js_event_anti_processKey(e){ 
 evt = e || event; 
 alert('Å°º¸µå »ç¿ëÀ» Á¦ÇÑÇÕ´Ï´Ù.'); 
  try{ 
  js_event_anti_stop_event(evt); 
  return false; 
    }catch(ex){ 
  return false; 
    } 
} 
*/
//==== ÀÌº¥Æ® µ¿ÀÛ ¹«½Ã! 
function js_event_anti_stop_event(evt){ 
 if(window.event){ 
 window.event.keyCode = 0; 
 window.event.cancelBubble = true; 
 window.event.returnValue = true;    
 }else{ 
 evt.stopPropagation(); 
 evt.preventDefault(); 
 evt.initEvent; 
 } 
 return false; 
} 
//==== ±âº»¾ÈÆ¼ ÀÌº¥Æ® µî·Ï(¿À¸¥ÂÊ¸¶¿ì½º,µå·¡±×,Å°ÀÔ·Â) 
function js_event_anti(this_s){ 
//¹®Á¦Á¡ : FF¿¡¼­´Â µå·¡±× ÀÌº¥Æ®¸¦ Á¦¾îÇÒ ¼ö ¾ø´Ù. 
 if(!this_s){this_s = window.document;} 
 if(document.attachEvent){ 
// this_s.attachEvent("onkeydown", js_event_anti_processKey ); 
 this_s.attachEvent("onmousedown", js_event_anti_right ); 
 this_s.attachEvent("onselectstart", js_event_anti_stop_event ); 
 this_s.attachEvent("ondragstart", js_event_anti_stop_event ); 
 this_s.attachEvent("oncontextmenu", js_event_anti_stop_event ); 
 } 
 else{ 
 window.captureEvents(Event.MOUSEDOWN); 
 window.captureEvents(Event.ONKEYDOWN); 
// this_s.addEventListener("keydown", js_event_anti_processKey , false); 
 this_s.addEventListener("mousedown", js_event_anti_right , false); 
 this_s.addEventListener("dragstart", js_event_anti_stop_event , false);  //FF¿¡¼­ Áö¿øµÇÁö ¾Ê´Â´Ù. 
 this_s.addEventListener("selectstart", js_event_anti_stop_event , false);  //FF¿¡¼­ Áö¿øµÇÁö ¾Ê´Â´Ù. 
 this_s.addEventListener("contextmenu", js_event_anti_stop_event , false); 
 } 
} 

//////////////////////////////////////
// IE Embed patch
//
// @author iezn@iezn.com
// @homepage http://iezn.com
// @create date 2006.04.19
// @last modify 2007.02.15
// @version 0.42
// ¹èÆ÷½Ã À§³»¿ëÀ» Æ÷ÇÔÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù
//////////////////////////////////////
/**
* embed ÆÐÄ¡ Àû¿ë ÄÁÅ×ÀÌ³Ê
* nullÀÎ°æ¿ì document °ªÀ» ±âº»À¸·Î ÇÕ´Ï´Ù
* id°ªÀ» ¼³Á¤ÇÑ°æ¿ì ¼³Á¤¹üÀ§ ³»¿¡¸¸ Àû¿ëÀÌ µË´Ï´Ù
* 
* º»¹®ÀÌ³ª ÀÏºÎ ³ëµå¿¡¸¸ Àû¿ëÇÒ°æ¿ì ÇØ´ç ³ëµåÀÇ id °ªÀ» ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù
* ¿¹)
* var __embed_target_id = "contents";
* ·Î Ã³¸®ÇÑ°æ¿ì body ³»¿¡ <ÅÂ±× id="contents">ÇÃ·¡½¬,µ¿¿µ»ó...</ÅÂ±×>
* ¾È¿¡ ³»¿ë¿¡¸¸ ÆÐÄ¡°¡ Àû¿ëµË´Ï´Ù
*/
if(typeof(__embed_target_id)=='undefined'){
	var __embed_target_id = null;
}

/**
* embed ÆÐÄ¡¸¦ Àû¿ëÇÒ ÅÂ±×¸¦ ¼³Á¤ÇÕ´Ï´Ù
* ±âº»°ªÀº object,eembed,appelt ÅÂ±×ÀÔ´Ï´Ù
* false °ªÀÎ°æ¿ì ÆÐÄ¡¿¡¼­ Á¦¿ÜµË´Ï´Ù
*/
if(typeof(__embed_tags)=='undefined'){
	var __embed_tags = {object:true,embed:true,applet:false}
}

/**
* ÇÃ·¡½¬ÆÄÀÏÁß flashvars ¸¦ »ç¿ëÇÒ°æ¿ì ÇØ´ç ÇÃ·¡½¬ÀÇ ¿ÀºêÁ§Æ®¾ÆÀÌµð:true °ªÀ¸·Î object¸¦ µî·ÏÇØ ÁÖ¼¼¿ä
*/
var __flash_force_objs = {};
if(navigator.userAgent.toLowerCase().indexOf('opera')==-1){//opera out
	if(document.attachEvent){
		document.write('<style type="text/css">');
		document.write('object,embed{display:none;}');
		document.write('</style>');
		document.attachEvent('onreadystatechange',
			function (){				
				if(__embed_target_id===null){
					var __target = document;
				}else{
					var __target = document.getElementById(__embed_target_id);
				}
				if (document.readyState == "complete"){
					function _replace(obj){
						var obj_re = document.createElement(obj.outerHTML);					
						obj_re.style.display='inline';
						obj.parentNode.replaceChild(obj_re,obj);
					}
					function _inner(obj){
						obj.style.display='inline';					
						var html = obj.outerHTML;
						var classid = obj.classid.toLowerCase();
						if(classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' && typeof(__flash_force_objs[obj.id])=='undefined'){//flash ÀÎ°æ¿ì
							obj.insertAdjacentHTML('beforeBegin',html);
							obj.parentNode.removeChild(obj);
						}else if(classid=='clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b'){
							//ÄüÅ¸ÀÓ

						}else{
							//º¯°æÇÏ°íÀÚÇÏ´Â ActiveX classid ¸¦ Ãß°¡ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù
							if(classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' || //media 7
							classid=='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' || //6.4
							classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' ||
							classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'
							){
								embed_pos = html.indexOf('embed');
								if(embed_pos!=-1){//embed °¡ Á¸ÀçÇÏ´Â°æ¿ì
									var embed = '<'+html.substr(embed_pos);
									embed = embed.substr(0,embed.length-9);
									obj.insertAdjacentHTML('beforeBegin',embed);
									obj.parentNode.removeChild(obj);
								}else{
									//object·Î¸¸ µÇ¾î ÀÖ´Â°æ¿ì µ¿¿µ»ó ºÎºÐ¸¸ ÆÐÄ¡ÇÑ´Ù
									var embed = document.createElement('embed');
									if(obj.id){
										embed.id = obj.id;
									}
									var total = obj.childNodes.length;
									//embed.setAttribute('autostart',0);
									if(obj.width){
										embed.setAttribute('width',obj.width);
									}
									if(obj.height){
										embed.setAttribute('height',obj.height);
									}
									for(var k=0;k<total;k++){
										n = obj.childNodes.item(k).getAttribute("name");
										v = obj.childNodes.item(k).getAttribute("value");
										if(n=='URL' || n=='url' || n=='FileName'){
											n = 'src';
										}
										embed.setAttribute(n,v);
									}
									if(embed.getAttribute('src')){
										embed.style.display = 'inline';
										obj.parentNode.replaceChild(embed,obj);
									}else{
										//ÆÄÀÏ¿¢¼¼½º object°¡ ¾Æ´Ñ°æ¿ì´Â À¯ÁöÇÑ´Ù								
									}
								}
							}
						}
					}

					if(__embed_tags.object===true){
						var objs = __target.getElementsByTagName('object');
						var i = objs.length;
						while(i-->0){
							_inner(objs[i]);
						}
					}
					if(__embed_tags.embed===true){
						var objs = __target.getElementsByTagName('embed');
						var i = objs.length;
						while(i-->0){
							_replace(objs[i])
						}
					}

					if(__embed_tags.applet===true){
						var objs = __target.getElementsByTagName('applet');
						var i = objs.length;
						while(i-->0){
							_replace(objs[i])
						}
					}
				}
			}
		);
	}
}

<!-- ·¹ÀÌ¾î ÆË¾÷ ½ÃÀÛ //-->
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer");
  hotDog=isIE ? event.srcElement : e.target;
  while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }
  if (hotDog.id=="titleBar"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog.style.left);
    nowY=parseInt(whichDog.style.top);
    ddEnabled=true;
    document.onmousemove=dd;
  }
}

function dd(e){
  if (!ddEnabled) return;
  whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx;
  whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;
}

function ddN4(whatDog){
  if (!isN4) return;
  N4=eval(whatDog);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isHot){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function hideMe(){
  if (isIE||isNN) whichDog.style.visibility="hidden";
  else if (isN4) document.theLayer.visibility="hide";
}

function showMe(){
  if (isIE||isNN) whichDog.style.visibility="visible";
  else if (isN4) document.theLayer.visibility="show";
}

document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");

function notice_setCookie( name, value, expiredays )
{
        var todayDate = new Date();
        todayDate.setDate( todayDate.getDate() + expiredays );
        document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';'
 return;
}
function notice_getCookie( name )
{
  var nameOfCookie = name + "=";
  var x = 0;
  while ( x <= document.cookie.length )
  {
   var y = (x+nameOfCookie.length);
   if ( document.cookie.substring( x, y ) == nameOfCookie ) {
    if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
      endOfCookie = document.cookie.length;
    return unescape( document.cookie.substring( y, endOfCookie ) );
   }
   x = document.cookie.indexOf( " ", x ) + 1;
   if ( x == 0 ) break;
  }
  return "";
}

<!-- ·¹ÀÌ¾î ÆË¾÷ ³¡//-->
