
<!--
self.omError=null;
currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
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.floater.style.pixelTop += percent;
if(NS) document.floater.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.floater.style.pixelLeft += percent;
if(NS) document.floater.top += percent;
lastScrollY = lastScrollY + percent;
} 
} 
if(NS || IE) action = window.setInterval("heartBeat()",1);
//-->


<!--
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];}
}
//-->



<!--
/************************************************************************************************/
/* topDir : °è»êµÉ ¹æÇâ Ç¥½Ã true (»ó->ÇÏ)/ false (ÇÏ->»ó)/ default (true)                          */
/* bwrHeight : ºê¶ó¿ìÀú Æø                                                                        */
/* limitBwrHeight - ºê¶ó¿ìÀú°¡ Æ¯Á¤ ÆøÀÌÇÏ·Î ÀÛ¾ÆÁø°æ¿ì Æ¯Á¤ »ó´Ü¿¡ °íÁ¤µÉ ³ôÀÌ                           */
/* baseGap : À§Ä¡ÇÒ Æ¯Á¤À§Ä¡¿Í ºê¶ó¿ìÀú°£ÀÇ °£°Ý                                                      */
/* isMSIE : ÀÍ½ºÇÃ·Î·¯ Ã¼Å© (default ÀÍ½ºÇÃ·¯·¯)                                                     */
/************************************************************************************************/
var timeInterVal = 100;
var imgHeight = 16;
var topDir = true;
var bwrHeight = 0;
var limitBwrHeight = 500;
var baseGap = 15;
var isNS6 = false;
var isMSIE = false;
var isNS4 = false;
var currentY = 0;
var scrollTop = 0;

function setTopDir(dVal){
	topDir = dVal;
}

function getBrowser() {
	isNS4 = ((document.layers)==undefined)?false:true;
	isNS6 = ((!document.all && document.getElementById)==undefined || (!document.all && document.getElementById) == false)?false:true;
	isMSIE = ((document.all)==undefined)?false:true;
}

function chgWinSize() {
	initTopButton();
}

function initTopButton() {
	if (isNS4 || isNS6) {
		bwrHeight = window.innerHeight; 
	} else if(isMSIE) {
		bwrHeight = document.body.clientHeight;
	}
}

function moveButton() {
	var topPos = (topDir)?bwrHeight-(baseGap+imgHeight):baseGap;
	if (isNS4) document.goTop.top = topPos+window.pageYOffset;
	if (isNS6) document.getElementById('goTop').style.top = topPos+scrollY;
	if (isMSIE) goTop.style.pixelTop = topPos+document.body.scrollTop;

	if(topDir) {
		if (isNS4 && document.goTop.top <= limitBwrHeight) {
			if (document.goTop.top == limitBwrHeight) return;
			document.goTop.top = limitBwrHeight;
			return;
		}
		if (isNS6 && parseInt(document.getElementById('goTop').style.top) <= limitBwrHeight) {
			if (document.getElementById('goTop').style.top == limitBwrHeight) return;
			document.getElementById('goTop').style.top = limitBwrHeight;
			return;
		}
		if (isMSIE && goTop.style.pixelTop <= limitBwrHeight) {
			if (goTop.style.pixelTop == limitBwrHeight) return;
			goTop.style.pixelTop = limitBwrHeight;
			return;
		}
	}
	viewValue();
}

function vewValue1(){
	setTopDir(topDir?false:true);
}

function viewValue() {

}


document.write("<layer name=\"goTop\">");
document.write("<div id=\"goTop\" name=\"goTop\" style=\"position:absolute;left:894px;top:500\">");
document.write("<a href=\"#\" onFocus=\"this.blur()\"><img src=\"../mainpic/top_button.gif\" border=\"0\"></a>");
document.write("</div>");
document.write("</layer>");

getBrowser();
initTopButton();
setInterval("moveButton()",timeInterVal);
//-->

function geturl(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != null) {
    var frameobj = eval(targetstr);
    frameobj.location = sel.options[index].value;
  }
}