/* linha do tempo */
jQuery(function(){

var linhadotempo = [], $texto = $('#linhadotempo p');

$('#lista_linhadotempo').hide()
	.find('li').each(function(){
		linhadotempo.push( $(this).clone().children('span').remove().end().text() );
	});
	
$('#linhadotempo, #marcador').show();

if (jQuery.ui)
	$('#marcador').draggable({
		containment: 'parent'
	}).bind('drag', function(){
		var pos = Math.floor( parseInt(this.style.left) / 82 );
		$texto.text( linhadotempo[pos] );
	});
});
/**/
