function setcountup(theyear,themonth,theday,thehour,theminute){
	yr=theyear;
	mo=themonth;
	da=theday;
	hr=thehour;
	mn=theminute;
}

//////////CONFIGURE THE COUNTUP SCRIPT HERE//////////////////

//STEP 1: Configure the date to count up from, in the format year, month, day:
//This date should be less than today
//setcountup(2008,06,01,12,00);

//It was 12:45 but had to take into account uk viewers have a time shift.

//STEP 2: Configure text to be attached to count up
var displaymessage=" At Sea";

//////////DO NOT EDIT PASS THIS LINE//////////////////

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var crosscount='';

function start_countup(){
	crosscount=document.getElementById("countup");
	// MJ - set count at finish
	//crosscount.innerHTML = "107 days, 12 hours and 30 minutes" + displaymessage;
	countup();
}

function countup(){
	var paststring=montharray[mo-1]+" "+da+", "+yr+" "+hr+":"+mn;
	dd=(parseInt(serverTime)*1000)-Date.parse(paststring);
	dday=Math.floor(dd/(60*60*1000*24)*1);
	dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
	dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
	dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);
	
	crosscount.innerHTML = dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+ displaymessage;
	
	serverTime++;
	setTimeout("countup()",1000);
}
