



// 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 ] = 'SKY INSURANCE OFFERS MEMBERS 20% DISCOUNT ON CAR INSURANCE!';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/SKY_INSURANCE_OFFERS_MEMBERS_20_DISCOUNT_ON_CAR_INSURANCE.shtml';
  syndicate.article_date[ syndicate.index ] = 'Oct 3, 2008 - 7:03:13 AM';
  syndicate.article_summary[ syndicate.index ] = 'Toyota Owners\' Club have been in discussion with Sky Insurance regarding an insurance scheme for members. Sky Insurance have offered 20% off car insurance for club members!';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'TOYOTA UNVEILS THE NEW GENERATION LAND CRUISER';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/TOYOTA_UNVEILS_THE_NEW_GENERATION_LAND_CRUISER.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 14, 2009 - 3:59:09 AM';
  syndicate.article_summary[ syndicate.index ] = '***image2**With a heritage reaching back almost 60 years and with five million customers in 176 countries around the world, the Toyota Land Cruiser has become an icon of the 4WD market, its name synonymous with Toyota&#8217;s core values of quality, durability and reliability.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'TOYOTA EXPANDS ENGINE LINE-UP FOR NEW AVENSIS';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/TOYOTA_EXPANDS_ENGINE_LINE-UP_FOR_NEW_AVENSIS.shtml';
  syndicate.article_date[ syndicate.index ] = 'Aug 5, 2009 - 11:17:40 AM';
  syndicate.article_summary[ syndicate.index ] = '<'+'!-- templateDebugMode: start template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\n         \n\n      <table border=\"0\" cellspacing=\"0\" cellpadding=3 align=\"left\" width=\"150\">\n         <tr><td>\n         \n         \n\n         <img src=\"http://www.toyotaownersclub.com/news/uploads/1/58325-a-toy__1_thumb.jpg\" border=\"1\" alt=\"58325-a-toy__1.jpg\" width=\"150\"  height=\"107\"><br clear=\"all\">\n            <span class=\"image_caption\"></span>\n\n      		</td></tr>\n      </table>\n\n         \n      \n\n\n\n      \n\n   \n\n\n\n   \n<'+'!-- /templateDebugMode: end template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\nToyota has expanded its engine line-up for new Avensis, introducing two new units that further strengthen the fuel efficiency and emissions performance achieved across the range. As well as adding the 1.6 Valvematic petrol and 2.2 D-CAT 150 diesel, it has also made the popular 1.8 Valvematic engine more widely available, with both six-speed manual and Multidrive S transmissions.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'YARIS TR: NOW WITH ADDED ALLOY-APPEAL';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/YARIS_TR_NOW_WITH_ADDED_ALLOY-APPEAL.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jul 9, 2009 - 11:16:19 AM';
  syndicate.article_summary[ syndicate.index ] = 'Toyota has made some seasonal nips and tucks to its Yaris range to make it an even more appealing prospect for customers.<br/>\n<br/>\nNew to the line-up is a revised TR feature grade, which now comes with smart 15-inch eight-spoke alloys as standard, just like the range-topping T Spirit models.<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'CLEVERER THAN EVER: INTRODUCING THE NEW TOYOTA iQ3';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/CLEVERER_THAN_EVER_INTRODUCING_THE_NEW_TOYOTA_iQ3.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jun 18, 2009 - 11:13:45 AM';
  syndicate.article_summary[ syndicate.index ] = '<'+'!-- templateDebugMode: start template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\n         \n\n      <table border=\"0\" cellspacing=\"0\" cellpadding=3 align=\"left\" width=\"150\">\n         <tr><td>\n         \n         \n\n         <img src=\"http://www.toyotaownersclub.com/news/uploads/1/57978-d-toy__1_thumb.jpg\" border=\"1\" alt=\"57978-d-toy__1.jpg\" width=\"150\"  height=\"107\"><br clear=\"all\">\n            <span class=\"image_caption\"></span>\n\n      		</td></tr>\n      </table>\n\n         \n      \n\n\n\n      \n\n   \n\n\n\n   \n<'+'!-- /templateDebugMode: end template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\nToyota&#8217;s iQ range is extended for the first time since launch with the introduction to the line-up of a 1.33-litre engine. The highly efficient lightweight unit, already successfully deployed in Auris, Yaris and Urban Cruiser is offered exclusively in the new iQ3 model.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'TOYOTA LAND CRUISER V8 WINS SECURITY AWARD FOR SECOND YEAR';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/TOYOTA_LAND_CRUISER_V8_WINS_SECURITY_AWARD_FOR_SECOND_YEAR.shtml';
  syndicate.article_date[ syndicate.index ] = 'Jun 17, 2009 - 11:12:39 AM';
  syndicate.article_summary[ syndicate.index ] = 'The Toyota Land Cruiser V8 has been voted number one for the second year running in the large 4x4 category at the British Insurance Vehicle Security Awards. Designed to raise consumer awareness of what is best in vehicle security, the awards took place today at the Motor Insurance Repair Research Centre in Thatcham, Berkshire.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2009 TOYOTA HIACE: COOLER THAN EVER';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/2009_TOYOTA_HIACE_COOLER_THAN_EVER.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 28, 2009 - 11:09:28 AM';
  syndicate.article_summary[ syndicate.index ] = '<'+'!-- templateDebugMode: start template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\n         \n\n      <table border=\"0\" cellspacing=\"0\" cellpadding=3 align=\"left\" width=\"150\">\n         <tr><td>\n         \n         \n\n         <img src=\"http://www.toyotaownersclub.com/news/uploads/1/57783toy__1_thumb.jpg\" border=\"1\" alt=\"57783toy__1.jpg\" width=\"150\"  height=\"107\"><br clear=\"all\">\n            <span class=\"image_caption\"></span>\n\n      		</td></tr>\n      </table>\n\n         \n      \n\n\n\n      \n\n   \n\n\n\n   \n<'+'!-- /templateDebugMode: end template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\nThe Toyota Hiace is a cool prospect for 2009, newly equipped as standard with air conditioning. The upgrade is one of a range of new features for the new model year, introduced to improve comfort on board, along with new-design seats with a smart-but-tough cloth upholstery and fabric covered door panels with an integrated armrest and panel for the power window controls.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'NEW PRIUS HARVESTS THE REWARDS OF PLANT-BASED PLASTICS';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/NEW_PRIUS_HARVESTS_THE_REWARDS_OF_PLANT-BASED_PLASTICS.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 26, 2009 - 11:08:16 AM';
  syndicate.article_summary[ syndicate.index ] = 'When it comes to environmental performance, new Prius&#8217;s achievements are not just about the fuel economy and clean running offered by its Toyota Hybrid Drive full hybrid powertrain. Toyota&#8217;s determination to reduce emissions and promote sustainability prompted it to research and develop the world&#8217;s first injection moulded material to be derived from plant matter.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2009 RAV4 WITH TOYOTA OPTIMAL DRIVE';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/2009_RAV4_WITH_TOYOTA_OPTIMAL_DRIVE.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 19, 2009 - 11:26:13 AM';
  syndicate.article_summary[ syndicate.index ] = 'Fifteen years ago the original RAV4 created a new market segment for compact, fun-to-drive SUVs. Now it is ready to raise the bar higher with improved performance, lower emissions and even better fuel economy. Thanks to new and revised powertrains with Toyota Optimal Drive technology, the 2009 RAV4 becomes an even stronger proposition for owners looking for quality, driving pleasure and keen cost-of-ownership performance.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'LITTLE JOINS LARGE IN TOYOTA&#8217;S CRUISER FLEET';
  syndicate.article_url[ syndicate.index ] = 'http://www.toyotaownersclub.com/news/publish/LITTLE_JOINS_LARGE_IN_TOYOTA_S_CRUISER_FLEET.shtml';
  syndicate.article_date[ syndicate.index ] = 'May 15, 2009 - 10:19:16 AM';
  syndicate.article_summary[ syndicate.index ] = '<'+'!-- templateDebugMode: start template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\n         \n\n      <table border=\"0\" cellspacing=\"0\" cellpadding=3 align=\"left\" width=\"150\">\n         <tr><td>\n         \n         \n\n         <img src=\"http://www.toyotaownersclub.com/news/uploads/1/57670-c-toy__1_thumb.jpg\" border=\"1\" alt=\"57670-c-toy__1.jpg\" width=\"150\"  height=\"107\"><br clear=\"all\">\n            <span class=\"image_caption\"></span>\n\n      		</td></tr>\n      </table>\n\n         \n      \n\n\n\n      \n\n   \n\n\n\n   \n<'+'!-- /templateDebugMode: end template: common/embeddedMedia.html - templateCell: globalDefault.embeddedMedia --'+'>\nIn terms of scale they are poles apart, but at heart the new Urban Cruiser is every bit a true-blooded Toyota as its mighty Land Cruiser stablemate.<br/>\n<br/>\nOn sale in the UK today the new Urban Cruiser takes the chunky, go-anywhere styling of the Land Cruiser and gives it a contemporary twist, downsizing to suit life on modern city streets. And to meet the demands of today&#8217;s customers, it is offered with a choice of both 2WD and AWD versions.<br/>\n';
  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.lexusownersclub.com" target="_blank">');
//document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" //size="1">');
//document.write('<p><b>Lexus Owners Club (ICOCN)</b></font></a>');
//document.write('<br><br></b></font></td></tr>\n');
