function show_hide(bloc1,bloc2) {

  if((document.getElementById(bloc1).style.display=='block')||(document.getElementById(bloc1).style.display=='')){
    jQuery('#'+bloc1).slideUp('slow');
    jQuery('#'+bloc2).slideUp('slow');
  }
  
  if(document.getElementById(bloc1).style.display=='none'){
    jQuery('#'+bloc1).slideDown('slow');
    jQuery('#'+bloc2).slideDown('slow');
    
    document.getElementById(bloc1).style.display='inline';
    document.getElementById(bloc2).style.display='table-row';
  }

}


function select_accueil() {

  //jQuery('.accueil').css({'top':'13px'});
  
  jQuery('#point_accueil').html("<img src='images/point_menu.png' height=10px; width=10px; />");
  
  jQuery('#span_accueil span').css({'font-weight':'bold','font-style':'italic','color':'white','font-family':'Times,Arial,Verdana','font-size':'16px','top':'8px'});

  jQuery('#span_accueil span').hover(
                    function(){
                      jQuery('#point_accueil').html("<img src='images/point_menu.png'  height=10px; width=10px;  />");

                      },
                     function(){
                      jQuery('#point_accueil').html("<img src='images/point_menu.png'  height=10px; width=10px; />");

                      }
        );
				
						jQuery('.accueil').hover(
                    function(){
                      jQuery('#point_accueil').html("<img src='images/point_menu.png' height=10px; width=10px; />");
										},
										function() {
											 jQuery('#point_accueil').html("<img src='images/point_menu.png' height=10px; width=10px; />");
										}
						);
        
}


function select_realisations() {
  
  /*jQuery('.realisations').css({'top':'9px'});*/
  
  jQuery('#point_realisations').html("<img src='images/point_menu.png' height=10px; width=10px; />");
  
  jQuery('#span_realisations span').css({'font-weight':'bold','font-style':'italic','color':'white','font-family':'Times,Arial,Verdana','font-size':'16px','top':'8px'});

  jQuery('#span_realisations span').hover(
                    function(){
                      jQuery('#point_realisations').html("<img src='images/point_menu.png'  height=10px; width=10px;  />");

                      },
                     function(){
                      jQuery('#point_realisations').html("<img src='images/point_menu.png'  height=10px; width=10px; />");

                      }
        );
				
				
			jQuery('.realisations').hover(
                    function(){
                      jQuery('#point_realisations').html("<img src='images/point_menu.png' height=10px; width=10px; />");
										},
										function() {
											 jQuery('#point_realisations').html("<img src='images/point_menu.png' height=10px; width=10px; />");
										}
						);
}

function select_hebergement() {
  
  /*jQuery('.hebergement').css({'top':'7px'});*/
  
  jQuery('#point_hebergement').html("<img src='images/point_menu.png' height=10px; width=10px; />");
  
  jQuery('#span_hebergement span').css({'font-weight':'bold','font-style':'italic','color':'white','font-family':'Times,Arial,Verdana','font-size':'16px','top':'8px'});

  jQuery('#span_hebergement span').hover(
                    function(){
                      jQuery('#point_hebergement').html("<img src='images/point_menu.png'  height=10px; width=10px;  />");

                      },
                     function(){
                      jQuery('#point_hebergement').html("<img src='images/point_menu.png'  height=10px; width=10px; />");

                      }
        );
				
				
				
				jQuery('.hebergement').hover(
                    function(){
                      jQuery('#point_hebergement').html("<img src='images/point_menu.png' height=10px; width=10px; />");
										},
										function() {
											 jQuery('#point_hebergement').html("<img src='images/point_menu.png' height=10px; width=10px; />");
										}
						);
        
}

function select_contact() {

  /*jQuery('.contacts').css({'top':'7px'});*/
  
  jQuery('#point_contacts').html("<img src='images/point_menu.png' height=10px; width=10px; />");
  
  jQuery('#span_contacts span').css({'font-weight':'bold','font-style':'italic','color':'white','font-family':'Times,Arial,Verdana','font-size':'16px','top':'8px'});

  jQuery('#span_contacts span').hover(
                    function(){
                      jQuery('#point_contacts').html("<img src='images/point_menu.png'  height=10px; width=10px;  />");

                      },
                     function(){
                      jQuery('#point_contacts').html("<img src='images/point_menu.png'  height=10px; width=10px; />");

                      }
        );
				
				
				jQuery('.contacts').hover(
                    function(){
                      jQuery('#point_contacts').html("<img src='images/point_menu.png' height=10px; width=10px; />");
										},
										function() {
											 jQuery('#point_contacts').html("<img src='images/point_menu.png' height=10px; width=10px; />");
										}
						);
        
}

jQuery(document).ready(function(){

        jQuery('.accueil').hover(
                    function(){
                      jQuery('#point_accueil').html("<img src='images/point_menu.png' height=10px; width=10px; />");
											jQuery('#sous_menu_realisations').slideUp('fast');
											jQuery('#sous_menu_hebergement').slideUp('fast');
                      jQuery('#sous_menu_accueil').slideDown("slow");
                      
                      },
                     function(){
                      jQuery('#point_accueil').html("");
                      setTimeout("jQuery('#sous_menu_accueil').slideUp('slow');",4000);
                      }
        );
        
        jQuery('.realisations').hover(
                    function(){
                      jQuery('#point_realisations').html("<img src='images/point_menu.png' height=10px; width=10px; />");
			jQuery('#sous_menu_accueil').slideUp('fast');
			jQuery('#sous_menu_hebergement').slideUp('fast');
                      jQuery('#sous_menu_realisations').slideDown("slow");
                      },
                     function(){
                      jQuery('#point_realisations').html("");
                      setTimeout("jQuery('#sous_menu_realisations').slideUp('slow');",4000);
                      }
        );
        

        jQuery('.hebergement').hover(
                    function(){
                      jQuery('#point_hebergement').html("<img src='images/point_menu.png' height=10px; width=10px; />");
			jQuery('#sous_menu_realisations').slideUp('fast');
			jQuery('#sous_menu_accueil').slideUp('fast');
                      //jQuery('#sous_menu_hebergement').slideDown("slow");
                      },
                     function(){
                      jQuery('#point_hebergement').html("");
                      //setTimeout("jQuery('#sous_menu_hebergement').slideUp('slow');",4000);
                      }
        );
      

        jQuery('#span_contacts span').hover(
                    function(){
                      jQuery('#point_contacts').html("<img src='images/point_menu.png' height=10px; width=10px; />");
                      },
                     function(){
                      jQuery('#point_contacts').html("");
                      }
        );
				
				
				
				
				
				
				
				
				
				
				jQuery('.oe_menu').children('li').hover(
                    function(){
                      jQuery(this).children('.point_menu').css({'visibility':'visible'});
											jQuery('#point_menu_actif').css({'visibility':'visible'});
                      },
                     function(){
                      jQuery(this).children('.point_menu').css({'visibility':'hidden'});
											 jQuery('#point_menu_actif').css({'visibility':'visible'});
                      }
        );
        

});
