function showNews(msg,title,date,poster) {
	if(msg=="close") {
		var d1=document.getElementById("backgroundWhite").parentNode; 
		var d2=document.getElementById("backgroundWhite"); 
		d1.removeChild(d2);
		var d1=document.getElementById("openedNewsDiv").parentNode; 
		var d2=document.getElementById("openedNewsDiv"); 
		d1.removeChild(d2);
		return;
	} else if (document.getElementById("openedNewsDiv")) {
		var d1=document.getElementById("backgroundWhite").parentNode; 
		var d2=document.getElementById("backgroundWhite"); 
		d1.removeChild(d2);
		var d1=document.getElementById("openedNewsDiv").parentNode; 
		var d2=document.getElementById("openedNewsDiv"); 
		d1.removeChild(d2); 
	}
	var divTag = document.createElement("div");
	divTag.id = "backgroundWhite";
    divTag.style.position = "fixed";
	divTag.style.backgroundColor = "#FFF";
	divTag.style.top = "0px";
	divTag.style.left = "0px";
	divTag.style.bottom = "0px";
	divTag.style.right = "0px";
	divTag.style.opacity = "0.5";
    document.body.appendChild(divTag);
	var divTag = document.createElement("div");
	if (poster != " ") var posterStr = " by " + poster;
	else var posterStr = "";
    divTag.id = "openedNewsDiv";
    divTag.style.position = "fixed";
    divTag.style.height = "400px";
	divTag.style.width = "700px";
	divTag.style.backgroundColor = "#CCC";
	divTag.style.border = "2px solid #336699";
	divTag.style.top = "50%";
	divTag.style.left = "50%";
	divTag.style.marginLeft = "-350px";
	divTag.style.marginTop = "-200px";
    divTag.innerHTML = "<table width='100%' cellspacing='0px' style='background-color:#336699'>" +
	"<tr height='30px'><td style='color:#FFF;padding:0px 10px 0px 10px'><b><span style='font-size:14px'>" + 
	title.toUpperCase() + 
	"</span></b></td><td align='right' style='padding-right:5px'>" +
	"<a href='#/news/close' onclick=\"showNews('close','','','')\">" +
	"<b><span style='font-size:14px;color:#FFF'>X</span></b>" +
	"</a></td></tr>" +
	"</table>" +
	"<div style='margin:10px;overflow-y:auto;width:680px;height:350px;'>" +
	"<b><span style='color:#666'>Posted" + posterStr + " on " + date + "</span></b><br /><br />" +
	msg +
	"</div>";
	document.body.appendChild(divTag);
	document.getElementById("newsTextArea").focus();
}
