document.write('&nbsp');

// CONFIG
var MM_contentVersion = 6; // flash version
var button_url = "jeux_nl.gif"; // button url
var MM_url = "jeux_nl.swf"; // flash content
var alt_url = ""; // alt content
var layer_visibility="visible"; // default layer visibility
var layer_left="0";
var layer_top="0";
var layer_width="340"; // default layer width (same value for the flash width)
var layer_height="450"; // default layer height (same value for the flash width)
var midHeight, midWidth;

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
if (navigator.appVersion.indexOf("Mac") > 0 && navigator.userAgent.indexOf("MSIE")>=0) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //hide this from IE4.5 Mac
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //hide this from IE4.5 Mac
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');

}

// Insert layer
document.write('<div id="game" style="position:absolute; left:40px; top:180px; visibility: '+layer_visibility+';">');

// If flash -> insert flash content
if (MM_FlashCanPlay) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
	document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"');
	document.write('width="'+layer_width+'" height="'+layer_height+'" id="ad">');
	document.write('<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+MM_url+'" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="'+MM_url+'" quality="high" wmode="transparent" width="'+layer_width+'" height="'+layer_height+'" name="ad" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
} else{
// Else  -> insert alt content
	document.write('<a href="" target="_blank" onClick=javascript:showHideLayers("hidden")>');
	document.write('<img border=0 src="'+alt_url+'"');
	document.write('</a>');
}
document.write('&nbsp;</div>');
// SHOW / HIDE AD LAYER

function showHideLayers(visibility) {
  obj = document.getElementsByTagName("div");
  obj["game"].style.visibility = visibility;
}

