



// 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 ] = 'More on Paying the Price';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/More_on_Paying_the_Price.php';
  syndicate.article_date[ syndicate.index ] = 'January 9th, 2010';
  syndicate.article_summary[ syndicate.index ] = 'We have a great discussion going on yesterday\'s post about paying the price. On the new post I have some more thoughts on this.<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Have You Been Made Fun Of?';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/Have_You_Been_Made_Fun_Of.php';
  syndicate.article_date[ syndicate.index ] = 'January 6th, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Has anyone made fun of you this week?';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Share Your Thoughts';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/Share_Your_Thoughts.php';
  syndicate.article_date[ syndicate.index ] = 'January 5th, 2010';
  syndicate.article_summary[ syndicate.index ] = 'In today\'s post on the Success Blog we\'re looking at how we partner with new distributors, and more importantly, how to get that point across during the recruiting process.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '7 Laws of MLM Success';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/7_Laws_of_MLM_Success.php';
  syndicate.article_date[ syndicate.index ] = 'January 2nd, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Check out today\'s post on the Success Blog if you haven\'t already. I share 7 laws of success in our profession. I\'d love to see your thoughts on this.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'You\'re Going to Cringe!';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/You_re_going_to_Cringe.php';
  syndicate.article_date[ syndicate.index ] = 'January 1st, 2010';
  syndicate.article_summary[ syndicate.index ] = 'I get a lot of flack for being tough on the people in our profession. I\'m frequently ranting about the \"MLM Morons\" spamming people on the social media sites, and doing other things that reflect badly on us all. Want to know why?';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Finding Your Leaders';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/Finding_Your_Leaders.php';
  syndicate.article_date[ syndicate.index ] = 'December 31st, 2009';
  syndicate.article_summary[ syndicate.index ] = 'If you haven\'t see the latest post on the Success Blog, check it out. I deal with the issue of working with people before they make a decision to get serious.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Are You Waiting for Leaders?';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/Are_You_Waiting_for_Leaders.php';
  syndicate.article_date[ syndicate.index ] = 'December 29th, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Have you been by the Success Blog today? If not, stop by and check out the latest post on what you do while you\'re waiting for leaders to develop on your team.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Are You Using this Principle?';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/Are_You_Using_this_Principle.php';
  syndicate.article_date[ syndicate.index ] = 'December 28th, 2009';
  syndicate.article_summary[ syndicate.index ] = 'Dan asked an interesting question on the blog. He asked about working with people that don\'t seem to appreciate it.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Now it Gets Interesting...';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/Now_it_Gets_Interesting.php';
  syndicate.article_date[ syndicate.index ] = 'December 23rd, 2009';
  syndicate.article_summary[ syndicate.index ] = 'I hope you\'ve been following the series on the Success Blog on why things don\'t seem to work for people. Over the last few days we\'ve eliminated a lot of possibilities. Now today I\'ve posted the one no one wants to hear...';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Is It True?';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/Is_It_True.php';
  syndicate.article_date[ syndicate.index ] = 'December 19th, 2009';
  syndicate.article_summary[ syndicate.index ] = 'So Rachel raises an interesting question on the blog. She wondered what about the people that do everything we teach them, but they still don\'t have success?';
  syndicate.index++;




// Set defaults for arguments if user hasn't set them
if (syndicate.title_fontface == null)    { syndicate.title_fontface = ''; }
if (syndicate.title_fontsize == null)    { syndicate.title_fontsize = ''; }
if (syndicate.title_fontcolor == null)   { syndicate.title_fontcolor = ''; }
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 = ''; }
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 = ''; }
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');
}
