<!--

/*
* This file was created by Kévin CHALET (KevinChalet@hotmail.com)
* You didn't created this script... then you have to leave this text here... thanks !
*/
	function correct_png_images()
	{
		if ( document.all )
		{
			/*
			* Create a array who contains the tags list
			*/
			var images_list = document.getElementsByTagName( 'img' );
			for ( var i = 0; i < images_list.length; i++ )
			{
				var image      = images_list[ i ];
				var image_name = image.src;
				if ( image_name.substring( image_name.length - 3, image_name.length ) == 'png' )
				{
					/*
					* Replace image location by the transparent GIF image
					*/
					image.src = 'javascript/correct_transparent_png.gif';
					/*
					* Create a Microsoft filter and add old style
					*/
					image.style.cssText += ";filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( src='" + image_name + "', sizingMethod='scale' );";
				}
			}
		}
		return true;
	}

	function correct_png_background()
	{
		if ( document.all )
		{
			var images_list = document.getElementsByTagName( '*' );
			for ( var i = 0 ; i < images_list.length; i++ )
			{
				/*
				* Swap the image location */
				var image_name = images_list[ i ].currentStyle.backgroundImage.replace( /url[s]*()+/, '' );
				image_name     = image_name.replace( /(")+/g, '' );
				image_name     = image_name.substr( 1, image_name.length - 1 );
				image_name     = image_name.substr( 0, image_name.length - 1 );
				if ( image_name.substring( image_name.length - 3, image_name.length ) == 'png' )
				{
					/*
					* Replace by the transparent GIF image */
					images_list[ i ].runtimeStyle.backgroundImage = "url( 'javascript/correct_transparent_png.gif' )";
					images_list[ i ].runtimeStyle.filter          = "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='" + image_name + "', sizingMethod='scale' )";
				}
			}
		}
		return true;
	}

	

	window.onload = function()
	{
	//alert('jph');
		var azert	= navigator.userAgent ;
		if ( azert.indexOf('MSIE 6') != -1 )
		{
		/*	These functions repair the transparent PNG problem */
			correct_png_images();
			//correct_png_background();
		}
		return true;
	}


//-->
