



// 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 ] = 'Italy: 2006 World Cup Champions';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/Italy_2006_World_Cup_Champions_6858.htm';
  syndicate.article_date[ syndicate.index ] = 'Jul 9, 2006 - 6:35:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Hi everyone!, that\'s right!, Italy got their 4th title defeating France in penalties, check more inside, also, check later or maybe tomorrow for the last World cup perspective!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Germany gave happiness to their country with a 3rd place';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/Germany_gave_happiness_to_their_country_with_a_3rd_6857.htm';
  syndicate.article_date[ syndicate.index ] = 'Jul 9, 2006 - 12:10:00 AM';
  syndicate.article_summary[ syndicate.index ] = 'Hi everyone!!, well, 3 more columns and the World Cup perspective says goodbye, but let\'s talk about the 3rd Place game, we had a very entertaining game yesterday, both teams played realy good, check more inside and check what we have for the final!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Zidane plays his last match for the Championship, Figo will play for the 3rd Place';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/Zidane_plays_his_last_match_for_the_Championship_F_6833.htm';
  syndicate.article_date[ syndicate.index ] = 'Jul 5, 2006 - 10:40:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Hi everyone!, Well, two more games and the cup is over, now the final is set, and we will have a high class match.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Hosts Germany are going to Stuttgart, Italy goes for the championship in Berlin';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/Hosts_Germany_are_going_to_Stuttgart_Italy_goes_fo_6815.htm';
  syndicate.article_date[ syndicate.index ] = 'Jul 4, 2006 - 7:02:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Hi everyone!!, well, Germany lost against Italy in one match you can\'t forget. It was tied, but Italy found the goal before the penalties. Check more here also, see what we have for tomorrow!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'The current champions were defeated by France, England lost again in penalties';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/The_current_champions_were_defeated_by_France_Engl_6810.htm';
  syndicate.article_date[ syndicate.index ] = 'Jul 1, 2006 - 8:27:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Hi everyone!!, the Scratch du Oro is gone!, that\'s the biggest surprise of the cup!, France, once again, defeated Brazil, and talking about surprises, Portugal defeated England again like in the Euro 2004, and, again, it was via penalty shots';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Germany had troubles against Argentina, but are in the top four of the cup';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/Germany_had_troubles_against_Argentina_but_are_in__6807.htm';
  syndicate.article_date[ syndicate.index ] = 'Jun 30, 2006 - 5:38:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Hi again!, the first game of the semi finals are on and two ex-champions will play for a spot in the final of the World Cup, check what happened today and what we have for tomorrow, two matches you can\'t lose!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'The final of the World Cup 98 returns in 2006';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/The_final_of_the_World_Cup_98_returns_in_2006_6784.htm';
  syndicate.article_date[ syndicate.index ] = 'Jun 27, 2006 - 5:07:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Hi everyone!, that\'s right!, the last time Brazil lost in a World Cup was against France in the final of the 98 World Cup, and now, both teams clash again in Germany, check waht happened today and what we have for Friday!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Italy in the quarter finals with a questionable penalty';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/Italy_in_the_quarter_finals_with_a_questionable_pe_6775.htm';
  syndicate.article_date[ syndicate.index ] = 'Jun 26, 2006 - 9:53:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Hi everyone!!, I think we saw today two of the worst games of the World Cup. First, Australia and Italy had an interesting game, but it was ruined at the end, Switzerland and Ukraine had a lot of respect in the game, at the end, destiny gave a team a ticket to the next round, check more inside and check what we have for tomorrow!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'England had hard time against Ecuador, Portugal and Netherlands played the hardest game of the cup';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/England_had_hard_time_against_Ecuador_Portugal_and_6760.htm';
  syndicate.article_date[ syndicate.index ] = 'Jun 25, 2006 - 9:52:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Hi everyone!!, England fans tought that the game against Ecuador was an easy one, but they had a difficult game and thanks to Becks they got the victory, and now, they will face Portugal, check more inside, also, check what we have for tomorrow!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Germany and Argentina clasified to the next round and now we have a five star match';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Soccer_The_World_Cup_Perspective_732/Germany_and_Argentina_clasified_to_the_next_round__6741.htm';
  syndicate.article_date[ syndicate.index ] = 'Jun 24, 2006 - 8:31:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'Hi everyone!!, the hosts Germany beat Sweden and now they will clash with Argentina in the quarter finals, Mexico fought to the end and even got Argentina under their power, but it wasn\'t enough, check more inside and look what we have for tomorrow.';
  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');

