//window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function OpenLink() 
{
   var l  = '';
   for (i = 0; i < arguments.length; i++) { 
      l = l + arguments[i];
   }
   if (l.charAt(0)=='#') l = l.substring(1,l.length);
     
   window.location.href=l;
}

function PopupImage(title,img,width,height) 
{
	w=open("",'image','width='+width+',height='+height+',toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+title+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src="+img+" border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}
