// 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 ] = 'Obamination: Divisive, Offensive, Insulting';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398830.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Yes, that\'s right, President Obama has singled out discrimination against homosexuals abroad as a "deep concern" for his administration: not slavery, honor-killing, forced abortion or religious persecution.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Stupid Politicians';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398829.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'This disease of PC softens truth with the goal of changing it, or at least rendering truth ineffective. Softened words are used to protect the feelings of individuals.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Catholic Church Rejects Surrender Terms from Obama';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398827.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'What is happening is extraordinary and unprecedented. The Catholic Church is in open revolt against the Obama Administration, with Fr. Swink noting from the pulpit that priests across the archdiocese were joining the call on Sunday to rally Catholics to resistance against the U.S. Government.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Exactly Whom (Or What) Is the Republican "Establishment"?';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398826.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Just who the holy hell is the omnipotent establishment that is in control of everything, especially since it seems as though no one is controlling anything?';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'America After Obama';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398825.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'With Obama gone and the threat of reprisals removed, people will begin to talk, and eventually the truth about Obama\'s mysterious past will come out.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Recall Election In Wisconsin A National Bellwether';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398824.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Not only is the Governor\'s office in play, but the Democrats are also attempting to recall State Senators, which would help regain political control of the State Senate.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'A Funny Thing Happened on the Way to Utopia';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398823.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'For the first time since Roe was decided, more young Americans identify themselves as pro-life than pro-choice.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'A Grope A Day The TSA Way';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398822.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'TSA is a law unto itself and is designed to intimidate the public and insulate its employees from outside accountability.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Why Doesn\'t Obama Ban Iranian Press TV?';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398821.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Authorities in Britain revoked the license of the Iranian regime\'s English-language global television channel known as Press TV because of evidence that it is a propaganda outlet controlled by the Iranian regime.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Trying To Go Somewhere, I Ended Up Nowhere';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398663.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Nothing is more mysterious than the feminine side of the marriage equation. Odd isn\'t it, that the marriage equation is not always even.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Presidential Candidates Seek Latino Support In Florida';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398662.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Many Latinos register as Republicans because the party\'s tenets of equal opportunity, limited government and social conservatism appeal to them,...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Longing for Sarah.. or Mike or Marco or Paul';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398661.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Unless someone drops out before you read this, there are four men left standing in the race for the Republican presidential nomination: Mitt Romney, Newt Gingrich, Rick Santorum and Ron Paul.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Creeping Trepidation';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398660.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'For conservatives, 2012 was going to be a banner year. On the heels of the humiliating "shellacking" administered to liberals in the U.S. House and, to a lesser extend, the Senate, the Republicans seemed to be in control,...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Muslim Brotherhood, Other Islamists Win Big In Egypt\'s Elections';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398659.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'The Freedom and Justice Party, the political arm of Egypt\'s Muslim Brotherhood, won 235 or 47.2 percent of the seats in the People\'s Assembly (lower house of parliament),...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'DHS Intelligence Gathering Should Be Localized';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398658.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'A new report by a bipartisan group of security experts argues that Department of Homeland Security should shift its intelligence gathering efforts away from foreign enemies and focus on local threats...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'President Obama Ignores Court Order on Citizenship';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398657.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'President Barack Obama was ordered to appear in Georgia court regarding challenges to his citizenship, but not one lawyer attended the hearing.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Movie Review: COURAGEOUS \'Honor Begins at Home\'';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398656.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'The film wreaks havoc on the generally accepted idea that everything that goes wrong with adults can be traced back to bad childhood experiences which then become excuses for the worst behaviors we can produce.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Mazda 3 Promises Earth-Friendly Zoom-Zoom';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398655.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'But for 2012, Mazda is adding SKYACTIV technology to its line, the first example to come across our driveway being the wonderful 3, the small four door sedan I\'ve come to know and love over the years.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Black History month: Jim Crow segregation laws and slavery in the United States: gone but not forgotten';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398541.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  1, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Black History month: Jim Crow segregation laws and slavery in the United States: gone but not forgotten - It\'s Black History Month. Jim Crow laws and slavery are long gone. If we are not careful the study and appreciation of black history, itself will become history.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Giving Credit Where Credit Is Due';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398509.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Have you ever given serious thought about something for so long, you seem to be getting nowhere, and then all of a sudden, it hits you?';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'NAACP Attempts to Overshadow Martin Luther King, Jr.';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398508.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Knowing what we know now, the great MLKJr would have nothing at all to do with the National Association for the Advancement of Colored People (NAACP).';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Depressing Legacy of Roe V. Wade: Human Life NOT Precious or Sacred ';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398507.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Abortion is a superseding of divine will by mortal will. Those who do so shall be held accountable at a final, and eternal, judgment.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Deadly, Violent Illegal Aliens Deserve No Favors, Says US Lawmaker';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398506.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2012';
  syndicate.article_summary[ syndicate.index ] = '"If a foreign nation doesn\'t want one of its citizens returned because he or she is a danger to other people, why does the U.S. become responsible for these predators and criminals?"...';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'CIA Officer, Author Charged With Revealing Covert Officers\' Identities';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398505.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2012';
  syndicate.article_summary[ syndicate.index ] = '"Prior to publication of his book, The Reluctant Spy: My Secret Life in the CIA\'s War on Terror, [John] Kiriakou submitted a draft manuscript in July 2008 to the CIA\'s Publication Review Board (PRB).';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'The Fox News Feminists';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/commentary/article_212398504.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2012';
  syndicate.article_summary[ syndicate.index ] = 'The goal of the Women\'s Media Center in "making women visible and powerful in the media" has achieved a noticeable objective in the hiring of Sally Kohn by the Fox News Channel.';
  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');

