var xmlDoc=null;
if (window.ActiveXObject)
{// code for IE
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation.createDocument)
{// code for Mozilla, Firefox, Opera, etc.
xmlDoc=document.implementation.createDocument("","",null);
}
else
{
alert('Your browser cannot handle this script');
}

if (xmlDoc!=null)
{ 
xmlDoc.async=false;
// Fichier xml à charger
xmlDoc.load("news.xml");

// document.write("<table class=\"tbl_haut\">");
// document.write("<tr><td style=\"width: 132px;\" colspan=2>");
document.write("<marquee behavior=\"scroll\" direction=\"up\" scrollamount=\"1\" scrolldelay=\"1\" onmouseover=\"this.stop()\" onmouseout=\"this.start()\" style=\"height:200px; width:132px; border:solid #B4C1D3 0px; background:transparent;\">");

// Menu en haut
var x=xmlDoc.getElementsByTagName("NEWS");
for (i=0;i<x.length;i++)
{

document.write("<table width=\"150\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("<tr>");
document.write("<td valign=\"top\" style=\"background-image: url(http://www.radio-rc2.org/images/calendar_bleu.gif); background-repeat: no-repeat;\">");
document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("<tr><td height=\"1\" colspan=\"3\"></td></tr>");
document.write("<tr>");
document.write("<td width=\"1\" height=\"1\" rowspan=\"2\"><img src=\"http://www.radio-rc2.org/images/espaceur.gif\" width=\"1\" height=\"49\"></td>");
document.write("<td width=\"42\" align=\"center\"><div align=\"center\"><b><font size=1 color=#FFFFFF><img src=\"http://www.radio-rc2.org/images/espaceur.gif\" width=\"1\" height=\"1\">"+x[i].getElementsByTagName("MOIS_NEWS")[0].childNodes[0].nodeValue+"</font></b></div></td>");
document.write("<td width=\"1\" rowspan=\"2\"><img src=\"http://www.radio-rc2.org/images/espaceur.gif\" width=\"10\" height=\"1\"></td>");
document.write("</tr><tr>");
document.write("<td><div align=\"center\">");
document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("<tr><td align=\"center\">"+x[i].getElementsByTagName("JOUR_NEWS")[0].childNodes[0].nodeValue+"</td></tr>");
document.write("<tr><td><img src=\"http://www.radio-rc2.org/images/espaceur.gif\" width=\"40\" height=\"5\"></td></tr>");
document.write("</table></div></td></tr></table></td>");
document.write("<td width=77% valign=\"middle\"><a href=\""+x[i].getElementsByTagName("LINK")[0].childNodes[0].nodeValue+"\" CLASS=txt_defil><font color=#215392><b>"+x[i].getElementsByTagName("NOM")[0].childNodes[0].nodeValue+"</b></font></a></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan=5><img src=\"http://www.radio-rc2.org/images/espaceur.gif\" width=\"1\" height=\"5\"></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan=\"2\" valign=\"top\">");
document.write("<a href=\""+x[i].getElementsByTagName("LINK")[0].childNodes[0].nodeValue+"\" CLASS=txt_defil><img src=\"http://www.radio-rc2.org/images/puce_rc2.gif\" border=0 align=\"absmiddle\"> <font color=#000000>"+x[i].getElementsByTagName("DESC")[0].childNodes[0].nodeValue+"</font></a>");
document.write("<img src=\"http://www.radio-rc2.org/images/espaceur.gif\" width=100% height=6 border=0 align=\"absmiddle\"><img src=\"http://www.radio-rc2.org/images/pixel_gris.gif\" width=100% height=1 border=0 align=\"absmiddle\"><img src=\"http://www.radio-rc2.org/images/espaceur.gif\" width=100% height=6 border=0 align=\"absmiddle\">");
document.write("</td></tr></table>");

/* document.write("<a class=\"titre_menuh\" href="+x[i].getElementsByTagName("LINK")[0].childNodes[0].nodeValue+"><img border=\"0\" src=\"http://www.radio-rc2.org/images/puce_4.gif\"> "+x[i].getElementsByTagName("NOM")[0].childNodes[0].nodeValue+"</a>"); */
}
document.write("</marquee>");
// document.write("</td>");
// document.write("</tr>");
// document.write("</table>");
}