// 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 ] = 'MC Hammer $13.7 million in debt in 1996 Bankruptcy: Made $33 Million in 1991, Sold 50 Million Records';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399634.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 11, 2012';
  syndicate.article_summary[ syndicate.index ] = 'MC Hammer $13.7 million in debt in 1996 Bankruptcy: Made $33 Million in 1991, Sold 50 Million Records. Celebrities may seem to have it all, but they sure know how to blow it all too. From owning pet tigers and helicopters to buying an entire town.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Nicolas Cage owes IRS $6.6 million; $20 Million Paycheck For Gone in 60 Seconds';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399627.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 11, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Nicolas Cage owes IRS $6.6 million; $20 Million Paycheck For Gone in 60 Seconds. Celebrities may seem to have it all, but they sure know how to blow it all too. From owning pet tigers and helicopters to buying an entire town.<br />\n<br />\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Kourtney Kardashian is pregnant with second child, turns down Scott proposal: I’m happy with the way things are';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399242.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 10, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Kourtney Kardashian pregnant with second child, turns down Scott proposal: I’m happy with the way things are. Kourtney and Kim take New York\' episode 10: eality TV star Kourtney Kardashian turns down Scott Disick\'s marriage proposal.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Taylor Swift, \'Secret\' Boyfriend Eddie Redmayne Split?';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399570.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 10, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Taylor Swift has reportedly been dumped by secret boyfriend Eddie Redmayne.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Jennifer Lopez \'Picked On\' Says Singer';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399569.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 10, 2012';
  syndicate.article_summary[ syndicate.index ] = '"I try not to take it too personally, because I don\'t think they do it just to me. But as a human being it feels like that."';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Situation: Sorrentino\'s gay rumor financial implications';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399546.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 10, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Situation: Sorrentino\'s gay rumor financial implications. "Jersey Shore" star Mike \'The Situation\' Sorrentino has reportedly hit back at housemates Nicole "Snooki" Polizzi and Jenni "JWoww" Farley after allegedly spreading a gay rumor about his sexuality.<br />\n<br />\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Ke$ha\'s Makeover for March Issue of Glamour \'Surprisingly Feminine\' PHOTOS';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399302.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  9, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Ke$ha makeover photos for Glamour. Before she was Pop star Ke$ha with a dollar sign, she was Kesha Sebert. The "TiK ToK" singer, 24, posed for a surprisingly feminine photo shoot.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Hasselhoff proposal rejections: Asks Twitter fans "Where should I pop the question next?”';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399211.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  8, 2012';
  syndicate.article_summary[ syndicate.index ] = 'David Hasselhoff, tired of proposal rejections, asks Twitter fans "Where should I pop the question next?” David Hasselhoff has proposed to his girlfriend on top of Sydney Harbor Bridge in Australia and she appears to have finally said yes.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Demi Moore Checks Herself Into Famous Cirque Lodge Rehab \'Total Lockdown\'';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398973.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  8, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Troubled actress Demi Moore is still recovering after suffering a medical emergency a few weeks back, and has finally acknowledged she has a problem, and is undergoing specialized help for it. She has checked into the famous Cirque Lodge rehab in Utah.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Norah Jones Little Willies \'For the Good Times\' [Video] Released';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399109.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  7, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Norah Jones Little Willies \'For the Good Times\' [Video] Released - Bon Iver, J. Cole, The Band Perry or even Skrillex might soon be joining a prestigious list of musical talent that includes the Beatles, Carly Simon, Crosby, Stills & Nash, and Norah Jones.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Christopher Cross\' New Doctor Faith [Video]';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399108.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  7, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Bon Iver, J. Cole, The Band Perry or even Skrillex might soon be joining a prestigious list of musical talent that includes the Beatles, Carly Simon, Crosby, Stills & Nash, and Christopher Cross.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Starland Vocal Band [Video] broke up in 1981';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399107.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  7, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Bon Iver, J. Cole, The Band Perry or even Skrillex might soon be joining a prestigious list of musical talent that includes the Beatles, Carly Simon, Crosby, Stills & Nash, and the Starland Vocal Band.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Tim Tebow and Karina Smirnoff On \'Dancing With The Stars?';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212399103.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  7, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Tim Tebow and Karina Smirnoff On \'Dancing With The Stars? "Dancing With the Stars" reigning champ J.R. Martinez says Denver Broncos quarterback Tim Tebow might be  interested in performing on the dance show. ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Gisele Bundchen Poses Topless (Video) Models Lingerie, Breast Implants?';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398941.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  6, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Billionaire Bundchen, 31, appears impossibly tan and fit with her shirtless torso exposed under a jacket that drapes over almost too buxom bosoms.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Mark Sanchez, Kim Kardashian Aren\'t Actually Dating, Kim Joins Topless Sisters for \'Kardashian Kollection\'';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398499.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  6, 2012';
  syndicate.article_summary[ syndicate.index ] = '(Photos) The three Kardashian sisters are photographed with their sister lying or standing about with their breasts demurely hidden (for the most part) from view.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Kat Von D Celibacy Vow; No More Sex';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398960.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  6, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Kat Von D, star of LA Ink, has made a vow of celibacy. She also said at a preview party for \'New American Beauty Art\' show in Los Angeles that she\'s done dating for now.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'George Clooney \'Lookalike\' David Glendon Wins Trip to Oscars!';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398924.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  5, 2012';
  syndicate.article_summary[ syndicate.index ] = 'The would appear only thing facial feature Glendon and Clooney have in common, besides their Irish roots - is their nose!';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Famous May-December Couples (Photos)';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398921.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  4, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Famous May-December couples - February has always been the perfect month to talk romance. In keeping with the season, we take a look at some May-December unions of famous couples.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Victoria Beckham\'s i-D photoshoot';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398915.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  4, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Victoria Beckham i-D photoshoot - Victoria Beckham\'s body confidence has been restored thanks to the methods of celebrity trainer Tracy Anderson.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Tim Tebow in "Ordinary People" Spoof Video';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398887.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  4, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Tim Tebow "Ordinary People" spoof Video - On Wednesday, R&B singer John Legend took his musical talents to ESPN\'s First Take, where the 33-year-old belted out a Tebow-inspired version of his hit "Ordinary People," renamed "Extra-Ordinary Tebow." as ESPN analysts Skip Bayless and Stephen A. Smith looked on.  ';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Bryan Ferry and Amanda Sheppard (Photos) met in 2009 when she was dating his son';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398898.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  4, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Bryan Ferry and Amanda Sheppard (Photos) met in 2009 when she was dating his son - February has always been the perfect month to talk romance. In keeping with the season, we take a look at some May-December unions of famous couples.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Michael Douglas and Catherine Zeta-Jones (Photos) have been together since 1998 after meeting at the Deauville Film Festival';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398897.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  4, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Michael Douglas and Catherine Zeta-Jones have been together since 1998 after meeting at the Deauville Film Festival - February has always been the perfect month to talk romance. In keeping with the season, we take a look at some May-December unions of famous couples.<br />\n<br />\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Rush Limbaugh and Kathryn Rogers (Photos) met at celebrity golf tournament, dated for three years; Elton John wedding singer';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398891.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  4, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Rush Limbaugh Kathryn Rogers (Photos) met at celebrity golf tournament & dated for three years; Elton John wedding singer - February has always been the perfect month to talk romance. In keeping with the season, we take a look at some May-December unions of famous couples.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Eric Clapton and Melia Mcenery (Photos) met at charity auction in 1999, secret wedding and three daughters';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398889.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  4, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Eric Clapton and Melia Mcenery (Photos) met at charity auction in 1999, secret wedding and three daughters - February has always been the perfect month to talk romance. In keeping with the season, we take a look at some May-December unions of famous couples.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Prince William and Kate Middleton Adopt Black Cocker Spaniel Puppy, Keep Name a Mystery [Photo]';
  syndicate.article_url[ syndicate.index ] = 'http://www.postchronicle.com/news/entertainment/article_212398540.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb  3, 2012';
  syndicate.article_summary[ syndicate.index ] = 'Prince William and his wife Katherine (Kate) have a new baby boy - a little black Cocker Spaniel puppy that is the first official member of their new family.';
  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('');
  document.write('<a href="' + syndicate.article_url[syndicate.index] + '" target="_top">');
  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('<p></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>\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.postchronicle.com" target="_blank">');
//document.write('<font color="' + syndicate.title_fontcolor + '" //face="Verdana, Arial, sans-serif" size="1">');
//document.write('<b>Powered by The Post Chronicle&#153;</b></font></a>');
document.write('</b></font>\n');

