

// 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 ] = 'Lebanon tightens control over Palestinian refugee camps';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article11017.shtml';
syndicate.article_date[ syndicate.index ] = '19 January 2010';
syndicate.article_summary[ syndicate.index ] = '         \r\n\r\n      \r\n       <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"right\" width=\"100\">\r\n         <tr><td>\r\n\r\n         \r\n         \r\n\r\n         <img src=\"http://electronicintifada.net/artman2/uploads/2/100119-ips-lebanon-th.jpg\" alt=\"100119-ips-lebanon-th.jpg\" width=\"100\" height=\"100\" />\r\n            <div class=\"image_caption\"></div>\r\n\r\n      	</td></tr>\r\n      </table>\r\n\r\n         \r\n      \r\n\r\n   \r\n\r\n\r\n   \r\nNAHR AL-BARED, Lebanon (IPS) - Recent inter-factional clashes in Lebanon\'s Ein al-Hilwe refugee camp once more illustrated the fragile security situation in some of its Palestinian camps. Lebanese plans to take over security within the camps are rejected by the Palestinians. Ein al-Hilwe and other refugee camps are home to various Palestinian nationalist groups, but also host different Islamist forces that the Lebanese government considers a threat to the state\'s security and stability.';
syndicate.index++;syndicate.article_title[ syndicate.index ] = 'Nahr al-Bared\'s economic recovery hampered by military siege';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article11013.shtml';
syndicate.article_date[ syndicate.index ] = '18 January 2010';
syndicate.article_summary[ syndicate.index ] = '         \r\n\r\n      \r\n       <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"right\" width=\"100\">\r\n         <tr><td>\r\n\r\n         \r\n         \r\n\r\n         <img src=\"http://electronicintifada.net/artman2/uploads/2/100118-nbc-smith-th.jpg\" alt=\"100118-nbc-smith-th.jpg\" width=\"100\" height=\"100\" />\r\n            <div class=\"image_caption\"></div>\r\n\r\n      	</td></tr>\r\n      </table>\r\n\r\n         \r\n      \r\n\r\n   \r\n\r\n\r\n   \r\nMore than two years after the end of the fighting, the war-torn Palestinian refugee camp of Nahr al-Bared, located in northern Lebanon, is far from the model the Lebanese government has promised the camp would become. Instead, reconstruction of the camp is delayed, the area is a military zone with restricted access, and the camp\'s economy is stalled and residents are largely unemployed. Ray Smith reports for Electronic Lebanon.';
syndicate.index++;syndicate.article_title[ syndicate.index ] = 'A voice of frustration and hope in Nahr al-Bared';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article10978.shtml';
syndicate.article_date[ syndicate.index ] = '30 December 2009';
syndicate.article_summary[ syndicate.index ] = '         \r\n\r\n      \r\n       <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"right\" width=\"100\">\r\n         <tr><td>\r\n\r\n         \r\n         \r\n\r\n         <img src=\"http://electronicintifada.net/artman2/uploads/2/091230-leb-nbc-th.jpg\" alt=\"091230-leb-nbc-th.jpg\" width=\"100\" height=\"100\" />\r\n            <div class=\"image_caption\"></div>\r\n\r\n      	</td></tr>\r\n      </table>\r\n\r\n         \r\n      \r\n\r\n   \r\n\r\n\r\n   \r\nNAHR AL-BARED (North Lebanon) (IPS) - The hip-hop beats ringing through the muddy, unlit streets of this burnt-out Palestinian refugee camp seem incongruous. But the rhymes are camp-grown -- and courageous. Farhan Abu Siyam, 21, is Nahr al-Bared\'s first and only rapper. Going by the name of MC Tamarrod, he grew up in the Palestinian refugee camps of Nahr al-Bared and Burj al-Barajne.';
syndicate.index++;syndicate.article_title[ syndicate.index ] = 'US government\'s hard line on Hizballah clashes with political reality';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article10965.shtml';
syndicate.article_date[ syndicate.index ] = '24 December 2009';
syndicate.article_summary[ syndicate.index ] = '         \r\n\r\n      \r\n       <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"right\" width=\"100\">\r\n         <tr><td>\r\n\r\n         \r\n         \r\n\r\n         <img src=\"http://electronicintifada.net/artman2/uploads/2/hizballah-th.jpg\" alt=\"hizballah-th.jpg\" width=\"100\" height=\"100\" />\r\n            <div class=\"image_caption\"></div>\r\n\r\n      	</td></tr>\r\n      </table>\r\n\r\n         \r\n      \r\n\r\n   \r\n\r\n\r\n   \r\nWASHINGTON (IPS) - Lebanese President Michel Suleiman visited Washington last week, for his first visit with President Barack Obama. The meeting was a quick one, tucked in amongst the myriad of domestic issues that are demanding Obama\'s attention. Yet despite its brevity, the meeting touched upon issues that strike at the heart of the US-Lebanon relationship.';
syndicate.index++;syndicate.article_title[ syndicate.index ] = 'Hizballah\'s call for legitimacy';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article10933.shtml';
syndicate.article_date[ syndicate.index ] = '8 December 2009';
syndicate.article_summary[ syndicate.index ] = '         \r\n\r\n      \r\n       <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"right\" width=\"100\">\r\n         <tr><td>\r\n\r\n         \r\n         \r\n\r\n         <img src=\"http://electronicintifada.net/artman2/uploads/2/091209-hizballah-cassel-th.jpg\" alt=\"091209-hizballah-cassel-th.jpg\" width=\"100\" height=\"100\" />\r\n            <div class=\"image_caption\"></div>\r\n\r\n      	</td></tr>\r\n      </table>\r\n\r\n         \r\n      \r\n\r\n   \r\n\r\n\r\n   \r\nLast week Hassan Nasrallah delivered a speech over video link from an unknown location, as he frequently does. The leader of the Lebanese Shia Islamic resistance and political group Hizballah addressed the audience in Beirut to present the group\'s new manifesto, their first since 1985 when the group unveiled its initial open letter. Matthew Cassel analyzes.';
syndicate.index++;syndicate.article_title[ syndicate.index ] = 'Refugees remain skeptical of Nahr al-Bared reconstruction';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article10919.shtml';
syndicate.article_date[ syndicate.index ] = '26 November 2009';
syndicate.article_summary[ syndicate.index ] = '         \r\n\r\n      \r\n       <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"right\" width=\"100\">\r\n         <tr><td>\r\n\r\n         \r\n         \r\n\r\n         <img src=\"http://electronicintifada.net/artman2/uploads/2/091126-ips-nbc-th.jpg\" alt=\"091126-ips-nbc-th.jpg\" width=\"100\" height=\"100\" />\r\n            <div class=\"image_caption\"></div>\r\n\r\n      	</td></tr>\r\n      </table>\r\n\r\n         \r\n      \r\n\r\n   \r\n\r\n\r\n   \r\nNAHR AL-BARED, Lebanon (IPS) - More than two years after their refugee camp was destroyed in a war between the Lebanese army and the Islamist militant group Fatah al-Islam, Nahr al-Bared refugees Wednesday witnessed the start of the camp\'s reconstruction. Their relief is mixed with skepticism, however. Established in 1949, the Palestinian refugee camp of Nahr al-Bared in north Lebanon\'s Akkar region has become home to more than 30,000 residents.';
syndicate.index++;syndicate.article_title[ syndicate.index ] = 'Nahr al-Bared reconstruction delays protested';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article10804.shtml';
syndicate.article_date[ syndicate.index ] = '1 October 2009';
syndicate.article_summary[ syndicate.index ] = '         \r\n\r\n      <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"right\" width=\"100\">\r\n         <tr><td>\r\n         \r\n         \r\n\r\n         <img src=\"http://electronicintifada.net/artman2/uploads/2/090930-nbc-demo-th_thumb.jpg\" alt=\"090930-nbc-demo-th.jpg\" width=\"100\"  height=\"100\" />\r\n            <div class=\"image_caption\"></div>\r\n\r\n      	</td></tr>\r\n      </table>\r\n\r\n         \r\n      \r\n\r\n      \r\n\r\n   \r\n\r\n\r\n   \r\nSince the end of August, construction equipment in the Palestinian refugee camp of Nahr al-Bared, near the northern Lebanese city of Tripoli, has stood unused after the Lebanese State Council granted a two month moratorium for the reconstruction of the camp. Nahr al-Bared, home to approximately 30,000 refugees, was destroyed during a three-month-long battle between the Lebanese army and the militant group Fatah al-Islam in the summer of 2007. Ray Smith reports for Electronic Lebanon.';
syndicate.index++;syndicate.article_title[ syndicate.index ] = 'Shebaa Farms \"real issue\" is water';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article10766.shtml';
syndicate.article_date[ syndicate.index ] = '11 September 2009';
syndicate.article_summary[ syndicate.index ] = 'BEIRUT (IRIN) - The politics of the Israeli-occupied Shebaa Farms, a rugged sliver of mountainside wedged between Lebanon, Israel and Syria, have long overshadowed what some Lebanese environmentalists call \"the real issue\" of the disputed area: its water resources. Now activists are calling for hydro-diplomacy to take precedence over political maneuvering as the most effective solution to one of the key stumbling blocks to Middle East peace.';
syndicate.index++;syndicate.article_title[ syndicate.index ] = 'Lebanon\'s politics of real estate';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article10732.shtml';
syndicate.article_date[ syndicate.index ] = '31 August 2009';
syndicate.article_summary[ syndicate.index ] = '         \r\n\r\n      \r\n       <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"right\" width=\"100\">\r\n         <tr><td>\r\n\r\n         \r\n         \r\n\r\n         <img src=\"http://electronicintifada.net/artman2/uploads/2/090831-lebanon-reconstruction-th.jpg\" alt=\"090831-lebanon-reconstruction-th.jpg\" width=\"100\" height=\"100\" />\r\n            <div class=\"image_caption\"></div>\r\n\r\n      	</td></tr>\r\n      </table>\r\n\r\n         \r\n      \r\n\r\n   \r\n\r\n\r\n   \r\nNostalgia, insists architect and academic Rami Daher, is a legitimate feeling.  While most individuals\' instinctive thoughts of the glories of Levantine architecture might run to ancient mosques, castles and palaces, Daher\'s yearning is towards an era in living memory, and on a more everyday scale. Sarah Irving reports for Electronic Lebanon.';
syndicate.index++;syndicate.article_title[ syndicate.index ] = 'Nahr al-Bared a test case for Palestinian refugees in Lebanon';
syndicate.article_url[ syndicate.index ] = 'http://electronicintifada.net/v2/article10741.shtml';
syndicate.article_date[ syndicate.index ] = '27 August 2009';
syndicate.article_summary[ syndicate.index ] = '         \r\n\r\n      \r\n       <table border=\"0\" cellspacing=\"5\" cellpadding=\"0\" align=\"right\" width=\"100\">\r\n         <tr><td>\r\n\r\n         \r\n         \r\n\r\n         <img src=\"http://electronicintifada.net/artman2/uploads/2/090827-smith-bared-th.jpg\" alt=\"090827-smith-bared-th.jpg\" width=\"100\" height=\"100\" />\r\n            <div class=\"image_caption\"></div>\r\n\r\n      	</td></tr>\r\n      </table>\r\n\r\n         \r\n      \r\n\r\n   \r\n\r\n\r\n   \r\nNAHR AL-BARED, Lebanon (IPS) - Palestinian refugees at Nahr al-Bared in north Lebanon are living under tight military siege two years after a war destroyed the refugee camp. It has now become a test case for a new approach in Lebanon\'s security policy towards Palestinian refugee camps.';
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');
}

// If you want your Webfeeds to be branded, uncomment the following lines.
// To do this, remove the // at the beginning of the next five lines:

document.write('<tr><td bgcolor="' + syndicate.bgcolor + '" valign=top>');
document.write('<a href="#" target="_blank">');
document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
document.write('<CENTER><A HREF="http://electronicIntifada.net" TARGET="_blank"><IMG SRC="http://electronicIntifada.net/v3images/home/nav/smalllogo.jpg" WIDTH=37 HEIGHT=38 BORDER=0></A></CENTER></font></a>');
document.write('<\/font><\/td><\/tr>\n');
