



// 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 ] = 'Israel seals West Bank for Jewish holiday';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0019725.shtml';
  syndicate.article_date[ syndicate.index ] = 'Sep 8, 2010 - 1:55:02 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_17.jpg\" vspace=0  alt=\"Maan-new_34_1_17.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   \nAll crossings between Israel and the West Bank will close for four days over the Jewish New Year, the Israeli army announced Tuesday. Crossings will close between midnight on 7 September and midnight on 11 September, a military statement said. The civil administration would coordinate the passage of medical personnel, NGO workers, and lawyers, the statement added, and those requiring medical attention would be allowed to cross into Israel.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Class dismissed on democracy to make room for Bible studies';
  syndicate.article_url[ syndicate.index ] = 'http://latimesblogs.latimes.com/babylonbeyond/2010/09/israel-class-dismissed-on-democracy-to-make-room-for-bible-studies.html?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+BabylonBeyond+%28Babylon+%26+Beyond+Blog%29';

  syndicate.article_date[ syndicate.index ] = 'Sep 8, 2010 - 1:45:30 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_51.gif\" vspace=0  alt=\"la-times-logo_51.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   \nCan Israel be a democratic and Jewish state at the same time? It\'s a divisive, long-running debate that has now found its way into the classroom - or rather, it\'s about to get kicked out of school. Israeli Education Ministry officials have moved to slash funding for high-school civics classes, where students learn about democracy, equal rights and government, and shift the money to religious teachings about the Bible, the Talmud and Zionism.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Palestinian TV satire Watan ala Watar unites political rivals – in anger';
  syndicate.article_url[ syndicate.index ] = 'http://www.guardian.co.uk/world/2010/sep/07/palestinian-satire-watan-ala-watar';

  syndicate.article_date[ syndicate.index ] = 'Sep 8, 2010 - 1:40:58 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_321.gif\" vspace=0  alt=\"guardian-logo_321.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   \nPolitical rivals Hamas and Fatah are united – in anger. But the bite-sized nightly satirical sketches of Watan ala Watar have become a Ramadan sensation, cheering thousands of Palestinian television viewers through the holy month. The show has distracted families from the iftar meal that breaks their traditional daily fast, causing them to abandon half-eaten plates of chicken, lamb and rice for 10 minutes of intensive mockery of their political leaders.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israel\'s Lieberman vows to block settlement curb extension';
  syndicate.article_url[ syndicate.index ] = 'http://www.jordantimes.com/?news=29866';

  syndicate.article_date[ syndicate.index ] = 'Sep 7, 2010 - 1:50: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/AFP-logo_185.GIF\" vspace=0  alt=\"AFP-logo_185.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 Foreign Minister Avigdor Lieberman said Monday his ultranationalist Yisrael Beitenu Party would block any attempt to extend a partial moratorium on settlements due to expire on September 26. But the Palestinians warned that failure to extend the 10-month halt to most new settlement construction in the West Bank outside occupied Arab East Jerusalem would spell the end of peace talks relaunched with great fanfare in Washington on Thursday.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israel unlikely to extend \'freeze\'';
  syndicate.article_url[ syndicate.index ] = 'http://english.aljazeera.net/news/middleeast/2010/09/201095143748683859.html';

  syndicate.article_date[ syndicate.index ] = 'Sep 6, 2010 - 1:55: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/al-jazeera-logo_501.gif\" vspace=0  alt=\"al-jazeera-logo_501.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   \nEhud Barak, Israel\'s defence minister, has said a slowdown in West Bank settlement construction is unlikely to continue in its current form after it expires at the end of this month. Barak also said on Sunday that he does not believe that Israel will entirely cancel the 10-month curbs. He appeared to be leaving room for a compromise that might allow the Palestinians to continue the fragile direct negotiations that began in Washington last week. Mahmoud Abbas, the Palestinian president, says he warned Binyamin Netanyahu, Israel\'s prime minister, last week that he will leave the talks if Israel does not extend the slowdown.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israeli police accused of targeting Jerusalem\'s Arab residents';
  syndicate.article_url[ syndicate.index ] = 'http://www.independent.co.uk/news/world/middle-east/israeli-police-accused-of-targeting-jerusalems-arab-residents-2071293.html';

  syndicate.article_date[ syndicate.index ] = 'Sep 6, 2010 - 1:50: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/indpendent_159.gif\" vspace=0  alt=\"indpendent_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   \nA leading civil-rights group has accused Israeli police of systematic discrimination against the Arab residents of East Jerusalem as growing numbers of hardline religious Jews take up residence in Palestinian areas. A report from the Association for Civil Rights in Israel (Acri) found that violent confrontations between Jewish residents and their Palestinian neighbours had risen rapidly, but that Israeli police have largely ignored Palestinian complaints.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Rachel Corrie\'s parents could face men who killed her in court';
  syndicate.article_url[ syndicate.index ] = 'http://www.guardian.co.uk/world/2010/sep/05/rachel-corrie-israel-civil-suit';

  syndicate.article_date[ syndicate.index ] = 'Sep 6, 2010 - 1:40:30 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_320.gif\" vspace=0  alt=\"guardian-logo_320.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 family of Rachel Corrie, the American activist crushed to death in Gaza  seven years ago, could face the men driving the Israeli bulldozer that killed her in the second stage of their civil suit against the state. The case, which began in March, reopened at Haifa district court today and will hear Israeli state witness testimony on her death. The 23-year-old had been trying to prevent the demolition of a Palestinian house in Rafah, in the Gaza strip.';
  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 ] = '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++;




// 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');
}

