



// 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 ] = 'Jewelry Central Partners with Nickelodeon for the Whole Lotta Love Sweepstakes';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0202-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 02 Feb 2010, 12:37:27 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK, N.Y. (SEND2PRESS NEWSWIRE) -- Jewelry Central, a leading retailer of engagement rings and fine jewelry has entered into an agreement with Nickelodeon to provide prizes for the ParentsConnect sweepstakes. Nickelodeon is the most watched television network for kids in the United States, and a division of MTV Networks and Viacom Inc. (NYSE: VIA and VIA.B). For the grand prize, one lucky contestant will receive a heart-shaped diamond and garnet necklace from Jewelry Central.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'FlexShift: An Innovative Web-Based Employee Scheduling and Staffing Management Solution';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-02-0201-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 01 Feb 2010, 14:05:04 EST';
  syndicate.article_summary[ syndicate.index ] = 'STACY, Minn. (SEND2PRESS NEWSWIRE) -- FlexShift Software, Inc., an innovator in Web-based staffing solutions, today announced the launch of FlexShift, a comprehensive solution to help companies strategically manage a wide array of staffing issues. And, companies do not need to purchase any software or hardware. It\'s a secured staffing solution that\'s accessible via the Web. Additionally, there are no accompanying contracts or IT expenses. All that\'s needed is a computer, a browser and Internet connection.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Free Birthday Planning: New Website Offers Wide Variety of Venues, Creative Ideas, and Exceptional Service';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0128-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 28 Jan 2010, 16:20:50 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK CITY, N.Y. (SEND2PRESS NEWSWIRE) -- Birthday Party Reservations provides a free service and fun solutions to make your special day memorable. Year after year it seems like there are more people to invite, there\'s more work to be done, and less time to do it. Planning a birthday has become a task only the very patient can overcome. However, with the help of Birthday Party Reservations (BPR), your birthday party planning just got a whole lot easier.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'The Evolution of Lending: BusinessCashAdvance Creates Economic Stimulus Product';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0127-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 27 Jan 2010, 13:22:04 EST';
  syndicate.article_summary[ syndicate.index ] = 'CORAL SPRINGS, Fla. (SEND2PRESS NEWSWIRE) -- More and more financial institutions are tightening belts when it comes to lending money. That\'s why the concept of receivables-based lending has evolved and become a more viable option for small businesses than in the past. BusinessCashAdvance, \'where businesses go to grow,\' is a prime example of how the lending climate is changing.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '13 Percent Increase in U.S. Homeowners Who Say They Will Remodel in 2010';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0127-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 27 Jan 2010, 09:59:55 EST';
  syndicate.article_summary[ syndicate.index ] = 'SUNNYVALE, Calif. (SEND2PRESS NEWSWIRE) -- After a year of steady declines in home remodeling, the Spring 2010 RemodelorMove U.S. Remodeling Sentiment Report reveals a 13 percent increase in the number of homeowners who say they will remodel in the next 12 months. This increase follows a 5 percent increase in last year\'s Spring 2009 report. The continuing upward swing in remodeling sentiment indicates that 2010 will show a strong increase in remodeling activity.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'LoanSifter Integrates Mortgage Product and Pricing Engine with Del Mar DataTrac Zero-defect Workflow Automation Platform';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0122-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 22 Jan 2010, 12:44:46 EST';
  syndicate.article_summary[ syndicate.index ] = 'SAN DIEGO, Calif. and APPLETON, Wis. (SEND2PRESS NEWSWIRE) -- Del Mar DataTrac, Inc. (DMD), the leading provider of affordable mortgage lending automation solutions, and LoanSifter, the leading provider of Web-based product and pricing tools, have completed the integration of LoanSifter\'s namesake product and pricing engine (PPE) with DMD\'s flagship product, DataTrac.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'ePly Online Event Registration Announces Sponsorship of Glotman Simpson Cycling';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0122-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 22 Jan 2010, 06:59:16 EST';
  syndicate.article_summary[ syndicate.index ] = 'VANCOUVER, B.C. (SEND2PRESS NEWSWIRE) -- ePly Services Inc. (@ePly), an online event registration software company based in North Vancouver, B.C. is pleased to announce their sponsorship of the Vancouver based cycling team and club Glotman Simpson. ePly has been eager to break into the race registration category and feels that sponsoring Glotman Simpson Cycling is a great opportunity to show their support for the community of cycling.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Building Engines, Inc. Reports Strong 2009 Revenue Growth Despite Difficult Economy, Announces Continued Expansion of Client Service Programs';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0121-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 21 Jan 2010, 16:45:26 EST';
  syndicate.article_summary[ syndicate.index ] = 'BOSTON, Mass. (SEND2PRESS NEWSWIRE) -- Building Engines, provider of a comprehensive Web-based operations management solution for owners and managers of all property types, today announced overall recurring revenue growth of 34 percent in 2009, matching its strong performance in the previous year. Despite the struggling real estate market in a difficult economy, the company broadened product functionality, enhanced platform usability, and increased its service programs.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'PremiumEcigarette Works to Make E-cigarettes as Accessible as Traditional Cigarettes';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0121-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 21 Jan 2010, 05:59:29 EST';
  syndicate.article_summary[ syndicate.index ] = 'VIRGINIA BEACH, Va. (SEND2PRESS NEWSWIRE) -- PremiumEstore LLC has been closely monitoring the news about the Food and Drug Administration (FDA) regulating e-cigarettes. Today, it is excited to announce that the FDA cannot regulate electronic cigarettes, making it possible to now offer its products to national chains, and other retailers, on a wholesale basis.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New Website Aims to Simplify the Process of Finding Performance Based Marketing and Media Opportunities';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-01-0119-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 19 Jan 2010, 07:59:28 EST';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- An innovative new industry Website from 562 Media, Inc., TheLeadPages.com, is aiming to help media buyers, marketing directors and companies looking to purchase online and offline media on a performance basis. The Lead Pages offers a simple, intuitive industry directory where media buyers and marketing managers can easily search for companies offering pay per call, pay per lead, affiliate marketing and technology services all in one centralized location.';
  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');
