



// 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 ] = 'Knievel\'s last jump to heaven';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/From_The_Sidelines_21/Knievel_s_last_jump_to_heaven.htm';
  syndicate.article_date[ syndicate.index ] = 'Dec 1, 2007 - 10:45:06 PM';
  syndicate.article_summary[ syndicate.index ] = 'Like many kids of the 1970\'s, I wanted to be Evel Knievel.  Who wouldn\'t?';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Tuesday';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/From_The_Sidelines_21/Tuesday_7611.htm';
  syndicate.article_date[ syndicate.index ] = 'Sep 11, 2006 - 6:00:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'It\'s very rare that I\'ve re-printed a story that\'s already been on the site.  It\'s not been the case before that I\'ve taken an article by another writer and placed it in my column.  Tonight, however, to mark the five year anniversary of the horrible events of 9/11, I\'d like to reprint an article that Scott Burchfield wrote shortly after these events...<br/>\n<br/>\nMay we never forget';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Memo to Big Three:  Dump NASCAR';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/From_The_Sidelines_21/Memo_to_Big_Three_Dump_NASCAR_6024.htm';
  syndicate.article_date[ syndicate.index ] = 'Apr 20, 2006 - 2:32:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Memo to the executives at the Big Three Automakers:  It\'s time to dump NASCAR before it\'s too late!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Larry Brown:  What does the future hold?';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/From_The_Sidelines_21/Larry_Brown_What_does_the_future_hold_5973.htm';
  syndicate.article_date[ syndicate.index ] = 'Apr 18, 2006 - 11:55:00 AM';
  syndicate.article_summary[ syndicate.index ] = 'Anyone following this past season for the New York Knicks is bound to be suffering from an upset stomach right about now.  It’s a wonder that head coach Larry Brown has survived as long as he has.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Hot dog costs America gold';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/From_The_Sidelines_21/Hot_dog_costs_America_gold_5152.htm';
  syndicate.article_date[ syndicate.index ] = 'Feb 18, 2006 - 12:52:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Lindsey Jacobellis was hoping to give a performance in Torino that people would remember.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'NHL players need to see past visor issue';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/From_The_Sidelines_21/NHL_players_need_to_see_past_visor_issue_3814.htm';
  syndicate.article_date[ syndicate.index ] = 'Oct 21, 2005 - 12:38:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'The visor debate is raging again in the NHL.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Summer Blockbusters &amp; Blockheads';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/From_The_Sidelines_21/Summer_Blockbusters_amp_Blockheads_3178.htm';
  syndicate.article_date[ syndicate.index ] = 'Aug 14, 2005 - 5:47:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Deceit. Drugs. Fame (The Hall of?). What is this, Hollywood? It sure could fool me. And, in accordance, I now present this summer\'s biggest blockbuster hits ... and misses (Appeals Pending).';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Good News for \"Bad News\"';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/From_The_Sidelines_21/Good_News_for_Bad_News_3034.htm';
  syndicate.article_date[ syndicate.index ] = 'Jul 23, 2005 - 11:56:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Fans of the original Bad News Bears movie from 1976 can relax.  Nearly 30 years later, the Bears are still Bad News, and that’s good news for anyone going to watch the remake of the classic baseball comedy.  It’s as funny, and as completely politically incorrect as the original.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Artest gives NBA black eye';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Indiana_Pacers_210/Artest_gives_NBA_black_eye_1179.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 22, 2004 - 11:38:00 AM';
  syndicate.article_summary[ syndicate.index ] = 'So, Ron Artest is going to get the time off he was asking for to finish up and promote his forthcoming rap album, after all.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Perry Satullo: heavyweight champ in ring of life';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Columnists_Miscellaneous_Wrestling_Columns_158/Perry_Satullo_heavyweight_champ_in_ring_of_life_529.htm';
  syndicate.article_date[ syndicate.index ] = 'Aug 11, 2004 - 2:08:00 AM';
  syndicate.article_summary[ syndicate.index ] = 'In this era of greedy athletes, drug scandals, and athletes spending more time working on legal defenses instead of playing defense, it\'s always refreshing to hear about an athlete who did the right thing for all the right reasons. I\'ve had a short list of these bright spots in the sports world.  Recently, I added a name to this list:  Perry Satullo.';
  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 = '#003366'; }
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] + '">');
  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 YourSite.com</b></font></a>');
//document.write('<br><br></b></font></td></tr>\n');

