
$(document).ready (function () {
   $('#cistCist').click (function () {
      if ( document.getElementById ('cistForm').style.display == 'block' ) {
         $('#cistForm').hide ('slow');
      } else {
         $('#cistForm').show ('slow');
      }
   });
   /*
   $('.BotigaCataProdCist').click (function () {
      if ( document.getElementById ('cistForm').style.display == 'block' ) {
      } else {
         $('#cistForm').show ('slow');
      }
   });
   */
   $('#cistClosTop').click (function () {
      $('#cistForm').hide ('slow');
   });
   $('#cistClosBot').click (function () {
      $('#cistForm').hide ('slow');
   });
/*
   $('.BotigaCataFamiAmpl').click (function () {
      link = $(this).attr ('id');
      midi = link.replace (/^link/, 'midi');
      $('#'+midi).trigger ('click');
   });
*/
   /*$('.BotigaFlotContingut').jScrollPane ();*/
   $('.BotigaFlotLink').click (function () {
      link = $(this).attr ('id');
      flot = link.replace (/^link/, 'flot');
      $('#'+flot).fadeIn ('slow');
   });
   $('.BotigaFlotClose').click (function () {
      clos = $(this).attr ('id');
      flot = clos.replace (/^clos/, 'flot');
      $('#'+flot).fadeOut ('slow');
   });
});

var myMouseX, myMouseY;

function getXYPosition (e) {
   myMouseX=(e||event).clientX;
   myMouseY=(e||event).clientY;
   if (document.documentElement.scrollTop > 0) {
      myMouseY = myMouseY + document.documentElement.scrollTop;
   }
}

function showRecaptcha (element, idioma) {
   Recaptcha.destroy ();
   /*Recaptcha.create ("6Lcoas0SAAAAAJ4AKKNxHXoFF7hbtH2U6G7Dm06J", element, {*/
   Recaptcha.create ("6LdhbMgSAAAAAJdcyja_MuX8-TMpO46iMmm5t1Py", element, {
      tabindex: 0,
      callback: Recaptcha.focus_response_field,
      lang: idioma
   });
}


