



// 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 ] = 'That annual Spring sickness has begun.';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/NCAA_159/That_annual_Spring_sickness_has_begun.htm';
  syndicate.article_date[ syndicate.index ] = 'Mar 14, 2010 - 9:51:04 PM';
  syndicate.article_summary[ syndicate.index ] = 'Well, the brackets are out.  Where did your team end up?  Did the selection committee screw up again?  Who should have gotten in and who shouldn\'t?  Are you ready for the insanity of it all?';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Hoop dreams?  Or nightmare?';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Northwestern_Wildcats_162/Hoop_dreams_Or_nightmare.htm';
  syndicate.article_date[ syndicate.index ] = 'Mar 11, 2008 - 9:47:50 PM';
  syndicate.article_summary[ syndicate.index ] = 'Okay, now that the BigTen basketball season is winding down and the tournament begins shortly, I\'d like to take a look at the state of the Wildcats\' basketball team as I see it.  I\'ve been hearing things, and seeing things in print, both positive and negative, all season long.  Without getting too deep into specifics, I\'d like to get into some of those concerns.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Fighting Irish 2008 Season Recap';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Notre_Dame_Fighting_Irish_853/Fighting_Irish_2008_Season_Recap.htm';
  syndicate.article_date[ syndicate.index ] = 'Dec 2, 2007 - 9:07:12 PM';
  syndicate.article_summary[ syndicate.index ] = 'A recap of Notre Dame\'s disappointing season, and a look ahead at what to expect from the Fighting Irish in the years to come.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Former UTEP Center, Community College Coach Motivates Players with Inspiring Story';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/NCAA_159/Former_UTEP_Center_Community_College_Coach_Motivates_Players_with_Inspiring_Story.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 19, 2007 - 1:00:00 AM';
  syndicate.article_summary[ syndicate.index ] = '\"Don\'t ever underestimate the heart of a champion.\"';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Big Joe\'s 9th Annual Horizon League Preview: Youngstown State Penguins';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Youngstown_State_Penguins_623/Big_Joe_s_9th_Annual_Horizon_League_Preview_Youngstown_State_Penguins.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 18, 2007 - 6:18:06 PM';
  syndicate.article_summary[ syndicate.index ] = 'A 14-17 mark and seven conference wins for the Youngstown State Penguins a season ago was considered a success for a program that has practically owned the Horizon League basement since joining the conference.  The Penguins, under third year coach Jerry Slocum, wound up finishing in a three-way tie for fourth place in the league and snagged a first round conference tournament win to boot.  However, the departure of arguably the best player in the league, Quin Humphrey, and his high scoring sidekick Keston Roberts, leaves some awful big holes to fill if the Penguins hope to replicate last season’s success.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Big Joe\'s 9th Annual Horizon League Preview: Wright State Raiders';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Wright_State_Raiders_618/Big_Joe_s_9th_Annual_Horizon_League_Preview_Wright_State_Raiders.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 17, 2007 - 6:07:56 PM';
  syndicate.article_summary[ syndicate.index ] = 'It was a dream season for the Wright State Raiders last year.  Head coach Brad Brownell in his first year at the helm guided the Raiders to the Horizon League crown and the NCAA tournament and helped DaShaun Wood gain league player of the year honors along the way.  With that kind of introduction it’s going to be tough to follow up with a similar season.  However, all is not lost.  Wood is gone, but the Raiders did have two freshmen on the all newcomer squad a season ago and return some experienced veterans to go along with a solid recruiting class.  After what he did with the Raiders last season it would not be wise to question what Brownell can get out of a group of players anyways.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Big Joe\'s 9th Annual Horizon League Preview: Wisconsin-Milwaukee';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Wisconsin-Milwaukee_Panthers_615/Big_Joe_s_9th_Annual_Horizon_League_Preview_Wisconsin-Milwaukee.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 16, 2007 - 6:00:44 PM';
  syndicate.article_summary[ syndicate.index ] = 'Except for the banners, Allan Hanson, and Avery Smith there aren\'t too many signs of Milwaukee\'s past Horizon League success.  Head coach Rob Jeter, entering his third season has posted two seasons mirror opposite of each other with a 22-9 campaign two years ago and last season\'s 9-22 rebuilding effort.  However, a top notch recruiting class mixed with some talented returnees has hopes high in the Brew City again.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Big Joe\'s 9th Annual Horizon League Preview: Wisconsin-Green Bay Phoenix';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Wisconsin-Green_Bay_Phoenix_619/Big_Joe_s_9th_Annual_Horizon_League_Preview_Green_Bay_Phoenix.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 15, 2007 - 5:09:44 PM';
  syndicate.article_summary[ syndicate.index ] = 'The future is now for the Green Bay Phoenix.  The vaunted 2005 recruiting class now enters their junior years and the pressure to live up to expectations mounts.  The Phoenix had a decent run last season winning 18 games, but finished in the middle of the Horizon League pack with a 7-9 conference mark.  Do-everything point guard Ryan Evanochko leaves a gaping hole which will most likely be filled by a freshman.  That\'s an awful lot of pressure to put on a newcomer, but the expectations to compete for the Horizon League crown don\'t just go away when you have a talented, experienced crew returning for their third season in the Horizon League.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Big Joe\'s 9th Annual Horizon League Preview: Valparaiso Crusaders';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Valparaiso Crusaders/Big_Joe_s_9th_Annual_Horizon_League_Preview_Valparaiso_Crusaders.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 14, 2007 - 5:37:51 PM';
  syndicate.article_summary[ syndicate.index ] = 'Ever since the Horizon League added Youngstown State several years back there had been talk of adding a tenth team.  The rumor had long been that Valparaiso would be that team, and this past off-season it finally came to fruition.  The Crusaders will make the jump from the Mid-Con to the Horizon.  It is quite a jump to go from a bottom third RPI conference to a top third RPI conference in the Horizon League, but the Crusaders bring back a solid mix of experience all positions that should give them the opportunity to compete.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Big Joe\'s 9th Annual Horizon League Preview: Loyola-Chicago Ramblers';
  syndicate.article_url[ syndicate.index ] = 'http://www.mopsquad.com/artman2/publish/Loyola-Chicago_Ramblers_617/Big_Joe_s_9th_Annual_Horizon_League_Preview_Loyola_Ramblers.htm';
  syndicate.article_date[ syndicate.index ] = 'Nov 13, 2007 - 5:29:21 PM';
  syndicate.article_summary[ syndicate.index ] = 'If a team can have a disappointing 21-win season the Ramblers did that last year.  As is often done in Chicago the hype machine went into full effect last season for the Ramblers and they were placed in the NCAA tournament before ever stepping on the court.  A tall order for a team that hasn\'t appeared in the tournament since the three-point line was instituted.  The expectations and hype are gone this season along with stars Blake Schilb and Majak Kou.  What remains, though, may be just what the Ramblers ordered.  As head coach Jim Whitesell enters his fourth season at Loyola he finally has a team that is all his recruits.';
  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');

