

// Copyright 2008 by Constant Contact Inc.,
var ConstantContactPoll_a07e2mxa7jxg27yextx = function() {
  var pollHtml = '<table width="300"><tr><td style="text-align: left"><div style="border: 1px solid #737373; background: #000000;" class="cc-poll-container" id="cc-poll-a07e2mxa7jxg27yextx"><div id="cc-poll-a07e2mxa7jxg27yextx-replace"><div style="  border-bottom: 1px solid #b7b7b7;   padding: 0.5em;   font-family: Georgia;  font-size: 10pt;  color: #FF0000;">Would you attend a Big Bear Lake JazzTrax Festival on the Lake, steps from Big Bear Village, in June 2010?</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #CCCCCC;"><input onclick="ConstantContactPoll_a07e2mxa7jxg27yextx.selectAnswer( this.value)" value="0" name="cc-poll-answer-option_a07e2mxa7jxg27yextx" type="radio"/>Yes, I can\'t wait!</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #CCCCCC;"><input onclick="ConstantContactPoll_a07e2mxa7jxg27yextx.selectAnswer( this.value)" value="1" name="cc-poll-answer-option_a07e2mxa7jxg27yextx" type="radio"/>No, I\'ll have to skip this one.</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #CCCCCC;"><input onclick="ConstantContactPoll_a07e2mxa7jxg27yextx.selectAnswer( this.value)" value="2" name="cc-poll-answer-option_a07e2mxa7jxg27yextx" type="radio"/>Maybe, tell me more...</div><div style="border-bottom: 1px solid #b7b7b7; border-top: 1px solid #FFFFFF; padding: 0.5em;"><input onclick="ConstantContactPoll_a07e2mxa7jxg27yextx.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;"><a target="_blank" style="text-decoration: none; color: #666666;" href="http://www.constantcontact.com/survey/index.jsp?cc=ViraWidPOL">Online Surveys</a> by <a target="_blank" href="http://www.constantcontact.com/survey/index.jsp?cc=ViraWidPOL"><img src="http://img.constantcontact.com/ui/images1/cc_logo_tiny.gif" width="61" height="22" border="0"  /></a></div></div></td></tr></table>';
  var pollResultsHtml = '<div style="  border-bottom: 1px solid #b7b7b7;   padding: 0.5em;   font-family: Georgia;  font-size: 10pt;  color: #FF0000;">Would you attend a Big Bear Lake JazzTrax Festival on the Lake, steps from Big Bear Village, in June 2010?</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #CCCCCC;">Yes, I can\'t wait!<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="44px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      44%\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: #CCCCCC;">No, I\'ll have to skip this one.<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="18px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      18%\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: #CCCCCC;">Maybe, tell me more...<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="38px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      38%\n    </div></div>';

  var instanceId = "a07e2mxa7jxg27yextx";
  var pollSubmitUrl = "http://survey.constantcontact.com/poll/a07e2mxa7jxg27yextx/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_a07e2mxa7jxg27yextx.showPoll();

