// Function used to set the number of days remaining to the conference
function updateDaysToConference() {
	var from = new Date();
	var to = new Date();
	to.setFullYear(2009,3,8);
	
	document.getElementById('days_to_go').innerHTML = Math.floor((new Date().setFullYear(2009,3,8) - new Date()) / 1000 / 60 / 60 / 24);
}

// Function used to set the twitter status
function updateTwitterStatus() {
	document.getElementById('tweet_link').innerHTML = last_twitter_status;
}

// Function used to set the photos tagged as submitconf
function setFlickrPhotos() {
	document.getElementById('flickr1').src = photo1;
	document.getElementById('flickr2').src = photo2;
	document.getElementById('flickr3').src = photo3;
	document.getElementById('flickr4').src = photo4;
}

// Function used to set all dynamic elements
function updateDynamicContent() {
	//updateDaysToConference();
	updateTwitterStatus();
	setFlickrPhotos();
}