
function quickMenu(str) {
	 this.top = 135;
	 this.right = 0;
	 this.ele = document.getElementById(str);

	 this.footlimit = 150;	
	 
	 this.timer = null;

	 this.yHeight =  parseInt(document.documentElement.scrollHeight); 
	 this.ele.limit = this.yHeight- this.footlimit; //
	 // element  position, left, top value setup
	 this.ele.style.position	=	"absolute";
	 this.ele.style.top = this.top+"px";
	 this.ele.style.right =	this.right+"px";
	 this.moveY = this.top;
}

quickMenu.prototype.pos = function(){
	this.ele.style.top=this.moveY+"px";
}

quickMenu.prototype.move = function(){

	this.end = document.documentElement.scrollTop+this.top;
	this.moveY +=   Math.floor((this.end - this.moveY ) / 10 );
		
	if(this.moveY>this.ele.limit){
			this.moveY =  this.ele.limit;
	}
	this.pos();
	this.timer = setTimeout(this.name+".move()",10);
}

quickMenu.prototype.start = function(){
	this.start = parseInt (this.ele.style.top);
	this.timer = setTimeout(this.name+".move()",10);
}


 