



// 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 ] = 'Beware the iron wall, the coming war';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018420.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 9, 2010 - 2:35:31 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/palestine-chronicle_76.jpg\" vspace=0  alt=\"palestine-chronicle_76.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   \nWill Gaza or Lebanon be attacked first? Israel is sending mixed messages, and deliberately so. Hamas, Hizbullah and their supporters understand well the Israeli tactic and must be preparing for the various possibilities. They know Israel cannot live without its iron walls, and are determined to prevent any more from being built at their expense.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'If Israel lets ex-pats vote, what\'s to stop enfranchising all Jews?';
  syndicate.article_url[ syndicate.index ] = 'http://www.haaretz.com/hasen/spages/1148527.html';

  syndicate.article_date[ syndicate.index ] = 'Feb 9, 2010 - 12:12:45 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_315.gif\" vspace=0  alt=\"haaretz-logo_315.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 won\'t hear about a Palestinian right of return, and deprives all rights to every Palestinian who goes abroad, after his or her family lived here for generations. But it is opening its gates to people who haven\'t lived here for decades. Now they will vote with their acquired American accent. Benjamin Netanyahu knows a thing or two about them personally. Most of his uncles and cousins on his father\'s side left Israel or were born to Israeli expatriates. Exemplary patriots. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Building back in Gaza - with mud bricks';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018415.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 9, 2010 - 12:05: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/irin-logo_12_20.gif\" vspace=0  alt=\"irin-logo_12_20.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   \nHassan al-Err, aged 67, and his seven-member family are moving into a mud house built by the UN agency for Palestinian refugees (UNRWA) in the Gaza Strip, because other building materials are not available. The two-bedroom house in the Ezbet Abed Rabbo neighbourhood of Jabaliya town, north of Gaza City, is an improvement on the tent in which they had been living - next to the rubble of their former home.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israeli court releases pro-Palestinian foreigners';
  syndicate.article_url[ syndicate.index ] = 'http://www.alertnet.org/thenews/newsdesk/LDE6171A4.htm';

  syndicate.article_date[ syndicate.index ] = 'Feb 9, 2010 - 12:02:27 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/reuters-logo_119.gif\" vspace=0  alt=\"reuters-logo_119.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\'s Supreme Court ordered two pro-Palestinian foreign activists released on bail on Monday, saying Israeli immigration officers overstepped their bounds by detaining them in the West Bank. Their lawyer described their arrest as part of a campaign by Israeli authorities to choke off weekly demonstrations by Palestinians, left-wing Israelis and foreign activists against Israel\'s West Bank barrier as peace efforts remain at a stalemate.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'The height of Israeli intransigence';
  syndicate.article_url[ syndicate.index ] = 'http://www.thenational.ae/apps/pbcs.dll/article?AID=/20100209/FOREIGN/702089922/1011';

  syndicate.article_date[ syndicate.index ] = 'Feb 9, 2010 - 12:01:39 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-national_128.jpg\" vspace=0  alt=\"the-national_128.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   \nJerusalem\'s mayor threatened last week to demolish 200 homes in Palestinian neighbourhoods of the city in an act even he conceded would probably bring long-simmering tensions over housing in East Jerusalem to a boil. His uncompromising stance is the latest stage in a protracted legal battle over a single building towering above the jumble of modest homes of Silwan, a deprived and overcrowded Palestinian community lying just outside the Old City walls, in the shadow of the silver-topped al Aqsa mosque.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israeli forces raid West Bank camp';
  syndicate.article_url[ syndicate.index ] = 'http://english.aljazeera.net/news/middleeast/2010/02/201028105421154932.html';

  syndicate.article_date[ syndicate.index ] = 'Feb 8, 2010 - 11:09:52 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_407.gif\" vspace=0  alt=\"al-jazeera-logo_407.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 forces have raided a Palestinian refugee camp in the West Bank, arresting at least 40 people.  The arrests on Monday at the Shuafat camp in annexed east Jerusalem were part of an operation that Israeli police said was aimed at \"putting order\" in the area.  Al Jazeera\'s Elias Karram said: \"The raid was divided into two parts: the first of which ended on Monday when Israeli army and intelligence forces invaded the came and detained around 40 poeple based on their political affiliation. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Gaza schoolchildren struggling to learn';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018413.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 8, 2010 - 2:33:34 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/irin-logo_12_19.gif\" vspace=0  alt=\"irin-logo_12_19.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   \nNearly half a million children in Gaza returned to overcrowded and dilapidated schools on 1 February, many attending in a shift system, with missing textbooks, stationery or uniforms. Israel\'s 23-day military offensive on Gaza which ended on 18 January 2009 had \"devastating consequences for the education system\", according to a report by the UN Office for the Coordination of Humanitarian Affairs (OCHA).';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Palestinians give into U.S. pressure for indirect Mideast talks';
  syndicate.article_url[ syndicate.index ] = 'http://www.haaretz.com/hasen/spages/1148274.html';

  syndicate.article_date[ syndicate.index ] = 'Feb 8, 2010 - 12:10:35 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_313.gif\" vspace=0  alt=\"haaretz-logo_313.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 heavy international pressure, Palestinian Authority President Mahmoud Abbas agreed to the U.S. proposal to hold talks with Israel - in the format of indirect negotiations conducted by U.S. special envoy to the Middle East George Mitchell. Abbas has agreed in principle to the U.S. proposal for indirect talks and intends to ask for a number of clarifications with the U.S. administration and will consult with Arab leaders prior to giving Washington his final response. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'HRW: Gaza inquiry fails war victims';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018407.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 8, 2010 - 12:03:56 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/Maan-new_18.jpg\" vspace=0  alt=\"Maan-new_18.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   \nIsrael has failed to demonstrate that it will conduct thorough and impartial investigations into alleged laws-of-war violations by its forces during last year\'s Gaza conflict, Human Rights Watch said on Sunday. An independent investigation is needed if perpetrators of abuse, including senior military and political officials who set policies that violated the laws of war, are to be held accountable, the New York-based group said.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'For sale: Gaza zoo where the zebras were not all they seemed';
  syndicate.article_url[ syndicate.index ] = 'http://www.independent.co.uk/news/world/middle-east/for-sale-gaza-zoo-where-the-zebras-were-not-all-they-seemed-1892271.html';

  syndicate.article_date[ syndicate.index ] = 'Feb 8, 2010 - 12:03:40 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_115.gif\" vspace=0  alt=\"indpendent_115.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   \nAn emaciated lion, a hyperactive camel, and the only \"zebra\" in Palestine - this unusual assortment of animals could soon be yours. Mahra Land, a ramshackle zoo in Gaza, is now on the market. The zoo made headlines last year when its owners engineered, not with genetics, but black paint, a pair of \"zebras\" out of two donkeys. TV reports showed deligh';
  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');
}

