<!--
function bandeauFlash(FlashName,flashW,flashH){
 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" name="bandeau" width="'+flashW+'" height="'+flashH+'" hspace="0" vspace="0" id="bandeau">\n');
 document.write('<param name="movie" value="../images/Flash/'+FlashName+'">');
  document.write('<param name="wmode" value="transparent" />');
    document.write('<param name="menu" value="false" />');
 document.write('<param name=quality value=high><param name="BGCOLOR" value="#FFFFFF">');
 document.write('<embed src="../images/Flash/'+FlashName+'" wmode="transparent" width="'+flashW+'" height="'+flashH+'" hspace="0" vspace="0" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#FFFFFF" name="bandeau"></embed>');
document.write('</object>');
 }

function positionBonomme(){
   var mm_bonomme=MM_findObj('bonomme');
   var mm_bonommeBottom=MM_findObj('bonommeBottom');
	//alert(mm_bonomme.style.top);

  var pos_bonommeBottom =getXYcoord(mm_bonommeBottom);
	mm_bonomme.style.top=parseInt((pos_bonommeBottom[1]-280))+"px";
	mm_bonomme.style.left=parseInt((pos_bonommeBottom[0])+130)+"px";
	mm_bonomme.style.display = "block";
	//varLeft =parseInt(pos[0]-menuName.offsetWidth);
	//if (varLeft<150) varLeft=parseInt(pos[0]+imgMenu.offsetWidth);
	//menuName.style.left=varLeft;
}

function openDetailsWindow(theURL) { //v2.0
 var theWindow = window.open(theURL,'popup','toolbar=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=680,height=500');
theWindow.focus();
}
function openResaWindow(theURL,wi,he) { //v2.0
	wdt = (wi) ? wi : 400;
	hgt = (he) ? he : 340;
 var theWindow = window.open(theURL,'popup','toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+wdt+',height='+hgt+'');
theWindow.focus();
}

function openJPGWindow(theURL,w,h) { //v2.0
  var width=w, height=h;
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  var ImageWindow = window.open("","ImageWindow", styleStr);
 var head = '<html><head><title>Image '+width+'x'+height+'</title>';
  head = head+'<style type="text/css">body {margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}</style></head>';
var bbody ='<body><img src="'+theURL+'" width="'+w+'" height="'+h+'" alt="'+theURL+'"></body></html>';
ImageWindow.document.write(head+bbody);

//var ImageWindow =window.open(theURL,'popup','toolbar=no,status=no,menubar=no,scrollbars=no,resizable=yes,width='+w+',height='+h);
ImageWindow.focus();
}

function openEditWindow(theURL) { //v2.0
var theWindow =window.open(theURL,'popupedit','toolbar=no,status=yes,menubar=no,resizable=yes,scrollbars=yes,width=740,height=560');
theWindow.focus();
}
function openWebArtchitecteWindow(theURL) { //v2.0
var theWindow =window.open(theURL,'popup','toolbar=no,status=yes,menubar=no,resizable=yes,scrollbars=yes,width=400,height=300');
theWindow.focus();
}
function openOptionsWindow(theURL) { //v2.0
 var theWindow = window.open(theURL,'popup','toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=375,height=300');
theWindow.focus();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  var theWindow =window.open(theURL,winName,features);
theWindow.focus();
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function delArticle(url){
 if (confirm("Voulez-vous vraiment supprimer cet article?\nCet article peut être présent dans une autre page...")) {
           document.location=url;
  }
}
function delImage(url){
 if (confirm("Voulez-vous vraiment supprimer cette image?")) {
           document.location=url;
  }
}
function OpenCartes(URLtoOpen){
var w1 = screen.width/2-270;
var h1 = screen.height/2-200;
var w2 = 540;
var h2 = 405;
window.open(URLtoOpen,'carte','status=yes,width='+w2+',height='+h2+',top='+h1+',left='+w1+'');
}

function openCarteWindow(theURL) { //v2.0
 var theWindow = window.open(theURL,'carteWindow','toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=710,height=735');
theWindow.focus();
}
function closeWin(){
	window.close();
	
}
function putFlash(theflash,wi,he){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+wi+'" height="'+he+'">');
    document.write('<param name="movie" value="/images/Flash/'+theflash+'">');
    document.write('<param name="quality" value="high">');
    document.write('<embed src="/images/Flash/'+theflash+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+wi+'" height="'+he+'"></embed>');	   
	document.write(' </object>');
	
}

