//ticker_message =  new Array;
//ticker_message[0] = 'EPP Group candidate MEMORIAL receives the 2009 Sakharov Prize for Human Rights and Freedom of Thought';
//ticker_message[0] = '<a href="http://www.eppgroup.eu/press/showpr.asp?PRControlDocTypeID=1&PRControlID=9003&PRContentID=15564&PRContentLG=en">European Microfinance Facility can help social inclusion and create jobs</a> ';
//ticker_message[1] = '<a href="http://www.eppgroup.eu/press/showpr.asp?PRControlDocTypeID=1&PRControlID=9005&PRContentID=15567&PRContentLG=en">WTO agricultural negotiations: EPP Group deplores position of the S&D Group</a>';
//ticker_message[2] = '<a href="http://www.eppgroup.eu/press/showpr.asp?PRControlDocTypeID=1&PRControlID=9004&PRContentID=15565&PRContentLG=en">EPP Group condemns attack on Silvio Berlusconi</a>';
//ticker_message[3] = '<a href="http://www.eppgroup.eu/press/showpr.asp?PRControlDocTypeID=1&PRControlID=9007&PRContentID=15572&PRContentLG=en">Climate: Copenhagen Conference must not be \'a fool\'s bargain\' for Europe</a>';


ticker_actual = 0;
ticker_html_flag = 0;

 function ticker_go()
     {
     if(document.getElementById)
         {
         ticker_char = 1;
         ticker_affich(ticker_actual)
         ticker_actual++;
         if(ticker_actual >= ticker_message.length)
             ticker_actual = 0;
         }        
     }
 
 function ticker_affich(lactual)
     {
     var pix = ticker_message[lactual].charAt(ticker_char);
     if(pix == "<")
         ticker_html_flag = 1;
     if(pix == ">")
         ticker_html_flag = 0;
     var texte = ticker_message[lactual].substring(0,ticker_char);
     document.getElementById("ticker").innerHTML = texte;
     if(ticker_char < ticker_message[lactual].length)
         {
         ticker_char++;
         if(ticker_html_flag == 1)    
             ticker_affich(lactual);
         else
             setTimeout("ticker_affich("+lactual+")",30)
         }
     else
         setTimeout("ticker_go()",3000)
     }
 
 window.onload = ticker_go;
