$(document).ready(function() {       
  $("#flagEN").fadeTo("fast", 0.6);
  $("#flagFR").fadeTo("fast", 0.6);

  $("#flagFR").hover(function(){
     $("#flagFR").fadeTo("fast", 1.0);
     $("#flagEN").fadeTo("fast", 0.6);
  },function(){
     $("#flagFR").fadeTo("fast", 0.6);
  });

  $("#flagEN").hover(function(){
     $("#flagEN").fadeTo("fast", 1.0);
     $("#flagFR").fadeTo("fast", 0.6);
  },function(){
     $("#flagEN").fadeTo("fast", 0.6);
  });


  $("#welldone_properties").hover(function(){
    $("#welldone_properties").animate({ top: "300px" }, 300 );

  },function(){
    $("#welldone_properties").animate({ top: "320px" }, 300 );
  });

  $("#welldone_pms").hover(function(){
    $("#welldone_pms").animate({ top: "300px" }, 300 );
  },function(){
    $("#welldone_pms").animate({ top: "320px" }, 300 );
  });

  $('a').focus(function() {
    this.blur();
    });
  
 /*$("#welldone_properties").hover(function(){
     $("#welldone_properties").animate( {width:"300px"}, 300 );
     $("#welldone_pms").animate( {border:"1px solid red"}, 300 );

  },function(){
     $("#welldone_properties").fadeTo("fast", 0.8);
  });
*/

  /*$("#welldone_pms").fadeTo("fast", 0.8);
  $("#welldone_properties").fadeTo("fast", 0.8);

  $("#welldone_properties").hover(function(){
     $("#welldone_properties").fadeTo("fast", 1.2);
     $("#welldone_pms").fadeTo("fast", 0.2);
  },function(){
     $("#welldone_properties").fadeTo("fast", 0.8);
  });

  $("#welldone_pms").hover(function(){
     $("#welldone_pms").fadeTo("fast", 1.2);
     $("#welldone_properties").fadeTo("fast", 0.2);
  },function(){
     $("#welldone_pms").fadeTo("fast", 0.8);
  });*/

    $("a[href^='http://']").click(function(){
      if(($(this).attr("class"))=='internal'){
        return true;
      } 
      window.open(this.href);
      return false;
    }); 

});




