



// 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 ] = '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 ] = 'Latest Issue of Divorce Magazine Looks at the Secret to a Successful Divorce';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0203-005.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 03 Feb 2010, 17:26:20 EST';
  syndicate.article_summary[ syndicate.index ] = 'TORONTO, Canada (SEND2PRESS NEWSWIRE) -- The Winter/Spring 2010 edition of Divorce Magazine features an article by a family court judge on the secret to a successful divorce. It is invaluable information that will help individuals prepare for, and proceed through, their divorce with less expense, stress and trauma for themselves and their children.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Three Little Pigs Tackle Ben Bernanke - New Children\'s Picture Book Explains US Federal Reserve and Economic Downturns';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0127-005.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 27 Jan 2010, 14:04:02 EST';
  syndicate.article_summary[ syndicate.index ] = 'BOSTON, Mass. (SEND2PRESS NEWSWIRE) -- Smoked Goldeye Press today announced the release of a children\'s picture book that aims to explain how new money from the Federal Reserve inadvertently causes cycles of economic downturns in the United States economy - something embattled Fed chairman Ben Bernanke would rather people not know about, says the author. In 32 color illustrated pages \'The Scary Story of the Three Little Pigs and the Big Bad Box of Free Money\' (ISBN: 9780615337432) attempts to simplify the complexity of central bank monetary policy.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Brain Drain: New Book Explores Integrative Relationship Between Physical and Mental Health';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0112-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 12 Jan 2010, 13:46:09 EST';
  syndicate.article_summary[ syndicate.index ] = 'POMONA, N.Y. (SEND2PRESS NEWSWIRE) -- Brain Drain (ISBN: 978-0984196302) authored by Charles F. Glassman, M.D., FACP, is a powerful new book that teaches people how to break free of their brains\' automatic responses through understanding and controlling their mind/body connections. The book offers a groundbreaking revelation that provides readers with the necessary tools to stop personal brain drain while helping them to find the things in life that are right for them.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Dr. Robert Hoyk, Author of \'The Ethical Executive\' is Expert Source to Understand \'Why\' of Scandals';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0104-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 04 Jan 2010, 12:29:36 EST';
  syndicate.article_summary[ syndicate.index ] = 'LAGUNA BEACH, Calif. (SEND2PRESS NEWSWIRE) -- Hardly a week goes by without some sort of unethical behavior making national headlines. Whether it is a media hoax about a boy in a balloon or a Ponzi scheme of the highest caliber, unethical behavior has - sadly - become expected?? Dr. Robert Hoyk, is a Clinical Psychologist and primary author of \'THE ETHICAL EXECUTIVE: Becoming Aware of the Root Causes of Unethical Behavior: 45 Psychological Traps that Every One of Us Falls Prey To\' (Stanford University Press; ISBN: 978-0804759656).';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Publishers Newswire Announces its Latest List of \'Books to Bookmark\' for Q4 2009';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2009-12-1230-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 30 Dec 2009, 15:07:45 EST';
  syndicate.article_summary[ syndicate.index ] = 'REDONDO BEACH, Calif. (SEND2PRESS NEWSWIRE) -- Publishers Newswire (PNW), an online resource established in 2004 for small publishers, as well as lesser known and first-time book authors, has announced its latest semi-annual \'Books to Bookmark\' list, for the fourth quarter of 2009. This list is a round-up of new and interesting books (and e-books) which are often missed due to not originating from major New York book publishing houses, or big name authors.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New Book: They Threw Him Out A Plane, But They Couldn\'t Throw Out His Story';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2009-12-1229-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 29 Dec 2009, 06:59:47 EST';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- Kevin Glavin Publishing announced today the release of \'Rock Star\'s Rainbow\' (ISBN: 978-0-9825466-0-4), a new novel chronicling a recent and mysterious scandal involving one of the nation\'s most cherished \'icons.\' The far-fetched story begins in August 2009, when a renowned entertainment reporter is thrown out of a plane over Los Angeles.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Narconon Helps Restore Honesty and Trust to Former Addicts';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2009-12-1223-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 23 Dec 2009, 13:30:01 EST';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- It is no secret that alcohol and drug abuse lead to risky behavior on the lighter side and a total depletion of honesty and virtues on the most severe. From promiscuity and theft to a lack of production at work and even murder, those who fall in the trap of substance abuse and addiction are largely responsible for the declining moral fabric of our society, says Narconon International.';
  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');
