function clic(e)
{
  var message = "Click Droit Interdit";
  
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = clic;
    }
    else document.oncontextmenu = clic;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      return false;
    }
  }
  else
  {
    return false;
  }
}


function largeur_fenetre()
{
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 else return 0;
}

function hauteur_fenetre()
{
 if (window.innerHeight) return window.innerHeight  ;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}


function reconstruction()
{
 if (largeur != largeur_fenetre() || hauteur != hauteur_fenetre())
 window.history.go(0);
}

/*initialiser la surveillance de Netscape*/
if(!window.largeur && window.innerWidth)
  {
   window.onresize = reconstruction;
   largeur = largeur_fenetre();
   hauteur = hauteur_fenetre();
  }
  

function Agrandissement(){
window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}

//if (navigator.userAgent.indexOf("Firefox")!=-1)
//Agrandissement();

function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rev") == "lien_externe") 
     anchor.target = "_blank"; 
 } 
}






$j(document).ready(function(){

externalLinks();
window.status='STIL IMMOBILIER';

// concerne le menu header
    $j("#menu_header ul li").hover(function(){
      $menu = $j(this).attr('id');
      if ( $menu != "actif_mh" ) {
        $j("li#actif_mh span").css('background-position','top right');$j("li#actif_mh span").css('color','#ffffff');$j("li#actif_mh span").css('padding-top','17px');$j("li#actif_mh").css('background-position','0px 0px'); 
      }
    },
    function(){
      $jmenu = $j(this).attr('id');
      if ( $menu != "actif_mh" ) {
        $j("li#actif_mh span").css('background-position','100% -63px');$j("li#actif_mh span").css('color','#ffffff');;$j("li#actif_mh span").css('padding-top','30px');$j("li#actif_mh").css('background-position','0px -63px');
      }
    });
    
    
    
    
    
    
    
    
    
    



        if(jQuery.support.opacity)
          $j("#menu_gauche ul li a").fadeTo("slow", 1.0);
        
        $j("#menu_gauche ul li").hover(function(){
          
          if(jQuery.support.opacity) {
          $j(this).fadeTo("slow", 0.9);
          $j(this).fadeTo("slow", 1.0);
          }
          
          $menu = $j(this).attr('id');
          if ( $menu != "actif" ) {
            $j("li#actif a").css('background-position','top right');
            //$j("li#actif a span").css('color','#3c3836');
            $j("li#actif").css('background-position','0px 0px');
            

             
          }
        },
        function(){
          $menu = $j(this).attr('id');
          
          if(jQuery.support.opacity) {
          $j(this).fadeTo("slow", 0.3);
          $j(this).fadeTo("slow", 1.0);
          }
          
          if ( $menu != "actif" ) {
            $j("li#actif a").css('background-position','100% -32px');
            //$j("li#actif a span").css('color','#ffffff');
            $j("li#actif").css('background-position','0px -32px');
            

            
            
            
          }
        }); 

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

});
