



// 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 ] = 'Rogers selected as Sporting News preseason All-American';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2189.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct  7, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font style="font-family:Arial" size="2">SBU\'s Matt Rogers was named as a preseason first team\nAll-American by The Sporting News, in the publication\'s preseason\nissue. Rogers and his Bearcat teammates were also tabbed as a possible\nbreakthrough squad.</font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bearcat volleyball splits matches at Lady Blues Classic';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2187.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct  3, 2009';
  syndicate.article_summary[ syndicate.index ] = '<span style="font-weight:bold"><font size="2"><span style="font-family:Arial">TOPEKA, Kan. -- </span></font></span><font size="2"><span style="font-family:Arial">SBU\nknocked off Angelo State, 3-1, before dropping a close match to Tarleton\nin a rematch from earlier this season, 3-2. The \'Cats came away from\nthe Lady Blues Fall Classic with a 2-2 record.</span></font><font size="2"><span style="font-family:Arial"></span></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Football wins thriller over Central Oklahoma 31-23';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2186.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct  3, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font size="2"><span style="font-family:Arial"><span style="font-weight:bold">EDMOND, Okla. --</span> The SBU Bearcats picked up win number two with a thrilling 31-23 victory over Central Oklahoma, spoiling the Bronchos\' homecoming.</span><br style="font-family:Arial"></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'SBU soccer falls at home to Truman';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2185.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct  3, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font size="2"><span style="font-family:Arial"><span style="font-weight:bold">BOLIVAR, Mo. --</span> Missing two big pieces of the offense in Rhiane\nMitchell and Shannon Roher due to injury, SBU soccer was shut out\nagainst MIAA-leading Truman State, 4-0.</span></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Good and bad first day for volleyball at Lady Blues Classic';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2188.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct  2, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font size="2"><span style="font-family:Arial"><span style="font-weight:bold">TOPEKA, Kan. --</span> The start of the day was much better than the end for\nthe SBU Bearcat volleyball at the Washburn Lady Blues Fall Classic.\nAfter topping Southwestern Oklahoman State 3-0 early in the day, the\nBearcats took the first two sets against Southeastern Oklahoma State\nbefore the Savage Storm rallied to win the final three sets and the\nmatch.</span></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bearcat football heads to Central Oklahoma';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2184.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct  2, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font size="2"><span style="font-family:Arial"><span style="font-weight:bold">EDMOND, Okla. --</span> After\nwinning their first game of 2009, the SBU Bearcats hope to continue the\nwinning ways at Central Oklahoma when they take on the Bronchos in\nEdmond. The Bearcats defeated Kentucky Wesleyan last weekend 50-20\nwhile UCO fell in the final seconds at Texas A&amp;M-Commerce 27-23.</span></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bearcat soccer loses 3-0 to Nebraska-Omaha';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2183.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct  1, 2009';
  syndicate.article_summary[ syndicate.index ] = '<span style="font-weight:bold"><font size="2"><span style="font-family:Arial">OMAHA, Neb. -- </span></font></span><font size="2"><span style="font-family:Arial">SBU soccer was shut out for the first time this season against the MIAA-leading Nebraska-Omaha Mavs, falling 3-0.<br></span></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Volleyball breaks for Lady Blues Fall Classic';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2182.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct  1, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font size="2"><span style="font-family:Arial"><span style="font-weight:bold">TOPEKA, Kan. --</span> The\nSBU Bearcats (7-10) look to extend their current winning streak as they\nhit the road for the Washburn Lady Blues Fall Classic. Facing off\nagainst four Lone Star Conference opponents, if SBU can win the opener\nagainst Southwest Oklahoma State, they will extend their winning streak\nto three games, the longest streak for the program since 2002. </span></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bearcat soccer faces MIAA\'s top two teams';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2181.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct  1, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font size="2"><span style="font-family:Arial"><span style="font-weight:bold">OMAHA, Neb. --</span> The Bearcats hit what\nmay be the hardest week of the season, as they face the top two teams\nin the MIAA in back-to-back matches. <br></span></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Men\'s and women\'s basketball 2009-10 season ticket information';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2180.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 30, 2009';
  syndicate.article_summary[ syndicate.index ] = '<span style="font-family:Arial">It\'s that time of year again... time\nto purchase your SBU men\'s and women\'s basketball season tickets. If\nyou were a 2008-09 season ticket holder, you will be able to purchase\neither your same seats or exchange them for other available seats from\nOctober 1st through October 7th. On October 8th season tickets will go\non sale to the general public.&nbsp; </span>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Pierce earns second straight MIAA Runner of the Week';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2179.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 29, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font size="2"><span style="font-family:Arial"><span style="font-weight:bold">KANSAS CITY, Mo. --</span> SBU\'s Michael Pierce helped the Bearcats win the Division II portion of the Roy Griak Invitational on Saturday with a first place finish. For those efforts and for the second straight week, he was named the MIAA Men\'s Cross Country Runner of the Week.</span><br style="font-family:Arial"></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'SBU women\'s tennis finishes fall slate at ITA regionals';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2178.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 28, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font size="2"><span style="font-family:Arial"><span style="font-weight:bold">TOPEKA, Kan. --</span> The SBU women\'s tennis team completed the fall portion of the 2009-10 season at the ITA Division II South Central Regional at Topeka. Sixty-four singles players and 32 doubles players competed for a trip to the ITA National Singles and Doubles Championships, October 15-18 in Mobile, Alabama.</span></font><br style="font-family:Arial">';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'SBU soccer drops heartbreaker to Washburn';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2177.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 26, 2009';
  syndicate.article_summary[ syndicate.index ] = '<span style="font-weight:bold"><font size="2"><span style="font-family:Arial">TOPEKA, Kan. -- </span></font></span><font size="2"><span style="font-family:Arial">The Washburn Lady Blues broke open a tie game with a late goal as SBU soccer lost a high-scoring affair, 4-3, on Saturday evening.</span></font><font size="2"><span style="font-family:Arial"></span></font>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Men\'s cross country takes Roy Griak Invitational (VIDEO)';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2175.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 26, 2009';
  syndicate.article_summary[ syndicate.index ] = '<p><font size="2"><span style="font-family:Arial"><span style="font-weight:bold">ST. PAUL, Minn. --</span> The\nSBU men\'s cross country took the Division II portion of the 24th Roy\nGriak Invitational behind a first place finish by Michael Pierce. The\nBearcat men\'s squad had four runners in the top 20 (Pierce, Jeremy\nGlassmaker, Shawn Etzenhouser and Will Hansen).</span></font></p>';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bearcat volleyball tops NWMSU for back-to-back MIAA wins';
  syndicate.article_url[ syndicate.index ] = 'http://www.sbuniv.edu/artman/publish/article_2176.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 26, 2009';
  syndicate.article_summary[ syndicate.index ] = '<font size="2"><span style="font-family:Arial"><span style="font-weight:bold">MARYVILLE, Mo. --</span> The SBU volleyball capped a successful weekend trip north, beating Northwest Missouri State 3-1 on Saturday for back-to-back MIAA road victories.</span></font><br>';
  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.title_line == null)        { syndicate.title_line = '0.5em'; }
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('<b>Powered by SITENAME.com</b></font></a>');
//document.write('<br><br></b></font></td></tr>\n');
