



// 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 ] = 'Idaho Dairy Producers Double Scholarship Plans to Help 15 Students Pursue Their Dreams';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-10-1021-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 21 Oct 2011, 06:59:22 EST';
  syndicate.article_summary[ syndicate.index ] = 'TWIN FALLS, Idaho, Oct. 21, 2011 (SEND2PRESS NEWSWIRE) -- When the dairy producer leaders of the United Dairymen of Idaho (UDI) and its two branches - the Idaho Dairy Products Commission and the Idaho Dairymen\'s Association - agreed to establish a scholarship program this year, they intended to award $1,500 scholarships to seven deserving students of Idaho dairy farm families.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Rep. Simpson Champions Bill to Strengthen Future for Idaho Dairy Producers ';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-09-0928-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 28 Sep 2011, 09:59:19 EST';
  syndicate.article_summary[ syndicate.index ] = 'TWIN FALLS, Idaho, Sept. 28, 2011 (SEND2PRESS NEWSWIRE) -- The Idaho Dairymen\'s Association (IDA) applauded Idaho Congressman Mike Simpson (R-ID) for taking a strong stand on behalf of the dairy industry as lead Republican proponent of the Dairy Security Act of 2011. Last Friday, the new dairy bill was introduced in the House of Representatives by House Agriculture Committee\'s Ranking Member Collin Peterson (D-MN).';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Fundraising Book Wins Indie Book Award, Offering Ideas for People Who Raise Money to Help Homeless Animals';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-05-0531-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 31 May 2010, 06:00:41 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho (SEND2PRESS NEWSWIRE) -- A new book called \'Funds to the Rescue: 101 Fundraising Ideas for Humane and Animal Rescue Groups\' (ISBN: 978-0-9749245-9-5; LCCN: 2009905962; Logical Expressions, Inc.) was named the Winner in the How To category of the 2010 Next Generation Indie Book Awards.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Self-Publishers Learn from 15 Experts and Avoid Travel Hassles at Free Virtual Book Publishing Conference May 12-14, 2010';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-05-0507-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 07 May 2010, 15:52:29 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho (SEND2PRESS NEWSWIRE) -- Those who want to learn more about book publishing no longer have to worry about flight delays, security lines, scary shoes, plastic bags, safety cards, luggage fees, or cramped seats. At the Self-Publishers Online Conference (SPOC), authors and publishers can learn from 15 publishing experts from the comfort of their home or office May 12-14, 2010.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Self-Publishers Online Conference at the Forefront of Two Key Trends: The Rise in Self-Publishing and Virtual Events';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-04-0426-005.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 26 Apr 2010, 19:02:56 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho (SEND2PRESS NEWSWIRE) -- Recession or no, more books are being published now than at any time in history. Yet attendance at publishing industry trade shows like BookExpo America has been plummeting for years. Because of slashed budgets, instead of going to costly live events, people are attending virtual conferences like the upcoming second annual Self-Publishers Online Conference (SPOC) instead.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Authors and Self-Publishers Learn the Latest in the Business of Book Publishing from 15 Experts at Virtual Conference';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-04-0407-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 07 Apr 2010, 19:41:31 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho (SEND2PRESS NEWSWIRE) -- The second annual Self-Publishers Online Conference (SPOC) gives entrepreneurial writers, authors, and publishers the opportunity to learn from experts in book publishing from the convenience of their own office. At SPOC, everyone is encouraged to \'Live Long and Publish!\' This three-day virtual event features expert speakers on May 12, 13, and 14, 2010.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Turning Idle Tools into Productive Capital';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2008-09-0915-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 15 Sep 2008, 13:01:32 EST';
  syndicate.article_summary[ syndicate.index ] = 'BOISE, Idaho, Sept. 15 (SEND2PRESS NEWSWIRE) -- Heavy Equipment Auctioneers announced today their large semi-annual trucks, tools and equipment auction for Southwest Idaho. AJ Armstrong, a partner in the firm stated, \'We are excited to continue to offer an efficient marketplace to turn idle assets into productive capital. This live auction allows the hard working people that build and maintain our homes, businesses, roads and machines a way to both buy and sell the tools they need to get their important jobs accomplished.\'';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'RPM Remote Print Manager 5.0 Supports Customized Print Work Flows';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2008-05-0528-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 28 May 2008, 01:17:39 EST';
  syndicate.article_summary[ syndicate.index ] = 'IDAHO FALLS, Idaho, May 28 (SEND2PRESS NEWSWIRE) -- Brooks Internet Software, Inc. announces RPM Remote Print Manager 5.0, including new tools for creating print work flows. Dave Brooks, the company founder and president, says that the new RPM adds actions and transforms to the print processing model. Each queue can have as many actions and transforms as the user desires.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Self-Publisher Uses Writing/Creativity Software to Produce Three Books in One Year';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2007-11-1101-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 01 Nov 2007, 17:51:25 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho (SEND2PRESS NEWSWIRE) -- A writing and creativity software program called IdeaWeaver from Logical Expressions, Inc. has made it possible for a self-publisher to release three books in a year. Before using IdeaWeaver, the text for these books had been languishing in word processing files for months.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New Book Shares Tips for Raising a Happy and Healthy Shelter-Adopted Cat or Kitten';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2007-10-1024-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 24 Oct 2007, 17:54:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho (SEND2PRESS NEWSWIRE) -- A new book from Logical Expressions, Inc. aims to help new, adopted-cat owners get off on the right paw. \'Happy Tabby: Develop a Great Relationship with Your Adopted Cat or Kitten\' (ISBN: 978-0-9749245-3-3; LCCN-2007906436) tells new owners what they need to know to raise a healthy, happy feline.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'What\'s in a Name? Everything to Your Dog';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2007-08-0822-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 22 Aug 2007, 21:05:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho - Aug. 22 (SEND2PRESS NEWSWIRE) -- The most important thing you can teach your new dog is his name, according to Susan Daffron of Logical Expressions, Inc. If your dog doesn\'t learn his name, it\'s almost impossible to teach him anything else. Daffron offers a few naming suggestions based on her book \'Happy Hound: Develop a Great Relationship with Your Adopted Dog or Puppy\' (ISBN: 978-0-9749245-2-6; LCCN-2006909898)';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Survive the Attack of the Killer Zucchini - Five Ways to Use Up Those Extra Summer Squash';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2007-07-0712-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 12 Jul 2007, 18:45:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho - July 12 (SEND2PRESS NEWSWIRE) -- It\'s summertime and the zucchini are living large. Figuring out what to do with all that squash can be overwhelming. Susan Daffron of Logical Expressions, Inc. offers a few tips on using those \'killer zucchini,\' inspired by her book \'Vegan Success: Scrumptious, Healthy Vegan Recipes for Busy People\' (ISBN: 978-0-9749245-1-9; LCCN-2006907834).<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New Book Shares Tips for Raising a Happy and Healthy Shelter-Adopted Dog or Puppy';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2006-12-1213-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 13 Dec 2006, 17:00:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho - Dec. 13 (SEND2PRESS NEWSWIRE) -- A new book from Logical Expressions, Inc. aims to help new, adoptive-dog owners get off on the right \'paw.\' \'Happy Hound: Develop a Great Relationship with Your Adopted Dog or Puppy\' (ISBN: 978-0-9749245-2-6; LCCN-2006909898) tells new owners what they need to know to raise a wonderful family pet.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New Book Teaches Business Owners How to Avoid the Pitfalls of Poor Web Site Design and Development';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2006-12-1206-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 06 Dec 2006, 18:06:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho - Dec. 6 (SEND2PRESS NEWSWIRE) -- A new book from Logical Expressions, Inc. aims to demystify the often-confusing world of ecommerce. In \'Web Business Success: The Entrepreneur\'s Guide to Web Sites That Work\' (ISBN: 978-0-9749245-0-2; LCCN-2006909228) authors James Byrd and Susan Daffron share practical tips and strategies to help business owners make good choices when they put a Web site online.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'A New Cookbook for Vegans by Vegans Serves Up Dinner Ideas';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2006-11-1129-005.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 29 Nov 2006, 18:12:00 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANDPOINT, Idaho - Nov. 29 (SEND2PRESS NEWSWIRE) -- Vegans may not have many options when it comes to convenience foods or dining out, but a new cookbook released by Logical Expressions, Inc. can help get dinner on the table quickly - \'Vegan Success: Scrumptious, Healthy Vegan Recipes for Busy People\' (ISBN: 978-0-9749245-1-9; LCCN-2006907834).';
  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');

