		/////////////////////////////////////////////////////////////////////////////////////
	   //																				  //
	  //							FONCTION PRELOAD GLOBAL								 //
	 //																					//
	/////////////////////////////////////////////////////////////////////////////////////

	//  preload global des images >>>> onLoad="preloadcommun(); SwitchRub (rub);"

	function preloadcommun()
	{
		// Chargement des images menu haut
		if ( jvsenable )
		{
				ImTmp = new Image ();
				ImTmp.src = "img/h_menu_renovation_on.gif";
				ImTmp2 = new Image ();
				ImTmp2.src = "img/h_menu_cursus_on.gif";
				ImTmp3 = new Image ();
				ImTmp3.src = "img/h_menu_contact_on.gif";
				ImTmp4 = new Image ();
				ImTmp4.src = "img/h_menu_batiments_on.gif";
				ImTmp5 = new Image ();
				ImTmp5.src = "img/h_menu_contact2_on.gif";

		}

	}

	function SwitchImg (im,sr)
	{
		if (jvsenable)
		{
			if ( document[im] != null ) document [im].src = sr;
		}
	}

	function SwitchRub (r)
	{
		SwitchImg ('h_menu_renovation'	,	'img/h_menu_renovation.gif');
		SwitchImg ('h_menu_cursus'		,	'img/h_menu_cursus.gif');
		SwitchImg ('h_menu_contact'		,	'img/h_menu_contact.gif');
		SwitchImg ('h_menu_contact2'	,	'img/h_menu_contact2.gif');
		SwitchImg ('h_menu_batiments'	,	'img/h_menu_batiments.gif');
		
		if ( r == 'h_menu_renovation')
		{
			SwitchImg ('h_menu_renovation'	,	'img/h_menu_renovation_on.gif');
		}
		
		if ( r == 'h_menu_cursus')
		{
			SwitchImg ('h_menu_cursus'	 ,	'img/h_menu_cursus_on.gif');
		}

		if ( r == 'h_menu_contact')
		{
			SwitchImg ('h_menu_contact' ,		'img/h_menu_contact_on.gif');
		}
		
		if ( r == 'h_menu_contact2')
		{
			SwitchImg ('h_menu_contact2' ,		'img/h_menu_contact2_on.gif');
		}

		if ( r == 'h_menu_batiments')
		{
			SwitchImg ('h_menu_batiments' ,		'img/h_menu_batiments_on.gif');
		}

	}

	// appel la fonction d'activation de la rubrique
	//	SwitchRub (rub);

	// quand on resize netscape, il reclique le menu
		function resize (evnt)
		{
				SwitchRub (rub);
				return true;
		}

		window.onResize = resize;


	




		///////////////////////////////////////////////////////////////////////////////////////////////////////
	   //																									//
	  //									Popup fenêtre javascript									   //
	 //																									  //
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	   
	// popupwin
	// <A HREF="xxxxx" onclick="PopupWin('xxxxx','Popupwin','yes','yes','550','370','200','200');return(false);">

	function PopupWin(URL,FRAME,SCROLLBARS,RESIZABLE,WIDTH,HEIGHT,TOP,LEFT)
	{
		var param = "menubar=no,location=no,directories=no,status=no,toolbar=no,scrollbars="+SCROLLBARS+",resizable="+RESIZABLE+",width="+WIDTH+",height="+HEIGHT+",top="+TOP+",left="+LEFT;
		window.open(URL,FRAME,param); 
	}

	// popupall
	// se redimensione par raport a l'ecran
	// <A HREF="xxxxx" onclick="Popupall('popup.shtml','Popupall','yes');return(false);">

	function Popupall(URL,FRAME,RESIZABLE)
	{
		var param = "menubar=no,location=no,directories=no,status=no,toolbar=no,scrollbars=yes,resizable="+RESIZABLE+",width="+((screen.width)-150)+",height="+((screen.height)-150)+",top=20,left=100";
		window.open(URL,FRAME,param);
	}


		//////////////////////////////////////////////////////////////////////////////////////////////
	   //                                                                                          //
	  //						print	<a href="javascript:imprimer();">						  //
	 //                                                                                          //
	//////////////////////////////////////////////////////////////////////////////////////////////


	// fonction print

	function imprimer()
	{

		if (printenable)
		{
			window.print();
		}
		else
		{
			alert("Votre navigateur n'est pas compatible.\nCliquez sur ok, puis faire clic droit sur la souris\nenfin cliquez sur \"Imprimer\" dans menu contextuel.\nOu Appuyez sur les touches CTRL + P sur PC.")
		}

	}



/*  --------------------------------------------------------------------------------------------------------------	*
 *	retaille fenetre																								*
 *	<body onload="window.focus(); RetaillerFenetre();">																*
 *	<a href="javascript:window.close();"><IMG SRC="xxx" name="i" border=0 alt="Cliquer pour fermer la fenêtre"></a>	*	
 *  --------------------------------------------------------------------------------------------------------------	*/
	
		function RetaillerFenetre()
			{
			if (iedetect == true)
				window.resizeTo(document.i.width+12,document.i.height+30);
			else
				window.resizeTo(document.i.width+8,document.i.height+48);

			window.focus();
			}

/*  ------------------------------------------------
 *  Kyxar Dhtml Lib                                *
 *    Librairie de manipulation d'objets DHTML     *
 *  [C] Kyxar / RS - 2001,2002,2003                *
 *  Contact, Info : http://www.kyxar.fr            *
 *                                                 *
 *  Basé sur Next Generation cross-browser DHTML   *
 *  de http://devedge.netscape.com                 *
 *  Compatibilité : IE5+ NS6+ Opera6+              *
 *  ---------------------------------------------- */

function positionner_layers()
{
var x,y;

    win_w=document.body.clientWidth;
	win_h=document.body.clientHeight;

	// Position de la signature
    oP2=document.getElementById('P2');
	if (oP2)
		{
	    oP2.style.left = win_w - 130;
		oP2.style.top  = win_h - 17;
        oP2.style.visibility = "Visible";
		}
}