// JavaScript Document
(function() {

/* Keep everything in BG variable
    augment existing variable if it exists.
*/
if ( !window.BG || typeof window.BG !== 'object') {
    window.BG = {};
}
var BG = window.BG;

BG.votdWriteCallback = function(json) {
    var votd = json.votd;
    document.write('<p class="dailyverse left">' + votd.text);
    document.write(' <br /><span class="scripture right"><a href="' + votd.permalink +'" class="biblelink">' + votd.reference + '</a></span>');
    document.write(' <br /><span class="versecredit center"><a href="' + votd.copyrightlink + '" class="biblelink">' + votd.copyright + '</a></span>');
    document.write('<span class="biblecredit center">Powered by <a href="http://www.biblegateway.com/" class="biblelink">BibleGateway.com</a></span></p>');
};

window.BG = BG;


})();

