date1="2010/07/29"   
date2="2010/08/30"

var date3 = new Date();  // ÇöÀç³¯Â¥ °´Ã¼
var now = new Date();  // ÇöÀç³¯Â¥ ±¸ÇÏ°í...
var begin = new Date();
var end   = new Date();
begin = new Date(date1);
end   = new Date(date2);  

if (now >= begin && now <= end) {

	document.write ("\
	  <div id=quickm style='position:absolute;top:194;'>\
	  <script>Flash('/mycredit/service/img/flash/quick.swf','58','336')</script><br>\
	  <div align='center'><a href='#top'><img src='/mycredit/service/img/renew/top.gif' vspace='5' /></a></div>\
	  <div align='center'><a href='/mycredit/eventSummerVacation.do?menu_id=A0702000'><img src='/mycredit/service/img/eventzone/my_201008event_suv_bn.gif' width='58' height='130' /></a></div>\
	  </div>\
	");
	
} else {

	document.write ("\
	  <div id=quickm style='position:absolute;top:194;'>\
	  <script>Flash('/mycredit/service/img/flash/quick.swf','58','336')</script><br>\
	  <div align=center><a href=#top><img src=/mycredit/service/img/renew/top.gif vspace=5 /></a></div>\
	  </div>\
	");

}

self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;

var tmp1= tmp2= tmp3 =0;
tmp1 = document.body.clientHeight;

function heartBeat() {

	tmp2 = document.body.clientHeight;
	//document.all.topm.style.pixelTop = tmp2 + document.body.scrollTop - 25;
	if(tmp1 != tmp2)
	{
		tmp3 =  tmp2 - tmp1;
		tmp1 = tmp2;
		if(tmp3<0)
		{
		}
	}
	
	if(IE) {
		diffY = document.body.scrollTop;
		diffX = 0;
		}
	
	if(NS) {
		diffY = self.pageYOffset;
		diffX = self.pageXOffset;
		}
	
	if(diffY != lastScrollY) {
		percent = .5 * (diffY - lastScrollY);
		
		if(percent > 0)
			percent = Math.ceil(percent);
		else
			percent = Math.floor(percent);
		
		if(IE)
			document.all.quickm.style.pixelTop += percent;
		if(NS)
			document.quickm.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.quickm.style.pixelLeft += percent;
		if(NS) document.quickm.top += percent;
		lastScrollY = lastScrollY + percent;
	}
} 
if(NS || IE) action = window.setInterval("heartBeat()",10);