



// 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 ] = '2010 Palestine peace talks - A Stallone remake?';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0019711.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 5, 2010 - 2:00:29 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_98.jpg\" vspace=0  alt=\"palestine-chronicle_98.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   \nA new round of peace talks between Palestinians and Israelis has just begun in the United States. The summer was one of kite-flying, on the one hand in the form of indirect contacts between the two sides so as not to further provoke Palestinians sick of the Israeli Occupation and the incompetence of the Palestinian Authority.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2 dead after Israel bombs southern Gaza';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0019712.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 5, 2010 - 1:55:12 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_34_1_16.jpg\" vspace=0  alt=\"Maan-new_34_1_16.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   \nGaza medics have retrieved the body of a second Palestinian killed when Israel\'s air force struck the southern Strip overnight, officials said Sunday morning. Gaza medical services spokesman Adham Abu Silmiyya said the body of 19-year-old Khalil Muhammad Al-Hattab from Al-Bureij refugee camp was found in the tunnel area in Rafah. One person is still missing, he added.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Middle East peace process: High-level talks but with low expectations';
  syndicate.article_url[ syndicate.index ] = 'http://www.independent.co.uk/news/world/middle-east/middle-east-peace-process-highlevel-talks-but-with-low-expectations-2070841.html';

  syndicate.article_date[ syndicate.index ] = 'Sep 5, 2010 - 1:50:01 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_158.gif\" vspace=0  alt=\"indpendent_158.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 two old friends were both middle-aged, both barbers, and both sons of Palestinian refugee parents who were forced to flee the same village outside Jaffa in the war of 1948. Each had an entirely different take yesterday on this week\'s high-profile start to the new round of direct Israeli-Palestinian negotiations. Saad Sholi, 45, the owner of the barber\'s shop, is a self-confessed political junkie who avidly watched the proceedings in Washington, switching between the al-Arabiya and al-Jazeera satellite TV channels. He was not wildly optimistic about the outcome.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Rise of Palestinian Civil Rights movement';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0019713.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 5, 2010 - 1:00:43 AM';
  syndicate.article_summary[ syndicate.index ] = '';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Ramadan goes down under rubble';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0019710.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 4, 2010 - 2:00:23 AM';
  syndicate.article_summary[ syndicate.index ] = 'With power cuts up to 16 hours to full days, a soaring heat wave and unbearable humidity, the Israeli-led siege on Gaza is but one of many factors leaving Ramadan miserable for the majority of Palestinians in Gaza. Abu Hani, 54, lives with his wife Umm Hani, 54, and three sons in Johr al-Dik, eastern Gaza, in the rubble of their demolished home, destroyed in the 2008- 2009 Israeli war on Gaza.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Talks framework set in Washington';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0019707.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 4, 2010 - 1:55:04 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_34_1_15.jpg\" vspace=0  alt=\"Maan-new_34_1_15.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   \nSpeaking to reporters during a brief break from re-launched peace talks, US envoy to the Mideast George Mitchell said Israeli and Palestinian leaders agreed to meet every two weeks in the region to continue talks. The first set of talks will take place on 14-15 September in the Middle East - likely in Egypt according to the Associated Press - where Mitchell and US Secretary of State Hillary Clinton will be in attendance.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israeli soldier charged with looting Gaza aid flotilla ship';
  syndicate.article_url[ syndicate.index ] = 'http://www.guardian.co.uk/world/2010/sep/03/gaza-aid-flotilla-soldier-charged-looting';

  syndicate.article_date[ syndicate.index ] = 'Sep 4, 2010 - 1:40: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/ap-logo_159.gif\" vspace=0  alt=\"ap-logo_159.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 Israeli soldier has been charged with looting the lead ship in a Gaza aid flotilla attacked by Israeli naval commandos at the end of May. The Israeli military said in a statement that the soldier was accused of stealing equipment from the Mavi Marmara after it was towed to an Israeli port. The statement, released late yesterday, said the soldier\'s actions \"directly contradict the Israeli military\'s moral standards\".';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Abbas: The man and the politician';
  syndicate.article_url[ syndicate.index ] = 'http://english.aljazeera.net/indepth/spotlight/2010/09/20109173658242619.html';

  syndicate.article_date[ syndicate.index ] = 'Sep 4, 2010 - 1:28: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/al-jazeera-logo_500.gif\" vspace=0  alt=\"al-jazeera-logo_500.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   \nMahmoud Abbas, the Palestinian president, has insisted that he will withdraw from direct talks with Israel if it does not extend its freeze on settlement building when it expires on September 26. The pledge was intended to placate widespread opposition to the resumption of negotiations from within both Hamas and Abbas\' own Fatah group. But his promises are unlikely to make a dent in the growing disillusionment with a \'peace process\' many see as providing cover for continued Israeli expansion. And, coming after he backed down on his vow to boycott the talks without a prior Israeli commitment to extending the freeze, Abbas\' words are lacking in credibility.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Protest in Silwan: It\'s about the Settlement not the Archeology';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0019706.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 4, 2010 - 1:00:30 AM';
  syndicate.article_summary[ syndicate.index ] = '';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israel and Palestine: A true one-state solution';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0019705.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 3, 2010 - 10:09:23 AM';
  syndicate.article_summary[ syndicate.index ] = 'For decades, the international community has assumed that historic Palestine must be divided between Jews and Palestinians. Yet no satisfactory division of the land has been reached. Israel has aggravated the problem by settling roughly 500,000 Jews in East Jerusalem and the West Bank, eliminating the land base for a viable Palestinian state. ';
  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');
}

