function openNewsItem (url, yObj)
{
    var contentId = "news_items_content";
    var containerId = "news_items_container";
    var obj;

    obj = myGetElementById(contentId);
    if ( obj )
    {
	var re = new RegExp("news_story/", "");
	loc_str = url.replace (re, "news/story/");

	openLink (url, contentId, loc_str);
	obj.parentNode.style.visibility = "visible";
	if ( obj.parentNode.MINIMIZED )
	    restorePanel(obj.parentNode.dfObj);
	if ( yObj )
	{
	    var cObj = myGetElementById (containerId);

	    if ( typeof (yObj) == "string" )
		yObj = myGetElementById(yObj);

	    if ( cObj && yObj )
	    {
		var top = 0;
		var newsMainObj = myGetElementById('news_main');
		if ( newsMainObj ) top = newsMainObj.offsetTop;
		var newy = ((parseInt (yObj.scrollTop, 10)) + top) + "px";
		cObj.style.top = newy;
	    }
	}
    }

    return false;
}

function openNewsArchive (year, month)
{
    var contentId = "news_archives_content";

    if ( year && month )
	openLink("autogen_news_archives_" + year + "-" + month, contentId);
    else
	alert ("Missing year & month");

    return false;
}
