



// 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 ] = '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 ] = '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++;  syndicate.article_title[ syndicate.index ] = 'Citizen Canine Awarded Gold Level Certification by Pet Care Services Association';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0202-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 02 Feb 2010, 15:14:32 EST';
  syndicate.article_summary[ syndicate.index ] = 'OAKLAND, Calif. (SEND2PRESS NEWSWIRE) -- In today\'s flailing economy, if business owners wish to survive, they must find ways to set their services and products apart from the rest. That\'s just what Citizen Canine - an innovative dog daycare facility and hotel - has done. Citizen Canine has not only survived, it has thrived and continues to grow by improving its quality of care and services. In fact, this high-end dog hotel recently applied for and was awarded the highest level of dog care and customer service in the field.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Bed Bugs Beware: There is a New Sheriff in Town!';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0201-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 01 Feb 2010, 16:02:39 EST';
  syndicate.article_summary[ syndicate.index ] = 'MADISON, Conn. (SEND2PRESS NEWSWIRE) -- CT Bed Bug Dogs announces this week the launch of a new business serving Connecticut residents and businesses. It\'s important to note that this sheriff does not wear a gun - he wears a dog collar! More specifically, Ruby, Pasha and Willie are adorable rescue dogs who have been highly trained and certified to find these critters wherever they are hiding which allows an immediate and focused extermination effort based on their findings.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'The Ballantine Corporation Releases Direct Marketing Trends for 2010';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0128-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 28 Jan 2010, 06:59:15 EST';
  syndicate.article_summary[ syndicate.index ] = 'WAYNE, N.J. (SEND2PRESS NEWSWIRE) -- Direct marketing continues to be an effective method of reaching potential customers. And, as outside factors such as technology and the economy change, so do direct marketing trends. That\'s why the Ballantine Corporation has assembled a direct marketing white paper that reveals what\'s likely in 2010. This report is the result of compiled research from reputable industry resources.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Telecommunications Private Line Services Revenue to Decline through 2012, Says Insight Research Corporation';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0127-006.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 27 Jan 2010, 18:27:16 EST';
  syndicate.article_summary[ syndicate.index ] = 'BOONTON, N.J., Jan. 27 (SEND2PRESS NEWSWIRE) -- After years of steady growth, the $34 billion private line services market is entering a period of declining revenue, says a market analysis study from Insight Research. Private lines are point-to-point circuits leased by enterprises from telecommunications carriers in order to link enterprise sites to each other and to the Internet. Private lines are also used by cellular carriers to link their towers to land line networks.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Top Selling Car in Japan isn\'t a Car, it\'s a Hybrid';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0127-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 27 Jan 2010, 12:36:44 EST';
  syndicate.article_summary[ syndicate.index ] = 'BOSTON, Mass. (SEND2PRESS NEWSWIRE) -- Already well known for their trend setting abilities in technology, fashion, and design, Japanese consumers are now making headlines of the green persuasion, putting the Toyota Prius at the top of their lists. In 2009 the Toyota Prius was the top-selling car, period, in Japan - the first time ever a gas-electric hybrid has clinched the spot. For Randy Sassone of Toyota of Watertown, the news of the Prius\' success in Toyota\'s homeland of Japan comes as no surprise.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '13 Percent Increase in U.S. Homeowners Who Say They Will Remodel in 2010';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0127-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 27 Jan 2010, 09:59:55 EST';
  syndicate.article_summary[ syndicate.index ] = 'SUNNYVALE, Calif. (SEND2PRESS NEWSWIRE) -- After a year of steady declines in home remodeling, the Spring 2010 RemodelorMove U.S. Remodeling Sentiment Report reveals a 13 percent increase in the number of homeowners who say they will remodel in the next 12 months. This increase follows a 5 percent increase in last year\'s Spring 2009 report. The continuing upward swing in remodeling sentiment indicates that 2010 will show a strong increase in remodeling activity.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'The World\'s First iPhone Compatible Motorcycle Headset';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0126-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 26 Jan 2010, 17:37:27 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEWPORT BEACH, Calif. (SEND2PRESS NEWSWIRE) -- iMC Motorcom announces the release of the world\'s first iPhone compatible motorcycle headset: the HS-500. The HS-500 allows motorcycle riders to utilize the phone and music functions of their Apple iPhone and other 3.5mm (standard stereo headset jack) equipped cell phones, including the Palm Pre and Blackberry Storm.';
  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');
