



// 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 Article Manager
syndicate.index = 0;
  syndicate.article_title[ syndicate.index ] = 'Instant Wagering Bill Advances In Kentucky';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7691.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'A bill allowing instant wagering in Kentucky on previously conducted horse races has cleared a Senate committee in Frankfort. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Casino operators\' ties to Net bet companies may undergo scrutiny ';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7690.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Nevada gaming regulators may clamp down on contractual relationships between the state\'s casino operators and nongambling arms of the Internet gaming industry.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Gambling experts question online poker, an idea promoted by Inland tribe';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7689.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Compulsive gambling experts had a ready opinion Thursday on whether California should legalize online poker to raise money along the lines of what an Inland tribe proposes: Bad idea.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bill seeks to bolster horse racing industry';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7688.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Lawmakers worried about preserving Kentucky\'s horse capital status presented a plan Thursday that offers a cash infusion to bolster the state\'s racing industry by taxing Internet betting and allowing a new form of gambling on old horse races.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Internet gambling: Threat or opportunity?';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7677.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  9, 2010';
  syndicate.article_summary[ syndicate.index ] = 'The likelihood Internet poker will soon be legal in the United States is igniting a fear among some tribal leaders that online gambling will impact revenue from tribal government casinos.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Proposed gambling deal makes good sense for Florida';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7669.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  6, 2010';
  syndicate.article_summary[ syndicate.index ] = 'The pragmatic negotiations between the Legislature and the Seminole Indian Tribe to finally give Florida a portion of the proceeds from blackjack and other table games appear headed in the right direction. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bixby man allowed to await further developments on tax case';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7665.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  5, 2010';
  syndicate.article_summary[ syndicate.index ] = 'David Michael Nigh, 41, was charged in Tulsa on April 8, 2008, with five counts of filing false federal returns for the 2001 through 2005 income tax years.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Florida submits plan for legal online poker';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7661.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  4, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Florida has become the second US state to file an intrastate egaming bill, submitting plans for legal, intrastate online poker. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = '\'Games of skill\' could add $28 million to Ky. purses under House bill';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7659.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  4, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Legislation filed this week to allow "electronic games of skill" at racetracks could generate more than $28 million for Kentucky purses and $3.14 million for purse supplements, breeders awards and other incentives, if it passes.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'New Florida Online Poker Bill Filed';
  syndicate.article_url[ syndicate.index ] = 'http://www.osga.com/artman/publish/article_7654.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar  3, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Yet another US state is seeking to legalize and regulate online poker. This time, Florida has been presented with the Internet Poker Consumer Protection and Revenue Generation Act of 2010.';
  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('<b>Powered by SITENAME.com</b></font></a>');
//document.write('<br><br></b></font></td></tr>\n');
