/****************************/
/***** FONCTIONS JQUERY *****/
/****************************/
var jQueryObject = jQuery.noConflict();


/** PNG Fix **/
jQueryObject(document).ready(function(){ 
	jQueryObject(document).pngFix();
});

function getFlexApp(appName)
{
  if (navigator.appName.indexOf ("Microsoft") !=-1)
  {
    return window[appName];
  }
  else
  {
    return document[appName];
  }
}

// Menus déroulant type "select" //
jQueryObject(document).ready(function(){ 
	jQueryObject(".select").toggle(
		function() {
			jQueryObject(".menu-select").hide();
			jQueryObject(this).nextAll(".menu-select").slideDown("fast");
		},
		function() {
			jQueryObject(".menu-select").slideUp("fast");
		}
	);
	jQueryObject(document).bind("click", function(e) {
		var jQueryObjectclicked = jQueryObject(e.target);
		if (! jQueryObjectclicked.parents().hasClass(".ctn_select"))
		jQueryObject(".menu-select").slideUp("fast");
	});
});


/** Menu déroulant navigation 
//var nNumMenuCourantNavigation = -1;

function OnMouseOverNavigation ( nNumMenu )
{
	var strSubMenuName;

	strSubMenuName = "#nav_sousmenu" + nNumMenu;

	jQueryObject(strSubMenuName).show();

	if ( nNumMenuCourantNavigation != -1 )
	{
		if ( nNumMenu != nNumMenuCourantNavigation )
		{
			strSubMenuName = "#nav_sousmenu" + nNumMenuCourantNavigation;

			jQueryObject(strSubMenuName).hide();
		}
	}
	else
	{
		for ( nNumMenuTotal=1; nNumMenuTotal<7; nNumMenuTotal++ )
		{
			if ( nNumMenuTotal != nNumMenu )
			{
				strSubMenuName = "#nav_sousmenu" + nNumMenuTotal;
				jQueryObject(strSubMenuName).hide();
			}
		}
	}
}

function OnMouseOutNavigation( nNumMenu )
{
	var strSubMenuName;

	//- Un menu est actif
	if ( nNumMenuCourantNavigation != -1 )
	{
		strSubMenuName = "#nav_sousmenu" + nNumMenu;

		jQueryObject(strSubMenuName).hide();

		strSubMenuName = "#nav_sousmenu" + nNumMenuCourantNavigation;

		jQueryObject(strSubMenuName).show();
	}
}

jQueryObject(document).ready(function() 
{
	jQueryObject('#nav_menu1').mouseover ( function ( ) { OnMouseOverNavigation( 1 ); } );
	jQueryObject('#nav_menu1').mouseout ( function ( ) { OnMouseOutNavigation ( 1 ); } );

	jQueryObject('#nav_menu2').mouseover ( function ( ) { OnMouseOverNavigation( 2 ); } );
	jQueryObject('#nav_menu2').mouseout ( function ( ) { OnMouseOutNavigation ( 2 ); } );

	jQueryObject('#nav_menu3').mouseover ( function ( ) { OnMouseOverNavigation( 3 ); } );
	jQueryObject('#nav_menu3').mouseout ( function ( ) { OnMouseOutNavigation ( 3 ); } );

	jQueryObject('#nav_menu4').mouseover ( function ( ) { OnMouseOverNavigation( 4 ); } );
	jQueryObject('#nav_menu4').mouseout ( function ( ) { OnMouseOutNavigation ( 4 ); } );

	jQueryObject('#nav_menu5').mouseover ( function ( ) { OnMouseOverNavigation( 5 ); } );
	jQueryObject('#nav_menu5').mouseout ( function ( ) { OnMouseOutNavigation ( 5 ); } );

	OnMouseOverNavigation ( nNumMenuCourantNavigation )
});
*/