

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
		 
/********************************************************************************************************
		 //점선링크삭제
********************************************************************************************************/
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring;   

/********************************************************************************************************
	Flash_Select
********************************************************************************************************/

function SetTopMenuFlashVars(mainNum, subNum)
{
	document.topmenu.FlashVars = 'mainNum='+mainNum+'&subNum='+subNum;
}

function SetLeftMenuFlashVars(mainNum, subNum)
{
	document.leftmenu.FlashVars = 'mainNum='+mainNum+'&subNum='+subNum;
}
			



//관련사이트 이동
function MovePage(url) {
	if(url=="#"||url=="") {
	
	} else {
			window.open(url,"new");
	}
}


function Select_target(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}

/********************************************************************************************************
	scroll_top
********************************************************************************************************/
	self.onError=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 = 0; 
 			  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);



