

// Copyright 2008 by Constant Contact Inc.,
var ConstantContactPoll_a07e2jgajngfwmh64y6 = function() {
  var pollHtml = '<table width="300"><tr><td style="text-align: left"><div style="border: 1px solid #737373; background: #FFFFFF;" class="cc-poll-container" id="cc-poll-a07e2jgajngfwmh64y6"><div id="cc-poll-a07e2jgajngfwmh64y6-replace"><div style="  border-bottom: 1px solid #b7b7b7;   padding: 0.5em;   font-family: Arial;  font-size: 12pt;  color: #000000;">What is the most important aspect of choosing a particular VBS Program?</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2jgajngfwmh64y6.selectAnswer( this.value)" value="0" name="cc-poll-answer-option_a07e2jgajngfwmh64y6" type="radio"/>Theme</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2jgajngfwmh64y6.selectAnswer( this.value)" value="1" name="cc-poll-answer-option_a07e2jgajngfwmh64y6" type="radio"/>Quality of Music</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2jgajngfwmh64y6.selectAnswer( this.value)" value="2" name="cc-poll-answer-option_a07e2jgajngfwmh64y6" type="radio"/>Publisher (ex: Group, CPH, Gospel Light etc.)</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2jgajngfwmh64y6.selectAnswer( this.value)" value="3" name="cc-poll-answer-option_a07e2jgajngfwmh64y6" type="radio"/>Selection of Crafts</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2jgajngfwmh64y6.selectAnswer( this.value)" value="4" name="cc-poll-answer-option_a07e2jgajngfwmh64y6" type="radio"/>The Bible Stories</div><div style="border-bottom: 1px solid #b7b7b7; border-top: 1px solid #FFFFFF; padding: 0.5em;"><input onclick="ConstantContactPoll_a07e2jgajngfwmh64y6.submit()" style="  font-family: Arial;  font-size: 12pt;  color: white;  background-color: #FF8413;" value="Vote" name="vote" type="button"/></div></div><div style="border-top: 1px solid #FFFFFF; padding: 0.3em; background-color: #CCCCCC; color: #666666; font-family: Arial; text-align: right; font-size: 8pt;"></div></div></td></tr></table>';
  var pollResultsHtml = '<div style="  border-bottom: 1px solid #b7b7b7;   padding: 0.5em;   font-family: Arial;  font-size: 12pt;  color: #000000;">What is the most important aspect of choosing a particular VBS Program?</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;">Theme<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="35px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      35%\n    </div></div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;">Quality of Music<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="6px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      6%\n    </div></div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;">Publisher (ex: Group, CPH, Gospel Light etc.)<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="9px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      9%\n    </div></div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;">Selection of Crafts<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="0px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      0%\n    </div></div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;">The Bible Stories<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="50px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      50%\n    </div></div>';

  var instanceId = "a07e2jgajngfwmh64y6";
  var pollSubmitUrl = "http://survey.constantcontact.com/poll/a07e2jgajngfwmh64y6/vote.js";
  var selectedOption = -1;

  function doSubmit() {
    var scriptElm = document.createElement("script");
    scriptElm.type = "text/javascript";
    if (pollSubmitUrl.indexOf('?') == -1) {
      pollSubmitUrl += '?';
    }
    scriptElm.src = pollSubmitUrl + "&selectedOption=" + selectedOption + "&instanceId=" + instanceId;

    document.getElementsByTagName("body").item(0).appendChild( scriptElm);
  }

  return {
      showPoll: function() {
        document.write( pollHtml);
      },

      submit: function() {
        if (selectedOption != -1) {
          doSubmit();
        } else {
          this.showResults( pollResultsHtml);
        }
      },

      showResults: function( html) {
        document.getElementById("cc-poll-" + instanceId + "-replace").innerHTML = html;
      },

      selectAnswer: function(i) {
        selectedOption = i;
      }
  }
}();

ConstantContactPoll_a07e2jgajngfwmh64y6.showPoll();

