$(document).ready( function() {
   $.fn.maphilight.defaults = {
      fill: true,
      fillColor: '000000',
      fillOpacity: 0.2,
      stroke: false,
      strokeColor: '848484',
      strokeOpacity: 1,
      strokeWidth: 1,
      fade: true,
      alwaysOn: false
   }

   $('#imageMap').maphilight();
   $('#imageMapToyota').maphilight();
   $('#imageMapNissan').maphilight();
   $('#imageMapCitroen').maphilight();
   $('#imageMapPeugeot').maphilight();

   $(".countries").bind("mouseenter", function(e){
       $('#country_name').html(e.target.getAttribute('name'));
   });

   $('#imageMap_container').css('display','none');
   $('#imageMap_container').css('visibility','visible');

});

var rememberId = null;

function showHaendler(id){
   
   if (rememberId != null)
   {
      $('#'+rememberId).css('display','none');
   }
   
   $('#'+id).css('display','block');
   
   rememberId = id;
}

function hideHaendler(id){

   if (rememberId == id)
   {
      rememberID = null;
   }
   
   $('#'+id).css('display','none');
}