<!--
var timerID=0, stillInside=false, speed=50, inScroller, outScroller;

// up
function up()
{
	if (!inScroller)
		init_scroll(10);
	stillInside = true;
	timerID = setTimeout("inScroller.scroll(-2)", 100);
}

// down	
function down()
{
	if (!inScroller)
		init_scroll(10);
	stillInside = true;
	timerID = setTimeout("inScroller.scroll(+2)", 100);
}

// scrollto
function doscroll(y)
{
	if (!inScroller)
		init_scroll(10);
	inScroller.scrollto(-y);
}

// out
function out()
{
	stillInside = false;
	if (timerID)
		clearTimeout(timerID);
}

// init_scroll
function init_scroll(v)
{
	speed = v;
	outScroller = new CompatibleObject("outScroller") 
	inScroller = new CompatibleObject("inScroller", "outScroller") 
	inScroller.move(0, 0);
}

// browserCaps	
function browserCaps()
{ 
	this.ver = navigator.appVersion;
	this.dom = document.getElementById ? 1 : 0;
	this.ie5 = (this.ver.indexOf("MSIE 5") > -1 && this.dom) ? 1 : 0; 
	this.ie4 = (document.all && !this.dom) ? 1 : 0; 
	this.ns5 = (this.dom && parseInt(this.ver) >= 5) ? 1 : 0; 
	this.ns4 = (document.layers && !this.dom) ? 1 : 0; 
	this.bw = (this.ie5 || this.ie4 || this.ns4 || this.ns5);
	return this;
} 
bw = new browserCaps();

// CompatibleObject
function CompatibleObject(obj, nest)
{ 
	nest = (!nest) ? '':'document.' + nest + '.';
	this.el = (bw.dom ? document.getElementById(obj) : (bw.ie4 ? document.all[obj] : (bw.ns4 ? eval(nest+'document.'+obj) : 0))); 
	this.css = (bw.dom ? document.getElementById(obj).style : (bw.ie4 ? document.all[obj].style : (bw.ns4 ? eval(nest+'document.'+obj):0))); 
	this.scrollHeight = (bw.ns4 ? this.css.document.height : this.el.offsetHeight); 
	this.clipHeight = (bw.ns4 ? this.css.clip.height : this.el.offsetHeight);
	this.scroll = scroll; 
	this.move = move; 
	this.scrollto = scrollto; 
	this.x; 
	this.y; 
	this.obj = obj + "Object"; 
	eval(this.obj + " = this");
	return this; 
} 

// move
function move(x,y)
{ 
	this.x = x;
	this.y = y; 
	this.css.left = this.x; 
	this.css.top = this.y; 
} 
 
// scroll
function scroll(d)
{ 
	var y = this.y - d;
	if (y <= 0 && y >= -this.scrollHeight + outScroller.clipHeight)
	{ 
		this.move(0, y);
		if (stillInside) 
			setTimeout(this.obj + ".scroll(" + d + ")", speed);
	} 
} 

// scrollto
function scrollto(y)
{ 
	if (y > 0)
		y = 0;
	if (y < -this.scrollHeight + outScroller.clipHeight)
		y = -this.scrollHeight + outScroller.clipHeight;
	this.move(0, y);
} 

// -->		

