self.onError=null;
currentX = currentY = 0; 
whichIt = null; 
xOffset = 100;
lastScrollX = 0; lastScrollY = 0;
//NS = (document.layers) ? 1 : 0;
//IE = (document.all) ? 1: 0;

var t = this, d = document, w = window, na = navigator, ua = na.userAgent, i, nl, n, base, p, v;

// Browser checks
NS = w.opera && opera.buildNumber;
WK = /WebKit/.test(ua); //safari
OWK = t.isWebKit && !w.getSelection().getRangeAt;
IE6 = t.isIE && /MSIE [56]/.test(ua); //?
IE = !t.isWebKit && !t.isOpera && (/MSIE/gi).test(ua) && (/Explorer/gi).test(na.appName); //ie6~
GK = !t.isWebKit && /Gecko/.test(ua); //firefox
MC = ua.indexOf('Mac') != -1;


var floatOperator = {		//플로트 작동 함수

	downArrow : function()  {
		if ( $("todayItem_9").style.display == ""){
			//alert("끝목록 입니다.");
		} else {
			var i;
			for(i=0 ; i<10 ; i++){
			name = "todayItem_"+(i)+"";
				if ( $(name).style.display == "") {
					$(name).style.display = "none"
					name = "todayItem_"+(i+3)+"";
					$(name).style.display = ""
					break;
				}
			}
		}
	},

	upArrow : function() {
		if ( $("todayItem_0").style.display == ""){
			//alert("첫목록 입니다.");
		} else {
			var i;
			for(i=0;i<10;i++){
				name = "todayItem_"+(9-i)+"";

				tCount = $('totalCount').value;
				if(tCount > i+3) {
					if ( $(name).style.display == "") {
						$(name).style.display = "none"
						name = "todayItem_"+(6-i)+"";
						$(name).style.display = ""
						break;
					}
				}
			}
		}
	},

	right_float : function() {

		if(IE) { 
			diffY = document.documentElement.scrollTop ;
		} else { 
			diffY = self.pageYOffset;			
		}		

		if(diffY != lastScrollY) {

			percent = .1 * (diffY - lastScrollY);
			
			if(percent > 0) 
				percent = Math.ceil(percent)
			else 
				percent = Math.floor(percent);	
						

			if(IE) 
				$("floater").style.pixelTop += percent;
			else 
				$("floater").style.top += percent;	
			
			lastScrollY = lastScrollY + percent;
		}		
	}
}


Event.observe(window,"load",
	function(){
		if(IE && $('floater'))
			action = window.setInterval("floatOperator.right_float()",1);		
	}
);
