function coupon(theURL,winName,option) {
  window.open('/coupon.html','','scrollbars=no,resizable=no,width=400,height=250');
}

function map(theURL,winName,option) {
  window.open('/map.html','','scrollbars=yes,resizable=no,width=750,height=460');
}

function webcam(theURL,winName,option) {
  window.open('http://www.gangchonresort.co.kr/07_Lounge/Webcam/new_WebCam.asp','','scrollbars=no,resizable=no,width=920,height=750');
}

function notice_pop(theURL,winName,option) {
  window.open('/notice_popup.html','','scrollbars=no,resizable=no,width=600,height=400,left=5,top=5');
}
//function notice_pop1(theURL,winName,option) {
//  window.open('/newimg/popup1.gif','','scrollbars=no,resizable=no,width=410,height=464,left=5,top=5');
//}
 
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.layer_right.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.layer_right.style.pixelLeft += percent;
   lastScrollY = lastScrollY + percent;
  }
 }


self.onError=null;
 currentX = currentY = 0;
 whichIt = null;
 lastScrollX = 0; lastScrollY = 0;
 action = window.setInterval('heartBeat()',1);