//= require jquery
//= require jquery_ujs
//= require_tree .

$(function() {
    // --- Using the default options:
    $(".expand").toggler();
});
(function ($) {

// Log all jQuery AJAX requests to Google Analytics
    $(document).ajaxSend(function(event, xhr, settings){
        if (typeof _gaq !== "undefined" && _gaq !== null) 

    });

})(jQuery);

// paginate with AJAX
$(function() {
    $("a.paginator-link").on("click", function(){
        $.getScript(this.href);
        return false;
    });
});

// bitcoin address qr codes
$(document).ready(function() {
    bitcoinaddress.init({

        // jQuery selector defining bitcon addresses on the page
        // needing the boost
        selector: ".bitcoin-address",

        // Id of the DOM template element we use to decorate the addresses.
        // This must contain placefolder .bitcoin-address
        template: "bitcoin-address-template",

        // Passed directly to QRCode.js
        // https://github.com/davidshimjs/qrcodejs
        qr : {
            width: 128,
            height: 128,
            colorDark : "#000000",
            colorLight : "#ffffff"
        }
    });
});
{
            _gaq.push(['_trackPageview', settings.url]);
        }