/*
self.onError=null;
currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;

function heartBeat() {
	if(IE) { 
		diffY = document.body.scrollTop; 
		diffX = 0; 
	}
	if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY) {
		percent = .1 * (diffY - lastScrollY);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) document.all.rbanner.style.pixelTop += percent;
		if(NS) document.rbanner.top += percent; 
		lastScrollY = lastScrollY + percent;
	}
	if(diffX != lastScrollX) {
		percent = .1 * (diffX - lastScrollX);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) document.all.rbanner.style.pixelLeft += percent;
		if(NS) document.rbanner.top += percent;
		lastScrollY = lastScrollY + percent;
	} 
} 

if(NS || IE) action = window.setInterval("heartBeat()",1);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

*/




// =======================================
// do not edit anything below this line
// =======================================

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.popWindow : document.getElementById("popWindow");
  hotDog=isIE ? event.srcElement : e.target;
  while (hotDog.id!="popWindow"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }
  if (hotDog.id=="popWindow"){
    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");


function 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 popup_window(url_name, name, pop_width, pop_height, pop_cookie, pop_scroll, pop_resize, pop_toolbar)
{

	if ( getCookie( pop_cookie ) != "done" ) {
		var param = "width=" + pop_width + ",height=" + pop_height + ",scrollbars=" + pop_scroll+ ",resizable=" + pop_resize + ",toolbar=" + pop_toolbar + ",location=no,directories=no,status=no,menubar=no";
		win = window.open(url_name, name, param);
		win.window.focus();
	}
}

function setCookie(name, value, expiredays)
{
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() +";" 
}


// ÆË¾÷ Ã¢ ´Ý±â
function closeWin(pop_cookie, check)
{
	document.write(check);
    if ( check )
        setCookie( pop_cookie, "done" ,30 );
    self.close();
}


function doOpenSize(url, width, height, statusbar, scrollbar, resizable)
{
    vStatusBar = statusbar ? 'yes' : 'no';
    vScrollBar = scrollbar ? 'yes' : 'no';
    vResizable = resizable ? 'yes' : 'no';

    vOption    = 'width=' + width + ',height=' + height
               + ',status=' + vStatusBar + ',scrollbars='
               + vScrollBar + ',resizable=' + vResizable;

    window.open(url, "_preview", vOption);
}



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 "";
}

if ( notice_getCookie( "Notice" ) != "done" )
{
        //window.open('ÆÄÀÏ¸í','Notice','width=410,height=320,left=460px,top=237px'); // ÆË¾÷À©µµ¿ìÀÇ °æ·Î¿Í Å©±â¸¦ ¼³Á¤ ÇÏ¼¼¿ä
}


function pop_win(){
	if(document.all["popWindow"].style.display==""){
		document.all["popWindow"].style.display="none"
	}
}

// SET
function notice_setCookie( name, value , expiredays )
{
 	var todayDate = new Date();
 	todayDate.setDate( todayDate.getDate() + expiredays );
 	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() +  ";"
 }

// GET
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 "";
}

function notice_closeWin()
{
	if ( document.form1.Notice.value=="checked" )
	        notice_setCookie( "Notice_introoo", "done" , 1); // 1=ÇÏ·íµ¿¾È °øÁöÃ¢ ¿­Áö ¾ÊÀ½
	pop_win();
}
