



// 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 ] = 'HOESING SELECTED AS AVFD BOSS OF THE YEAR';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/HOESING_SELECTED_AS_AVFD_BOSS_OF_THE_YEAR.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 4, 2012 - 7:32:33 PM';
  syndicate.article_summary[ syndicate.index ] = 'SELECTED BY FIRE DEPARTMENT MEMBERS';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'AHS SPEECH TEAM PLACES SECOND AT CHADRON';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/AHS_SPEECH_TEAM_PLACES_SECOND_AT_CHADRON.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 4, 2012 - 7:24:52 PM';
  syndicate.article_summary[ syndicate.index ] = 'SATURDAY, FEBRUARY 4';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'BOX BUTTE COUNTY COMMISSIONERS MEETING AGENDA - FEBR. 6';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/BB_CO/BOX_BUTTE_COUNTY_COMMISSIONERS_MEETING_AGENDA_-_FEBR_6.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 7:57:26 AM';
  syndicate.article_summary[ syndicate.index ] = 'MEETING TIME IS 8 A.M.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'CITY OF ALLIANCE ACTIVITY REPORT - FEBR. 3';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/CITY_OF_ALLIANCE_ACTIVITY_REPORT_-_FEBR_3.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 7:44:22 AM';
  syndicate.article_summary[ syndicate.index ] = 'SEASONAL EMPLOYMENT APPLICATIONS NOW BEING TAKEN ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'BBGH POWER OUTAGE ON MONDAY, FEBR. 6';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/BBGH_POWER_OUTAGE_ON_MONDAY_FEBR_6.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 7:34:08 AM';
  syndicate.article_summary[ syndicate.index ] = 'EMERGENCY GENERATOR UPGRADE';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE\'S RENDEZVOUS TO TRAVEL TO HOLLYWOOD';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/ALLIANCE_S_RENDEZVOUS_TO_TRAVEL_TO_HOLLYWOOD.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 6:59:12 AM';
  syndicate.article_summary[ syndicate.index ] = 'FAME COMPETITION TO FEATURE ROUGHLY 20 LOCAL SINGERS';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'CITY COUNCIL PROCLAIMS FEBRUARY AS NEBRASKA 4-H MONTH';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/CITY_COUNCIL_PROCLAIMS_FEBRUARY_AS_NEBRASKA_4-H_MONTH.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 4:00:00 AM';
  syndicate.article_summary[ syndicate.index ] = '207 4-H MEMBERS IN BOX BUTTE COUNTY';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'HOOPER SCORES 27 AS HUSKERS DOWN PURDUE IN TRIPLE OVERTIME';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Alliance_Sports/HOOPER_SCORES_27_AS_HUSKERS_DOWN_PURDUE_IN_TRIPLE_OVERTIME.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 2, 2012 - 8:54:39 PM';
  syndicate.article_summary[ syndicate.index ] = 'LADY HUSKERS IMPROVE TO 19-3 WITH THRILLING VICTORY';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'INCUMBENT FILING DEADLINE FEBR. 15';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/BB_CO/INCUMBENT_FILING_DEADLINE_FEBR_15.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 2, 2012 - 2:33:58 PM';
  syndicate.article_summary[ syndicate.index ] = 'PRIMARY ELECTION MAY 15';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE CITY COUNCIL MEETING AGENDA - FEBR. 2';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/ALLIANCE_CITY_COUNCIL_MEETING_AGENDA_-_FEBR_2.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 2, 2012 - 6:29:36 AM';
  syndicate.article_summary[ syndicate.index ] = 'TELEVISED LIVE ON CHARTER CABLE CHANNEL 6';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '25 YEARS OF BUILDING THE BEST HOMETOWN IN AMERICA (Audio Presentation)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/25_YEARS_OF_BUILDING_THE_BEST_HOMETOWN_IN_AMERICA.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 1, 2012 - 2:50:39 PM';
  syndicate.article_summary[ syndicate.index ] = 'KEVIN HORN AND MIKE GLESINGER LOOK BACK';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE\'S \"POOR JERRY\" HONORED WITH CHAMBER\'S LIFETIME SERVICE AWARD';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/ALLIANCE_S_POOR_JERRY_HONORED_WITH_CHAMBER_S_LIFETIME_SERVICE_AWARD.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 1, 2012 - 12:50:43 PM';
  syndicate.article_summary[ syndicate.index ] = 'HEARTWARMING TRIBUTE TO JERRY BY DAVE PEARSE';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'BBGH STAFF MEMBERS GARNER AWARDS';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/BB_CO/BBGH_STAFF_MEMBERS_GARNER_AWARDS.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 1, 2012 - 12:45:00 PM';
  syndicate.article_summary[ syndicate.index ] = 'SERVICE BREAKTHROUGH AWARDS';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'BBGH TRUSTEES MEET JAN. 30';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/BB_CO/BBGH_TRUSTEES_MEET_JAN_30.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 1, 2012 - 10:51:46 AM';
  syndicate.article_summary[ syndicate.index ] = 'KRISTIN KESTERSON NAMED EMPLOYEE OF THE MONTH';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'HIGH SCHOOL WRESTLING FINAL:  ALLIANCE 43, TORRINGTON 33';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Alliance_Sports/ALLIANCE_WRESTLERS_BEST_TORRINGTON.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 1, 2012 - 7:30:23 AM';
  syndicate.article_summary[ syndicate.index ] = 'KCOW SALUTES BULLDOG WRESTLERS';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE CHAMBER HONORS MEMBERS';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/ALLIANCE_CHAMBER_AWARDS_MEMBERS.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 1, 2012 - 5:53:56 AM';
  syndicate.article_summary[ syndicate.index ] = 'REYNOLDS WINS LIFETIME SERVICE AWARD';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE FIRE DEPT. BOSSES NIGHT FEBR. 3';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/ALLIANCE_FIRE_DEPT_BOSSES_NIGHT_FEBR_3.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 1, 2012 - 3:01:00 AM';
  syndicate.article_summary[ syndicate.index ] = 'ANNUAL MEMBERSHIP DRIVE UNDERWAY';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ALLIANCE ST. AGNES REPORT - JAN. 31';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/local/ALLIANCE_ST_AGNES_REPORT_-_JAN_31.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2012 - 3:20:21 PM';
  syndicate.article_summary[ syndicate.index ] = 'CATHOLIC SCHOOLS WEEK';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'MARGIE HITCHCOCK, 87, (Obit)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Obits/MARY_MARGIE_HITCHCOCK_87_Obit.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2012 - 11:45:26 AM';
  syndicate.article_summary[ syndicate.index ] = 'SERVICES FEBRUARY 4';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ROGER SCHNEEKLOTH, 77, (Obit)';
  syndicate.article_url[ syndicate.index ] = 'http://www.kcowradio.com/artman2/publish/Obits/ROGER_SCHNEEKLOTH_77_Obit.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jan 31, 2012 - 11:39:00 AM';
  syndicate.article_summary[ syndicate.index ] = 'SERVICES FEBRUARY 10';
  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');

