	// UserScrollbar script written by blue
	// licensed under Creative Common license
	// http://creativecommons.org/licenses/by-sa/2.5/pl/
	var d=document,b=d.body,E=d.documentElement,Timer;
	onl=(window.onload||new Function)
	onload=function(){
		onl();
		for(var i=0;x=document.getElementsByTagName('div')[i++];){
			if(/ scroll /.test(' '+x.className+' ')) newScroll.apply(x);
		}
	}
	function newScroll(x){
		x=this;
		this.style.overflow='hidden';
		this.inD=this.getElementsByTagName('div')[0];
		 this.OH=this.clientHeight;this.IH=this.inD.offsetHeight;
		this.OL=this.offsetLeft;this.OT=this.offsetTop;this.pos=0;
//		while(k=k.offsetParent){inD.OL+=k.offsetLeft;inD.OT+=k.offsetTop;}
		this.up = document.createElement('div');
			this.up.className='scrollUp';
/*			up.style.left=inD.OL+outerDiv.offsetWidth+'px';
			up.style.top=inD.OT+'px';*/
			this.appendChild(this.up);
			this.up.onmousedown=function(){x.scrollTo(1,this,!0);return false};
		this.down = document.createElement('div');
			this.down.className='scrollDown';
//			down.style.left=inD.OL+outerDiv.offsetWidth+'px';
			this.appendChild(this.down);
//			down.style.top=inD.OT+outerDiv.offsetHeight-down.offsetHeight+'px';
			this.down.onmousedown=function(){x.scrollTo(-1,this,!0);return false};
		this.scrollBg = document.createElement('div');
			this.scrollBg.className='scrollBg';
			this.scrollBg.style.top=this.up.offsetHeight+'px';
			this.scrollBg.style.height=this.OH-this.up.offsetHeight-this.down.offsetHeight+'px';
			this.appendChild(this.scrollBg);
		this.scroll0 = document.createElement('div');
		this.scroll1 = document.createElement('div'); this.scroll1.className='scrollBarUp';
		this.scroll2 = document.createElement('div'); this.scroll2.className='scrollBarDown';
			this.scroll0.className='scrollBar';
			this.poleSuwaka=this.scrollBg.offsetHeight;
			this.scroll2.style.height=this.OH*this.poleSuwaka/this.IH+'px';
			this.scroll1.appendChild(this.scroll2);
			this.scroll0.appendChild(this.scroll1);
			this.scrollBg.appendChild(this.scroll0);
			this.scroll0.pos=0;
			this.scroll2.onmousedown = function(e){
				x.t=(e||event).clientY+(E||b).scrollTop-x.scroll0.pos;
				d.onmousemove = function(e,temp){
					temp=(e||event).clientY+(E||b).scrollTop;
					x.scroll0.pos=(temp-x.t>x.poleSuwaka-x.scroll0.offsetHeight)?x.poleSuwaka-x.scroll0.offsetHeight:(temp-x.t<0)?0:temp-x.t;
					x.scroll0.style.top=x.scroll0.pos+'px';
					x.pos=Math.ceil(x.scroll0.pos*x.IH/x.poleSuwaka);
					x.inD.style.top=-x.pos+'px';
				}
				d.onselectstart=function(){return false};
				d.onmouseup=function(){d.onmousemove=''};
				return false;
			}

		this.scrollTo = function(dir,co,t){
			co.onmouseup =
			co.onmouseout=function(){x.t=!1}
			co.onmouseover=function(){x.t=!0}
			d.onmouseup=function(){clearTimeout(Timer);co.onmouseup=co.onmouseout=co.onmouseover=''}
			if(x.t=x.t||t){
				x.pos=(x.pos-5*dir)>(x.IH-x.OH)?x.IH-x.OH:(x.pos-5*dir)<0?0:x.pos-5*dir;
				x.inD.style.top=-x.pos+'px';
				x.scroll0.pos=Math.ceil(x.pos/x.IH*x.poleSuwaka);
				x.scroll0.style.top=x.scroll0.pos+'px';
			}
			Timer=setTimeout(function(){x.scrollTo(dir,co)},20)
		}
	}