// Create arrays of articles
syndicate.article_title = new Array;
syndicate.article_url = new Array;
syndicate.article_date = new Array;
syndicate.article_summary = new Array;
syndicate.article_content = new Array;

// This section of the script is published by the software
syndicate.index = 0;
  syndicate.article_title[ syndicate.index ] = 'Suicide Pact: Kowtowing To Political Correctness';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269148.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'The real reason we all should be concerned about the Fort Hood massacre, moving terrorists to U.S. prisons and show trials in New York is there are undoubtedly other Nidal Hasans...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Presidential Zero Sum Goes To Asia ';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269147.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Despite a sinking greenback that is wreaking havoc among the Asian economies, and in the face of repeated currency warnings by Asian officials, Obama brought no King Dollar...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Intimidation? Witnesses, Jurors Protection Overlooked In NYC Terrorist Trial ';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269145.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Attorney General Eric Holder\'s decision to prosecute murderous, fanatical terrorists - including the 9-11 mastermind Khalid Sheikh Mohammed - speaks volumes...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Abortion, Healthcare, And The President\'s Priorities';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269144.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Obama\'s mind works exactly the opposite of the pro-life mind, and his language has to be parsed from the perspective that access to abortion is desirable...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Senate, Help Your President - Deep-Six ObamaCare!';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269143.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'President Clinton survived - not in spite of but, in part, because of his "failure" to "reform" health care...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'KSM, O.J. And The Presumption Of Innocence';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269142.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Our attorney general is gambling with the nation\'s security, and the odds aren\'t reassuring.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Eric Holder\'s True Motive: The KSM Trial';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269141.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'When KSM\'s star turn in the courtroom goes viral on the Internet and inspires thousands of new jihadis, the Obamaites can console themselves that at least they stuck it to George W. Bush.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Palin And The Conservative Descent';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269140.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Palin? Her new memoir "Going Rogue" fills up 413 pages, but it has less policy heft than a student council speech.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Limousine Liberals, Dumbo University: \'Is Our Children Learning?\'';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269139.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Some 200 students, in their first math class at City University of New York, were tested on their basic math skills. Ninety percent could not do basic algebra. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'False Prophets And The \'Social Church\'';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/religion/article_212269138.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Not even the prophesied apostasy of the church in the last days can fully explain its sudden paradigm shift away from its commissioned service...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Obama Bows, But The World Refuses To Bow Back ';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212269137.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 20, 2009';
  syndicate.article_summary[ syndicate.index ] = 'George W. Bush didn\'t cause all our foreign policy problems, and Obama\'s ascension and appeasement don\'t seem to be solving them. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Will ObamaCare Deny Tests Needed To Detect Breast Cancer?';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268709.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 18, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Over the past decades, many women over 40 have grown accustomed to having an annual mammogram to keep abreast of their vulnerability...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'An Alarmist Modeler\'s History Of Climate Change';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268708.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 18, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Alarmists might be shocked to think the causes of past climate changes were the same natural forces and influences that drive changes in Earth\'s complex...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Say Adios To Jose Manuel Zelaya';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268705.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 18, 2009';
  syndicate.article_summary[ syndicate.index ] = 'The ousted leftist president, booted out of his country June 28, has backed out of a U.S.-brokered deal that could have reinstated him to the presidency...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Sarah Palin & The Rise Of The Conservative Woman';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268704.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 18, 2009';
  syndicate.article_summary[ syndicate.index ] = 'One of the most annoying things about liberals is their insistence that only they can define a "real" minority or a "real" woman.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Who is Behind the "Media Reform" Movement?';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268702.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 18, 2009';
  syndicate.article_summary[ syndicate.index ] = 'As Accuracy in Media was the first to disclose, McChesney recently introduced Obama\'s anti-American pastor Jeremiah Wright at a celebration of the socialist publication Monthly Review.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bowing To "World Opinion" ';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268421.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2009';
  syndicate.article_summary[ syndicate.index ] = 'It may seem to be a small thing that President Obama has been photographed yet again bowing deeply to a foreign ruler.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'How Low Can He Go?';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268418.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Last week, the president did it again, bowing from the waist before Japan\'s Emperor Akihito. So what might have seemed a rookie mistake is now looking deliberate.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Is America A Serious Nation?';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268415.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2009';
  syndicate.article_summary[ syndicate.index ] = 'When and where did Khalid Sheikh Mohammed acquire his right to a trial by a jury of his peers in a U.S. court? ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Obama: Bowing in All the Wrong Places! ';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268412.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2009';
  syndicate.article_summary[ syndicate.index ] = 'This latest faux pas is yet another glaring example of President Obama\'s inexperience...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Americans Embrace George Washington & Abraham Lincoln, Not Chairman Mao Zedong';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268409.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Fortunately, with the help of the Internet, blogosphere, conservative talk radio, and Fox News, the utopian facade we\'ve unwittingly accepted is being exposed for what it really is.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Rule Of Law, Not Alinsky\'s Rules: Jerry Brown v. Andrew Breitbart';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268411.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Saul Alinsky, in Rules for Radicals: A Pragmatic Primer for Realistic Radicals, published in 1971, deemed "Does the end justify the means?" a meaningless question...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'The Battle For Coal River Mountain';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212268399.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2009';
  syndicate.article_summary[ syndicate.index ] = 'This mountain in southern West Virginia, right in the middle of Appalachia\'s spine, is fast becoming someone\'s Waterloo. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Future\'s Hope ';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/religion/article_212268396.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2009';
  syndicate.article_summary[ syndicate.index ] = 'We sat as audience to sky and sand, taking in the phenomenal presentation accenting the historic edifices mounded before us.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Thanksgiving\'s Start In America';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/religion/article_212268164.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 16, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Our forerunners in faith set aside a special day for giving particular thanks to the Almighty.';
  syndicate.index++;







// Set defaults for arguments if user hasn't set them
if (syndicate.title_fontface == null)    { syndicate.title_fontface = 'Geneva, Arial, sans-serif'; }
if (syndicate.title_fontsize == null)    { syndicate.title_fontsize = '2'; }
if (syndicate.title_fontcolor == null)   { syndicate.title_fontcolor = '#003399'; }
if (syndicate.title_fontbold == null)    { syndicate.title_fontbold = true; }
if (syndicate.title_fontital == null)    { syndicate.title_fontital = false; }
if (syndicate.date_fontface == null)     { syndicate.date_fontface = 'Geneva, Arial, sans-serif'; }
if (syndicate.date_fontsize == null)     { syndicate.date_fontsize = '1'; }
if (syndicate.date_fontcolor == null)    { syndicate.date_fontcolor = '#6699cc'; }
if (syndicate.date_fontbold == null)     { syndicate.date_fontbold = false; }
if (syndicate.date_fontital == null)     { syndicate.date_fontital = false; }
if (syndicate.date_fontunder == null)    { syndicate.date_fontunder = false; }
if (syndicate.summary_fontface == null)  { syndicate.summary_fontface = 'Geneva, Arial, sans-serif'; }
if (syndicate.summary_fontsize == null)  { syndicate.summary_fontsize = '2'; }
if (syndicate.summary_fontcolor == null) { syndicate.summary_fontcolor = '#6699cc'; }
if (syndicate.summary_fontbold == null)  { syndicate.summary_fontbold = false; }
if (syndicate.summary_fontital == null)  { syndicate.summary_fontital = false; }
if (syndicate.summary_fontunder == null) { syndicate.summary_fontunder = false; }

if (syndicate.title_maxlength == null)   { syndicate.title_maxlength = 0; }
if (syndicate.summary_maxlength == null) { syndicate.summary_maxlength = 0; }

if (syndicate.bgcolor == null)           { syndicate.bgcolor = '#ffffff'; }
if (!syndicate.max_articles)             { syndicate.max_articles = syndicate.article_title.length; }  // !syndicate.max_articles catches null and zero
if (syndicate.display_date == null)      { syndicate.display_date = true; }
if (syndicate.display_summaries == null) { syndicate.display_summaries = true; }


// Don't allow user to display too many articles
if (syndicate.max_articles > syndicate.article_title.length) {
  syndicate.max_articles = syndicate.article_title.length;
}

/*
//Function to crop text on word boundaries
function crop_text(text, max_length) {

  // If the string is already small enough, return it unscathed
  if (text.length <= max_length) { return( text ); }

  // If the user has specified a length of 0, it means he wants the whole thing
  if (max_length == 0) { return( text ); }

  // Start looking for a space, leaving space for an elipsis on the end
  var test_length = (max_length - 3);
  if (test_length < 1) { return( '...' ); }   // max_length too small
  while (text.charAt(test_length) != ' ') {
    test_length--;

    // If we didn't find any spaces to break on, return the string broken at max_length
    if (test_length == 0) { return( text.substring(0, max_length - 3) + '...' ); }
  }

  return text.substring(0, test_length) + '...';
}
*/

// List our articles, stopping if the user doesn't want any more
for ( syndicate.index = 0; syndicate.index < syndicate.max_articles ; syndicate.index++ ) {

  /*syndicate.article_title[syndicate.index] = crop_text(syndicate.article_title[syndicate.index], syndicate.title_maxlength);
  syndicate.article_summary[syndicate.index] = crop_text(syndicate.article_summary[syndicate.index], syndicate.summary_maxlength);*/

  // document.write('');
  document.write('<a href="' + syndicate.article_url[syndicate.index] + '" target="_top">');
  if (syndicate.title_fontbold)  { document.write('<b>'); }
  if (syndicate.title_fontital)  { document.write('<i>'); }
  document.write('<font color="' + syndicate.title_fontcolor + '" face="' + syndicate.title_fontface + '" size="' + syndicate.title_fontsize + '"');
  if (syndicate.title_style)     { document.write(' style="' + syndicate.title_style + '"'); }
  document.write('>');
  document.write(syndicate.article_title[syndicate.index]);
  document.write('<br></font>');
  if (syndicate.title_fontital)  { document.write('</i>'); }
  if (syndicate.title_fontbold)  { document.write('</b>'); }
  document.write('</a>');

  if (syndicate.display_date) {
    if (syndicate.date_fontbold)  { document.write('<b>'); }
    if (syndicate.date_fontital)  { document.write('<i>'); }
    if (syndicate.date_fontunder) { document.write('<u>'); }
    document.write('<font color="' + syndicate.date_fontcolor + '" face="' + syndicate.date_fontface + '" size="' + syndicate.date_fontsize + '"');
    if (syndicate.date_style)     { document.write(' style="' + syndicate.date_style + '"'); }
    document.write('>');
    document.write(syndicate.article_date[syndicate.index]);
    document.write('<br></font>');
    if (syndicate.date_fontunder) { document.write('</u>'); }
    if (syndicate.date_fontital)  { document.write('</i>'); }
    if (syndicate.date_fontbold)  { document.write('</b>'); }
  }

  if (syndicate.display_summaries) {
    if (syndicate.summary_fontbold)  { document.write('<b>'); }
    if (syndicate.summary_fontital)  { document.write('<i>'); }
    if (syndicate.summary_fontunder) { document.write('<u>'); }
    document.write('<font color="' + syndicate.summary_fontcolor + '" face="' + syndicate.summary_fontface + '" size="' + syndicate.summary_fontsize + '"');
    if (syndicate.summary_style)     { document.write(' style="' + syndicate.summary_style + '"'); }
    document.write('>');
    document.write(syndicate.article_summary[syndicate.index]);
    document.write('<p></font>');
    if (syndicate.summary_fontunder) { document.write('</u>'); }
    if (syndicate.summary_fontital)  { document.write('</i>'); }
    if (syndicate.summary_fontbold)  { document.write('</b>'); }
  }

  // document.write('<br>\n');
}

// If you want your Webfeeds to be branded, uncomment the following lines.
// To do this, remove the // at the beginning of the next five lines:

//document.write('<tr><td bgcolor="' + syndicate.bgcolor + '">');
//document.write('<a href="http://www.postchronicle.com" target="_blank">');
//document.write('<font color="' + syndicate.title_fontcolor + '" //face="Verdana, Arial, sans-serif" size="1">');
//document.write('<b>Powered by The Post Chronicle&#153;</b></font></a>');
document.write('</b></font>\n');
