function timeAtSea(raceStartTimestamp,id){
	this.tick = function(){
		var currentTime = new Date();
		var remainder = Math.round((currentTime.getTime()-this.raceStartTime.getTime())/1000);
		var a = currentTime.getTime();
		var b = this.raceStartTime.getTime(); 

		var days = Math.floor(remainder / 86400);
		remainder = remainder % 86400;
		var hours = Math.floor(remainder / 3600);
		remainder = remainder % 3600;
		var minutes = Math.floor(remainder / 60);
		remainder = remainder % 60;
		var seconds = Math.floor(remainder);

		this.counterEl.innerHTML = days+' days, '+hours+' hours, '+minutes+' minutes and '+seconds+' seconds at sea';
	};

	var currentTime = new Date();
	this.raceStartTime = new Date(raceStartTimestamp*1000);
	if(currentTime > this.raceStartTime){
		this.counterEl = document.getElementById(id);
		var myT = this;
		this.timer = window.setInterval(function(){myT.tick();},1000);
	}
}