



// 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 ] = 'Artists with Parkinson\'s Disease Are Celebrated In A One-Of-A-Kind Art Exhibition';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2012-02-0209-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 09 Feb 2012, 22:23:30 EST';
  syndicate.article_summary[ syndicate.index ] = 'SANTA MONICA, Calif., Feb. 9, 2012 (SEND2PRESS NEWSWIRE) -- The Los Angeles chapter of the American Parkinson\'s Disease Association (apdala.org), along with James Gray Gallery, present \'Living Artistically with Parkinson\'s Disease,\' a unique exhibition featuring works of art created by celebrated artists living with PD. To celebrate the exhibition, which runs from February 8-13, 2012, the APDA L.A. is hosting a champagne brunch with a silent auction this Sunday, February 12.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'John Waguespack Solo Exhibition at The McLoughlin Gallery in San Francisco - Dec. 8, 2011 to Jan. 21, 2012';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-11-1130-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 30 Nov 2011, 14:47:40 EST';
  syndicate.article_summary[ syndicate.index ] = 'SAN FRANCISCO, Calif., Nov. 30, 2011 (SEND2PRESS NEWSWIRE) -- John Waguespack, is showcasing his new works at The McLoughlin Gallery in San Francisco December 8, 2011 through January 21, 2012. \'Deconstructing Hollywood\' is his second solo exhibition at The McLoughlin Gallery at 49 Geary Street in San Francisco.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Andaz 5th Avenue Celebrates Art and Culture with tbd Art - The Hotel\'s First Rotating Art Series';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-10-1018-006.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 18 Oct 2011, 09:59:20 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK, N.Y., Oct. 18, 2011 (SEND2PRESS NEWSWIRE) -- Andaz 5th Avenue, a hotel inspired by the culture of New York City, announces the launch of tbd Art - a rotating art series. The first year of rotating art started on October 6th with artist M.Dreeland. In total, the hotel will have four diverse artists; M.Dreeland, Mister Cartoon, Claw Money and a final artist (currently TBD).';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'New York: Finger Paintings by Jorge Colombo Released by Chronicle Books, in Partnership with 20x200';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-10-1006-005.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 06 Oct 2011, 22:17:52 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK, N.Y., Oct. 6, 2011 (SEND2PRESS NEWSWIRE) -- If New York City is a state of mind, then Jorge Colombo captures the metropolis\' moods like no other. Published in association with 20x200.com - the place to discover and buy art online - \'New York: Finger Paintings\' (ISBN: 978-0811879255) by Jorge Colombo features 100 of the artist\'s beautiful, full-color illustrations of New York City.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Artist Dumpster Dives Zuck, Goes Public with Facebook Founder\'s Trash';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-10-1005-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 05 Oct 2011, 19:42:52 EST';
  syndicate.article_summary[ syndicate.index ] = 'PALO ALTO, Calif., Oct. 5, 2011 (SEND2PRESS NEWSWIRE) -- Cory Allen Contemporary Art (CACA) announces that Google Artist XVALA goes dumpster diving in Silicon Valley, invading tech founders\' personal trash to create a series of sculptures that has been made available to the public online and in upcoming gallery shows.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'William Pope.L Releases Set of Text-Based Art at 20x200.com';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-09-0929-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 29 Sep 2011, 21:46:38 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK, N.Y., Sept. 29, 2011 (SEND2PRESS NEWSWIRE) -- When William Pope.L donned a business suit and crawled on his belly through the gutter up NYC\'s Bowery, the \'Friendliest Black Artist in America\' was poignantly calling attention to themes of race, social class and power. Now, in his debut project with 20x200 - the place to discover and buy art online - the seminal artist once again addresses these issues with a selection from his ongoing and widely exhibited project \'Skin Set Drawings.\'';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Art Controversy Revealed this Week: Daniel Edwards\' Justin Bieber Allegory of a Teen Sex Symbol';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-08-0824-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 24 Aug 2011, 17:57:14 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK, N.Y. (SEND2PRESS NEWSWIRE) -- Images of the allegorical tribute to teen idol Justin Bieber, created by controversial New York artist Daniel Edwards, are being released by Cory Allen Contemporary Art this week.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '16th Annual Richard Schmid Fine Art Auction Labor Day Weekend to Raise Funds for Wildfire-Devastated Area';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-08-0810-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 10 Aug 2011, 08:57:11 EST';
  syndicate.article_summary[ syndicate.index ] = 'BELLVUE, Colo. (SEND2PRESS NEWSWIRE) -- Art lovers from all over the West will gather in a picturesque mountain valley outside Fort Collins, Colorado on Labor Day Sunday. They\'re coming in hopes of acquiring original art from over 100 well-known artists that will be auctioned off to the highest bidder under the \'Big Top\' at the 16th Annual Richard Schmid Fine Art Auction on Sunday, September 4, 2011.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Nude Bieber and Gomez Portrait as Monument to National Exceptionalism - Justin and Selena as \'One\' in Canadian \'Garden of Eden\'';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-08-0809-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 09 Aug 2011, 17:09:33 EST';
  syndicate.article_summary[ syndicate.index ] = 'DALLAS, Texas (SEND2PRESS NEWSWIRE) -- Despite breakup rumors, Teen Choice Award winners Justin Bieber and Selena Gomez are presented as a 21st Century Adam and Eve in a new life size portrait created by controversial American artist Daniel Edwards. The portrait depicts the teenagers almost entirely nude, with a Canadian maple leaf and a Texas lone star covering their most intimate parts. The portrait will be unveiled at Dallas\'s New Fine Arts, near Gomez\'s hometown, at a time yet to be announced by Cory Allen Contemporary Art.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Osama Bin Laden Death Sculpture Gets Name from Facebook';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2011-06-0601-007-Signed-SEALed.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 01 Jun 2011, 17:06:20 EST';
  syndicate.article_summary[ syndicate.index ] = 'NEW YORK, N.Y. (SEND2PRESS NEWSWIRE) -- A naked Osama Bin Laden, laden with sea crabs and shackled to a U.S. Navy SEALs cement block at the bottom of the sea receives its official title, courtesy of the friends on Facebook. The Osama Bin Laden sculpture is the latest by New York artist Daniel Edwards, and is being unveiled this week on Facebook, announces Cory Allen Contemporary Art.';
  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');

