 $(document).ready(function(){

   /*Hover sobre Logo*/

       $(".top_logo").hover(
      function () {
          $(this).css("backgroundPosition","center -99px");

      }, 
      function () {
        $(this).css("backgroundPosition","center 5px");
          }
    );



     /*Selector de Idioma*/

       $(".langbox").hover(
      function () {
        if ($(".langbox div").is(":hidden")) {
        $(this).css("backgroundPosition","right -14px");
        }
      },
      function () {
                if ($(".langbox div").is(":hidden")) {
        $(this).css("backgroundPosition","right -1px");
                }
                 else {
        $(this).css("backgroundPosition","right -40px");
      }
      }
    );
    
    
        $(".langbox").click(function () {
      if ($(".langbox div").is(":hidden")) {
        $(".langbox div").css("display","inline");
        $(this).css("backgroundPosition","right -40px");

      } else {
        $(".langbox div").css("display","none");
      }
    });
    
       /*Selector de Pais   */

       $(".countrybox").hover(
      function () {
              if ($(".countrybox div").is(":hidden")) {
        $(this).css("backgroundPosition","right -14px");
              }
      }, 
      function () {
          if ($(".countrybox div").is(":hidden")) {
        $(this).css("backgroundPosition","right -1px");
          }
 else {
        $(this).css("backgroundPosition","right -40px");
      }
      }
    );
    
    
        $(".countrybox").click(function () {
      if ($(".countrybox div").is(":hidden")) {
        $(".countrybox div").css("display","inline");
        $(this).css("backgroundPosition","right -40px");

      } else {
        $(".countrybox div").css("display","none");
      }
    });


       /*Otras zonas*/

    $("#botonzona").click(function () {
      if ($("#masciudades").is(":hidden")) {
        $("#masciudades").slideDown("slow");


      } else {
        $("#masciudades").slideUp("slow");
        

      }
    });


  
 });

















