window.onload = function()
{
  settings = {
	  tl: { radius: 6 },
	  tr: { radius: 6 },
	  bl: { radius: 6 },
	  br: { radius: 6 },
	  antiAlias: true,
	  autoPad: true,
	  validTags: ["div"]
  }

  var boxObject = new curvyCorners(settings, "roundedDIV");
  boxObject.applyCornersToAll();
}

function toggleDiv(divID)
{
	if(document.getElementById(divID).style.display == 'none')
	{
		document.getElementById(divID).style.zIndex = "5000";
		document.getElementById(divID).style.display = 'block';
	}
	else
	{
		document.getElementById(divID).style.zIndex = "0";
		document.getElementById(divID).style.display = 'none';
	}
}



	function storyCommentsPN(uri){
		show('commentPI');
		var xmlhttp = xmlHtmlStart();
		xmlhttp.open('GET', uri, true);
		xmlhttp.onreadystatechange=function() {
			if (xmlhttp.readyState==4) {
				hide('commentPI');
				var content = xmlhttp.responseText;
				if(content){
					EID('storyComments').innerHTML = content;
				}
			}
		}
		xmlhttp.send(null);
	}
