



// 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 ] = 'Settlers Install New Outpost Near Hebron';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0022083.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 4, 2012 - 6:55:49 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/3/imemc-logo_32.gif\" vspace=0  alt=\"imemc-logo_32.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 group of fundamentalist Israeli settlers installed on Friday a new illegal settlement outpost, south of the southern West Bank city of Hebron, while another group of armed settlers invaded areas in Beit Ummar town, north of Hebron.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'We - the global 99% - shall overcome!';
  syndicate.article_url[ syndicate.index ] = 'http://thedp.com/index.php/article/2012/02/omar_barghouti_we_the_global_99_shall_overcome';

  syndicate.article_date[ syndicate.index ] = 'Feb 4, 2012 - 6:40:13 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/3/daily_penn.jpg\" vspace=0  alt=\"daily_penn.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   \nThere is hardly anything that Israel or its lobbies can do today to quell the healthy growth of BDS in the US and around the world. A movement that dwells in citizens\' consciences, that is rooted in an oppressed people\'s heritage of struggle for justice, and that is inspired by the rich and diverse legacies of Mandela, Tutu and King cannot be defeated or co-opted. Our South Africa moment has arrived.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '13 injured in Nabi Saleh demo, including French National';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0022081.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 4, 2012 - 6:36: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/3/Maan-new_273.jpg\" vspace=0  alt=\"Maan-new_273.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   \nIsraeli forces injured 13 people in the village of Nabi Saleh, near Ramallah, during a Friday demonstration against Israeli land confiscation, witnesses said. A French national sustained an injury from a tear-gas canister, activists said. She was taken to a hospital in Ramallah where she received stitches before being released, they said. ';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = '2 hurt in Israeli attack on north Gaza';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0022075.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 7:28: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/3/Maan-new_272.jpg\" vspace=0  alt=\"Maan-new_272.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   \nIsraeli forces fired on sites across the Gaza Strip early Friday, injuring a young man and a child in Beit Lahiya, a Ma\'an correspondent and medical officials said. Medical officials said the child suffered serious injuries to the head and hands. A young man was also hurt, and he was taken to hospital, said Gaza health official Adham Abu Salmiya.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Palestinian on 48th day of hunger strike chained to hospital bed';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0022076.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 7:16: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/3/_972_50.jpg\" vspace=0  alt=\"_972_50.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   \nKhader Adnan, aged 34 of \'Araba near Jenin, is on the 48<sup>th</sup> day of his hunger strike, and is held chained to a bed in the Mayanei Hayeshua Medical Center in Bnei Brak. So reports Israeli NGO Physicians for Human Rights-Israel (PHR-I). Adnan is protesting his administrative detention. Adnan was detained on December 17, 2011, and went on a hunger strike the following day. He refuses to consume anything but water. Despite his deteriorating situation - PHR-I says a person is in severe danger after the 45<span style=\"font-size: 11px;\">th</span> day of a hunger strike &#8211; a military judge declined yesterday to review Adnan\'s detention order and postponed the hearing for the second time. Adnan arrived at the hearing in a wheelchair.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Demolitions in East Jerusalem leave 52 Palestinians homeless';
  syndicate.article_url[ syndicate.index ] = 'http://www.alhaq.org/documentation/weekly-focuses/524-demolitions-in-east-jerusalem-leave-52-palestinians-homeless';

  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 7:14: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/3/al-haq_3.gif\" vspace=0  alt=\"al-haq_3.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   \nAt approximately 11:00 pm on 23 January, Israeli soldiers, accompanied by workers from the Israeli Civil Administration and a bulldozer, forcibly removed 32 family members after demolishing their homes in Wa\'r al-Beik southeast of \'Anata (Jerusalem governorate). Yousef Muhammad Jahalin (37-years-old) is a Palestinian Bedouin who, along with his immediate and extended family, is now homeless following the demolition operation.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Al Arakib Protest JNF Policies';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0022078.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 3, 2012 - 7:12: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/3/aic-logo_16.jpg\" vspace=0  alt=\"aic-logo_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   \nThe Palestinians of Al Arakib protest their eviction and dispossession in front of the offices of the Jewish National Fund (JNF).';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'IDF injures over a dozen Palestinians in E. Jerusalem, one critically';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0022074.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 2, 2012 - 7:35: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/3/_972_49.jpg\" vspace=0  alt=\"_972_49.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 Palestinian resident has been critically injured by live IDF fire in Issawiya, East Jerusalem, according to Palestinian sources, among them my family members who live there. Clashes erupted late Tuesday when the Israeli army entered the town in order to arrest a resident on charges of throwing stones. The arrest caused heightened tensions in the town and dozens of young residents gathered to confront the soldiers.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Abbas meets UN chief, urges end to settlements';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0022073.shtml';
  syndicate.article_date[ syndicate.index ] = 'Feb 2, 2012 - 7:29: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/3/Maan-new_271.jpg\" vspace=0  alt=\"Maan-new_271.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   \nPresident Abbas met with UN Secretary-General Ban Ki-moon on Wednesday and called on Israel to stop settlement building and lift the blockade on Gaza, Palestine TV reported. The UN chief had earlier visited Israeli prime minister Netanyahu, urging the Israelis \"to act in a constructive spirit and offer goodwill gestures which will create a positive dynamic.\"';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Germany upgrades Palestinian diplomatic status';
  syndicate.article_url[ syndicate.index ] = 'http://www.boston.com/news/world/middleeast/articles/2012/02/01/germany_upgrades_palestinian_diplomatic_status/';

  syndicate.article_date[ syndicate.index ] = 'Feb 2, 2012 - 7:28: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/3/ap-logo_14.gif\" vspace=0  alt=\"ap-logo_14.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   \nGermany has upgraded the Palestinian diplomatic representation in Berlin from a delegation to a mission headed by an ambassador, visiting German Foreign Minister Guido Westerwelle announced Wednesday. The decision followed similar steps in recent months by France, Spain, Portugal and Ireland. It';
  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');
}


