



// 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 ] = 'It Is So Rare';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/It_Is_So_Rare.php';
  syndicate.article_date[ syndicate.index ] = 'August 3rd, 2010';
  syndicate.article_summary[ syndicate.index ] = 'There is an event coming up that may be the most important one you have ever participated in during your entire career. An event that can transform your business and take five years off your learning curve. An event so rare, they almost never come around...<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Are You Having a Freakin, Fabulous Monday?';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/Are_You_Having_a_Freakin_Fabulous_Monday.php';
  syndicate.article_date[ syndicate.index ] = 'June 7th, 2010';
  syndicate.article_summary[ syndicate.index ] = 'I had a great, relaxing weekend. Now it\'s Monday and I woke up at 7:30, eager to get to work. That\'s because I love what I do. As I went to the gym, other people in my building were headed out to work, and they didn\'t look to have that same passion. In fact, most people are in jobs they don\'t like or actually hate. What a crime...';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Learn More to Earn More';
  syndicate.article_url[ syndicate.index ] = 'http://www.networkmarketingtimes.com/artman/publish/MLM_Leadership_Report_-_past_issues_12/Learn_More_to_Earn_More.php';
  syndicate.article_date[ syndicate.index ] = 'May 20th, 2010';
  syndicate.article_summary[ syndicate.index ] = 'We have many new subscribers, so this is just a quick reminder on a resource that can help you and your people duplicate better. It\'s a free six-week e-course of developing M.L.M. Mastery.';
  syndicate.index++;  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++;




// 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');
}
