$( function( ){ 

  myOverMenu( ) ;

  // pour rafraichir le captcha
  if( exists( 'captcha_image' ) && exists( 'captcha_refresh_button' ) ){ $( '#captcha_refresh_button' ).click( function( ){ refreshCaptcha( ) ; } ) ; }

  // pour le bouton d'ajout aux favoris
  $( '#bouton_ajouter_au_favoris' ).click( function( ){ 
    // alert( navigator.appName ) ;
    if ( navigator.appName != 'Microsoft Internet Explorer' ){          
      window.sidebar.addPanel( this.title, this.href, "" );
    }else{
      window.external.AddFavorite( $( this ).attr( 'href' ) , $( this ).attr( 'title' ) ) ;
    }
    return false ;
  } ) ;

  // si formulaire membre secteurs d'activité
  if( exists( 'formulaire_secteurs_d_activite' ) ){ setFormulaireSecteursDactivite( ) ; }

  // pour le formulaire de depot d'annonce de projet
  if( exists( 'depot_annonce_form' ) ){ setFormulaireDepotAnnonce( true ) ; }

  // pour le bouton reset dans le formulaire de recherche d'annonces :
  if( exists( 'reset_recherche_form' ) ){ $( '#reset_recherche_form' ).click( function( ){
    $( '#recherche_type' ).val( 'all' ) ;
    $( '#recherche_secteurs' ).val( false ) ;
    $( '#recherche_regions' ).val( false ) ;
    $( '#recherche_form' ).submit( ) ;
  } ) ; }

//  designBoites( ) ;
  
//  if( !exists( 'openTheLogDiv' ) ){ $( '#log_div' ).hide( ) ; }
//  $( '#bt_espace_client' ).hover( function( ){ $( '#log_div' ).slideDown( 'fast' ) ; } , function( ){ $( '#log_div' ).slideUp( 'fast' ) ; } ) ;
//
//  hs.wrapperClassName = 'wide-border';
//  hs.outlineType = 'rounded-white';
//  hs.graphicsDir = 'js/highslide/graphics/';

  // pour le hover sur les menus
	$("img.rollover").hover(function() {
		$(this).attr("src", $(this).attr("src").split(".").join("_on."));
	}, function() {
		$(this).attr("src", $(this).attr("src").split("_on.").join("."));
	});
  
} ) ;
