function VCarousel(obj, w, h)
{
	this.cont = $("<div class='VCarousel_container' style='border:solid 0px green; overflow:hidden; border:solid 0px blue;'></div>");
	this.inner = $("<div class='VCarousel_inner' style='overflow:visible; height:1px; border:solid 0px green;'></div>");
	this.obj = $(obj);
	
	this.onClick = function(e)
	{
		alert(this);
	}
	
	this.onMouseMove = function(e)
	{
		var car = this.carousel;
		
		if (this.offsetHeight > car.inner[0].offsetHeight)return;
		var localY = e.pageY-getTop(this);
		var percent = (localY- this.offsetHeight*0.2)/(this.offsetHeight*0.6);
		percent = (percent>1)?1:percent<0?0:percent;
		car.inner.css("top", percent*(this.offsetHeight - car.inner[0].offsetHeight)+"px");
		$("#debug").text(car.inner[0].offsetHeight+"px");
		
	}
	
	
	this.inner.css("width", this.obj[0].offsetWidth+"px").css("height", this.obj[0].offsetHeight+"px");
	this.obj.wrapInner(this.inner[0]);
	this.inner = $(this.obj[0].firstChild);
	this.cont[0].carousel = this;
	this.inner.prependTo(this.cont);
	this.cont.prependTo(this.obj)
	
	this.cont.css("overflow", "hidden").css("width", w+"px").css("height", h+"px");
	this.cont.bind("mousemove", this.onMouseMove);
	this.cont.css("position", "relative").css("display", "inline-block");
	this.inner.css("position", "relative").css("display", "block");
	//alert(obj.style.border);
	

}
