



// 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 ] = 'KCOW RAIN GAUGE - MARCH 10';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/KCOW_RAIN_GAUGE_-_MARCH_10.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 10, 2010 - 1:27:28 PM';
  syndicate.article_summary[ syndicate.index ] = '.35 HUNDREDTHS OF AN INCH OF MOISTURE';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'LOCAL UNITED WAY DRIVE A SUCCESS (Audio Interview)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/BB_CO/LOCAL_UNITED_WAY_DRIVE_A_SUCCESS_Audio_Interview.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 10, 2010 - 8:19:40 AM';
  syndicate.article_summary[ syndicate.index ] = '$86,000 DONATED';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'WEEKLY ST. AGNES REPORT - MARCH 9';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/WEEKLY_ST_AGNES_REPORT_-_MARCH_9.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 9, 2010 - 10:25:05 AM';
  syndicate.article_summary[ syndicate.index ] = 'PARENT-TEACHER CONFERENCES MARCH 11';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE SCHOOLS A.D. TO BE HONORED (Audio Interview)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/ALLIANCE_SCHOOLS_A_D_TO_BE_HONORED.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 9, 2010 - 8:40:22 AM';
  syndicate.article_summary[ syndicate.index ] = 'TIM WALLACE TO BE RECOGNIZED MARCH 10';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'JAMES MRACEK, 87, (Obit)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Obits/JAMES_MRACEK_87_Obit.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 9, 2010 - 8:19:03 AM';
  syndicate.article_summary[ syndicate.index ] = 'SERVICES MARCH 12';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'JORDAN HOOPER FINISHES AHS BASKETBALL CAREER WITH SEVERAL RECORDS';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/basketball/JORDAN_HOOPER_FINISHES_AHS_BASKETBALL_CAREER_WITH_SEVERAL_RECORDS.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 9, 2010 - 7:31:46 AM';
  syndicate.article_summary[ syndicate.index ] = 'SEVERAL SCORING AND REBOUNDING RECORDS';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE & HEMINGFORD SCHOOLS TO RECEIVE LESS STATE AID NEXT YEAR';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/BB_CO/ALLIANCE_HEMINGFORD_SCHOOLS_TO_RECEIVE_LESS_STATE_AID_NEXT_YEAR.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 8, 2010 - 9:12:06 PM';
  syndicate.article_summary[ syndicate.index ] = 'ALLIANCE TO DEAL WITH A DECREASE OF OVER $752,000';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE GIRLS B-BALL TEAM RANKED THIRD BY WORLD-HERALD; LINCOLN JOURNAL-STAR';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/basketball/ALLIANCE_GIRLS_B-BALL_TEAM_RANKED_THIRD_BY_WORLD-HERALD.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 8, 2010 - 10:09:19 AM';
  syndicate.article_summary[ syndicate.index ] = 'SIDNEY ALSO RATED IN TOP 10 IN BOTH PUBLICATIONS';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'GIRLS STATE BASKETBALL SHIRTS AVAILABLE AT AHS';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Alliance_Sports/GIRLS_STATE_BASKETBALL_SHIRTS_AVAILABLE_AT_AHS.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 8, 2010 - 8:07:22 AM';
  syndicate.article_summary[ syndicate.index ] = 'EXTRA SHIRTS FOR SALE';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'GIRLS STATE BASKETBALL FINAL: ALLIANCE 70, OMAHA SKUTT 59 (Audio Report)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/basketball/GIRLS_STATE_BASKETBALL_FINAL_ALLIANCE_70_OMAHA_SKUTT_59.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 6, 2010 - 11:00:10 AM';
  syndicate.article_summary[ syndicate.index ] = 'BULLDOGS EARN THIRD PLACE HONORS; JORDAN HOOPER SCORES 47 POINTS';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'HOOPER FINISHES AHS BASKETBALL CAREER AS FIFTH LEADING SCORE IN STATE HISTORY';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Alliance_Sports/ALLIANCE_BASKETBALL_STAR_S_POINT_TOTAL_ON_THE_RISES_IN_STATE_RECORD_BOOK.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 6, 2010 - 10:58:25 AM';
  syndicate.article_summary[ syndicate.index ] = 'JORDAN HOOPER ENDS HIGH SCHOOL CAREER WITH&nbsp;2,078 POINTS';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE LIBRARY FUNDRAISER UPCOMING';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/ALLIANCE_LIBRARY_FUNDRAISER.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 6, 2010 - 5:31:43 AM';
  syndicate.article_summary[ syndicate.index ] = 'READ AROUND THE POSIES FLOWER POT AUCTION';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE HIGH GRAD NAIA POLE VAULT SILVER MEDALIST';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Alliance_Sports/ALLIANCE_HIGH_GRAD_NAIA_POLE_VAULT_SILVER_MEDALIST.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 5, 2010 - 5:39:11 PM';
  syndicate.article_summary[ syndicate.index ] = 'KAYLA FRIESEN VAULTS 12 FEET, 7 1/2 INCHES';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE FALLS TO GRETNA, 58-39 (With Audio Report)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/basketball/ALLIANCE_VS_GRETNA_FRIDAY_AT_1_P_M_ON_KCOW.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 5, 2010 - 4:00:03 PM';
  syndicate.article_summary[ syndicate.index ] = 'BULLDOGS TO PLAY IN THIRD PLACE GAME SATURDAY MORNING';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'FORMER ALLIANCE CITY MANAGER, LYLE LACY, DIES AT AGE 63';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Obits/FORMER_ALLIANCE_CITY_MANAGER_LYLE_LACY_DIES_AT_AGE_63.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 5, 2010 - 1:02:15 PM';
  syndicate.article_summary[ syndicate.index ] = 'SERVED AS ALLIANCE CITY MANAGER&nbsp;IN LATE 1980s &amp; EARLY 1990s.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'GIRLS STATE BASKETBALL:  ALLIANCE 55, SIDNEY 43 (Audio Report)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/basketball/GIRLS_STATE_BASKETBALL_ALLIANCE_55_SIDNEY_43.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 4, 2010 - 1:02:21 PM';
  syndicate.article_summary[ syndicate.index ] = 'BULLDOGS TO PLAY GRETNA FRIDAY IN THE SEMIFINALS AT 1 P.M. (MST)';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'TAMMY HORN, 67, (Obit)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Obits/TAMMY_HORN_67_Obit.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 4, 2010 - 12:23:46 PM';
  syndicate.article_summary[ syndicate.index ] = 'SERVICES MARCH 8';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE KIWANIS EXPANDS \"STARS OF TOMORROW\' SHOW';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/ALLIANCE_KIWANIS_EXPANDS_STARS_OF_TOMORROW_SHOW.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 4, 2010 - 8:10:16 AM';
  syndicate.article_summary[ syndicate.index ] = 'TWO SHOWS ON MARCH 13';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'OMAHA WORLD-HERALD FEATURES FIFTH MEETING BETWEEN ALLIANCE AND SIDNEY GIRLS';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/basketball/OMAHA_WORLD-HERALD_FEATURES_FIFTH_MEETING_BETWEEN_ALLIANCE_AND_SIDNEY_GIRLS.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 3, 2010 - 8:40:22 PM';
  syndicate.article_summary[ syndicate.index ] = 'QUOTES FROM COACHES, PARENTS, COMMUNITY LEADERS';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'HOOPER NUMBERS HEADING INTO STATE TOURNAMENT';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/basketball/HOOPER_NUMBERS_HEADING_INTO_STATE_TOURNAMENT.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 3, 2010 - 8:35:55 PM';
  syndicate.article_summary[ syndicate.index ] = '8th IN SCORING; 3RD IN REBOUNDS IN NEBRASKA STATE GIRLS B-BALL HISTORY';
  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 KCOW Radio - Eagle Communications</b></font></a>');
document.write('<br><br></b></font></td></tr>\n');
