//$ =======================================================================
//$ Fonction qui ouvre une fenêtre est qui conserve l'identifiant
//$ =======================================================================
function FCT_OpenWindow(s1, s2, s3){var o;var i1 = 0;var i2 = 0;var i3 = "";var i4="N";var i5="N";var i6="N";var i7="N";var a1 = new Array();var a2 = new Array();var i8 = 0;var i9 = parseInt(screen.availWidth);var i10 = parseInt(screen.availHeight);var s4 = "";a1 = String(s3).split(',');for(i8 = 0; i8 < a1.length; i8++){a2 = String(a1[i8]).split('=');if((String(a2[0]).toUpperCase() != "LEFT") && (String(a2[0]).toUpperCase() != "TOP")){if(s4 == "")s4 = a1[i8];else s4 += ',' + a1[i8];}switch(String(a2[0]).toUpperCase()){case "WIDTH":i6 = a2[1];break;case "HEIGHT":i7 = a2[1];break;case "TOP":i5 = a2[1];break;case "LEFT":i4 = a2[1];break;}}if(i4 == "N"){if (i6 == "N")i2 = 0;else i2 = ((parseInt(i9) - parseInt(i6)) / 2);}if(i5 == "N"){if (i7 == "N")i1 = 0;else i1 = ((parseInt(i10) - parseInt(i7)) / 2);}if(s4 == "")s4 = 'top=' + i1;else s4 += ',top=' + parseInt(i1);s4 += ',left=' + parseInt(i2);o = window.open(s1, s2, s4);o.creator = self;}

//fonction appel flash à cause de ce putain d'IE7
function includeFlash(id, version, width, height, align, movie, bgcolor, menu, loop, quality, scale, salign, flashvars, noembed, wmode) {
	htmlFlash  = '<object id="' + id + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + version + '" width="' + width + '" height="' + height + '" align="' + align + '">';
	htmlFlash += '<param name="wmode" value="' + wmode + '" />';
	htmlFlash += '<param name="movie" value="' + movie + '" />';
	htmlFlash += '<param name="bgcolor" value="' + bgcolor + '" />';
	htmlFlash += '<param name="menu" value="' + menu + '" />';
	htmlFlash += '<param name="loop" value="' + loop + '" />';
	htmlFlash += '<param name="quality" value="' + quality + '" />';
	htmlFlash += '<param name="scale" value="' + scale + '" />';
	htmlFlash += '<param name="salign" value="' + salign + '" />';
	htmlFlash += '<param name="flashvars" value="'+ flashvars + '" />';
	htmlFlash += '<embed name="' + id + '" src="' + movie + '" wmode="' + wmode + '" width="' + width + '" height="' + height + '" swLiveConnect="true" salign="' + salign + '" align="' + align + '" flashvars="' + flashvars + '" scale="'+ scale + '" bgcolor="' + bgcolor + '" quality="' + quality + '" menu="' + menu + '" loop="'+ loop + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
	htmlFlash += '<noembed>' + noembed + '</noembed>';
	htmlFlash += '</object>';
	document.write(htmlFlash);
}
/*
<script language="javascript" src="/gene/js/includeswfsolo.js"></script>


<script>
// on déclare les flash vars avec des &amp; pour les séparer...
strFlashVars += "fv_nouveautes_bool=true&amp;fv_mike_bool=true&amp;";

includeFlash("main", "8,0,0,0", "100%", "100%", "center", "graphics/graphic-desktop.swf", "#FFFFFF", "false", "false", "best", "noscale", "TL", strFlashVars, "Main", "");

includeFlash("swfprehome", "6,0,29,0", "584", "267", "center", "/gene/swf/prehome.swf", "", "false", "false", "best", "", "", "", "", "transparent");
</script>*/


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:inline-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 " + 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
}
}
}
window.attachEvent("onload", correctPNG);
