



// 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 ] = 'New Web Site Offers First Time e-Tool for Cloud Based Emergency Access to Personal Information';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2012-01-0124-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 24 Jan 2012, 05:57:11 EST';
  syndicate.article_summary[ syndicate.index ] = 'PORTLAND, Ore., Jan. 24, 2012 (SEND2PRESS NEWSWIRE) -- ClanGistics(TM) announces the launch of their ClanGistics.com website which includes a first time ever e-product called the ClanGistics Planning System(TM). The planning system utilizes secured \'cloud\' server technology and data file encryption allowing users to login through a secured web portal and enter personal information safely and securely for instant access in cases of medical or family emergencies.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Hearthside Foods Continues to Lead in New Product Innovation with the Introduction of the First Granola with Baobab Superfruit';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-11-1115-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 15 Nov 2011, 05:58:58 EST';
  syndicate.article_summary[ syndicate.index ] = 'EUGENE, Ore., Nov. 15, 2011 (SEND2PRESS NEWSWIRE) -- Hearthside Food Solutions, LLC, one of the country\'s leading manufacturers of all natural cereal and granola products, has recently introduced another \'on trend\' variety of delicious granola under its GT Classic brand: Baobab Coconut Granola, made with organic (MWO) ingredients.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Noble Vision Group, LLC Launches LIVE Surgery Webcast Featuring Only FDA Approved DCR Laser';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-11-1130-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 30 Nov 2010, 13:59:17 EST';
  syndicate.article_summary[ syndicate.index ] = 'EUGENE, Ore. (SEND2PRESS NEWSWIRE) -- Noble Vision Group, LLC, a research and development organization, today announced the success of its first LIVE Webcast broadcast by SoundQue Multimedia Services, a unique multimedia production facility that specializes in video and audio streaming.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Reports Indicate Fluramene to Provide Earlier and Easier Detection of Ocular Surface Disorders';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-03-0309-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 09 Mar 2010, 13:51:05 EST';
  syndicate.article_summary[ syndicate.index ] = 'EUGENE, Ore. (SEND2PRESS NEWSWIRE) -- Noble Vision Group, LLC, a research and development organization today announced reports of favorable results for the topical dye formulation, Fluramene(TM), among leading eye care professionals. Fluramene, the proprietary Fluorescein Sodium and Lissamine Green dye combination is a sterile solution packaged in a 15mL bottle with a control tip dropper. The benefits of both dyes have been studied comprehensively and are well reported as diagnostic tools used independent of each other.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Announcing Wine Swirl, the Most Effective Patented Wine Aerator, Dramatically Improves Wine in Minutes';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2009-09-0921-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 21 Sep 2009, 06:29:57 EST';
  syndicate.article_summary[ syndicate.index ] = 'PORTLAND, Ore. (SEND2PRESS NEWSWIRE) -- Wine Swirl LLC announces release of the most effective patented method of wine aeration. Wine Swirl&reg; provides breakthrough results to wine lovers through its innovative aeration method. Unlike wine aerators that use a single pour through a funnel, Wine Swirl\'s sustained aeration method is truly transformative and improves all red wine regardless of cost. More efficient than decanting, Wine Swirl aerates red wine in minutes.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Oregon Floral Farms Continues to Grow in More Ways than One';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2009-05-0529-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 29 May 2009, 15:18:58 EST';
  syndicate.article_summary[ syndicate.index ] = 'OREGON CITY, Ore., May 29 (SEND2PRESS NEWSWIRE) -- This year, Oregon Floral Farms celebrates its tenth year of supplying custom and creatively hand-tied organic floral bouquets to customers throughout the region. And, as they continue to grow flowers, so does their business grow. While their hand-tied organic floral bouquets have received much attention over the past 10 years, they have evolved into a supplier of conventional/mainstream and hand-tied bouquets as well.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'MyLocalWay Introduces Website Solution for Small Businesses';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2008-11-1112-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 12 Nov 2008, 11:31:54 EST';
  syndicate.article_summary[ syndicate.index ] = 'PORTLAND, Ore., Nov. 12 (SEND2PRESS NEWSWIRE) -- MyLocalWay(TM), the small business Internet presence company, introduces SnapDesign(TM) technology enabling small business owners and service providers to quickly create and maintain professional web sites. Many small business owners do not have websites because they are intimidated by the cost and complexity of creating them for their business. Countless sales opportunities are lost because consumers cannot locate local businesses on the Internet.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Paradigm Multimedia Technology Changes the Rules for Health Care TV Systems';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2008-07-0716-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 16 Jul 2008, 14:55:15 EST';
  syndicate.article_summary[ syndicate.index ] = 'EUGENE, Ore., July 16 (SEND2PRESS NEWSWIRE) -- ProTune Technology, patented by Paradigm Multimedia, provides new ways to design and enhance in-room entertainment systems in health care facilities. This radically new engineering concept for entertainment systems lowers equipment costs and increases the number of choices available when purchasing in-room systems.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Acme Made Introduces All New Line of Innovative Totes and Laptop Bags';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2007-12-1208-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sat, 08 Dec 2007, 10:22:47 EST';
  syndicate.article_summary[ syndicate.index ] = 'PORTLAND, Ore. - Dec. 8 (SEND2PRESS NEWSWIRE) -- Acme Made(R) has recently introduced its new line of designer bags and laptop cases for the holidays. The highlights of the line include the \'Metro Tote,\' their new Telun vulcanized canvas, and their sustainable textile, EcoStripe.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Portland Artist Zack Orr Releases a New Eclectic Album With an Innovative Method of Distributing a Single Every Month for a Year';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2007-04-0403-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 03 Apr 2007, 04:19:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'PORTLAND, Ore. - Apr. 3 (SEND2PRESS NEWSWIRE) -- Zack Orr Music proudly announces the release of \'Francisco the Man.\' Francisco the Man is 12 songs, each coinciding with the months in a year. As the album progresses through the four seasons, the instrumentation and overall sound changes as well. ';
  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('Press Release: ');
  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://send2pressnewswire.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');

