// scroller
var sc_i;
var sc_h=0;
var sc_t;
var sc_d;

function SCdown(id) {

	sc_d = jQuery('div',id);
	sc_i = jQuery(sc_d).height()-jQuery(id).height();
	sc_i = '-'+sc_i;
	sc_h = sc_h-1;

	if(jQuery(id).height()<=jQuery(sc_d).height()) {

		if(sc_h<sc_i) {
			if (sc_t) clearTimeout(sc_t);
		} else {
			jQuery(sc_d).css("top",sc_h+"px");
			sc_t=setTimeout("SCdown('"+id+"')",1);
		}

	}

}

function SCup(id) {

	sc_d = jQuery('div',id);
	sc_h = jQuery(sc_d).css("top");
	sc_h = sc_h.replace('px','');
	sc_h = parseInt(sc_h)+1;

	if(sc_h>=0) {
		if (sc_t) clearTimeout(sc_t);
	} else {
		jQuery(sc_d).css("top",sc_h+"px");
		sc_t=setTimeout("SCup('"+id+"')",1);
	}

}

function SCstop() {

	if (sc_t) clearTimeout(sc_t);

}
