1/**
2 * Javascript functionality for the flattr plugin
3 */
4
5(function() {
6    var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
7
8    s.type = 'text/javascript';
9    s.async = true;
10    if (location.protocol == 'https:') {
11        s.src = 'https://api.flattr.com/js/0.5.0/load.js?mode=auto';
12    } else {
13        s.src = 'http://api.flattr.com/js/0.5.0/load.js?mode=auto';
14    }
15
16    t.parentNode.insertBefore(s, t);
17})();
18