



// 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 Article Manager
syndicate.index = 0;
  syndicate.article_title[ syndicate.index ] = 'Australian Immigration Minister Chris Evans says the government is sending more Tamil asylum seekers back to their country as the situation improves in Sri Lanka. ';
//  syndicate.article_url[ syndicate.index ] = 'http://www.radioaustralianews.net.au/stories/201003/2844653.htm?desktop';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12501';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Australian Immigration Minister Chris Evans says the government is sending more Tamil asylum seekers back to their country as the situation improves in Sri Lanka. \n\nThe United Nations refugee agency (UNHCR) is looking at changing its international protection guidelines for Sri Lankan and Afghan asylum seekers as those countries become safer. \n\nThe changes would pave the way for more detainees in Australia\'s Christmas Island holding camps to be returned to their country. \n\nSenator Evans says conditions in Sri Lanka are more positive. \n\nHe said: "What we will do is look at both the UN information but also other information.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'India and China to Finance New Infrastructure in Sri Lanka';
//  syndicate.article_url[ syndicate.index ] = 'http://www.2point6billion.com/news/2010/03/12/india-and-china-to-finance-new-infrastructure-in-sri-lanka-4465.html';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12500';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Mar. 12 – The governments of India and China plan to loan more than US$400 million to develop infrastructure on the South Asian island of Sri Lanka in separate deals inked over the past week.\n\nSri Lanka’s government signed a US$290 million deal with China to construct the Mattala Airport and upgrade the Sri Lankan Railway in the country’s Southern Province. Upon completion, the airport will become one of only two operational international airports in the country. The Chinese lending arm, Export-Import Bank, is also helping to construct a modern sea port in Hambantota.\nChina has been the island nation’s largest source of foreign funding in recent years, contributing US$1.2 billion in 2009. Sri Lankan officials said last week that funding from China accounts for more than half of the country’s construction and development loans.\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Canada asks Sri Lanka to start talks with Tamil groups';
//  syndicate.article_url[ syndicate.index ] = 'http://www.indianexpress.com/news/Canada-asks-Sri-Lanka-to-start-talks-with-Tamil-groups/590022';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12499';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = '\n\nCanada has asked Sri Lanka to start talks and the reconciliation process with the Tamil groups, saying such a step is crucial for lasting peace in the country. \n\n\n\n"After 30 years of war, reconciliation is crucial for lasting peace in Sri Lanka. Canada awaits to see what steps the Government of Sri Lanka will take towards this reconciliation," Deepak Obhrai, Parliamentary Secretary to the Minister of Foreign Affairs, told Sri Lanka\'s new High Commissioner Chitranganee Wagiswara during a meeting. \n\n\n\n"Canada urges the government of Sri Lanka for an early safe return and resettlement of the approximately 100,000 individuals who remain displaced," Obhrai said. \n\n\n\nHe said: "Canada is encouraged by the return of close to 160,000 internally displaced persons to their homes." \n\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Internet restrictions curtail human rights, says US ';
//  syndicate.article_url[ syndicate.index ] = 'http://news.bbc.co.uk/2/hi/americas/8563084.stm';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12498';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Many governments have used the internet to curtail freedom of expression at home, the US state department says in its latest annual human rights report.\n\nIn many cases new forms of electronic communications are restricted to control domestic dissent, it says. \n\nThe wide-ranging report also highlights continuing human rights violations in China against the Uighurs and extra-judicial killings in North Korea. \n\nIran, Sri Lanka, Burma and Switzerland also come in for criticism. \n\nUS Secretary of State Hillary Clinton described the annual country reports - legally required by Congress - as "an important tool in the development of practical and effective human rights strategy by the United States government". \n\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Sri Lanka urged to end witch hunt against the media and NGOs';
//  syndicate.article_url[ syndicate.index ] = 'http://www.amnestyusa.org/document.php?id=ENGNAU2010031115754&lang=e';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12497';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'The Sri Lankan government should end its harassment of journalists and activists and take steps against those making threats, Human Rights Watch and Amnesty International said in a joint statement. \n\nSince the January 2010 presidential election, the government has engaged in a campaign to silence and discredit journalists and nongovernmental organizations. A recently leaked document, which appears to be a government surveillance list of more than 30 journalists and activists, significantly raises concerns about the safety of the people on the list, the organizations said. \n\nâ??The Sri Lankan government is conducting a carefully coordinated witch hunt aimed at discrediting critics of the government,â?? said Brad Adams, Asia director at Human Rights Watch. â??This is extremely dangerous and irresponsible in a country where journalists and activists have often been threatened and killed.â?? \n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'US reports rights violations in Sri Lanka';
//  syndicate.article_url[ syndicate.index ] = 'http://sify.com/news/us-reports-rights-violations-in-sri-lanka-news-international-kdlx4ceidde.html';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12496';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Sri Lanka violated human rights last year as it dealt a final blow to Tamil Tiger insurgents and clamped down on media freedom, the US State Department said Thursday.\n\nBut in an annual report, the State Department also reported some signs of progress since May when Sri Lankan forces defeated the Tigers who had waged a 37-year war for a separate Tamil homeland.\n\n"The government\'s respect for human rights declined as armed conflict reached its conclusion," the State Department said.\n\nIt said that young Tamil men accounted for an "overwhelming majority" of victims of human rights violations, including extrajudicial killings, even though Tamils only make up some 16 percent of the population.\n\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'US slams rights abuses in China, Iran ';
//  syndicate.article_url[ syndicate.index ] = 'http://news.theage.com.au/breaking-news-world/us-slams-rights-abuses-in-china-iran-20100312-q34g.html';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12495';
  syndicate.article_date[ syndicate.index ] = 'Mar 12, 2010';
  syndicate.article_summary[ syndicate.index ] = 'The United States has accused China and Iran of increasing human rights abuses as it raised the alarm about growing anti-Semitism worldwide and discrimination against Muslims in Europe.\n\nIn its annual report on human rights for 194 countries, the US State Department also denounced North Korea\'s "deplorable" record, "egregious" abuses in Burma as well as "numerous and serious" violations in Cuba.\n\nIn China, the report said, the authorities continued the repression of ethnic minorities in Xinjiang, the western region where China\'s Han majority engaged last year in deadly clashes with local Uighurs.\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Sri Lanka: End Witch Hunt Against the Media and NGOs ';
//  syndicate.article_url[ syndicate.index ] = 'http://www.hrw.org/en/news/2010/03/10/sri-lanka-end-witch-hunt-against-media-and-ngos';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12494';
  syndicate.article_date[ syndicate.index ] = 'Mar 11, 2010';
  syndicate.article_summary[ syndicate.index ] = '(New York) - The Sri Lankan government should end its harassment of journalists and activists and take steps against those making threats, Human Rights Watch and Amnesty International said in a joint statement today. \n\nSince the January 2010 presidential election, the government has engaged in a campaign to silence and discredit journalists and nongovernmental organizations. A recently leaked document, which appears to be a government surveillance list of more than 30 journalists and activists, significantly raises concerns about the safety of the people on the list, the organizations said.  \n"The Sri Lankan government is conducting a carefully coordinated witch hunt aimed at discrediting critics of the government," said Brad Adams, Asia director at Human Rights Watch.';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Sri Lanka doing massive deals with China ';
//  syndicate.article_url[ syndicate.index ] = 'http://story.malaysiasun.com/index.php/ct/9/cid/3a8a80d6f705f8cc/id/610746/cs/1/';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12493';
  syndicate.article_date[ syndicate.index ] = 'Mar 11, 2010';
  syndicate.article_summary[ syndicate.index ] = 'Sri Lanka will soon build a second international airport on the south of the island, with much of the money coming from China.\n\nBeijing will lend about $200 million for the airport project and also make another $100 million available to re-fit the island\'s ageing rail network.\n\nThe new airport will be near a sea port which is currently being developed with Chinese funds.\n\nBoth India and China have been vying for contracts in Sri Lanka following the end of the 20 year civil war, but already China is supplying more than half of all the construction and development loans for the island.\n';
  syndicate.index++;
  syndicate.article_title[ syndicate.index ] = 'Family fears for missing Sri Lankan cartoonist';
//  syndicate.article_url[ syndicate.index ] = 'http://www.google.com/hostednews/afp/article/ALeqM5hUHHv3JdPYHkvugGPe7T9wJdIa5Q';
  syndicate.article_url[ syndicate.index ] = 'http://www.tamileelamnews.com/news/publish/srilanka.shtml#12492';
  syndicate.article_date[ syndicate.index ] = 'Mar 11, 2010';
  syndicate.article_summary[ syndicate.index ] = 'COLOMBO — Six weeks ago Sri Lankan political writer and cartoonist Prageeth Eknaligoda went missing, and his fate has raised further concerns about the island\'s culture of violence against the media.\n\nEknaligoda, who contributed to the pro-opposition Lankaenews.com website, did not return home after work on January 24, two days before the island\'s presidential elections.\n\nA police probe into his whereabouts has drawn a blank, and his family and friends believe he was abducted by government authorities who act against critics.\n\nEknaligoda was briefly detained, roughed up and freed by unknown assailants in August.\n\nThe family allege his current situation is linked to his support for defeated opposition presidential candidate General Sarath Fonseka.\n\n"I believe high-ranking people within the government have abducted my husband for his writings and cartoons criticising President Mahinda Rajapakse," Sandhya Eknaligoda, 47, told AFP.\n\n';
  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 + '">');
//document.write('<a href="#" target="_blank">');
//document.write('<font color="' + syndicate.title_fontcolor + '" face="Verdana, Arial, Helvetica, sans-serif" size="1">');
//document.write('<b>Powered by SITENAME.com</b></font></a>');
//document.write('<br><br></b></font></td></tr>\n');
