var position = 0;
var t;
var width = 623;
var time = 20000;

function movetolast(){
	jQuery(".thumb_contianer:first").css("left",width);
	jQuery(".thumb_contianer:first").appendTo(".dgc-widget-content");
}

function amimate(){
	
	$(".thumb_contianer:first").animate({left: 0-width},time,"linear");
	$(".thumb_contianer:eq(1)").animate({left: 0},time,"linear",function(){movetolast();amimate()});
	
}

function amimateold()
{
	position=position+1;
	
	jQuery(".thumb_contianer:first").css("left",0-position);
	jQuery(".thumb_contianer:eq(1)").css("left",width-position);
	if(position > width){
		movetolast();
		position = 0;
	}
	t=setTimeout("amimateold()",20);
}

jQuery(document).ready(function(){
	jQuery(".thumb_contianer").css("position","absolute");
	jQuery(".thumb_contianer").css("left",width);
	jQuery(".thumb_contianer:first").css("left",0);
	amimate();
});
