var BAROMETER; if(BAROMETER == undefined) { BAROMETER = {}; } //BAROMETER.load = function(barometer_id) { this.barometer_id = barometer_id; this.empty_url = "http://getbarometer.s3.amazonaws.com/assets/barometer/images/transparent.gif"; this.feedback_url = 'http://getbarometer.com/system/feedback_form/' + this.barometer_id; this.tab_html = 'Feedback'; this.overlay_html = '
' + ''; document.write(this.tab_html); document.write(this.overlay_html); }; BAROMETER.show = function() { document.getElementById('barometer_iframe').setAttribute("src", this.feedback_url); document.getElementById('barometer_overlay').style.display = "block"; return false; };