/*Äü¸Þ´º*/


self.onError=null;
currentX = currentY = 0;  
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
action = window.setInterval("heartBeat()",1);


function heartBeat() {

diffY = document.body.scrollTop;  // ¿©±â¼­ ¾Ö·¯ ³ª³×..

diffX = 0; 

if (diffY != lastScrollY) {

	percent = .2 * (diffY - lastScrollY);
	
	if (percent > 0) {
	percent = Math.ceil(percent);
	} else {
	percent = Math.floor(percent);
	}


	
	document.all.movebanner.style.pixelTop += percent;  // ¿©±â µµ ¾Ö·¯ ³ª°í.
	
	lastScrollY = lastScrollY + percent;
	
}


if (diffX != lastScrollX) {
percent = .2 * (diffX - lastScrollX);
if (percent > 0) {
percent = Math.ceil(percent);
} else {
percent = Math.floor(percent);
}

document.all.movebanner.style.pixelLeft += percent;
lastScrollY = lastScrollY + percent;
}        
}        
	
	
/*ÆË¾÷*/	
function popup(pop,width,height,flag){
var url = pop;
var wd = width;
var he = height;

if (flag == 0 ){
window.open(url,flag,"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
}

else{
window.open(url,flag,"toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
}
}