function Layer_Popup(){
  if(document.all["Layer_PopupWindow"].style.display=="") {
		  document.all["Layer_PopupWindow"].style.display = "none"
	 }
}

function Layer_setCookie( name, value , expiredays ) {
 	var todayDate = new Date();
 	todayDate.setDate( todayDate.getDate() + expiredays );
 	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() +  ";"
}

function Layer_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 "";
}

function Layer_closeWin() {
  if ( document.Layer_form.Layer_Notice.value=="checked" )
  Layer_setCookie( "Notice_main1217_Ko", "done" , 1); // 1=ÇÏ·íµ¿¾È °øÁöÃ¢ ¿­Áö ¾ÊÀ½
 	Layer_Popup();
}

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.Layer_PopupWindow : document.getElementById("Layer_PopupWindow");
  hotDog=isIE ? event.srcElement : e.target;
  while (hotDog.id!="Layer_PopupWindow"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }
  if (hotDog.id=="Layer_PopupWindow"){
    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;
}

document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");


document.write('	<div id="Layer_PopupWindow" style="position:absolute;z-index:1000;top:20px;left:330px;visibility;" onSelectStart="return false">    ');
document.write('		<form name="Layer_form">  ');
document.write('			<input type="hidden" name="Layer_Notice" value="nochecked">   ');
document.write('			<table cellpadding="0" cellspacing="0" border="0"> ');
document.write('				<tr>    ');
document.write('					<td><img src="/popup_img/congratulation2.gif" alt="Áö½Ä°æÁ¦ºÎ Àå°ü»ó ¼ö»ó!" border="0"></td>   ');
document.write('				</tr>   ');
document.write('				<tr bgcolor=#efefef>     ');
document.write('					<td height="38" align="right" style="padding:0 30 0 0;"><a href=javascript:isCheck("service_stop") onFocus="blur()"><img src="/popup_img/pop_chk2.gif" name="service_stop" border="0"></a>    ');
document.write('					<a href=javascript:Layer_closeWin()><img src="/popup_img/close_1228.gif" alt="close" border="0"></a></td>   ');
document.write('				</tr>     ');
document.write('			</table>     ');
document.write('	</form>   ');
document.write('	</div>    ');

if (Layer_getCookie( "Notice_main1217_Ko" ) == "done" ){	Layer_Popup();}
service_stop_check = new Image;                                         
service_stop_no_check = new Image;                                      
service_stop_check.src= "/popup_img/pop_chkon2.gif";          
service_stop_no_check.src= "/popup_img/pop_chk2.gif";         
                                                                        
function isCheck(name) {                                                
  if(document.Layer_form["Layer_Notice"].value=='checked') {                                                                   
    document.Layer_form["Layer_Notice"].value='nochecked';                              
    imgName=eval(name+"_no_check.src");                                  
    document[name].src=imgName;                                          
    document.Layer_form.Layer_Notice.value = "nochecked";                           
  }                                                                     
  else {                                                                     
    document.Layer_form["Layer_Notice"].value='checked';                                
    imgName=eval(name+"_check.src");                                     
    document[name].src=imgName;                                          
    document.Layer_form.Layer_Notice.value = "checked";                             
  }                                                                     
}                                                                       
function openSite(url){                                                
  window.open(url);                                               
  document.all.optSite.selectedIndex=0;                           
}