



// 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 ] = 'Scott Joss and Doug Colosio Play Classic Country on New Album from Golosio Publishing';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-07-0726-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 26 Jul 2010, 15:37:37 EDT';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- Real country by real musicians is the way to describe the new album by Scott Joss and Doug Colosio, \'A Couple of Strangers,\' released by Golosio Publishing. The 13-track recording showcases many of the duo\'s favorite types of music, including Texas Swing, roadhouse roots, and \'good ole\' cryin\' in yer beer country tunes,\' states John Scott G, managing partner of Golosio.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Hoxeyville Music Festival: Grateful Dead Members Return to Northern Michigan';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-06-0630-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Wed, 30 Jun 2010, 16:06:16 EDT';
  syndicate.article_summary[ syndicate.index ] = 'WELLSTON, Mich. (SEND2PRESS NEWSWIRE) -- This year marks the eighth year of the Hoxeyville Music Festival. And, this week, festival organizers announced the addition of the world famous drumming duo - the Rhythm Devils - featuring Mickey Hart and Bill Kreutzmann, originally of the Grateful Dead.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Kyle Gass of Tenacious D to perform at \'Prop 6-Pack\' Wedding';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-06-0608-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 08 Jun 2010, 15:45:51 EDT';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- Eleventh Percentile Entertainment is proud to announce the addition of Kyle Gass and Friends to the entertainment portion of The Beer-Naked Wedding and Rock \'N\' Roll Reception to be held in Los Angeles on Saturday, June 26, 2010. The event is a celebration of the union between Buck \'F\' Naked, renowned drunkabilly chanteur, and his life long love, beer.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Paula Franceschi is Mistress of Musical Cinematics';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-06-0608-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Tue, 08 Jun 2010, 05:59:45 EDT';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- While most artists want you to think about their music, Paula Franceschi wants you to think about images when playing her new EP, \'Songs for Singles\' (Valjean Music). \'The songs are meant to make you see movies in your mind,\' says Franceschi.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'John Scott G Song Gets Music Video from Golosio Publishing';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-05-0531-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 31 May 2010, 06:15:22 EDT';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- Helping songwriters in every way possible, Golosio Publishing creates music videos for artists who have recorded songs from their catalog. The latest is a song by John Scott G called \'Smokescreen,\' and the video is now on both YouTube and FookMovie under the name \'Smokescreen by JSG.\'';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Electronica Geek John Scott G goes Country with Merle, Gets Legit with the CCC, and Promotes the Artists of Golosio Publishing';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-05-0507-001.shtml';
  syndicate.article_date[ syndicate.index ] = 'Fri, 07 May 2010, 11:50:37 EDT';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- Many music publishing companies feature multiple genres but John Scott G of Golosio Publishing is enjoying something unique: a song he co-wrote is on the new Merle Haggard album at the same time his groove-electronica songs are appearing on the new Jonny Harmonic album. \'I Am What I Am\' (Vanguard Records) by Merle Haggard debuted at number 18 on the Billboard Country Albums chart with the song \'Bad Actor.\'';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Music Industry Veterans Rave About Newly Released Book, \'The Artist\'s Guide to Success in the Music Business\'';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-04-0426-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 26 Apr 2010, 15:52:28 EDT';
  syndicate.article_summary[ syndicate.index ] = 'SEATTLE, Wash. (SEND2PRESS NEWSWIRE) -- \'The Artist\'s Guide to Success in the Music Business\' (ISBN: 978-1-935359-33-3) was just released by author Loren Weisman. The book is a detailed analysis of the subjects that all musicians should understand and apply in order to pursue a successful and sustainable career in music. Full of ideas and practical advice, this book provides comprehensive details on how to optimize success and achieve sustainability and self-empowerment in today\'s music business.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Producer and L.A. Talk Radio Personality Danielle Egnew Joins Music Industry Newswire as Contributing Editor';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-04-0412-004.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 12 Apr 2010, 17:28:29 EDT';
  syndicate.article_summary[ syndicate.index ] = 'LOS ANGELES, Calif. (SEND2PRESS NEWSWIRE) -- Online-based recording industry publication adds noted music producer, recording artist, and on-air radio personality Danielle Egnew to its editorial staff. Egnew will contribute expertise on issues related to the business of music, album production, and independent film. Music Industry Newswire(TM) is a publication of Neotrope(R) Entertainment, established in California in 1983.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Eagles Platinum Songwriter Jack Tempchin to Make U.K. Debut';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-04-0408-003.shtml';
  syndicate.article_date[ syndicate.index ] = 'Thu, 08 Apr 2010, 14:41:37 EDT';
  syndicate.article_summary[ syndicate.index ] = 'SAN DIEGO, Calif. (SEND2PRESS NEWSWIRE) -- Jack Tempchin, a pioneering co-architect of the Southern California Sound, a classic country-rock movement popularized in the 1970s by The Eagles, will play his Diamond platinum hits live for three nights in the United Kingdom on April 28th, 29th and 30th, 2010, Night River Records announced today.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Opera Louisiane and All That Jazz with Special Guests Bill Grimes and Willis Delony on April 8th at the Manship Theatre';
  syndicate.article_url[ syndicate.index ] = 'http://www.send2press.com/newswire/2010-04-0405-002.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mon, 05 Apr 2010, 13:12:47 EDT';
  syndicate.article_summary[ syndicate.index ] = 'BATON ROUGE, La. (SEND2PRESS NEWSWIRE) -- On Thursday, April 8, 2010 at 7:30 p.m., Opera Louisiane welcomes Spring with special guests jazz greats Bill Grimes and Willis Delony, as they join Robert Grayson and members of Opera Louisiane\'s Young Artists to present a new twist on both opera and jazz in the intimate setting of the Manship Theatre.';
  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');
