function prepNews (newsID) {
	newsListNodes = getObjRef(newsID).getElementsByTagName('li');
	newsListItem = getObjRef(newsID).firstChild;
	
	allLinks = getObjRef(newsID).getElementsByTagName('a');
	for (n = 0; n < allLinks.length; n++) {
		theLink = allLinks[n];
		//alert(theLink.parentNode.tagName);
		if (theLink.parentNode.tagName == 'H2') {
			//storyLink = theLink.href;
			theLink.onclick=function(){loadStory(this.href); return false;};
			theLink.onkeypress=function(){if (theLink.keyCode == 13) {loadStory(this.href); return false;}};
		}
	}
}

function loadStory (storyLink) {
	storyLink = storyLink.replace('content/news', 'content/news-story');
	ajax_loadContent('newsStory',storyLink);
	getObjRef('newsBox').style.display = 'block';
	getObjRef('newsBoxInner').style.top = getScrollY()+'px';
}

function closeNews () {
	getObjRef('newsStory').innerHTML = "";
	getObjRef('newsBox').style.display = 'none';
}

function getScrollY() {
  var scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
  } else if( document.body && document.body.scrollTop ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
  } else if( document.documentElement && document.documentElement.scrollTop ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
  }
  pageHeight = getObjRef('sizeOfPage').clientHeight + 16;
  boxHeight = getObjRef('newsBoxInner').clientHeight;
  if ((scrOfY + boxHeight) > pageHeight) {
	scrOfY = (pageHeight - boxHeight)
  }
  if (scrOfY < 110) {
	  scrOfY = 110 
  }
  return scrOfY;
}