

// 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;

syndicate.index = -1;

syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Big Wheel (Allegedly) Keeps on Turnin';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=367';
syndicate.article_date[ syndicate.index ] = '2010-07-11 02:00:00';
syndicate.article_summary[ syndicate.index ] = 'Its (low-traffic, low-readership) Sunday again, which can only mean two things. Time for Sunday school and time for yet another demi-mediocre Sunday-style Perplexing Times article.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='You Cant Park Your Frog Here';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=351';
syndicate.article_date[ syndicate.index ] = '2010-06-19 01:00:00';
syndicate.article_summary[ syndicate.index ] = 'Hey, listen, I like your frog-mobile, I really do, but rules are rules and even though I dont know what they are Im pretty sure I can point and mutter this quietly: You cant park your frog here.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Problem Found, Ya Got No Motor';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=341';
syndicate.article_date[ syndicate.index ] = '2010-06-15 03:00:00';
syndicate.article_summary[ syndicate.index ] = 'Okay this is wierd. Im no mechanic or anything but when I heard that this Subaru couldnt do more than about 10 mph I had to have a look under the hood. What I found was alarming, the darn thing had only bicycle pedals chained into the tranny and no motor.
';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Navys Trojan Horse Program Cancelled';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=340';
syndicate.article_date[ syndicate.index ] = '2010-06-14 03:00:00';
syndicate.article_summary[ syndicate.index ] = 'As Ive come to understand it the US Navy has been working for the past year in total secrecy to develop an aquatic trojan horse program to infiltrate foreign coasts with the greatest of sneakiness. Now, due to unforeseeable drawbacks and cutbacks it has sadly been abandoned.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Our Sister Site – TheBabyDictionary.com – Is Launched';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1392';
syndicate.article_date[ syndicate.index ] = '2010-05-12 02:00:00';
syndicate.article_summary[ syndicate.index ] = 'Our creative team has been working on it for years and were embarrassed to say its taken this long, but TheBabyDictionary.com has finally launched, and the early reviews say its pretty darn great and plenty of fun.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Pancake Day Cometh but Once a Year';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1391';
syndicate.article_date[ syndicate.index ] = '2009-02-22 08:00:00';
syndicate.article_summary[ syndicate.index ] = 'Holidays aside, were not much for religious pilgrimages.* Sure, youve got your anticipation at Christmas, your bunny hunting at Easter and the unforgettable costumes of Halloween, but theres one day too often forgotten from the calendar, and thats Pancake Day. And theres no better way to celebrate it than with a free short-stack of those golden flappy jackies from IHOP.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='PhotoWorks Good for Everyday, Any Day, Even Valentines Day';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1390';
syndicate.article_date[ syndicate.index ] = '2009-02-11 07:00:00';
syndicate.article_summary[ syndicate.index ] = 'Were already pretty much raving fans of PhotoWorks.com, and not just because theyve got the stalwart professionalism of American Greetings backing them up. When we wanted prints for Christmas, we turned to them, and again when we wanted an oversize print the local shops couldnt make. But there are a bunch of reasons we use PhotoWorks, and why we suggest them to you.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Visit the Great State of Montana With Kids';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1389';
syndicate.article_date[ syndicate.index ] = '2009-02-06 02:00:00';
syndicate.article_summary[ syndicate.index ] = 'If youve ever even dreamed of the Big Sky state, this summer may be as ideal a time as any to pay a visit. Travel costs are up, the economy is down, and many of the great American relics you learned about in grade school still exist, but theyre dying off by the year. Here is a summary of only our best and highest rated Montana review articles.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Montana Reviews Continue on the Best Montana Site';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1387';
syndicate.article_date[ syndicate.index ] = '2009-02-05 02:00:00';
syndicate.article_summary[ syndicate.index ] = 'Weve been running Montana articles with painfully few interruptions since we first headed east to the Old West last summer and we know its tiring for those of our readers not looking explicitly for that sort of info, but theres good news, one might assume. Were closing out the Montana stories, more or less, effectively now.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Golf May Be Miniature, Fun Still Full Size';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1386';
syndicate.article_date[ syndicate.index ] = '2009-02-04 02:00:00';
syndicate.article_summary[ syndicate.index ] = 'As a man of miniature stature myself, Im always on the lookout for new things more me-sized than medium. Mostly my size-based pursuits lead to nothing (thanks a lot, jumbo shrimp!) but there is one thing sized to pint thats true to its name, and it is miniature golf. I discovered it, and I immediately learned to love it.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Butte Visitor Center Must-First-Stop in Historic Mining Town';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1385';
syndicate.article_date[ syndicate.index ] = '2009-02-03 03:00:00';
syndicate.article_summary[ syndicate.index ] = 'As an ever-traveling tourist, its easy to give up the easy "gimme" destinations in any given town. If youre in San Francisco, you need to check out the Golden Gate Bridge, or if youre in Shanghai you need to check out the Great Panda, but when youre in any town, you really should stop in at the local visitors center, and Butte Montana has a great one.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Yellowstone County Museum Coolest Free Museum in Area';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1384';
syndicate.article_date[ syndicate.index ] = '2009-02-02 03:00:00';
syndicate.article_summary[ syndicate.index ] = 'Most free museums feel like junk stores without price tags, but this place, as small and four miles away from where you probably want to be, wasnt just worth the trip, it was straight up awesome. Not only did we find a bunch of great cowboy stuff to buy our brother for his upcoming birthday at fine prices, but we also saw neat stuff, had great fun, and all on free admission.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Fort Missoula Museum; Big on History, Small on Boring';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1383';
syndicate.article_date[ syndicate.index ] = '2009-02-01 02:00:00';
syndicate.article_summary[ syndicate.index ] = 'If you’re looking for something between cheap and free to do with your kids, a real standout is the Historical Museum at Fort Missoula. The museum is very cheap, but the historic collection around it is free and it’s got more fun stuff to play on than my parents could even endure.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Missoula Children’s Museum Is Fun Afternoon Romp';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1382';
syndicate.article_date[ syndicate.index ] = '2009-01-28 04:00:00';
syndicate.article_summary[ syndicate.index ] = 'Since before time even began to exist* there has been this ubiquitous thing called The Childrens Museum. These are often underfunded, though never underappreciated, and frequently enjoyed by all in attendance. The childrens museum in Missoula is one such example, especially considering how hard they work to make their place so much fun.';


syndicate.index++;
syndicate.article_title[ syndicate.index ] ='Western Heritage Museum Makes for Mad Day of Great Fun';
syndicate.article_url[ syndicate.index ] = 'http://www.perplexingtimes.com/article.php?sid=1380';
syndicate.article_date[ syndicate.index ] = '2009-01-11 02:00:00';
syndicate.article_summary[ syndicate.index ] = 'Weve made no qualms about the great times weve had in Billings, Montana, and no review series would be complete without a write-up of one of the best places in the area, the Western Heritage Museum. Sure, its historic, and sure, its fun and interesting, but more than any of that, did you know its also Smithsonian accredited? Well its that, and affordable too!';


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

// 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="#" target="_blank">');
//document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
//document.write('<b>Powered by SITENAME.com</b></font></a>');
//document.write('<br><br></b></font></td></tr>');

