if (window.autoValidate)
{
  autoValidate.types['fi_kr'] = {  // Returns true only on a positive integer value.
    isValid : function(_theField)
    {
      return (_theField.value = _theField.value.replace(/\D/g, '')).length;
    }
  },


  autoValidate.errorMsgType = "alertonly";
  autoValidate.init();
}


if (window.cbBlockToggler)
{
  cbBlockToggler.init();

  // -- there are three slightly different syntaxes to init the cbBlockToggler
  // cbBlockToggler.init(_togglerSettings);
  // -- or...
  // cbBlockToggler.triggers = _togglerSettings;
  // cbBlockToggler.init();
  // -- or...
  // cbBlockToggler.triggers["mycb"]   = _togglerSettings["mycb"];
  // cbBlockToggler.triggers["!mycb2"] = _togglerSettings["mycb"];
  // cbBlockToggler.init();
}

(function($) {
  $('p.buttons, .fbbtn .fi_btn').append(
            $('<a class="btnfacebook">Senda á Facebook</a>')
                .attr(
                    'href',
                    'http://www.facebook.com/sharer.php?u='+encodeURIComponent(document.location.href)+'&t='+encodeURIComponent($('h1').text()+' | '+$('img.sitelogo:first').attr('alt') )
                  )
          );
})(jQuery);