function changeText(titleContent,descContent,blogLink)
{
	var newTitle = document.createTextNode(titleContent)
	var newText = document.createTextNode(descContent);
	var newBlogLink = document.createElement("a");
	newBlogLink.setAttribute("href", blogLink);
	newBlogLink.setAttribute("title", "Read the blog post about this artwork.");
	
	if (blogLink != "")
	{
		newBlogLink.appendChild(document.createTextNode("More Info..."));
	}
	
	sUrl = blogLink;
	blogLink = "http://www.facebook.com/plugins/like.php?href="+sUrl+"&layout=button_count&show_faces=false&width=450&action=like&colorscheme=light&font=tahoma&height=21";
	document.getElementById('face').setAttribute('src', blogLink);
	
	titleDiv = document.getElementById('imageTitle');
	
	if (titleDiv.childNodes.length >= 1)
	{
		titleDiv.removeChild(titleDiv.firstChild);
	}
	titleDiv.appendChild(newTitle);
	
	descriptionDiv = document.getElementById('imageDescription');
	
	if (descriptionDiv.childNodes.length >= 1)
	{
		descriptionDiv.removeChild(descriptionDiv.firstChild);
	}
	descriptionDiv.appendChild(newText);
	
	blogLinkDiv = document.getElementById('blogLink');
	
	if (blogLinkDiv.childNodes.length >= 1)
	{
		blogLinkDiv.removeChild(blogLinkDiv.firstChild);
	}
	blogLinkDiv.appendChild(newBlogLink);
	
	renderPlusone(sUrl);
}

function renderPlusone(url) 
{
	gapi.plusone.render("plusone-div", {"size": "medium", "count": "true", "href": url});
}
