



// 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 ] = 'Verti-Gro Partners with EnviroIngenuity';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2012-02-0207-005.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 07 Feb 2012, 18:47:37 EST';
  syndicate.article_summary[ syndicate.index ] = 'LAGUNA BEACH, Calif., Feb. 7, 2012 (SEND2PRESS NEWSWIRE) -- EnviroIngenuity today announced a partnership with Verti-Gro(R) to represent and promote hydroponic vertical farming systems throughout Southern California. Verti-Gro, Inc. designs and manufactures cost-effective, high density hydroponic growing systems. It offers stacked towers to suit large-scale commercial production needs which can be downsized for residential use and Community Supported Agriculture.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'EnviroIngenuity Launches Vertical Farming Division';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2012-01-0124-005.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 24 Jan 2012, 12:54:26 EST';
  syndicate.article_summary[ syndicate.index ] = 'LAGUNA BEACH, Calif., Jan. 24, 2012 (SEND2PRESS NEWSWIRE) -- EnviroIngenuity today announced its vertical farming division, which is developing vertical farming processes in Southern California to enable individuals and communities to grow their own food in urban areas.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Multi-Flow Industries Receives \'Excellent\' Food Safety Rating from The 2011 Silliker Audit';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-12-1227-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 27 Dec 2011, 16:27:09 EST';
  syndicate.article_summary[ syndicate.index ] = 'HUNTINGDON VALLEY, Pa., Dec. 27, 2011 (SEND2PRESS NEWSWIRE) -- Multi-Flow Industries, a manufacturer of fountain-dispensed beverages, announced that it has recently received an \'excellent\' rating on their 2011 Silliker Audit with a score of 97.3 percent. The audit covered Food Safety as well as GMP requirements.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'REMIS AMERICA Installs First Black Doors';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-12-1216-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 16 Dec 2011, 06:58:38 EST';
  syndicate.article_summary[ syndicate.index ] = 'ELKHART, Ind., Dec. 16, 2011 (SEND2PRESS NEWSWIRE) -- REMIS AMERICA has installed its first black RemiSafe doors on 24 feet of previously open Hill Phoenix cases at a ShopRite in New Rochelle, NY. These are the first black RemiSafe doors anywhere in the world.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Smashburger Sizzles into Temple in January 2012 - \'Better Burgers\' come to town at 31st and HK Dodgen Loop';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-12-1214-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 14 Dec 2011, 08:58:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'TEMPLE, Texas, Dec. 14, 2011 (SEND2PRESS NEWSWIRE) -- Smashburger, the nation\'s fastest growing \'better burger\' restaurant, brings their fresh approach to burgers to Temple when they open their first location on Wednesday, January 18, 2012 at 3008 S. 31st Street. Smashburger brings their juicy burgers that are smashed fresh and served delicious, along with its Haagen-Dazs shakes, tempting sides and regional menu items crafted to please local palates to the heart of Temple.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Adopt an Olive Tree and Help to Alleviate World Hunger and Strengthen Communities';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-12-1205-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 05 Dec 2011, 14:31:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'EAST LONGMEADOW, Mass., Dec. 5, 2011 (SEND2PRESS NEWSWIRE) -- In the spirit of the holidays, Tre Olive is donating $5.00 for each olive tree adoption order it receives from December 1 through December 25 to the Fruit Tree Planting Foundation (FTPF). The donations will be used to support FTPF\'s work to plant fruit trees in low-income communities around the world.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Going Naked Never Felt So Good!';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-11-1116-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 16 Nov 2011, 12:59:45 EST';
  syndicate.article_summary[ syndicate.index ] = 'SAN JOSE, Calif., Nov. 16, 2011 (SEND2PRESS NEWSWIRE) -- What do Hope Solo, Blake Griffin, Jose Reyes, Gretchen Bleiler and Lacy Young have in common? They all appeared in the buff recently to celebrate their bodies. Lacy Young isn\'t a famous athlete with national endorsement deals, nor is she admired by millions of fans. But she felt the need to bare it all in the name of eating healthy.';
  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 ] = 'Hill PHOENIX Portfolio Grows with Dover Acquisition of Denmark-based Advansor A/S';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-11-1107-006.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 07 Nov 2011, 14:58:44 EST';
  syndicate.article_summary[ syndicate.index ] = 'CONYERS, Ga., Nov. 7, 2011 (SEND2PRESS NEWSWIRE) -- Hill PHOENIX Inc., a Dover Company, has expanded its portfolio of operating companies with Dover\'s acquisition of Denmark-based Advansor A/S. The Danish company specializes in the design and manufacture of HFC-free, CO2 transcritical refrigeration and heat pump systems for supermarkets and light industrial applications. Advansor and Hill PHOENIX combined have more than 550 CO2 systems operating in supermarkets in the United States, Europe and Canada, making them the largest manufacturer of CO2 refrigeration systems in the world.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Denver Based Restaurant Consulting Firm Announces the Expansion and Rebranding of its Organization';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-10-1026-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 26 Oct 2011, 17:55:57 EST';
  syndicate.article_summary[ syndicate.index ] = 'DENVER, Colo., Oct. 26, 2011 (SEND2PRESS NEWSWIRE) -- A new look, new services and a new partner for Culinary Procurement Specialists, LLC has been unveiled. The new company name, Restaurant Mechanix, LLC (the \'Company\'), signifies the expansion of its consulting services into all aspects of restaurant operations and management.';
  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');

