	//×ó²àÑ¡ÔñÀ¸¸¡¶¯
	var FixedBanner = {};
	FixedBanner.frequency = 100;
	FixedBanner.getPosXY = function(a, offset) {
		var p = offset ? offset.slice(0) : [0,0],tn;
		while (a) {
			tn = a.tagName.toUpperCase();
			p[0] += a.offsetLeft - (tn == "DIV" && a.scrollLeft ? a.scrollLeft : 0);
			p[1] += a.offsetTop - (tn == "DIV" && a.scrollTop ? a.scrollTop : 0);
			if (tn == "BODY") break;
			a = a.offsetParent;
		}
		return p;
	}
	FixedBanner.findScrollDist = function(){
		var n;
		if(document.documentElement && document.documentElement.scrollTop)
			n = document.documentElement.scrollTop;
		else
			n = document.body.scrollTop;
		return n;
	}
	FixedBanner.attach = function(banner, config) {
		var banner = (typeof banner == 'string')?document.getElementById(banner):banner;
		var config = !config? {} : config;
		var ot = config.offsetTop, ob = config.offsetBottom || 0;
		var fb = {
			top: ot,
			config: config,
			adjust: function() {
				var st = FixedBanner.findScrollDist();
				var y = st + ot;
				sh = document.body.scrollHeight, bh = banner.offsetHeight;
				return (st+bh+ob > sh) ? sh-bh-ob : y;
			},
			scroll: function() {
				y = this.adjust();
				if (this.top != y) {
					y = this.top + (y-this.top)/2;
					banner.style.top = y + 'px';
					this.top = y;
				}
			}
		}
		setInterval(function(){fb.scroll();}, this.frequency);
		return fb;
	}
	fb = FixedBanner.attach('LeftSearch', {offsetTop:0, offsetBottom:100});
	fb._adjust = fb.adjust;
	fb.adjust = function() {
		var pos = FixedBanner.getPosXY(document.getElementById('SideBar'));
		var st = FixedBanner.findScrollDist();
		var y = ((st < pos[1])? fb.config.offsetTop : st-pos[1]+10) + fb.config.offsetTop;
		return this._adjust()-st+y;
	}
	