function fnLoadPngs()
	{
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
	
	for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--)
		{
		if (itsAllGood && img.src.match(/\.png$/i) != null)
			{
			var src = img.src;
			var div = document.createElement("DIV");
			div.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizing='scale')"
			div.style.width = img.width + "px";
			div.style.height = img.height + "px";
			img.replaceNode(div);
			}
		img.style.visibility = "visible";
		}
	}

function intFlash(paze,w,h,flashvars,wmode)
	{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=9,0,16,0" width="'+w+'" height="'+h+'">');
	document.write('<param name="movie" value="'+paze+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="'+wmode+'">');
	document.write('<param name="FlashVars" value="'+flashvars+'">');
	document.write('<embed src="'+paze+'" quality="high" wmode="'+wmode+'" FlashVars="'+flashvars+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed></object>');
	}


function popup_redim_image(img)
	{
	titre = "Ommegang";
	w=open("",'image','width=10,height=10,toolbar=no,scrollbars=no,resizable=no');
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE><script>function closeme() {self.close();}</"+"script></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+9,document.images[0].height+60); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY bgcolor=#000000 onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><a href=javascript:closeme()><IMG src='"+img+"' border=0></a>");
	w.document.write("</BODY></HTML>");
	w.document.close();
	}

function wopen(paze,w,h)
	{
	window.open(paze,"windowname","toolbar=no,location=no,directories=no,status=yes,scrollbars=no,menubar=no,resizable=no,dependent,width="+w+",height="+h)
	}
	
if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent)
	{
	document.writeln('<style type="text/css">img { visibility:hidden; } </style>');
	window.attachEvent("onload", fnLoadPngs);
	}

function checksize()
	{
	my_height = document.getElementById('img_detail').height + 130;
	my_width = document.getElementById('img_detail').width + 10; 
	
	window.resizeTo(my_width, my_height);
	window.focus();
	}

function change_image(lakel)
	{
	document.getElementById('image_max').src = lakel;
	}


