function writePNG32( src, id, w, h, dx, dy ) {

	browser = 'msie';
	var detect = navigator.userAgent.toLowerCase();
	place = detect.indexOf(browser) + 1;
	if (place) {
		version = detect.charAt(place + browser.length);
		if ( version >= 5 && version <= 6 ) {
			// that is used as a container, so the absolutely positioned elements will be displayed inline. The height and width should match those of the image
			// the image will be aligned correctly and absolute position makes AlphaImageLoader work
			// apply the background image with Alpha in IE5.5/Win. The src should match that of the image 
			// make the real image fully transparent in IE5.5/Win, so the Alpha image can show through 
			document.write( '<span style="position:relative;left:'+dx+'px;top:'+dy+'px;'+w+':xpx;'+h+':ypx;" id="x">' );
			document.write( '<span style="position:absolute;left:0px;top:0px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+src+'\');" id="'+id+'">' );
			document.write( '<img style="filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" src="'+src+'" width="'+w+'" height="'+h+'" border="0">' );
			document.write( '</span>' );
			return;
		}
	}

	document.write( '<img id="'+id+'" src="'+src+'" border="0">' );
}
function popup(url, titre, w, h, scl){
	var param = "toolbar=no,location=no,directories=no,menubar=no, scrollbars="+scl+",status=no,resizable=0,width="+w+",height="+h;
	var hand0 = window.open(url,titre, param);
	if(hand0 != null){
		if(hand0.opener == null)
			hand0.opener = self;
		hand0.focus();
	}
}
function preloadImage( url ) {
	if ( document.images ) {
		ima = new Image;
		ima.src = url;
	}
}
function swapMenuImage( id1, id2 ) {
	document.getElementById( id1 ).src = id2;
}
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

