



// 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 ] = 'IDF troops brutalize Palestinian shepherd at settlers\' behest';
  syndicate.article_url[ syndicate.index ] = 'http://www.haaretz.com/hasen/spages/1156487.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 15, 2010 - 12:07:57 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/haaretz-logo_336.gif\" vspace=0  alt=\"haaretz-logo_336.gif\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \nThe response from the Israel Defense Forces spokesman came surprisingly quickly; a mere two or three hours after the query had been sent by Haaretz, the spokesman replied orally, and then in writing, that \"following the reporter\'s question and after receiving most of the facts, the chief [military] prosecutor, Col. Jana Modzagbrishvili has instructed the military police to look into the matter.\"';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israel lands in public relations nightmare';
  syndicate.article_url[ syndicate.index ] = 'http://www.ipsnews.net/news.asp?idnews=50657';

  syndicate.article_date[ syndicate.index ] = 'Mar 15, 2010 - 12:04:42 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/ips_195.gif\" vspace=0  alt=\"ips_195.gif\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \nIsraeli riot police and soldiers have, since Friday, sealed off the Al Aqsa mosque, Islam\'s third holiest shrine, restricting entry to women and Palestinian men over 50. Outside the walled Old City, where the Al Aqsa mosque is situated, and in several West Bank villages, clashes were reported between Palestinian protestors, their Israeli and international supporters, and the Israel Defence Forces (IDF), leaving at least 20 Palestinians wounded. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Obama aide calls Israeli settlement announcement an \'insult\' to the US';
  syndicate.article_url[ syndicate.index ] = 'http://www.guardian.co.uk/world/2010/mar/14/israel-palestinian-territories';

  syndicate.article_date[ syndicate.index ] = 'Mar 15, 2010 - 12:03:54 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/guardian-logo_255.gif\" vspace=0  alt=\"guardian-logo_255.gif\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \nOne of President Obama\'s most senior aides has described Israel\'s sudden announcement of plans to build 1,600 homes in occupied East Jerusalem as an \"affront\" to the US which could undermine peace efforts in the Middle East. Yesterday, David Axelrod said the move, which overshadowed a visit to Israel by the US vice-president, Joe Biden, was \"very destructive\".';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israel extends West Bank closure';
  syndicate.article_url[ syndicate.index ] = 'http://english.aljazeera.net/news/middleeast/2010/03/201031323279106954.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 14, 2010 - 1:55:46 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/al-jazeera-logo_423.gif\" vspace=0  alt=\"al-jazeera-logo_423.gif\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \nIsrael has extended a lockdown on the occupied West Bank and restricted access to the al-Aqsa mosque compound in Jerusalem as tensions continue over its plans to build new homes for Jewish settlers in mainly Arab east Jerusalem. The lockdown, which was due to end on Saturday night, was extended until Tuesday at midnight, because of a continued risk of attacks, an army spokesman said.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Children of Gaza: Scarred, trapped, vengeful';
  syndicate.article_url[ syndicate.index ] = 'http://www.independent.co.uk/news/world/middle-east/children-of-gaza-scarred-trapped-vengeful-1921047.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 14, 2010 - 1:50:15 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/indpendent_128.gif\" vspace=0  alt=\"indpendent_128.gif\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \nOmsyatte adjusts her green school uniform and climbs gingerly on to a desk at the front of the classroom. The shy 12-year-old holds up a brightly coloured picture and begins to explain to her classmates what she has drawn. It is a scene played out in schools all over the world, but for one striking difference: Omsyatte\'s picture does not illustrate a recent family holiday, or jolly school outing, but the day an Israeli military offensive killed her nine-year-old brother and destroyed her home.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Tiff or tipping point?';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018628.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 14, 2010 - 1:45:44 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/ips_194.gif\" vspace=0  alt=\"ips_194.gif\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \n\"Condemn\" is not a word that rolls trippingly off the tongue of a U.S. politician addressing anything having to do with actions, however objectionable, by Israel. So it was no surprise that close observers of U.S. Middle East policy sat up a lot straighter in their seats when Vice President Joseph Biden used the word not once, but twice, during his visit to Israel this week in reference to the Israeli Interior Ministry\'s announcement that it intends to build 1,600 new housing units for Jews in an Arab neighbourhood of East Jerusalem.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Gaza swimmers hope to make splash at Asia games';
  syndicate.article_url[ syndicate.index ] = 'http://www.jordantimes.com/?news=24834';

  syndicate.article_date[ syndicate.index ] = 'Mar 14, 2010 - 1:27:47 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/AFP-logo_166.GIF\" vspace=0  alt=\"AFP-logo_166.GIF\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \nIn the ramshackle warrens of Gaza\'s Jabaliya refugee camp, four young athletes are plotting to swim their way out of the impoverished territory. The four teenagers, who have spent their entire lives in the Gaza Strip, hope to represent Palestine in world swimming competitions in Asia later this year. While their chosen sport is swimming, they face an unusual array of hurdles. Gaza has only one swimming pool, half the regulation size and usually crowded with paddling children.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israel seals off West Bank';
  syndicate.article_url[ syndicate.index ] = 'http://english.aljazeera.net/news/middleeast/2010/03/201031215155692341.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 13, 2010 - 1:55:23 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/al-jazeera-logo_422.gif\" vspace=0  alt=\"al-jazeera-logo_422.gif\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \nIsrael has imposed a full closure of the occupied Palestinian territory of West Bank, announcing that no one will be allowed in or out for 48 hours. Ehud Barak, the Israeli defence minister, made the move amid reports of possible protests by Palestinians around the al-Aqsa mosque in Jerusalem after Friday prayers.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Child\'s testimony incriminates soldiers';
  syndicate.article_url[ syndicate.index ] = 'http://www.ynetnews.com/Ext/Comp/ArticleLayout/CdaArticlePrintPreview/1,2506,L-3861676,00.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 13, 2010 - 1:50:22 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/ynet_135.gif\" vspace=0  alt=\"ynet_135.gif\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \n\"I thought they would kill me. I became very scared and wet my pants. I could not shout or say anything because I was too afraid… He pushed me towards the small corridor in front of the bathrooms. He began shouting at me and speaking a language I did not understand… There were two bags in front of me. I grabbed the first one as he stood one and a half meters away. I opened the bag as he pointed his weapon directly at me.\"';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'UN humanitarian chief criticises Israel over Gaza';
  syndicate.article_url[ syndicate.index ] = 'http://news.bbc.co.uk/2/hi/middle_east/8563569.stm';

  syndicate.article_date[ syndicate.index ] = 'Mar 13, 2010 - 1:45:21 AM';
  syndicate.article_summary[ syndicate.index ] = '         \n\n      \n       <table class=\"tablefix\" border=\"0\" cellspacing=\"15\" cellpadding=\"0\" align=\"right\" width=\"100\">\n         <tr><td>\n\n         \n         \n\n         <img src=\"http://imeu.net/engine2/uploads/2/bbc-logo_184.gif\" vspace=0  alt=\"bbc-logo_184.gif\" width=\"100\" height=\"100\"  border=1 />\n            <div class=\"image_caption\"></div>\n\n      	</td></tr>\n      </table>\n\n  \n      \n\n   \n\n\n   \nThe UN\'s top humanitarian official, John Holmes, has criticised Israel for linking the 2006 capture of an Israeli soldier to its blockade of Gaza. Mr Holmes also said Israeli actions in East Jerusalem and the West Bank, including expanding settlements, was counter to the peace process. He urged a relaxation of the blockade, warning Gaza was \"de-developing\". It came as Israel ordered the army to seal off the West Bank for 48 hours until midnight on Saturday.';
  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');
}

