



// 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 ] = 'NATIONWIDE TOUR STORYLINES – Week of August 2nd 2010';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/NATIONWIDE_TOUR_STORYLINES_Week_of_August_2nd_2010.cfm';
  syndicate.article_date[ syndicate.index ] = 'Aug 3, 2010 - 11:12:37 AM';
  syndicate.article_summary[ syndicate.index ] = '59 AND 279 – Aussie Stuart Appleby\'s dramatic victory on Sunday in The Greenbrier Classic was the 279th PGA TOUR win by a former Nationwide Tour member. He also became the third alumnus to shoot 59 on the PGA TOUR (David Duval, Paul Goydos).';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'CARL PETTERSSON WINS 2010 RBC CANADIAN OPEN';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/CARL_PETTERSSON_WINS_2010_RBC_CANADIAN_OPEN.cfm';
  syndicate.article_date[ syndicate.index ] = 'Jul 26, 2010 - 9:00:49 AM';
  syndicate.article_summary[ syndicate.index ] = 'Carl Pettersson followed his Canadian Open record setting 10-under par 60 on Saturday with a 3-under par 67 Sunday to win the  RBC Canadian Open at St. George’s Golf and Country Club in Toronto. Adam Hadwin finishes as the top Canadian playing in his largest event of his career.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'DEAN WILSON TAKES FOUR-STROKE LEAD INTO FINAL ROUND OF 2010 RBC CANADIAN OPEN';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/DEAN_WILSON_TAKES_FOUR-STROKE_LEAD_INTO_FINAL_ROUND_OF_2010_RBC_CANADIAN_OPEN.cfm';
  syndicate.article_date[ syndicate.index ] = 'Jul 25, 2010 - 9:58:25 AM';
  syndicate.article_summary[ syndicate.index ] = 'Dean Wilson shot a five-under par 65 on Saturday to take a four-shot lead into Sunday\'s final round of the RBC Canadian Open at St. George’s Golf and Country Club in Toronto.<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'TIM CLARK AND DEAN WILSON HEAD INTO WEEKEND WITH A SHARE OF 2010 RBC CANADIAN OPEN LEAD';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/TIM_CLARK_AND_DEAN_WILSON_HEAD_INTO_WEEKEND_WITH_A_SHARE_OF_2010_RBC_CANADIAN_OPEN_LEAD.cfm';
  syndicate.article_date[ syndicate.index ] = 'Jul 23, 2010 - 8:08:41 PM';
  syndicate.article_summary[ syndicate.index ] = 'Tim Clark fired a bogey-free, 6-under par 64 today to grab a share of the lead at 10-under with Dean Wilson as the second-round of the 2010 RBC Canadian Open came to a close Friday.<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'NATIONWIDE TOUR STORYLINES – Week of July 19th ';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/NATIONWIDE_TOUR_STORYLINES_Week_of_July_19th.cfm';
  syndicate.article_date[ syndicate.index ] = 'Jul 20, 2010 - 11:22:59 AM';
  syndicate.article_summary[ syndicate.index ] = 'Chiquita Classic winner Tommy Gainey accomplished two key things with his victory at TPC River\'s Bend near Cincinnati on Sunday. \"Two Gloves\" became the first two-time winner of 2010 and he assumed the No. 1 spot on the Nationwide Tour money list.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Jim Rutledge Polishes off Record Setting Performance at the Mr. Lube ';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/Jim_Rutledge_Polishes_off_Record_Setting_Performance_at_the_Mr_Lube.cfm';
  syndicate.article_date[ syndicate.index ] = 'Jul 8, 2010 - 4:21:50 PM';
  syndicate.article_summary[ syndicate.index ] = 'Champions Tour player Jim Rutledge of Victoria, BC put the finishing touches on his record setting performance with a final round 2-under-par 70 to win the Mr. Lube – Canadian PGA Seniors’ Championship presented by Cleveland Golf/Srixon by a whopping ten shots over Canadian Golf Hall of Famer Dave Barr of Westbank, BC.<br/>\n<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Kevin Chappell Threatens 59 at Ford Wayne Gretzky Classic';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/Kevin_Chappell_Threatens_59_at_Ford_Wayne_Gretzky_Classic.cfm';
  syndicate.article_date[ syndicate.index ] = 'Jul 8, 2010 - 3:10:04 PM';
  syndicate.article_summary[ syndicate.index ] = 'As Paul Goydos was about to enter the PGA TOUR record book at the John Deere Classic with his 59, Kevin Chappell was posting the lowest round of the year relative to par on the Nationwide Tour and threatening to break the magic 60 barrier himself at the Ford Wayne Gretzky Classic in Canada.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ATB FINANCIAL CLASSIC PRESENTED BY TELUS';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/ATB_FINANCIAL_CLASSIC_PRESENTED_BY_TELUS.cfm';
  syndicate.article_date[ syndicate.index ] = 'Jul 5, 2010 - 6:26:09 AM';
  syndicate.article_summary[ syndicate.index ] = 'She may be 114 years old. But even when she\'s not all gussied up the way she was in her emerald green dress, she\'s a beauty. And if she could cook, Dustin Risdon would probably marry her.<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Stellar Field Set for the 2010 Mr. Lube – Canadian PGA Seniors’ Championship ';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/2010_Mr_Lube_Canadian_PGA_Seniors_Championship.cfm';
  syndicate.article_date[ syndicate.index ] = 'Jul 3, 2010 - 9:52:54 AM';
  syndicate.article_summary[ syndicate.index ] = 'The Canadian PGA is pleased to announce that one of the most impressive fields in the history of the event is set to compete for the 2010 Mr. Lube - Canadian PGA Seniors\' Championship presented by Cleveland Golf/Srixon, July 5th-8th at RattleSnake Point Golf Club in Milton, ON.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'NATIONWIDE TOUR STORYLINES – Week of June 21st ';
  syndicate.article_url[ syndicate.index ] = 'http://www.canadagolfguide.com/artman/publish/NATIONWIDE_TOUR_STORYLINES_Week_of_June_21st.cfm';
  syndicate.article_date[ syndicate.index ] = 'Jun 22, 2010 - 11:09:45 AM';
  syndicate.article_summary[ syndicate.index ] = 'CHRIS KIRK / NEW NO. 1 ON THE NATIONWIDE TOUR – By winning his first professional title on Sunday, the Fort Smith Classic in Arkansas, Chris Kirk is the new leading money winner on the Nationwide Tour.  With earnings of $262,382, the 25-year-old out of the University of Georgia has a healthy grasp on the top spot – he’s more than $63,000 ahead of No. 2 Tommy Gainey. ';
  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('<br><br></b></font></td></tr>\n');
