



// 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 ] = 'USMotivation Announces VIVA Virtual Suite of Products';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0209-006.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 09 Feb 2010, 15:32:56 EST';
  syndicate.article_summary[ syndicate.index ] = 'ATLANTA, Ga. (SEND2PRESS NEWSWIRE) -- USMotivation announces VIVA as its latest and most exciting product designed to introduce new levels of innovation, expand reach and increase convenience for the way companies do business. VIVA, or Virtual Interactive Venue Assistant, creates virtual experiences and environments that can stand alone or complement any physical event.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2009 Readers Favorite Award Winning Children\'s Chapter Book!';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0209-005.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 09 Feb 2010, 13:47:33 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANTA CLARA, Calif. (SEND2PRESS NEWSWIRE) -- Children\'s Chapter Book, \'Sir Licksalot and The Maverick Fools\' (ISBN-10: 1-60474-917-2), wins a 2009 Readers Favorite Award. In a statement made by Author D.L. Carroll, \'This book was written for tweens who hate to read. Providing these children with a story that they can actually enjoy is inspiring. To be recognized by industry professionals is incredibly rewarding. I am currently working on the second book in the series.\'';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '\'The Smarter Preschooler: Unlocking Your Child\'s Intellectual Potential\' Receives The Gold Mom\'s Choice Award';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0209-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 09 Feb 2010, 08:59:28 EST';
  syndicate.article_summary[ syndicate.index ] = 'MESA, Ariz. (SEND2PRESS NEWSWIRE) -- Authors Renee and Mike Mosiman have received the Gold Mom\'s Choice Award for their book \'The Smarter Preschooler: Unlocking Your Child\'s Intellectual Potential\' (ISBN: 978-0-9816426-5-9). The Mom\'s Choice Awards (MCA) is an awards program that recognizes authors, inventors, companies, parents and others for their efforts in creating quality family-friendly media, products and services.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New Upgraded EASEUS Data Recovery Software 5.0.1 Available For Windows 7 Users Now';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0209-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 09 Feb 2010, 08:01:50 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK, N.Y. (SEND2PRESS NEWSWIRE) -- EASEUS Software, the innovative and dedicated data recovery software provider, today officially released the new version of its data recovery software - EASEUS Data Recovery Wizard 5.0.1 - with new added-on features: Windows server 2008/Windows 7 support, enhanced performance of hard drive scan and data recovery.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Dana Clothing Provides Consumers with Socially-Responsible Buying Power';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0209-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 09 Feb 2010, 06:59:24 EST';
  syndicate.article_summary[ syndicate.index ] = 'SAN DIEGO, Calif. (SEND2PRESS NEWSWIRE) -- There are so many consumer choices on the market. That\'s why Dana Clothing is making it easier for people to make socially-responsible decisions about what they buy. For each t-shirt a consumer buys, one t-shirt will be donated to a child in need. It\'s a win-win situation.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'LRM Industries Introduces EverDock - A Simple, Green Dock Building Solution';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0209-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 09 Feb 2010, 06:28:01 EST';
  syndicate.article_summary[ syndicate.index ] = 'ROCKLEDGE, Fla. (SEND2PRESS NEWSWIRE) -- LRM Industries International, Inc. headquartered in Rockledge, Florida, announces the introduction of EverDock modular dock panels, the first product in family of innovative and environmentally friendly thermoplastic marine dock solutions. LRM will show EverDock panels for first time from February 11th through the 15th at The Miami International Boat Show 2010.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Yesterday\'s Home Designs may be the Answer for Today\'s Battered Builders';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0208-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 08 Feb 2010, 14:09:55 EST';
  syndicate.article_summary[ syndicate.index ] = 'ROCKVILLE CENTRE, N.Y. (SEND2PRESS NEWSWIRE) -- Has today\'s economy made you put off your dreams of a new home? The new book, \'Prosperity Plans\' (ISBN: 978-1450559645), just published by architect Donald J. Berg, might get you dreaming again. Berg\'s new book proposes that today\'s architects, builders and prospective homeowners can all learn from a series of fascinating \'Growing House\' designs created in 1934.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Tax Reminder: A Big Portion of Your Long Term Care Insurance Premiums May Be Deductible';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0208-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 08 Feb 2010, 06:29:31 EST';
  syndicate.article_summary[ syndicate.index ] = 'KIRKLAND, Wash. (SEND2PRESS NEWSWIRE) -- Want to keep more of your money in these challenging times? Then check with your tax advisor if you have long term care insurance. You may be able to deduct a big chunk of your 2009 premiums. What if you don\'t have long term care insurance? Then consider getting it NOW to lock in tax benefits next year. Uncle Sam may in effect pick up the tab for much of your premiums for 2010. This reminder comes from LTC Financial Partners LLC (LTCFP), one of the nation\'s most experienced long term care insurance agencies.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Backbone Security Launches Online Digital Forensics Course';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0205-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 05 Feb 2010, 16:01:33 EST';
  syndicate.article_summary[ syndicate.index ] = 'FAIRMONT, W.Va. (SEND2PRESS NEWSWIRE) -- Backbone Security\'s Steganography Analysis and Research Center (SARC) is pleased to announce their popular Certified Steganography Examiner (CSE) course is now available online. This two-day advanced digital forensics course raises awareness of the threat from use of digital steganography to conceal evidence of criminal activity or use by insiders to steal sensitive information.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Sofon and Business &amp; Decision Sign Partnership Agreement for North America';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0205-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 05 Feb 2010, 14:11:25 EST';
  syndicate.article_summary[ syndicate.index ] = 'PHOENIX, Ariz. (SEND2PRESS NEWSWIRE) -- Sofon and Business &amp; Decision today announce that they have signed a partnership for the marketing, sales and implementation of Sofon Guided Selling by Business &amp; Decision in the North American market. Business &amp; Decision, an international Consulting and Systems Integration company with over 2,700 employees worldwide, has added Sofon Guided Selling to its portfolio.';
  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');
