<!--

/*
* 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 = '/images/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( '/images/correct_transparent_png.gif' )";
					images_list[ i ].runtimeStyle.filter          = "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='" + image_name + "', sizingMethod='scale' )";
				}
			}
		}
		return true;
	}
	
	var azert	= navigator.userAgent ;
	if ( azert.indexOf('MSIE 6') != -1 )
	{
		window.onload = function()
		{
			//	These functions repair the transparent PNG problem
			correct_png_images();
			correct_png_background();
			//	return true;
		}
	}

	var a, s, n;
	function Crypt(s) {
		r	= '' ;
		for ( i=0; i<s.length; i++ )
		{
			n	= s.charCodeAt(i) ;
			if ( n >= 8364 )
			{
				n = 128 ;
			}
			r += String.fromCharCode( n - 3 ) ;
		}
		return r ;
	}
	function my_Cmail ()
	{
		a	= "pdlowr=" ;
		m	= '&#64;' ;
		d	= unescape(m) ;
		var nom		= "cnipt" ;
		var domaine	= "cnipt.com" ;
		var aro		= nom + d + domaine ;
		var out_1	= document.write('<a href="'+Crypt(a) + aro + '?subject=cnipt.com%20-%20plus%20d\'info%20sur..." style="color:#FFFFFF; font-family:Arial; font-size:11px;">') ;
		var out_2	= document.write('Contactez-nous</a>') ;
		
		return out_1 + out_2 ;
	}
//-->
