function vp_slider()
{
	this.vpimages = new Array();
	this.currentPosition = 0;
	this.loadBatch = function()
	{
	}
	this.slideNext = function(_direction)
	{
	}
	this.slideTo = function(_index)
	{
	}
	this.startShow = function()
	{
	}
	this.startShow = function()
	{
	}
}

function vp_move(_direction, _stoptimer)
{
	if (_stoptimer)
	{
		clearTimeout(vp_timerID);
		vp_timerID = setTimeout('vp_slide()',8000);
	}

	vp_currentIndex += _direction;

	if (vp_currentIndex < 0)
	{
		vp_currentIndex = vp_imagecount - 1;
		tobeginorend( (-1 * ((vp_imagecount - 1) * vp_imageHeight) ) + "px" );
	}
	else if (vp_currentIndex == vp_imagecount)
	{
		vp_currentIndex = 0;
		tobeginorend("0px");
	}
	else
	{
		$("div#imgset").animate({"top": "-=" + (_direction * vp_imageHeight) + "px"}, vp_slideTime);
	}
}
function tobeginorend(_position)
{
	$("div#fadepane").fadeIn("slow", function(){
		$("div#imgset").css({ top: _position});
		$(this).fadeOut("slow");
	});	
}
function vp_slide()
{
	vp_move(1, false);
	vp_timerID = setTimeout('vp_slide()',vp_slideInterval);
}
