
/* ----- Begin output of content ------------ */
document.writeln("</tr></table>");
 
var colorIndex = 0;
var start = 1;

for(var counter = 0; counter < news.length - 1; counter++)
{ 

	var newTopic = counter == 0 ? true : news[counter].topicname == news[counter-1].topicname ? 0 : true;

	if (newTopic )
		{ start = 1;  }






	if (newTopic) 
	{  	
	// -----Heading class set to Primary------
document.writeln("<div class='Primary'>");
	
		document.writeln("<a href='" + validateHref(hrefParm + "/EndUser?Action=UserDisplayCiteList&orgId=" + news[counter].gid +"&topicId=" + news[counter].topicid + topics) + "'>");

		document.writeln(topicB + topicI + news[counter].topicname + topicIe + topicBe +  "</a>");
	
		document.writeln("</div>")
	} 
 
 
 
// -----Body class set to Primary Body ------
	document.writeln("<div class='Primary_body'>");
    
	if (!topicsOnly && news[counter].title != 'topic only') 
	{
		
// -------Output the document information----------------
    	if (news[counter].doc_id != '' || news[counter].title != 'No news found.') 
		{
		document.writeln("<br>");
		var headlineText = truncateText( news[counter].title, truncateHL );
		
		document.writeln(" <a href='" + validateHref(hrefParm + "/EndUser?Action=UserDisplayFullDocument&orgId="+news[counter].gid+ "&docId=" +news[counter].doc_id+ "&topicId=" +news[counter].topicid + "&start=" + start + topics) + "'>");
        document.writeln( headlineText + "</a>"); 
  		}

		start++;

   		if (publication) 
   		{document.writeln("<br>");
     	 document.writeln(news[counter].publication );
   		}
 	}

   	if (date) 
	{ 
		if(publication && news[counter].publication != "")
			{ document.writeln("..."); }
    	document.writeln(news[counter].pub_date );
    }


   	if (news[counter].nib != "" && briefs) 
	{
		var briefText = truncateText(news[counter].nib, truncateBR);
        document.writeln("<br>"); 
        document.writeln(briefText);
	}
      
	if (news[counter].annotation != "" && showDocAnnotations) 
	{ 
		document.write("Editor's Note: ");
		document.writeln(news[counter].annotation );
	}

// -----Close  class set to Primary_body------
	document.writeln("</div>");

}


 
            
document.writeln("<div class=\"break\"></div>");
document.writeln("<div class=\"clear\"></div>");
document.writeln("<br>"); 
document.writeln("<br>"); 
 
document.writeln("<div id=\"footer\"><div id=\"footer-design\"><div id=\"Ash_Footer\"><a" + getTarget() + " href=\"" + validateHref("http://www.lexis-nexis.com/lncc/about/copyrt.html") + "\" "  + ">Copyright &copy; 2008 LexisNexis, a division of Reed Elsevier Inc. All rights reserved. </a><BR>");
document.writeln("<a" + getTarget() + " href=\"" + validateHref("http://www.lexis-nexis.com/terms/general") + "\" "   + ">Terms and Conditions</a>");
document.writeln("<a" + getTarget() + " href=\"" + validateHref("http://www.lexis-nexis.com/terms/privacy") + "\" "  + ">Privacy Policy</a></div>");