



// 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 ] = 'President Obama\'s personal crisis';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018663.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 20, 2010 - 2:01: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/2/palestine-chronicle_80.jpg\" vspace=0  alt=\"palestine-chronicle_80.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 display shouldn\'t be so shocking. President Barack Obama was a professor before a politician, and that scholarly charm and cool helped get him elected. As if explaining a basic science problem - what goes up must come down, and vice versa - Obama calmly dismissed the suggestion that US-Israeli relations have reached a crisis. \"We and the Israeli people have a special bond that\'s not going to go away, but friends are going to disagree sometimes. There is a disagreement in terms of how we can move this peace process forward.\"';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Gazans wounded in Israeli strike';
  syndicate.article_url[ syndicate.index ] = 'http://english.aljazeera.net/news/middleeast/2010/03/2010319215541529583.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 20, 2010 - 1:55: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/al-jazeera-logo_427.gif\" vspace=0  alt=\"al-jazeera-logo_427.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 least 11 people have been injured in an Israeli air strike at an airport in southern Gaza, Palestinian medical officials and witnesses said. The strike targeted Gaza\'s defunct international airport, located near the town of Rafah, late on Friday, witnesses said. The Israeli army told Al Jazeera that the attack targeted \"a terror site\" and said its pilots confirmed that the target was hit.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Global anger at Israeli settlement policy';
  syndicate.article_url[ syndicate.index ] = 'http://www.ft.com/cms/s/0/ed83e2ae-32f8-11df-bf5f-00144feabdc0.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 20, 2010 - 1:50: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/financial-times_31.gif\" vspace=0  alt=\"financial-times_31.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 yesterday came under renewed fire from the international community for its settlement policy in occupied East Jerusalem, in the latest sign of tensions between the Jewish state and key allies. The Middle East Quartet - made up of the US, the European Union, Russia and the United Nations - condemned a controversial Israeli plan, revealed last week, to build another 1,600 homes for Jewish settlers in Arab East Jerusalem. It also called for the speedy creation of a Palestinian state and an end to \"provocative actions\" on both sides.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Middle East Quartet urges Israeli settlement freeze';
  syndicate.article_url[ syndicate.index ] = 'http://news.bbc.co.uk/2/hi/middle_east/8575723.stm';

  syndicate.article_date[ syndicate.index ] = 'Mar 20, 2010 - 1:34: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/bbc-logo_187.gif\" vspace=0  alt=\"bbc-logo_187.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 international Quartet of Middle East peace mediators has urged Israel to freeze all settlement activity. Speaking for the Quartet, UN Secretary General Ban Ki-moon condemned Israel\'s announcement of plans to build new homes in disputed East Jerusalem. That move undermined efforts to restart indirect Israeli-Palestinian talks.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Quartet urges Israeli action';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018664.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 20, 2010 - 1:00:50 AM';
  syndicate.article_summary[ syndicate.index ] = '';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Quartet calls for settlement freeze';
  syndicate.article_url[ syndicate.index ] = 'http://english.aljazeera.net/news/europe/2010/03/20103198524314112.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 19, 2010 - 12:26:23 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_426.gif\" vspace=0  alt=\"al-jazeera-logo_426.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 Quartet of Middle East negotiators has demanded that Israel halt all settlement activity and denounced Israel\'s plan to build new housing in East Jerusalem.  The Quartet\'s comments came at a news conference in Moscow on Friday, following a meeting by the group, which brings together the United Nations, the US, the EU and Russia.  Ban Ki-Moon, the UN secretary-general, read a joint statement by the group, saying that the Quartet \"urges the government of Israel to freeze all settlement activities.\"';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Tony Blair and Hillary Clinton hope package will unlock Middle East talks';

 
  syndicate.article_url[ syndicate.index ] = 'http://imeu.net/news/article0018661.shtml';
  syndicate.article_date[ syndicate.index ] = 'Mar 19, 2010 - 2:01: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/reuters-logo_125.gif\" vspace=0  alt=\"reuters-logo_125.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   \nTwo members of the international quartet of Middle East mediators suggested today that stalled indirect peace talks between Israel and the Palestinians may be unblocked in coming days. Speaking after a meeting in Moscow of the group - comprising the United States, European Union, United Nations and Russia - quartet envoy Tony Blair told Reuters he hoped for a package of measures to get the talks started.<br/>\n';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israel hits Gaza after rocket death';
  syndicate.article_url[ syndicate.index ] = 'http://english.aljazeera.net/news/middleeast/2010/03/201031821950653943.html';

  syndicate.article_date[ syndicate.index ] = 'Mar 19, 2010 - 1:55:57 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_425.gif\" vspace=0  alt=\"al-jazeera-logo_425.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 aircraft have launched a series of strikes on Gaza, striking multiple targets in the strip. The raids came after Israel threatened a \"strong\" response following the firing of a rocket from Gaza earlier on Thursday. The rocket attack killed a Thai man working on a farm near Ashkhelon. It was the first death caused by a missile launched from the strip since the end of Israel\'s war on Gaza in January 2009.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'EU foreign chief Baroness Ashton in Gaza Strip';
  syndicate.article_url[ syndicate.index ] = 'http://news.bbc.co.uk/2/hi/middle_east/8573715.stm';

  syndicate.article_date[ syndicate.index ] = 'Mar 19, 2010 - 1:50:08 AM';
  syndicate.article_summary[ syndicate.index ] = '***image1***The EU\'s new foreign policy chief has been in Gaza on one of the highest level visits there by a Western official since Hamas took power. Baroness Ashton\'s trip comes amid a new push by the EU and US to revive stalled Middle East peace talks. The international quartet of Middle East mediators - the EU, US, UN and Russia - is to meet in Moscow later. As Lady Ashton arrived, militants in Gaza fired a rocket into Israel, killing a man, Israeli officials said.';
  syndicate.index++;  syndicate.article_title[ syndicate.index ] = 'Israel says Obama peace envoy could return Sunday';
  syndicate.article_url[ syndicate.index ] = 'http://www.aawsat.com/english/news.asp?section=1&amp;id=20271';

  syndicate.article_date[ syndicate.index ] = 'Mar 19, 2010 - 1:40: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/reuters-logo_124.gif\" vspace=0  alt=\"reuters-logo_124.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   \nU.S. President Barack Obama\'s Middle East peace envoy may return to the region on Sunday, having postponed his trip over an Israeli settlement plan, an Israeli official said on Thursday. George Mitchell\'s visit had been expected to usher in indirect Israeli-Palestinian talks, but that has been thrown in doubt by Palestinian anger - echoed in Washington - at the blueprint for 1,600 more homes for Jews near East Jerusalem.';
  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');
}

