
var x = 0;
var y = 0;
var snow = 0;
var sw = 0;
var cnt = 0;
var dir = 1;
var offsetx = 0;
var offsety = 0;
var width = 290;
var height = 50;

document.onmousemove = mouseMove;

function nd() {
  if ( cnt >= 1 ) { sw = 0 };
  if ( sw == 0 ) { snow = 0; hideObject(over); }
  else { cnt++; }
}

function disp(obj) {
parm = eval(obj);
over = parm.style;
  if (snow == 0) {
    if (dir == 2) { moveTo(over,x+offsetx-(width/2),y+offsety); } // Center
    if (dir == 1) { moveTo(over,x+offsetx,y+offsety); } // Right
    if (dir == 0) { moveTo(over,x-offsetx-width,y+offsety); } // Left
    showObject(over);
    snow = 1;
  }
}



function mouseMove(e) {
  x=event.x + document.body.scrollLeft+10
  y=event.y + document.body.scrollTop
  if (x+width-document.body.scrollLeft > document.body.clientWidth) x=x-width-25;
  if (y+height-document.body.scrollTop > document.body.clientHeight) y=y-height;

  if (snow) {
    if (dir == 2) { moveTo(over,x+offsetx-(width/2),y+offsety); } // Center
    if (dir == 1) { moveTo(over,x+offsetx,y+offsety); } // Right
    if (dir == 0) { moveTo(over,x-offsetx-width,y+offsety); } // Left
  }
}



//[S]Top Button
// 기본 함수
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function getSty(id) {
	x = getRef(id);
	return (isNS4 ? getRef(id) : getRef(id).style);
}

var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 400;   // 위쪽 위치
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 215; // 위쪽 위치
	}
	timeoutNextCheck = 40;

	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;
	}
	if(document.body.clientWidth <= 940){
		divMenu.style.left = "940px";
	} else {
		divMenu.style.left = 940+((document.body.clientWidth - 940)/2) + "px";
	}

	//alert("test : " + document.body.clientWidth);
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}


//레이어 포지션
var m_loc = location.href;
var m_img_url = "http://openimage.interpark.com";



		site_posi="<div id='divMenu' style='position: absolute;visibility:visible;top:450px;z-index:100'>";
		site_posi+="<table cellspacing='0' cellpadding='0' border='0' width='100%'>";
		site_posi+="<tr>";
		site_posi+="	<td style='position:relative'>";
		site_posi+="	<img src='images/quick.jpg' width='89' height='230' border='0' usemap='#quick'>";
		site_posi+="	</td>";
		site_posi+="</tr>";
		site_posi+="</table>";
		site_posi+="		<map name='quick'>";
		site_posi+="<area shape='rect' coords='8,80,71,99' href='sub01_7.html'><area shape='rect' coords='8,98,71,116' href='sub02_4.html'>";
		site_posi+="<area shape='rect' coords='8,115,71,133' href='sub05_6.html'>";
		site_posi+="<area shape='rect' coords='4,135,76,158' href='sub05_4.html'><area shape='rect' coords='4,159,76,203' href='sub05_3.html'><area shape='rect' coords='25,208,57,223' href='#top'>";
		site_posi+="</map>";
		site_posi+="</div>";



if( !opener && m_loc.indexOf("EventStyleStreet.do") < 0 ){

	document.write(site_posi);

	if (isNS4) {
		var divMenu = document["divMenu"];
		divMenu.top = top.pageYOffset + 50;
		divMenu.visibility = "visible";
		moveRightEdge();
	} else if (isDOM) {
		var divMenu = getRef('divMenu');

		divMenu.style.top = (isNS ? window.pageYOffset : document.body.scrollTop);
		divMenu.style.visibility = "visible";
		moveRightEdge();
	}
}
//[E]Top Button














