///* Fonction de Pop Up centré *///
  function popUp(adresse, w_name, w_width, w_height, showLocation, showToolbar, showStatus, showMenuBar, showDirectories, showCopyHistory, showScrollBars, showResizable){

    LeftPosition = (screen.width) ? (screen.width-w_width)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-w_height)/2 : 0;

    window.open(adresse, (showLocation==null?'window_name':w_name), "location="+(showLocation==true?'yes':'no')+", toolbar="+(showToolbar==true?'yes':'no')+", status="+(showStatus==true?'yes':'no')+", menubar="+(showMenuBar==true?'yes':'no')+", directories="+(showDirectories==true?'yes':'no')+", copyhistory="+(showCopyHistory==true?'yes':'no')+", scrollbars="+(showScrollBars==true?'yes':'no')+", resizable="+(showResizable==true?'yes':'no')+", width="+w_width+", height="+w_height+", top="+TopPosition+", left="+LeftPosition+"");

  }
  
var firefox = navigator.userAgent.indexOf('Firefox') != -1
var explorer = navigator.userAgent.indexOf('MSIE') != -1
var explorer7 = navigator.userAgent.indexOf('MSIE 7.0') != -1
var netscape = navigator.userAgent.indexOf('Netscape') != -1
var safari = navigator.userAgent.indexOf('Safari') != -1
var opera = navigator.userAgent.indexOf('Opera') != -1
var camino = navigator.userAgent.indexOf('Camino') != -1
var macintosh = navigator.platform.indexOf('Mac') != -1

 function correctPNG() {

	for(var i=0; i<document.images.length; i++) {
		var img = document.images[i]
		var imgName = img.src.toUpperCase()
		if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
			
			var imgID = (img.id) ? "id='" + img.id + "' " : ""
			var imgClass = (img.className) ? "class='" + img.className + "' " : ""
			var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
			var imgStyle = "display:block;" + img.style.cssText 
			if (img.align == "left") imgStyle = "float:left;" + imgStyle
			if (img.align == "right") imgStyle = "float:right;" + imgStyle
			if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
			var strNewHTML = "<span class=\"pngFix\" " + imgID + imgClass + imgTitle
			+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
			+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
			+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
			img.outerHTML = strNewHTML
			i = i-1
		}
	}
}



if (explorer && !explorer7) {
	window.attachEvent('onload', correctPNG);
	//alert("ie6");
}
