	// Run when document is loaded
	$(function(){
		timelineLocator();
	});
	
	function timelineLocator(){
		if($('#tijdlijn').hasClass('currentday')){
			var locator = $('#tijdlijn').width();
			var lengteUur = $('.oneven').width();
			var currentTime = new Date()
			var H = currentTime.getHours();
			var i = currentTime.getMinutes();
			var starttijd = H - Math.floor(locator/lengteUur);
			var newWidth = (H+(i/60)-starttijd) * lengteUur;
			$('#tijdlijn').css('width',newWidth);
			// console.log(newWidth);
			var cycleTimeout = setTimeout(function(){ timelineLocator() }, 10000);
		}else{
			// console.log('niet gevonden');
		}
	}
