function CDFINews() {

//
// JavaScript for all topics
//

var bw = navigator.appName; 


var showTopicAnnotations = false;
var highlightTopicAnnotations = false;
var showDocAnnotations = true;
var highlightDocAnnotations = false;
var date = true;
var truncateHL = '0';
var truncateBR = '0';

var publication = true;
var isPreview = false;
var topicLinkActive = false;
var hrefParm = 'http://www6.lexisnexis.com/publisher';
var topics = '&topics=all';
var searchBoxLoc = 'none';
var showEmailPrefs = false;

var TopicColor   = "#3300CC";
var TopicFontFamily   = "verdana";
var TopicFontSize  = "12px";
var TopicFontWeight = "";
var TopicFontStyle = "";
var TopicTextDecoration = "none";
var TopicOverColor = "#990033";

var TopicOverFontFamily = TopicFontFamily;
var TopicOverFontSize = TopicFontSize;
var TopicOverFontWeight = TopicFontWeight;
var TopicOverFontStyle = TopicFontStyle;
var TopicOverTextDec = TopicTextDecoration;
var TopicTextTransform = "capitalize";

var headlineColor   = "#112e7c";
var headlineFontFamily   = "verdana";
var headlineFontSize  = "13px";
var headlineFontWeight = "";
var headlineFontStyle = "";
var headlineTextDecoration = "underline";
var headlineOverColor = "#112e7c";
var headlineOverFontFamily = headlineFontFamily;
var headlineOverFontSize = headlineFontSize;
var headlineOverFontWeight = headlineFontWeight;
var headlineOverFontStyle = headlineFontStyle;
var headlineOverTextDec = headlineTextDecoration;
var headlineTextTransform = "capitalize";
  
var PubColor   = "#990033";
var PubFontFamily   = "verdana";
var PubFontSize  = "10px";
var PubFontWeight = "";
var PubFontStyle = "";
var PubTextDecoration = "none";
var PubTextTransform = "capitalize";
  
var nibColor   = "#000000";
var nibFontFamily  = "verdana";
var nibFontSize  = "10px";
var nibFontWeight = "normal";
var nibFontStyle = "normal";
var nibTextDecoration = "none";


var docAnnotationColor   = "#333333";
var docAnnotationFontFamily   = "verdana";
var docAnnotationBGColor = "FFFFE7";
var docAnnotationFontSize  = "10px";
var docAnnotationFontWeight = "";
var docAnnotationFontStyle = "";
var docAnnotationTextDecoration = "none";
var docAnnotationTextTransform = "none";

var topicAnnotationColor   = "#383838";
var topicAnnotationFontFamily   = "verdana";
var topicAnnotationBGColor = "FFFFD0";
var topicAnnotationFontSize  = "10px";
var topicAnnotationFontWeight = "";
var topicAnnotationFontStyle = "";
var topicAnnotationTextDecoration = "none";
var topicAnnotationTextTransform = "none";


var pageLinksColor   = "#990033";
var pageLinksFontFamily   = "verdana";
var pageLinksFontSize  = "10px";
var pageLinksFontWeight = "";
var pageLinksFontStyle = "";
var pageLinksTextDecoration = "none";
var pageLinksOverColor = "#3300CC";
var pageLinksOverFontFamily = pageLinksFontFamily;
var pageLinksOverFontSize = pageLinksFontSize;
var pageLinksOverFontWeight = pageLinksFontWeight;
var pageLinksOverFontStyle = pageLinksFontStyle;
var pageLinksOverTextDec = pageLinksTextDecoration;  

// netscape values
var TopicFontSizeNS  = "3";
var headlineFontSizeNS  = "2";
var pageLinksFontSizeNS  = '1';
var PubFontSizeNS  = "1";
var nibFontSizeNS  = "2";
var annotationFontSizeNS  = "2";

var topicB="<B>";
var topicBe="<B>";
var topicI="";
var topicIe="";
var headlineB = "";
var headlineBe="";
var headlineI="";
var headlineIe="";
var pubB ="";
var pubBe ="";
var pubI ="";
var pubIe="";
var pageLinksB = '';
var pageLinksBe='';
var pageLinksI='';
var pageLinksIe='';

//var BackgroundStyles = new Array("style='background-color:F5F5EB'", "style='background-color:FFFFFF'");
var BackgroundStyles = new Array("style='background-color:FFFFFF'", "style='background-color:FFFFFF'");
                                 


var TopicStyles1 = " onMouseover=\"this.style.color='" + TopicOverColor + "';"
  + " this.style.fontFamily='" + TopicOverFontFamily + "';"
  + " this.style.fontSize='" + TopicOverFontSize + "';" + " this.style.fontWeight='" + TopicOverFontWeight + "';"
  + " this.style.fontStyle='" + TopicOverFontStyle + "';" + " this.style.textDecoration='" + TopicOverTextDec + "'\""
  + " onMouseout=\"this.style.color='" + TopicColor + "'; this.style.textDecoration='" + TopicTextDecoration + "';"
  + " this.style.fontFamily='" + TopicFontFamily + "';" + " this.style.fontSize='" + TopicFontSize + "';"
  + " this.style.fontWeight='" + TopicFontWeight + "'; this.style.fontStyle='" + TopicFontStyle + "'\"";
  
var TopicStyles2 = " style='font-family:" + TopicFontFamily + "; font-size:" + TopicFontSize
  + "; color:" + TopicColor + "; text-decoration:" + TopicTextDecoration + "; text-transform:" + TopicTextTransform
  + "; font-weight:" + TopicFontWeight + "; font-style:" + TopicFontStyle + "'";
  
var HeadlineStyles = " onMouseover=\"this.style.color='" + headlineOverColor 
  + "'; this.style.fontFamily='" + headlineOverFontFamily
  + "'; this.style.fontSize='" + headlineOverFontSize + "'; this.style.fontWeight='" + headlineOverFontWeight
  + "'; this.style.fontStyle='" + headlineOverFontStyle + "'; this.style.textDecoration='" + headlineOverTextDec
  + "'\" onMouseout=\"this.style.color='" + headlineColor + "'; this.style.textDecoration='" + headlineTextDecoration
  + "'; this.style.fontFamily='" + headlineFontFamily + "'; this.style.fontSize='" + headlineFontSize
  + "'; this.style.fontWeight='" + headlineFontWeight + "'; this.style.fontStyle='" + headlineFontStyle
  + "'\" style='font-family:" + headlineFontFamily + "; font-size:" + headlineFontSize + "; color:" + headlineColor
  + "; text-decoration:" + headlineTextDecoration + "; text-transform:" + headlineTextTransform 
  + "; font-weight:" + headlineFontWeight + "; font-style:" + headlineFontStyle + "'";
  
var PageLinksStyles = " onMouseover=\"this.style.color='" + pageLinksOverColor 
  + "'; this.style.fontFamily='" + pageLinksOverFontFamily + "'; this.style.fontSize='" + pageLinksOverFontSize
  + "'; this.style.fontWeight='" + pageLinksOverFontWeight + "'; this.style.fontStyle='" + pageLinksOverFontStyle
  + "';  this.style.textDecoration='" + pageLinksOverTextDec + "'\" onMouseout=\"this.style.color='" + pageLinksColor
  + "'; this.style.textDecoration='" + pageLinksTextDecoration + "'; this.style.fontFamily='" + pageLinksFontFamily
  + "'; this.style.fontSize='" + pageLinksFontSize + "'; this.style.fontWeight='" + pageLinksFontWeight
  + "'; this.style.fontStyle='" + pageLinksFontStyle + "'\" style='font-family:" + pageLinksFontFamily
  + "; font-size:" + pageLinksFontSize + "; color:" + pageLinksColor + "; text-decoration:" + pageLinksTextDecoration
  + "; font-weight:" + pageLinksFontWeight + "; font-style:" + pageLinksFontStyle + "'";

var PageTextStyles = " style='font-family:" + pageLinksFontFamily
  + "; font-size:" + pageLinksFontSize + "; color:" + pageLinksColor + "; text-decoration:" + pageLinksTextDecoration
  + "; font-weight:" + pageLinksFontWeight + "; font-style:" + pageLinksFontStyle + "'";

function validateHref(lnk) {
  if (isPreview) {
    return "#";
  } 
  else {
    return lnk;
  }
}

function getTarget() {
  if (isPreview) {
    return "";
  } 
  else {
    return " target=\"new\"";
  }
}

function outputSearchForm() {
    document.writeln("<form  method=\"post\" onSubmit=\"return checkSearch();\" name=\"frmMain\" action=\"http://www6.lexisnexis.com/publisher/EndUser?Action=UserSearchTopics&orgId=102376\">");
    document.writeln("<span " + PageTextStyles + ">Search Document List: </span><input type=\"text\" name=\"terms\" id=\"terms\"> <input value=\"Go\" type=\"submit\">");
    document.writeln(" <a " + PageLinksStyles + " href=\"javascript:launchFQUserHelp('http://www6.lexisnexis.com/publisher','eusearchtips.asp',false,1500)\">Tips</a></form>");
}

document.writeln("<table border='0' width='100%'><tr>");

if (searchBoxLoc == 'top' || searchBoxLoc == 'bottom' || showEmailPrefs) {
  document.writeln("<td valign='top'>");
  if (searchBoxLoc == 'top') {
    outputSearchForm();
  }
  
  if (showEmailPrefs) {
    document.writeln("<a href=\"javascript:openUserPref('http://www6.lexisnexis.com/publisher/EndUser?Action=UserPrefsLogin&orgId=102376')\" " + PageLinksStyles + ">My Subscriptions</a>");
  }
  
  document.writeln("</td>");
}



//document.writeln("<td><div align='right'><img name='lnlogo' src='http://www6.lexisnexis.com/publisher/images/ln_white_small.gif' valign='top' alt='Lexis Logo' border='0'><br clear='all'></div></td>");

document.writeln("</tr></table>");
//document.writeln("<hr width='80%'>");

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 && !singleTopic)
  {
    start = 1;
    
    if (counter >= 1) {
      // Close the previous topic's table
      document.writeln("</table>");
    }

    colorIndex++;
    
    document.writeln("<table border='0' width='100%' " + BackgroundStyles[colorIndex % 2] + ">");
    //document.writeln("<tr><td align='left' height='28' valign='bottom'>");
  }
  else if (newTopic && singleTopic) {
    //document.writeln("<table border='0' width = '100%'><tr><td align='left' valign='bottom'>");
  }

  if (newTopic) {
    if (topicLinkActive) {
      if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
        //document.writeln("<a href='" + validateHref(hrefParm + "/EndUser?Action=UserDisplayCiteList&orgId=" + news[counter].gid +"&topicId=" + news[counter].topicid + topics) + "'>");
        //document.writeln("<font face='" + TopicFontFamily + "' color='" + TopicColor + "' size='" + TopicFontSizeNS  + "'>" + topicB + topicI + news[counter].topicname + topicIe + topicBe + "</font></a>");
      }
      else {
        //document.writeln("<a href='" + validateHref(hrefParm + "/EndUser?Action=UserDisplayCiteList&orgId=" + news[counter].gid +"&topicId=" + news[counter].topicid + topics) + "'" + TopicStyles1 + TopicStyles2 + ">");
        //document.writeln(news[counter].topicname + "</a>");
      }
    } 
    else {
      if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
        //document.writeln("<font face='" + TopicFontFamily + "' color='" + TopicColor + "' size='" + TopicFontSizeNS  + "'>" + topicB + topicI + news[counter].topicname + topicIe + topicBe + "</font>");
      }
      else {  
        //document.writeln("<span " + TopicStyles2 + ">" + news[counter].topicname + "</span>");
      }  
    }
    
    //document.writeln("</td></tr>")




    if (news[counter].topicannotation != "" && showTopicAnnotations) {
      if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
        //document.writeln("<tr><td><table><tr><td");
        if (highlightTopicAnnotations) {
          //document.writeln("bgcolor='" + topicAnnotationBGColor + "'");
        }
        //document.writeln(">"  +  "<font face='" + topicAnnotationFontFamily + "' color='" + topicAnnotationColor + "' size='" + topicAnnotationFontSizeNS  + "'>Comments: " + news[counter].topicannotation + "</font></td></tr></table></td></tr>");
      }
      else {
        //document.writeln("<tr><td>");
        //document.write("<table width='100%'><tr><td width='100%' ");
        if (highlightTopicAnnotations) {
          //document.writeln("style=\"background-color:" + topicAnnotationBGColor + ";\"");
        }
        //document.write("><tr><td><span style='text-decoration:" + topicAnnotationTextDecoration + "; text-transform:" + topicAnnotationTextTransform + "; font-weight:" + topicAnnotationFontWeight + "; font-style:" + topicAnnotationFontStyle + "; font-family:" + topicAnnotationFontFamily + "; font-size:" + topicAnnotationFontSize + "; color:" + topicAnnotationColor + "'>Editor's Note: ");
        //document.writeln(news[counter].topicannotation + "</span></td></tr></table>");
        //document.writeln("</td></tr>");
      }
    }



  }

  if (singleTopic) {
  	//document.writeln("</table>");
  	colorIndex++;
    document.writeln("<table border='0' width='100%' " + BackgroundStyles[colorIndex % 2] + ">");
  }
    
  if (!topicsOnly && news[counter].title != 'topic only') {
    // Output the document information
    if (news[counter].doc_id != '' || news[counter].title != 'No news found.') {
      var headlineText = truncateText( news[counter].title, truncateHL );
    
      if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
        document.writeln("<tr valign=top><td align=left width=16><img src=/graphics/orange_bullet.gif width=15 height=15 border=0 alt=''></td><td align=left><a href='" + validateHref(hrefParm + "/EndUser?Action=UserDisplayFullDocument&orgId="+news[counter].gid+ "&docId=" +news[counter].doc_id+ "&topicId=" +news[counter].topicid + "&start=" + start + topics) + "' target=_blank>");
        document.writeln("<font face='" + headlineFontFamily + "' color='" + headlineColor + "' size='" + headlineFontSizeNS  + "'>" + headlineB + headlineI + headlineText + headlineIe + headlineBe);
        document.writeln("</font></a>");
      }
      else {
        document.writeln("<tr valign=top><td align=left width=16><img src=/graphics/orange_bullet.gif width=15 height=15 border=0 alt=''></td><td align=left><a href='" + validateHref(hrefParm + "/EndUser?Action=UserDisplayFullDocument&orgId="+news[counter].gid+ "&docId=" +news[counter].doc_id+ "&topicId=" +news[counter].topicid + "&start=" + start + topics) + "'" + HeadlineStyles + " target=_blank>");
        document.writeln( headlineText + "</a>"); 
      }
      start++;

      if (publication) {
        if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
          document.writeln("<br><font face='" + PubFontFamily + "' color='" + PubColor + "' size='" + PubFontSizeNS  + "'>" + pubB + pubI + news[counter].publication + pubIe + pubBe + "</font>");
        }
        else {
          document.writeln("<br><span style='text-decoration:" + PubTextDecoration + "; text-transform:" + PubTextTransform + "; font-weight:" + PubFontWeight + "; font-family:" + PubFontFamily + "; font-size:" + PubFontSize + "; font-style:" + PubFontStyle + "; color:" + PubColor +"'>");
          document.writeln(news[counter].publication + " </span>");
        }
      }

      if (date) {
        if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
          document.writeln("<font face='" + PubFontFamily + "' color='" + PubColor + "' size='" + PubFontSizeNS  + "'>" + pubB + pubI);
          if(publication && news[counter].publication != ""){
			document.writeln("...");
		}
		document.writeln(news[counter].pub_date + pubIe + pubBe + "</font>");
        }
        else {
		   if(publication && news[counter].publication != ""){
				document.writeln("...");
			}
          document.writeln("<span style='text-decoration:" + PubTextDecoration + "; font-weight:" + PubFontWeight + "; font-family:" + PubFontFamily + "; font-style:" + PubFontStyle + "; font-size:" + PubFontSize + "; color:" + PubColor + "'>");
          document.writeln(news[counter].pub_date+ "  </span>");
        }
      }

      if (news[counter].nib != "" && briefs) {
        var briefText = truncateText(news[counter].nib, truncateBR);

        if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
          document.writeln("<br><font face='" + nibFontFamily + "' color='" + nibColor + "' size='" + nibFontSizeNS  + "'>" + briefText + "</font>");
        }
        else {
          document.writeln("<br><span style='text-decoration:" + nibTextDecoration + "; font-weight:" + nibFontWeight + "; font-family:" + nibFontFamily + "; font-style:" + nibFontStyle + "; font-size:" + nibFontSize + "; color:" + nibColor + "'>");
          document.writeln(""+ briefText + "  </span>");
        }     
      }
      
      if (news[counter].annotation != "" && showDocAnnotations) {
        if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
          document.writeln("<br><table><tr><td");
          if (highlightDocAnnotations) {
            document.writeln("bgcolor='" + docAnnotationBGColor + "'");
          }
          document.writeln(">"  +  "<font face='" + docAnnotationFontFamily + "' color='" + docAnnotationColor + "' size='" + docAnnotationFontSizeNS  + "'>Editor's Note: " + news[counter].annotation + "</font></td></tr></table>");
        }
        else {
          document.writeln("</tr></td><tr><td>");
          document.write("<table width='100%'><tr><td width='100%' ");
          if (highlightDocAnnotations) {
            document.writeln("style=\"background-color:" + docAnnotationBGColor + ";\"");
          }
          document.write("><span style='text-decoration:" + docAnnotationTextDecoration + "; text-transform:" + docAnnotationTextTransform + "; font-weight:" + docAnnotationFontWeight + "; font-style:" + docAnnotationFontStyle + "; font-family:" + docAnnotationFontFamily + "; font-size:" + docAnnotationFontSize + "; color:" + docAnnotationColor + "'>Editor's Note: ");
          document.writeln(news[counter].annotation + "</span></td></tr></table>");
        }
      }
      document.writeln("</td></tr>");
    }
    else {
      // Output 'No News Found' text
      var headlineText = truncateText( news[counter].title, truncateHL );
      document.writeln("<tr><td align=left>");
      document.writeln("<font face='" + headlineFontFamily + "' color='" + headlineColor + "' size='" + headlineFontSizeNS  + "'>" + headlineB + headlineI + headlineText + headlineIe + headlineBe);
      document.writeln("</font>");
      document.writeln("<br><br></td></tr>");
    }
  }
}

if (news.length > 0) {
  document.writeln("</table>");
}

document.writeln("<table border='0' width='100%'>");

if (searchBoxLoc == 'bottom') {
  document.writeln("<tr><td>");
  outputSearchForm();
  document.writeln("</td></tr>");
}
document.writeln("<tr><td><p align='center'>");

var pl = "";

if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
  document.writeln("<font face='" + pageLinksFontFamily + "' color='" + pageLinksColor + "' size='" + pageLinksFontSizeNS  + "'>" + pageLinksB + pageLinksI);
} 
else {
  pl = PageLinksStyles;
}

//document.writeln("<a" + getTarget() + " href=\"" + validateHref("http://www.lexis-nexis.com/lncc/about/copyrt.html") + "\" " + pl + ">Copyright © 2009 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") + "\" " + pl + ">Terms and Conditions</a>");
//document.writeln("<a" + getTarget() + " href=\"" + validateHref("http://www.lexis-nexis.com/terms/privacy") + "\" " + pl + ">Privacy Policy</a>");

if ((bw == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
  document.writeln("</font>");
}
document.writeln("</p></td></tr>");
document.writeln("</table>");

}