function floatbar_init(id,posV,startY){
	var fltObj = document.getElementById(id);
	if(!fltObj) return;
	fltObj.iecompattest = function(){ return (document.compatMode && document.compatMode!='BackCompat')? document.documentElement : document.body; }
	fltObj.closebar = function(){ this.style.visibility='hidden'; }

	fltObj.moveIT = function(){
		var self = this;
		var barheight = this.offsetHeight;

		if(this.posV=='top'){
			var pY = this.isNS ? pageYOffset : this.iecompattest().scrollTop;
			var y = (pY + this.startY - this.fbY)/8;
			}
		else if(this.posV=='middle'){
			var pY = this.isNS ? pageYOffset + (innerHeight/2) - (barheight/2): this.iecompattest().scrollTop + (this.iecompattest().clientHeight/2) - (barheight/2);
			var y = (pY + this.startY - this.fbY)/8;
			}
		else{
			var pY = this.isNS ? pageYOffset + innerHeight - barheight: this.iecompattest().scrollTop + this.iecompattest().clientHeight - barheight;
			var y = (pY - this.startY - this.fbY)/8;
			}
		if(Math.abs(y)>1/8) this.fbY += y;
		this.style.top = parseInt(this.fbY)+'px';
		if(this.style.visibility=='hidden') return;
		setTimeout(function(){self.moveIT();}, 10);
		}

	fltObj.posV = posV;
	fltObj.startY = startY;
	fltObj.isNS = (navigator.appName.indexOf('Netscape') != -1) || window.opera;
	if(document.layers) fltObj.style = fltObj;

	if(posV=='top') fltObj.fbY = startY;
	else if(posV=='middle'){
		var barheight = fltObj.offsetHeight;
		fltObj.fbY = fltObj.isNS ? pageYOffset + (innerHeight/2) : fltObj.iecompattest().scrollTop + (fltObj.iecompattest().clientHeight/2);
		fltObj.fbY -= (barheight/2);
		fltObj.fbY += startY;
		}
	else{
		fltObj.fbY = fltObj.isNS ? pageYOffset + innerHeight : fltObj.iecompattest().scrollTop + fltObj.iecompattest().clientHeight;
		fltObj.fbY -= barheight;
		fltObj.fbY -= startY;
		}

	fltObj.moveIT();
	fltObj.style.visibility='visible';
	fltObj.moveIT();
	return fltObj;
	}




//if (window.addEventListener) window.addEventListener('load', floatbar, false);
//else if (window.attachEvent) window.attachEvent('onload', floatbar);
//else if (document.getElementById) window.onload=floatbar;
