// JavaScript Document
scrollfloat=function(nid,baf){
		this.lastScrollY=0;
		this.nid=nid;
		this.baf=baf;
		this.diffY='';
		
		this.browser=function(){
				if(document.documentElement && document.documentElement.scrollTop){
					this.diffY = document.documentElement.scrollTop;
				}
				else if(document.body){
					this.diffY = document.body.scrollTop;				
				}
				else
					this.diffY = window.pageYOffset;
				}	
				
		this.move=function(){
				this.browser();
				percent=.1*(this.diffY-this.lastScrollY); 
 				if(percent>0)percent=Math.ceil(percent);
 				else percent=Math.floor(percent);
 				this.I(this.nid).style.top=parseInt(this.I(this.nid).style.top)+percent+"px";
				//this.I(this.nid).style.right=(document.documentElement.clientWidth-this.baf)/2-this.I(this.nid).offsetWidth-10+"px";
				//this.I(this.nid).style.right="10px";
				this.I(this.nid).style.left=this.baf+(document.documentElement.clientWidth-this.baf)/2+5+"px";
				this.lastScrollY=this.lastScrollY+percent;
			}	 
			 
		 	this.I=function(f){
		 			return document.getElementById(f);
		 		}
			
	}
