var browser;
function PopUp(src)
	{
	size=",width=670,height=650"
    	browser=window.open(src, "","scrollbars=yes,resizable=no,toolbar=no,status=no,menubar=no,location=no,directories=no"+size)
	}

function PopUpSpe(src,name,w,h)
	{
	size=",width="+w+",height="+h
	browser=window.open(src, name,"scrollbars=yes,resizable=yes,toolbar=yes,status=yes,menubar=yes,location=yes,directories=no"+size)
	}
	
function PopupImage(img) {
	titre="Mecacyl";
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</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();
}

        HM_PG_MenuWidth = 209;
		HM_PG_FontFamily = "arial,sans-serif";
		HM_PG_FontSize = 8;
		HM_PG_FontBold = 1;
		HM_PG_FontItalic = 0;
		HM_PG_FontColor = "black";// parait inutile
		HM_PG_FontColorOver = "#99CCFF";// parait inutile
		HM_PG_BGColor = "#99CCFF";// parait inutile
		HM_PG_BGColorOver = "";// parait inutile
		HM_PG_ItemPadding = 1;
		
		HM_PG_BorderWidth = 1;
		HM_PG_BorderColor = "#4899b1";
		HM_PG_BorderStyle = "solid";
		HM_PG_SeparatorSize = 1; // fonctionne !
		HM_PG_SeparatorColor = "#00CCFF"; // parait inutile
		
		HM_PG_ImageSrc = "Images/SousMenu/PtTriangle.gif";
		HM_PG_ImageSrcLeft = "Images/SousMenu/Pixel.gif";
		HM_PG_ImageSrcOver = "Images/SousMenu/PtTriangle.gif";
		HM_PG_ImageSrcLeftOver = "Images/SousMenu/Pixel.gif";
		
		HM_PG_ImageSize = 10;
		HM_PG_ImageHorizSpace = 0;
		HM_PG_ImageVertSpace = 5;
		
		HM_PG_KeepHilite = true; 
		HM_PG_ClickStart = 0;
		HM_PG_ClickKill = false;
		HM_PG_ChildOverlap = 60;
		HM_PG_ChildOffset = 10;
		HM_PG_ChildPerCentOver = null;
		HM_PG_TopSecondsVisible = .5;
		HM_PG_StatusDisplayBuild =0;
		HM_PG_StatusDisplayLink = 1;
		HM_PG_UponDisplay = null;
		HM_PG_UponHide = null;
		HM_PG_RightToLeft = 0;
		
		HM_PG_CreateTopOnly = 0;
		HM_PG_ShowLinkCursor = 1;
		HM_PG_NSFontOver = true;
		
		//HM_a_TreesToBuild = [2];
		
		
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;





//Thumbnail image viewer- 
//? Dynamic Drive (www.dynamicdrive.com)
//For full source code, usage terms, and 100's more DHTML scripts, visit http://www.dynamicdrive.com

var ie=document.all
var ns=document.layers
var ns6=document.getElementById&&!document.all

function enlarge(which,e){
//Render image code for IE 4+ and NS6
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (crossobj.style.visibility=="hidden"){
//  crossobj.style.left=ns6? pageXOffset+e.clientX : document.body.scrollLeft+event.clientX
//  crossobj.style.top=ns6? pageYOffset+e.clientY : document.body.scrollTop+event.clientY
crossobj.style.left=ns6? pageXOffset + 8: document.body.scrollLeft + 8
crossobj.style.top=ns6? pageYOffset + 50 : document.body.scrollTop + 50
crossobj.innerHTML='<div align=right class=drag id=drag><b onClick=closepreview()><IMG width="16" height="16" src="../Images/cross.png" border="0"></b></div><img src="'+which+'">'
crossobj.style.visibility="visible"
}
else
crossobj.style.visibility="hidden"
return false
}
//Render image code for NS 4
else if (document.layers) {
if (document.showimage.visibility=="hide") {
document.showimage.document.write('<table border="0" cellspacing="0" cellpadding="2" bgcolor="#000080"><tr><td><A href="#" onClick="closepreviewNS();"><IMG width="16" height="16" src="../Images/cross.png" border="0"></A></td><td class="drag" width="230">&nbsp;</td></tr></table><a href="#" onMouseover="drag_dropns(showimage)"><img src="'+which+'" border=0></a>')
document.showimage.document.close()
//  document.showimage.left=e.x
//  document.showimage.top=e.y
document.showimage.left=8;
document.showimage.top= pageYOffset + 50;
document.showimage.visibility="show"
}
else
document.showimage.visibility="hide"
return false
}
//if NOT IE 4+ or NS 4, simply display image in full browser window
else
return true
}

function closepreview(){
  crossobj.style.visibility="hidden";
}

function closepreviewNS(){
  document.showimage.visibility="hide";
}


//By Dynamicdrive.com
//drag drop function for NS 4////
/////////////////////////////////

var nsx,nsy,nstemp

function drag_dropns(name){
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}

function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}

function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}

//drag drop function for IE 4+ and NS6////
/////////////////////////////////

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx
crossobj.style.top=tempy+e.clientY-offsety
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="drag"||ns6&&e.target.id=="drag"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown = initializedrag
document.onmouseup = new Function("dragapproved=false")
