/* Dynamic JavaScript Code */

template_directory = "http://www.breatheagency.com/wp-content/themes/Breathe";
wp_home = "http://www.breatheagency.com";
enable_slideshow_loop = true;
slideshow_effect = "scrollHorz";
slideshow_easing = "easeOutExpo";
slideshow_speed = 700;
slideshow_timeout = 4000;

/* Twitter Widget Code */

(function($) { $(document).ready(function() {
  $(".breathe_twitter_widget").each(function() {
    var id = $(this).attr("id");
    var json = $(this).find("code").html();
    json = $.base64Decode(json);
    var data = eval("("+json+")");
    $("#" + id).tweets({
      tweets: data.count,
      username: data.username,
      callback: function(tweets, target) {
        target.find("h2.title").html('<a target="_blank" href="http://twitter.com/' + data.username + '">' + data.title + '</a>');
        target.append('<ul class="tweets layout-list"></ul><!-- .tweets -->\n');
        var ul = target.find("ul.tweets");
        for (var i in tweets) { ul.append("<li>" + tweets[i] + "</li>"); }
      }
    });
  });
}); })(jQuery);


