
//scroller width
var swidth=230;
//scroller height
var sheight=154;
//background color
var sbcolor='';
//scroller's speed
var sspeed=2;
var resumesspeed=sspeed
var sizeup = 0;
var thevid;

/*
function ticker_start(container) {
	html = jQuery(container).html();
	jQuery(container).html("<div id='ticker'>"+html+"</div>");
	nticker(jQuery('#ticker'));
}
*/
function nticker( divid ) {
	thediv = jQuery(divid);
	thediv.css({position:'relative', width: thediv.parent().css('width')});
	sheight += 50;
	thediv.css('top',sheight);
	sizeup = thediv.height();
	nslide();
}

function nslide() {
	if( parseInt( thediv.css('top') ) > sizeup*(-1) ) {
		thetop = parseInt(thediv.css('top'))-sspeed;
		thediv.css('top', thetop);
		setTimeout('nslide()', 100);
	} else {
		thediv.css('top', sheight);
		nslide();
	}

}

function ticker_start(container) {
	html = jQuery(container).html();
	jQuery(container).html('<marquee loop="infinite" behavior="scroll" direction="up" height="207px" width="230px" scrollamount="1" scrolldelay="65" style="text-align: left ; padding: 4px; " truespeed onmouseover="this.stop()" onmouseout="this.start()">'+ html +'</marquee>');
//	nticker(jQuery('#ticker'));
}
