var hideItem = "";
var popTimer;
var colDIV = new Array();


/******************************************************************\
* Mini-Page Scroller
\******************************************************************/
var speed=5;
var moveUpvar;
var moveDownvar;

function divScroller(objContainer, objContent) {
	// private member data
	this.Container	= document.getElementById(objContainer);
	this.Content	= document.getElementById(objContent);
	this.contH		= this.Content.offsetHeight;
	this.containH	= this.Container.offsetHeight;
	// methods
	this.scrollUp	= divScroller_scrollUp;
	this.scrollDown	= divScroller_scrollDown;
	this.stopScroll	= divScroller_stopScroll;
	this.goTop		= divScroller_goTop;
	this.goEnd		= divScroller_goEnd;
}

function divScroller_scrollUp() {
	this.stopScroll;
	if(parseInt(this.Content.style.top)<=-3) {
		this.Content.style.top=parseInt(this.Content.style.top)+speed;
	}
}

function divScroller_scrollDown() {
	this.stopScroll;
	if(parseInt(this.Content.style.top)>=(this.contH*(-1)+this.containH)) {
		this.Content.style.top=parseInt(this.Content.style.top)-speed;
	}	
}

function divScroller_goTop() {
	this.stopScroll;
	this.Content.style.top=0;
}

function divScroller_goEnd() {
	this.stopScroll;
	this.Content.style.top=(this.contH*(-1)+this.containH);
}

function divScroller_stopScroll() {
	if (window.moveUpvar) clearTimeout(moveUpvar)
	if (window.moveDownvar) clearInterval(moveDownvar)
}

function scroll_down(what) {
	moveDownvar = window.setInterval(what+".scrollDown()", 100);
}

function scroll_up(what) {
	moveUpvar = window.setInterval(what+".scrollUp()", 100);
}
