



// 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 ] = 'Four lessons on Afghanistan';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6578.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 19, 2009 - 11:22:41 AM';
  syndicate.article_summary[ syndicate.index ] = 'The American political leadership needs to “wake up and smell the coffee” and take a lesson from history. There are four historical references that the Obama administration should consider as they try to handle Afghanistan.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Kwame Kilpatrick - Exclusive FCN Interview';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6576.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2009 - 9:13:03 AM';
  syndicate.article_summary[ syndicate.index ] = 'In 2001, at the age of 31, he became the youngest mayor elected in the city of Detroit. Dubbed the \"Hip Hop Mayor\" by the media and critics, he began an ambitious urban economic renewal campaign in an attempt to revive a city once known for economic opportunities. He made a lot of friends but also, a lot of enemies.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'The Psychological and Genetic Roots of Violence (Part II)';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6573.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 16, 2009 - 10:52:24 AM';
  syndicate.article_summary[ syndicate.index ] = 'In a recent article “The Psychological and Genetic Roots of Violence” which appeared in <i>The Final Call</i>, I suggested that we must investigate to determine what violence producing agents are being introduced into the youth of America and the world.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Tragedy and faith in a violent society';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6566.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 10, 2009 - 8:57:46 AM';
  syndicate.article_summary[ syndicate.index ] = 'In recent days, Islamic names, speculation and some outright lies about the faith have been associated with a horrific, tragic and fatal encounter.&nbsp; The shooting of military personnel at Ft. Hood, Texas revived recurring false images of Islam as the enemy of America.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New Crack Cocaine Bill Leaves Thousands Behind Bars';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6558.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 4, 2009 - 11:14:58 AM';
  syndicate.article_summary[ syndicate.index ] = 'Despite studies confirming that illicit drug use by Blacks is no greater than that of Whites, Black offenders are less likely to be offered a chance to plea bargain and more likely to fall under the federal or state mandatory minimum sentencing law.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'The Death of Derrion Albert: Living and Dying in America';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6560.shtml';
  syndicate.article_date[ syndicate.index ] = 'Nov 4, 2009 - 11:13:41 AM';
  syndicate.article_summary[ syndicate.index ] = 'There has been a torrent of expressions of rightful outrage over the callous killing of Derrion Albert of Chicago.&nbsp; But if we are not careful, his&nbsp;senseless murder could easily become just another item on the internet among the endless spectacles of life and death.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'America\'s racial climate and the first Black president';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6538.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 27, 2009 - 4:59:53 PM';
  syndicate.article_summary[ syndicate.index ] = 'It has been about a year since the first Black president of the United States was elected. By nearly all accounts, Barack Obama ran a brilliant race, mastering the Electoral College, attracting disaffected and young voters to the political process and issuing a call for change that rang across America. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'The Psychological and Genetic Roots OF Urban Violence';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6528.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 26, 2009 - 2:38:52 PM';
  syndicate.article_summary[ syndicate.index ] = 'Certainly we should abhor the actions of [violent] young men. However, we should also look at the pervasive violence in our \'youth culture\' and its relationship to a violent America. “Black youth do not live in isolation, away from a violent America. The sickness of violence affects everyone and permeates our society.”';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Do Black voices still count in American discourse?';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6527.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 26, 2009 - 2:33:59 PM';
  syndicate.article_summary[ syndicate.index ] = 'Regarding the discourse between the Black masses and the politically connected elite, speaking truth to power has long been a method for airing grievances. From voicing principled opposition to making one\'s displeasure known to government.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Double Duty: The Black Woman\'s Struggle Raising Boys Alone';
  syndicate.article_url[ syndicate.index ] = 'http://www.finalcall.com/artman/publish/Perspectives_1/article_6526.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 26, 2009 - 2:26:06 PM';
  syndicate.article_summary[ syndicate.index ] = 'It is only a matter of time before Hallmark designs and manufactures Father\'s Day cards for Black women. They would fly off of the shelves in the Black community and it would be difficult for us as a community to protest given the fact that we have helped create the market for it.';
  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('<tr><td bgcolor="' + syndicate.bgcolor + '">');
  document.write('<a href="' + syndicate.article_url[syndicate.index] + '" target="_blank">');
  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('<br></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></td></tr>\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="#" target="_blank">');
// document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
// document.write('<p><b>Powered by FinalCall.com News</b></font></a>');
// document.write('<br><br></b></font></td></tr>\n');
