



// 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 ] = 'Scott Joss and Doug Colosio Play Classic Country on New Album from Golosio Publishing';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0726-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 26 Jul 2010, 15:37:37 EDT';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- Real country by real musicians is the way to describe the new album by Scott Joss and Doug Colosio, \'A Couple of Strangers,\' released by Golosio Publishing. The 13-track recording showcases many of the duo\'s favorite types of music, including Texas Swing, roadhouse roots, and \'good ole\' cryin\' in yer beer country tunes,\' states John Scott G, managing partner of Golosio.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New Book Helps Small Businesses Save Themselves and Help Save America';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0722-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 22 Jul 2010, 18:06:39 EDT';
  syndicate.article_summary[ syndicate.index ] = 'WILLIAMSBURG, Va. (SEND2PRESS NEWSWIRE) -- Ascoli Publishing LLC announces the release of \'Go and See: A Journey About Getting To Lean\' (ISBN: 978-1-6109500-8-4) by Robert B. Camp, BSE, MBA. Go and See makes a strong case that once a company goes \'Lean,\' it fireproofs itself from most of the chaos in today\'s market - including competitors from countries with cheap labor. And the first step is to \'Go and See.\'';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '97 Pound Woman Attempts Guinness World Records (Set by Men) to Lift Over 90,000 Pounds in 1 Hour!';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0722-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 22 Jul 2010, 15:44:07 EDT';
  syndicate.article_summary[ syndicate.index ] = 'SAN FRANCISCO, Calif. (SEND2PRESS NEWSWIRE) -- Thirty years ago, Thienna Ho and her family were Vietnamese boat people who survived a brutal attack by Thai pirates during a treacherous voyage on their way to their new home in San Francisco. Now Thienna is a super-athlete who has broken Guinness World Records (GWR) for feats of strength and endurance. On August 14 she plans to take the men\'s Guinness World Record for the most weight dead lifted in one hour.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Fun and Interactive Preview Marketing Tool Designed for 4 Styles of Learning';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0720-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 20 Jul 2010, 12:43:19 EDT';
  syndicate.article_summary[ syndicate.index ] = 'OKLAHOMA CITY, Okla. (SEND2PRESS NEWSWIRE) -- 4 Styles Enter-Active Systems, a division of JAF Industries, recently released an interactive tool that allows potential consumers to preview books and other products in a manner that appeals to all four learning styles: auditory; kinesthetic; visual and reading/writing.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Kyoko Nakamura Launches the Millipede, a Glow-In-The-Dark Accessory, and New Fashion Website';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0709-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 09 Jul 2010, 07:59:08 EDT';
  syndicate.article_summary[ syndicate.index ] = 'BROOKLYN, N.Y. (SEND2PRESS NEWSWIRE) -- Everyone will want to light up the night with Kyoko Nakamura\'s new line of luxury glow-in-the-dark accessories. The website went live this week, marking the official launch of her first product, the Millipede. This accessory is so beautiful and unique it has to be seen to be understood. Shockingly elegant and sophisticated for something that \'glows-in-the-dark,\' this marks a unique point in fashion; bringing a little class to club wear and a little more fun to anything else.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Taylor Wilshire to Receive Prestigious Award at Executive Business Conference';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0707-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 07 Jul 2010, 16:41:03 EDT';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK, N.Y. (SEND2PRESS NEWSWIRE) -- CEO Taylor Wilshire has been honored with the Women Executives in Business (WEIB) most prestigious award for outstanding achievement in business, the organization announced at the WEIB international conference, held in New York, New York. The award honors the highest standard of excellence in business.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Whiteflash.com Searches for a Diamond in the Rough with New Design Competition';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0707-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 07 Jul 2010, 13:33:15 EDT';
  syndicate.article_summary[ syndicate.index ] = 'HOUSTON, Texas (SEND2PRESS NEWSWIRE) -- Not only known for their prestigious selection of \'A Cut Above\' (ACA) branded diamonds, Whiteflash.com, one of the most comprehensive and user-friendly online marketplace for fine diamonds and diamond jewelry, also has a robust custom design option. To celebrate Whiteflash\'s 10th Anniversary and showcase their meticulous custom design work, they have partnered with online bridal portal RecycledBride to create the Design and Win Your Wedding Bands Contest.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Voices.com Website Now 10X Faster';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0706-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 06 Jul 2010, 13:26:14 EDT';
  syndicate.article_summary[ syndicate.index ] = 'LONDON, Ontario (SEND2PRESS NEWSWIRE) -- Time is money, and when both are of the essence, there\'s a need for speed that cannot be ignored. Voices CEO David Ciccarelli and his team recently revealed the newly redesigned site to their customers and have received a significant amount of support from members of the service, particularly as it relates to how quickly the website pages load.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Publishers Newswire Announces Q2-2010 \'Books to Bookmark\' List of Interesting New Books';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0706-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 06 Jul 2010, 06:52:36 EDT';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- For the second quarter of 2010, Publishers Newswire (PNW), an online resource established in 2004 for small publishers, as well as lesser known and first-time book authors, has today announced its latest semi-annual \'Books to Bookmark\' list. This is a round-up of 9 new and recent books which may have been missed due to not originating from major New York book publishing houses, or big name authors.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Hoxeyville Music Festival: Grateful Dead Members Return to Northern Michigan';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-06-0630-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 30 Jun 2010, 16:06:16 EDT';
  syndicate.article_summary[ syndicate.index ] = 'WELLSTON, Mich. (SEND2PRESS NEWSWIRE) -- This year marks the eighth year of the Hoxeyville Music Festival. And, this week, festival organizers announced the addition of the world famous drumming duo - the Rhythm Devils - featuring Mickey Hart and Bill Kreutzmann, originally of the Grateful Dead.';
  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="http://www.send2press.com" target="_blank">');
document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
document.write('<p><b>Powered by Send2Press Newswire</b></font></a>');
document.write('<br><br></b></font></td></tr>\n');
