



// 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 vs. democracy and freedom of speech';
  syndicate.article_url[ syndicate.index ] = 'http://www.haaretz.com/hasen/spages/1157287.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 18, 2010 - 11:49:14 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_339.gif\" vspace=0  alt=\"haaretz-logo_339.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 Israel Defense Forces decision to declare the Palestinian villages Bil\'in and Na\'alin closed military zones on Fridays for the next six months is a serious anti-democratic move. The order issued by the GOC Central Command implementing this restriction is an act against the freedom to demonstrate.  During the years of demonstrations in the two villages, 23 demonstrators have been killed, half of them minors; no Israeli soldiers have been killed.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israeli raids targeting children';
  syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article11140.shtml';

  syndicate.article_date[ syndicate.index ] = 'Mar 18, 2010 - 11:22:10 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/electronic-intifada_46.jpg\" vspace=0  alt=\"electronic-intifada_46.jpg\" 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   \nClashes took place in several areas of occupied East Jerusalem, including Shuafat refugee camp, Wadi Joz and Silwan. This comes on the heels of accelerated attacks by Israeli forces and Jewish settlers inside Silwan in particular, directed towards the community\'s youngest and most vulnerable population. Since January, at least 33 children from the area have been arrested, detained and interrogated by Israeli forces as home demolitions and settler takeovers continue apace.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '15 Palestinians deported from Jerusalem for 15 days';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018654.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 18, 2010 - 11:07:50 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/imemc-logo_88.gif\" vspace=0  alt=\"imemc-logo_88.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 District Court in Jerusalem decided to expel 15 Palestinian natives of East Jerusalem out of the city of a period of 15 days, after they were detained by the police during the recent clashes.  The 15 Palestinians will not be allowed in the Old city and in the Al Aqsa Mosque area for 15 days.  Besides being illegally forced out of their city for fifteen days, the court ordered them to pay 5000 NIS each.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'FAQ on Current Jerusalem Unrest';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0017612.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 18, 2010 - 2:35:09 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/imeu-logo_114.gif\" vspace=0  alt=\"imeu-logo_114.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 current tension comes in the context of illegal Israeli settlement expansion in occupied East Jerusalem and the recent expulsion of two Palestinian families from their long-time homes in the Sheikh Jarrah neighborhood of the city. Additionally, the failure of the Obama administration to oblige Israel to accept a settlement freeze and heavy Israeli and American pressure on the PA to delay further action on the Goldstone report has created a climate of ill will that makes such confrontations more likely.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Jerusalem issue \'a red line\', says Jordan\'s king';
  syndicate.article_url[ syndicate.index ] = 'http://www.guardian.co.uk/world/2010/mar/17/king-abdullah-jordan-jerusalem-israel';

  syndicate.article_date[ syndicate.index ] = 'Mar 18, 2010 - 1:50:59 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_256.gif\" vspace=0  alt=\"guardian-logo_256.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   \nKing Abdullah of Jordan added to pressure on Israel over its settlements policy today, demanding the international community take firm action over what he called the \"red line\" of Jerusalem. Abdullah, a close ally of the US and Britain, demanded \"firm, swift, direct and effective action to stop Israel\'s provocative measures in Jerusalem that seek to change its identity and threaten holy sites\".';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Palestinians must not stay on the sidelines, official says';
  syndicate.article_url[ syndicate.index ] = 'http://www.latimes.com/news/nationworld/world/la-fg-palestinians-qa18-2010mar18,0,3695396.story';

  syndicate.article_date[ syndicate.index ] = 'Mar 18, 2010 - 1:20:09 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/la-times-logo_39.gif\" vspace=0  alt=\"la-times-logo_39.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   \nAlmost overshadowed in the recent days of diplomatic tussle between the U.S. and Israel is the Palestinian Authority, whose leaders have been watching with concern - and perhaps a little amusement. It\'s not often Palestinians get to see the U.S. and Israel clash so publicly. On Wednesday, Palestinian Authority President Mahmoud Abbas said his government would not participate in U.S.-brokered indirect peace talks unless Israel halts all housing construction in East Jerusalem -- the issue that has driven a wedge between the U.S. and Israel.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Tensions persist in the West Bank';
  syndicate.article_url[ syndicate.index ] = 'http://english.aljazeera.net/news/middleeast/2010/03/201031761316904572.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 17, 2010 - 12:40:56 PM';
  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_424.gif\" vspace=0  alt=\"al-jazeera-logo_424.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   \nClashes between Palestinian protesters and Israeli police have continued in the occupied West Bank despite the reopening of access to and from the area.  Ehud Barak, the Israeli defence minister, ordered the closure to be lifted on Wednesday, five days after imposing it citing security reasons.  Officials also reopened the al-Aqsa mosque compound in East Jerusalem, where dozens of people were injured on Tuesday as Palestinian demonstrators clashed with Israeli security forces.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Knesset votes in favor of controversial bill';
  syndicate.article_url[ syndicate.index ] = 'http://www.ynetnews.com/Ext/Comp/ArticleLayout/CdaArticlePrintPreview/1,2506,L-3863825,00.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 17, 2010 - 9:58:48 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-news_10.gif\" vspace=0  alt=\"ynet-news_10.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   \nFollowing a boisterous discussion in the Knesset plenum, 15 Knesset members supported the bill, while eight voted against it.  According to the bill, the finance minister will be authorized to decrease the budget for bodies receiving government funding if they are found responsible for activities denying the existence of Israel as a Jewish and democratic state.  MK Ahmad Tibi expressed his dismay with the law. \"This is another black day for the Knesset,\" he said.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Rachel Corrie\'s memory, Israel\'s image';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018645.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 17, 2010 - 2:15:51 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/the-nation_25.gif\" vspace=0  alt=\"the-nation_25.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   \nSeven years ago on March 16th, Rachel Corrie was crushed to death by a Caterpillar D9R Israeli bulldozer while nonviolently protesting the demolition of Palestinian homes in Rafah, Gaza Strip, along with other members of the International Solidarity Movement (ISM). Now her parents, sister and brother are suing the State of Israel and the defense minister, claiming wrongful death. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israeli raids target children';
  syndicate.article_url[ syndicate.index ] = 'http://www.ipsnews.net/news.asp?idnews=50680';

  syndicate.article_date[ syndicate.index ] = 'Mar 17, 2010 - 12:09:08 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_197.gif\" vspace=0  alt=\"ips_197.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   \nThree thousand heavily armed Israeli security service forces locked down large parts of the Old City of Jerusalem on Tuesday, as battalions of police fired rounds of tear gas and rubber-coated steel bullets at Palestinian protesters in the occupied eastern part of the city. Nearly 40 Palestinians were wounded and treated at nearby hospitals, as 25 were arrested during intense clashes.';
  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');
}

