



// 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 ] = 'We Know How to Cure Cancer, But it\'s Taking Too Long to Hit the Target';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0204-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 04 Feb 2010, 15:31:15 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK, N.Y. (SEND2PRESS NEWSWIRE) -- Marty Niedelman, a pharmacist from New York, claims he has the answer which will lead to the cure of Cancer. He feels that all the research scientists are leaning toward his conclusion, but are taking too much time to succeed. He has written an article explaining what he knows about the subject. The purpose of this article is to motivate all the researchers to perfect the cure now.';
  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 ] = 'Haiti Aid Brings Tax Relief to Americans';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0130-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sat, 30 Jan 2010, 13:19:03 EST';
  syndicate.article_summary[ syndicate.index ] = 'SAN DIEGO, Calif. (SEND2PRESS NEWSWIRE) -- Whether it\'s text donations, celebrity telethons, or gifts of food and clothing, Americans\' generous giving and support to relief efforts in Haiti has been front and center in the headlines. To make the most of your earthquake relief donations and take advantage of the special tax breaks freshly enacted by Congress, consider these tips provided by the American Institute of Certified Tax Coaches, Inc.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Public School Education: Helping Provide Long Island Students with a Brighter Future';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0129-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 29 Jan 2010, 13:14:26 EST';
  syndicate.article_summary[ syndicate.index ] = 'LONG ISLAND, N.Y. (SEND2PRESS NEWSWIRE) -- It is no secret that our country is in the worst economic crisis in recent history. There are many challenges being faced within our local communities. Families are surviving on tighter budgets, companies are streamlining and downsizing and governments are looking at how to balance their budgets and decrease spending. According to the Long Island Presidents\' Council, in a few months, school districts will be planning their own budgets and looking for community support.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'IDS President Says RESPA Delay Not Reflected in Investor Requirements; Sees Need for Common Sense Adjustments to Mortgage Lending Regulations';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0126-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 26 Jan 2010, 08:28:19 EST';
  syndicate.article_summary[ syndicate.index ] = 'SALT LAKE CITY, Utah (SEND2PRESS NEWSWIRE) -- Curt Doman, president of International Document Services Inc. (IDS), a mortgage document preparation vendor for closing docs, initial disclosures and reverse documents, calls for common sense to guide new 2010 regulations in light of persistent difficulties with RESPA interpretation and compliance. The IDS flagship solution, idsDoc, is the doc prep solution of choice for mortgage lenders and attorneys requiring customized closing documents.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Latino and Black Youth March Proudly Together in Long Beach to Honor Dr. Martin Luther King Jr.';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0118-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 18 Jan 2010, 15:24:28 EST';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- Sponsored by Narconon International and the National Alliance for Faith and Justice, youths carried a banner promoting peace between their races. Media in southern Los Angeles County have often reported conflict between Latinos and Blacks, but today 35 youths carried a banner in the Long Beach Martin Luther King Jr. Day Parade on 16 January specifically to promote peace and to show that the majority of youth want peace and are willing to do something to make peace between the races come true.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Conservative PAC Says Joseph Kennedy Taking More Votes from Martha Coakley in U.S. Senate Race';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0118-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 18 Jan 2010, 14:04:34 EST';
  syndicate.article_summary[ syndicate.index ] = 'WASHINGTON, D.C. (SEND2PRESS NEWSWIRE) -- William Greene, Chairman of the conservative online political action committee RightMarch.com PAC, announced today that Independent candidate Joseph Kennedy is taking enough votes from Martha Coakley to ensure her loss in the upcoming special election for U.S. Senate in Massachusetts.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Beyond Long Term Care Insurance, New LTC Financial Partners Affiliate Will Offer Reverse Mortgages';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0115-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 15 Jan 2010, 06:00:08 EST';
  syndicate.article_summary[ syndicate.index ] = 'KIRKLAND, Wash. (SEND2PRESS NEWSWIRE) -- Today LTC Financial Partners, LLC (LTCFP) announces the formation of a new affiliate, Reverse Mortgage Direct, LLC (RMD), which will provide reverse mortgages to Americans 62 and up. \'We\'re delighted to add this new service to our corporate offerings,\' says Cameron Truesdell, CEO of LTCFP, one of America\'s most experienced long term care insurance agencies.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Long Term Care Insurance Expert Featured on Lifetime Television\'s Balancing Act Show';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0113-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 13 Jan 2010, 14:57:14 EST';
  syndicate.article_summary[ syndicate.index ] = 'KIRKLAND, Wash. (SEND2PRESS NEWSWIRE) -- Long term care, often neglected in health care planning, became talk-show fare yesterday on Lifetime Television\'s Balancing Act show. Denise Gott, the featured expert, pointed out that it\'s never too early to start thinking about long term care for our loved ones. \'Three in four will eventually need it,\' says Gott, Chairman of the Board of LTC Financial Partners, LLC (LTCFP), one of America\'s most experienced long term care insurance agencies.';
  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++;




// 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');
