
// Fil d'Ariane

function ExtraireURL(url) {
	var separateur = " > ";
	var tjs = url.indexOf("/",7)
	var tjs2= 0;
	var domaine=url.substring(7,url.indexOf("/",7));
	document.write("<A href='"+url.substring(0,tjs)+"'>Accueil</A>");
	while (tjs>1) {
		tjs2 = url.indexOf("/",tjs+1);
		if (tjs2>0) {
			rep = url.substring(tjs+1,tjs2);
			document.write( separateur + "<A href='"+url.substring(0,tjs2)+"'>"+rep+"</A>");
		} else {
			rep = url.substring(tjs+1,9999);
			document.write( separateur + rep);
			/*document.write( separateur + "<A href='"+url.substring(0,9999)+"'>"window.document.title"</A>"); window.document.title permet de recuperer le titre de la page*/
		}
		tjs = url.indexOf("/",tjs+1);
	}
}


/* Pour corriger la transparence des png en image de background avec IE
* 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_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( 'img/pix.gif' )";
								images_list[ i ].runtimeStyle.filter          = "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='" + image_name + "', sizingMethod='scale' )";
							}
					}
			}
		
		return true;
	}

window.onload = function()
	{
		correct_png_background();
		return true;
	}
