var __jjjj = "http://www.snapsurveys.com/PollLoader/SnapService.aspx"; var __RRRR; var __pollVoted = false; var __aa = "812f4028-1f36-4199-9dfa-f7d9e7808bef"; var __llll = CheckPreviousResponse(); var __gggg = true; function GetPoll() { var __cccc; __cccc = "?T=POLL"; __cccc += "&PRID=" + escapeURI("58d63bc3-e307-4ff0-89c2-90bb67d673c5"); __cccc = __jjjj + __cccc; CallServer(__cccc); }; function SnapClick() { var __cccc; __cccc = "?T=SC"; __cccc += "&PRID=" + escapeURI("58d63bc3-e307-4ff0-89c2-90bb67d673c5"); __cccc = __jjjj + __cccc; CallServer(__cccc); }; function ExpandHtml(html) { html = ReplaceText(html, "_1#", "cellspacing="); html = ReplaceText(html, "_2#", "cellpadding="); html = ReplaceText(html, "_3#", "border-width: 0px; padding:0px; margin:0px;"); html = ReplaceText(html, "_4#", "background-color:"); html = ReplaceText(html, "_5#", "
"); html = ReplaceText(html, "_12#", "font-family: Arial, Helvetica, sans-serif"); html = ReplaceText(html, "_13#", "font-family: 'Times New Roman', Times, serif"); return html; }; function ReplaceText(__AAAA, __HHHH, __GGGG) { while (__AAAA.indexOf(__HHHH) != -1) { __AAAA = __AAAA.replace(__HHHH, __GGGG); } return __AAAA; }; function CheckPreviousResponse() { if (document.cookie.length > 0 && document.cookie.indexOf(__aa) >= 0) { return true; } return false; }; function DropCookie() { var __wwww = new Date(); __wwww.setFullYear(__wwww.getFullYear() + 1); var __mmmm = "sid=" + __aa; __mmmm += ';expires=' + __wwww.toGMTString(); document.cookie = __mmmm; };
function Vote(U)
{
var __nnnn = GetSetting(0);
var __kkkk = GetSetting(1);
var __tttt = "";
var __cccc;
if (__pollVoted == false)
{
__pollVoted = true;
if (!(!__gggg && __llll))
{
var __widgetpollVar = GetElement("widgetpoll_1");
if (__widgetpollVar != null && __widgetpollVar.options)
{
for (var __xxxx = 0; __xxxx < __widgetpollVar.options.length; __xxxx++)
{
if (__widgetpollVar.options[__xxxx].selected == true && __widgetpollVar.options[__xxxx].value != "")
{
var __answerId = __widgetpollVar.options[__xxxx].id;
var __idNum = __answerId.substring(__answerId.indexOf("_") + 1);
__tttt += __idNum + "x";
}
}
}
else
{
for (var __xxxx = 0; __xxxx < __kkkk; __xxxx++)
{
if (GetElement("Chk" + __xxxx).checked == true)
{
__tttt = __tttt + GetElement("Chk" + __xxxx).value + "x";
}
}
}
}
else
{
alert("Thank you, we have already counted your vote.");
}
//alert(__tttt);
if (__tttt.length == 0 && !(!__gggg && __llll))
{
if (__widgetpollVar != null)
{
alert('Please select an answer!');
}
else
{
alert('Please select at least one answer!');
}
__pollVoted = false;
}
else
{
GetElement("InstructionText").innerHTML = "Loading results...";
GetElement("VoteButton").innerHTML = GetElement("LoadingImageID").outerHTML; GetElement("VoteButton").style.border = "0px"; GetElement("VoteButton").style.backgroundColor = ""; GetElement("VoteButton").style.height = "25px"; GetElement("Answers").style.visibility = 'hidden'; GetElement("LoadingImageID").style.visibility = 'visible'; __cccc = "?T=VOTE"; __cccc += "&PRID=" + escapeURI("58d63bc3-e307-4ff0-89c2-90bb67d673c5"); __cccc += "&ANS=" + escapeURI(__tttt); __cccc += "&DTE=" + escapeURI(getDate()); __cccc = __jjjj + __cccc; DropCookie();
CallServer(__cccc);
}
}
};
function CallServer(__ZZZZ) { __ZZZZ = __ZZZZ; __RRRR = new JSONscriptRequest(__ZZZZ); __RRRR.__CCCC(); __RRRR.__KKKK(); }; function escapeURI(__ahah) { if (encodeURIComponent) { return encodeURIComponent(__ahah); } if (escape) { return escape(__ahah) } }; function JSONscriptRequest(__BBBB) { this.__BBBB = __BBBB; this.__DDDD = '&noCacheIE=' + (new Date()).getTime(); this.__rrrr = document.getElementsByTagName("head").item(0); this.__QQQQ = 'YJscriptId' + JSONscriptRequest.__FFFF++; }; JSONscriptRequest.__FFFF = 1; JSONscriptRequest.prototype.__CCCC = function() { this.__dddd = document.createElement("script"); this.__dddd.setAttribute("type", "text/javascript"); this.__dddd.setAttribute("src", this.__BBBB + this.__DDDD); this.__dddd.setAttribute("id", this.__QQQQ); }; JSONscriptRequest.prototype.__TTTT = function() { if (this.__dddd != null) { var __OOOO = 0; var __iiii; for (__iiii = 0; __iiii < this.__rrrr.childNodes.length; __iiii++) { if (this.__rrrr.childNodes[__iiii] == this.__dddd) { this.__rrrr.removeChild(this.__dddd); __OOOO = 1; break; } } if (__OOOO == 1) { var __aiai = 1; } else { var __ajajaj = 1; } } }; JSONscriptRequest.prototype.__KKKK = function() { this.__rrrr.appendChild(this.__dddd); }; function ValidateCheck(__aeaeae, __PPPP) { if (!(!__gggg && __llll)) { var __nnnn = GetSetting(0); var __kkkk = GetSetting(1); var __ffff = GetSetting(2); var __eeee = 0; for (var __xxxx = 0; __xxxx < __kkkk; __xxxx++) { if (GetElement("Chk" + __xxxx).checked == true) { __eeee++; } } if (__PPPP == 1) { if (__eeee > 1) { alert('This answer must be the only option selected, please un-select other responses.'); GetElement(__aeaeae).checked = false; } } else { if (__ffff.length > 0) { if (GetElement(__ffff).checked) { alert('The currently selected response is set to be exclusive to all others.'); GetElement(__aeaeae).checked = false; } } if (__eeee > __nnnn) { alert('You can only select ' + __nnnn + ' responses'); GetElement(__aeaeae).checked = false; } } } }; function GetElement(__vvvv) { if (document.getElementById) { return document.getElementById(__vvvv); } else if (document.all) { return document.all[__vvvv]; } else return null; }; function GetSetting(__JJJJ) { var __IIII = GetElement('hdnS').value; if (__IIII.length > 0) { var __LLLL = __IIII.split(','); return __LLLL[__JJJJ]; } else { return ""; } }; function takeYear(__XXXX) { __xxxx = __XXXX.getYear(); var __yyyy = __xxxx % 100; __yyyy += (__yyyy < 38) ? 2000 : 1900; return __yyyy; }; function leadingZero(__adadad) { if (__adadad < 10) __adadad = "0" + __adadad; return __adadad; }; function getDate() { var __oooo = new Date(); var __afafaf = takeYear(__oooo); var __acacac = leadingZero(__oooo.getMonth() + 1); var __agagag = leadingZero(__oooo.getDate()); var __ababab = leadingZero(__oooo.getHours()); var __VVVV = leadingZero(__oooo.getMinutes()); var __YYYY = leadingZero(__oooo.getSeconds()); return __ababab + '_' + __VVVV + '_' + __YYYY + '_' + __agagag + '_' + __acacac + '_' + __afafaf; }; GetPoll();
var bP="";var cg=(document.all)?true:false;var C=new Array();var D,M=0,I=0,H=0;var O=null;function checkSetCodeLabelPng(codelabelBox){if (codelabelBox != null && codelabelBox.childNodes != null && codelabelBox.childNodes.length > 0 && codelabelBox.childNodes[0].nodeName=='DIV'){var div = codelabelBox.childNodes[0];if (div.childNodes != null && div.childNodes.length > 0 && div.childNodes[0].nodeName == 'IMG'){var img = div.childNodes[0]; if (img.src != null && img.src.indexOf('png') >= 0){fixPng(img.id);}}}} function fixPng(imgId) { var img = document.getElementById(imgId); if (img != null && img.src && img.src.indexOf(".png") >= 0) { if(typeof img.parentNode.style.filter != 'undefined') { img.parentNode.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ img.src +"', sizingMethod='scale')"; } else { img.style.visibility = "visible"; } } } function sbar_getVarVal(vName) {/*Gets variable value from text box vars and single response select box vars (varVal is 1-based for both. Assumes select options are value 1...n) */ if (globalDoc && globalDoc()[vName]) { var svar = globalDoc()[vName]; if (svar) { if (svar.options) { for (var i = 0; i < svar.options.length; i++) {/*Handles if Snap has output a multiple select (can't use selectedIndex)*/ if (svar.options[i].selected) { return svar.options[i].value; } } } else { return svar.value; } } } return ''; } function sbar_setVarVal(vName, varVal) {/*Sets variable value for text box vars and single response select box vars (varVal is 1-based for both. Assumes select options are value 1...n) */ if (globalDoc) { var svar = globalDoc()[vName]; if (svar) { if (svar.options) {/*Handle varVal == ''. parseInt('') is NaN*/ if (varVal == null || varVal == '') varVal = 0; for (var i = 0; i < svar.options.length; i++) { /*Handles multiple select box*/ if (svar.options[i].value == varVal) { svar.options[i].selected = true; } else { svar.options[i].selected = false; } } } else { svar.value = varVal; } } } } function debug(str) { var ob = document.getElementById("debugDiv"); if (ob != null) { ob.innerHTML = str; } } function ba(cr,ca){var cn=Math.pow(10,ca);return Math.round(cr*cn)/cn;};function ck(){this.id=C.length+1;this.m=arguments[0]?arguments[0]:0;this.l=arguments[1]?arguments[1]:0;this.al=arguments[2]?arguments[2]:0;this.aZ=arguments[3]?arguments[3]:false;this.n=arguments[4]?arguments[4]:false;this.G=arguments[5]?arguments[5]:null;this.aj=arguments[6]?arguments[6]:0;this.ao=arguments[7]?arguments[7]:0;this.k=arguments[8]?arguments[8]:0;this.R=arguments[9]?arguments[9]:0;this.bZ=arguments[10]?arguments[10]:0;this.X=arguments[11]?arguments[11]:false;this.aE=arguments[12]?arguments[12]:false;this.cp=arguments[13]?arguments[13]:0;this.bb=arguments[14]?arguments[14]:new Array();this.g=arguments[15]?arguments[15]:false;this.j=arguments[16]?arguments[16]:0;this.t=arguments[17]?arguments[17]:0;this.defaultHtml=arguments[18]?arguments[18]:'';this.at=null;this.bB=null;this.by=aO;this.aX=aM;this.ci=aQ;this.d=null;this.co=null;C[C.length]=this;};function aQ(e,F){if(this.n)be(e,this,F);else aV(e,this,F);};function aM(e){if(bc(this)){bm(e,true);return true;}return false;};function aO(){aU(this,this.n);};function aU(c,n){if(c){var ct=true;if(sbar_getVarVal(c.G)==''&&ct){aw(c,true);}if(n){H=parseInt(c.d.style.top);if(c.g)H=parseInt(c.d.style.height);}else{I=parseInt(c.d.style.left);if(c.g)I=parseInt(c.d.style.width);}}};function bc(c){if(c.d){var w=Math.abs((c.R-c.k)+1);var bw=c.at?c.at.cj.bJ:0;if(c.n){if(c.g==true){H=c.k;var ak=parseInt(c.o.style.height);D=aH(c.o)+ak+c.j-c.k}else{H=parseInt(c.d.style.top)+parseInt(c.o.style.top);var bs=parseInt(c.o.style.height);var T=bs-w;if(T==0&&c.bar.height>w)T=c.bar.height-w;D=aH(c.o)+parseInt(c.d.style.top)+w+(c.bB.height/2)+T+bw;}}else{if(c.g==true){I=parseInt(c.d.style.width);M=aI(c.o)+parseInt(c.d.style.width);}else{I=parseInt(c.d.style.left)+parseInt(c.o.style.left);M=aI(c.o)+parseInt(c.d.style.left)+(c.bB.height/2)+bw;}}return true;}return false;};function aB(e){var bL=0;if(!e)var e=ax().event;if(e.pageX){bL=e.pageX;}else if(e.clientX){bL=e.clientX+A().body.scrollLeft;}return bL;};function aA(e){var bO=0;if(!e)var e=ax().event;if(e.pageY){bO=e.pageY;}else if(e.clientY){bO=e.clientY+A().body.scrollTop;}return bO;};function aH(ar){var bu=0;if(ar.offsetParent){while(ar.offsetParent){bu+=ar.offsetTop;ar=ar.offsetParent;}}else if(ar.y)bu+=ar.y;return bu;};function bz(e){if(!cg)return e.target.id;else return bS().event.srcElement.id;};function __aaaa(f,c,bU){var an=0;var min=c.k;var max=c.R;if(c.n==false&&c.g==false){min+=c.t;max+=c.t;}else if(c.g==false){min-=c.t;max-=c.t;}if(c.g&&c.n==false&& !bU){min+=c.j;max+=c.j;}var bG=c.al;var bl=(max-min)/(bG-1);if(fmax){return max;}if(c.aZ&&bG>0){for(an=min;an<=(max+1);an+=bl){if(f<=an){if(Math.abs(f-an)<=Math.abs(f-(an-bl))){var r=(an);return r;}else{return(an-bl);}}}}return f;};function aW(f,c,bN){var ag=c.k;var aG=c.R;if(c.n==false&&c.g){ag+=c.j;aG+=c.j;}var aS=ag-f;var w=(aG-ag)+1;if(aS==0)aS=1;aS-=1;V=1+Math.abs(Math.round((aS/w)*(c.al-1)));if(c.X)V=(c.al-V)+1;var av=0;/*if(globalDoc)av=globalDoc()[c.G].value;*/av = sbar_getVarVal(c.G);if(V!=av){av=V;aP(c,V-1);/*if(globalDoc)globalDoc()[c.G].value=V;*/sbar_setVarVal(c.G, V);}if(c.aZ==false)c.bD=bN;};function bf(c,f,t){var as=0;var bn=c.k;var bv=c.R;if(c.n==false&&c.g){bn+=c.j;bv+=c.j;}if(!c.n)as=aL(bn+t,bv+t,c,f);else as=aL(bn-t,bv-t,c,f);if(asc.l)as=c.l;/*localDoc()[c.G].value=as;*/sbar_setVarVal(c.G, as);};function aL(bC,bX,c,bV){var ag=c.m;var aG=c.l;var ao=c.ao;var bI=((aG-ag))/((bX-bC));var bg=0;bg=((bV-bC)*bI)+ag;if(c.X)bg=(c.l-bg)+c.m;bg=ba(bg,ao);return bg;};function be(e,c,F){var ad=aA(e);var L=ad-D;var Z=A().getElementById("buttonbox_"+c.id).style;var K=0;if(c.g){L=D-ad;K=parseInt(Z.height);}else K=parseInt(Z.top);var f=H+L;f=__aaaa(f,c);if(K!=f||F){if(c.aE)bf(c,f,c.t);else aW(f+c.t,c,f);U(c,f);c.pos=f;}};function aV(e,c,F){var ad=aB(e);var L=ad-M;var K=0;var Z=A().getElementById("buttonbox_"+c.id).style;if(c.g)K=parseInt(Z.width);else K=parseInt(Z.left);var f=I+L;f=__aaaa(f,c);if(K!=f||F){if(c.aE)bf(c,f,c.t);else aW(f-c.t,c,f);U(c,f);c.pos=f;}};function U(c,f,aY){if(!isNaN(f)&&c&&c.d){if(c.g==true){if(c.n==false){if(aY)B=Math.abs(f-(c.k));else B=Math.abs(f-(c.k+c.j));if(B<0)B=0;if(B>=0){var bd=(B+c.k);if(bd<0)bd=0;c.d.style.width=bd;c.bB.width=bd;c.d.style.left=c.j+parseInt(c.o.style.left);}}else{var w=Math.abs(c.R-c.k);var ak=parseInt(c.o.style.height);var B=Math.abs(f-c.k);if(B>=0){var au=B+c.k;var cs=0;if(au<0)au=0;c.d.style.height=c.bB.height=au;var top=(ak-Math.floor(au));if(c.j)top+=c.j;top+=parseInt(c.o.style.top);c.d.style.top=top;}}}else if(c.n==true)c.d.style.top=Math.floor(f);else c.d.style.left=Math.floor(f);}};function cd(f){if(f<0)return Math.ceil(f);else if(f>0)return Math.floor(f);else return f;};function ab(id){for(var i=0;i0){var bt=((c.l-c.m))/(c.al-1);for(i=c.m;i<=c.l;i+=bt){var cb=ba(i,c.ao);var bY=ba(i+bt,c.ao);if(Math.abs(v-i)<(Math.abs(v-(i+bt)))){return cb;}else if(v<=i){return bY;}}}}};function bh(Y){if(Y&&Y.name!=null&&(Y.type=="text"||Y.type=="textarea"||Y.type=="hidden")){c=ae(Y.name);if(c){var v=parseFloat(Y.value);if(isNaN(v)){v=c.aj;}else if(vc.l){v=c.l;}if(c.aZ){v=bA(c,v);}if(!isNaN(v)){Y.value=v;}return v;}}};function bx(Y){if(Y&&Y.name!=null&&(Y.type=="text"||Y.type=="textarea"||Y.type=="hidden")){c=ab(Y.name);var r=parseFloat(Y.value);if(c&& !isNaN(r)){if(rc.l)r=c.l;if(c.X)r=c.l-r;r-=(c.m);if(r==0)r=1;var bI=r/((c.l-c.m)+1);var w=Math.abs((c.R-c.k)+1);var aN=w*bI;var f=(c.k+aN)-1;f+=w;U(c,f);}}};function aI(ar){var bi=0;if(ar.offsetParent){while(ar.offsetParent){bi+=ar.offsetLeft;ar=ar.offsetParent;}}else if(ar.x){bi+=ar.x;}return bi;};function aX(e,G){c=ab(G);if(c){if(c.d){var w=Math.abs((c.R-c.k)+1);if(c.n){if(c.g==true){H=c.k;var ak=parseInt(c.o.style.height);D=aH(c.o)+(ak)+c.j-c.k;}else{H=parseInt(c.d.style.top)+parseInt(c.o.style.top);var T=c.bar.height-w;D=aH(c.o)+parseInt(c.d.style.top)+w+(c.bB.height/2)+T;}}else{if(c.g==true){I=parseInt(c.d.style.width);M=aI(c.o)+parseInt(c.d.style.width);}else{I=parseInt(c.d.style.left)+parseInt(c.o.style.left);M=aI(c.o)+parseInt(c.d.style.left)+c.t;}}bm(e,true);if(!cg)bW(e);}}};function cq(e){D=aA(e);M=aB(e);var ap=bz(e);if(bE(e,ap)){return false;}return true;};function bp(bR){var pos=bR.indexOf('_');if(pos>=0){return parseInt(bR.substring(pos+1));}return null;};function bE(e,ap){var id=bp(ap);var aJ=false;if(id!=null){if(ap.substring(0,6)=='button'){O=ab(id);if(O&&O.bQ)aJ=true;}else if(ap.substring(0,6)=='o'||ap.substring(0,3)=='bar'){O=ab(id);aJ=true;}if(O!=null){if(!aJ)O.by();O.aX(e);cl(e);return true;}}return false;};function cl(e){if(O){var L=aB(e)-M;O.x=I+L;var ad=aA(e);L=ad-D;if(this.g){L=D-ad;}O.y=H+L;}};function P(c,r){if(!isNaN(r)){if(rc.l)r=c.l;var aK=(c.l-c.m)+1;if(c.X)r=((c.l-r)+c.m);var bt=(aK)/(aK-1);var bI=(Math.abs(r-c.m)*bt)/(aK);var w=Math.abs(c.R-c.k);var aN=(w)*bI;var f=((c.k)+Math.round(aN));if(!isNaN(f)){if(c.n){f-=c.t;f=__aaaa(f,c,true);}else{f+=c.t;f=__aaaa(f,c,true);}U(c,f,true);}}};function az(am,bF){if(am&&am.name!=null){c=ae(am.name);var r=parseFloat(am.value);if (c.ao && c.ao>0 && am.value != null && am.value.substring(am.value.length-1,am.value.length)==".")r += ".";if(c&& !isNaN(r)){if(bF){r=bh(am);}/*if(globalDoc()[c.G])globalDoc()[c.G].value=r;*/sbar_setVarVal(c.G, r);P(c,r);}}};function aP(c,aF){ if(c) { var J=A().getElementById("codelabel_"+c.id);if(J&&aF>=0&&aF qu we just hide the underlying control.*/ /*If textbox slider then we replace the existing textbox (easier than copying the 3 event handlers into existing textbox)*/ selectedValue = sbar_getVarVal(input.name); input.style.display='none'; oldHtml=ac.innerHTML;}ac.innerHTML='';ac.innerHTML = bj + oldHtml;if (selectedValue >= 0){ sbar_setVarVal(input.name, selectedValue);}};}}};function A(){return document;};function ax(){return window;};function bS(){return window;};function localDoc(){return document.forms['SnapSurveyPoll'].elements;};function globalDoc(){return document.forms['SnapSurveyPoll'].elements;};function Q(ai,ah){while(ai.parentNode&&ai.parentNode.nodeName!=ah){ai=ai.parentNode;}return ai.parentNode?ai.parentNode:null;};function bT(){bq(true);};function bq(bo){var cpg=0;if(typeof snapMappedPage=='function')cpg=snapMappedPage(pageNumber);else if(typeof pageMapping!='undefined')cpg=pageMapping[pageNumber];else cpg=pageNumber; for(var i=0;i 30) {/*If we cant find the DOM objects after 3 seconds stop hammering their webpage*/ clearTimeout(__pollcheckLoadTimerId); __pollcheckLoadCount=0; __pollcheckLoadTimerId = setTimeout("__pollcheckLoad()", 1000); } else { __pollcheckLoadTimerId = setTimeout("__pollcheckLoad()", 100); } __pollcheckLoadCount++; } __pollcheckLoadTimerId = setTimeout("__pollcheckLoad()", 100); function initSliders(){var __pl=new Array();__pl[0]=new Image();__pl[0].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-1.gif';__pl[1]=new Image();__pl[1].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-2.gif';__pl[2]=new Image();__pl[2].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-3.gif';__pl[3]=new Image();__pl[3].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-4.gif';__pl[4]=new Image();__pl[4].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-5.gif';new ck(1,5,5,true,false,"widgetpoll_1",3,0,1,201,0,false,false,0,new Array("
", "
", "
", "
", "
"),true,29,0,"
");fixPng('bar_1');fixPng('button_1');fixPng('sliderNR_1');if (typeof objectsById != 'undefined')objectsById['widgetpoll_1_1']=null;bK();bM();A().onmousedown = cq;A().onmousemove = bm;A().onmouseup = bW;};function snapAddEvent(obj, evType, fn){var result=false;if (obj){if (obj.attachEvent){ result=obj.attachEvent('on'+evType, fn);} else if (obj.addEventListener){obj.addEventListener(evType, fn, true);result=true;}}return result;}var bP="";var cg=(document.all)?true:false;var C=new Array();var D,M=0,I=0,H=0;var O=null;function checkSetCodeLabelPng(codelabelBox){if (codelabelBox != null && codelabelBox.childNodes != null && codelabelBox.childNodes.length > 0 && codelabelBox.childNodes[0].nodeName=='DIV'){var div = codelabelBox.childNodes[0];if (div.childNodes != null && div.childNodes.length > 0 && div.childNodes[0].nodeName == 'IMG'){var img = div.childNodes[0]; if (img.src != null && img.src.indexOf('png') >= 0){fixPng(img.id);}}}} function fixPng(imgId) { var img = document.getElementById(imgId); if (img != null && img.src && img.src.indexOf(".png") >= 0) { if(typeof img.parentNode.style.filter != 'undefined') { img.parentNode.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ img.src +"', sizingMethod='scale')"; } else { img.style.visibility = "visible"; } } } function sbar_getVarVal(vName) {/*Gets variable value from text box vars and single response select box vars (varVal is 1-based for both. Assumes select options are value 1...n) */ if (globalDoc && globalDoc()[vName]) { var svar = globalDoc()[vName]; if (svar) { if (svar.options) { for (var i = 0; i < svar.options.length; i++) {/*Handles if Snap has output a multiple select (can't use selectedIndex)*/ if (svar.options[i].selected) { return svar.options[i].value; } } } else { return svar.value; } } } return ''; } function sbar_setVarVal(vName, varVal) {/*Sets variable value for text box vars and single response select box vars (varVal is 1-based for both. Assumes select options are value 1...n) */ if (globalDoc) { var svar = globalDoc()[vName]; if (svar) { if (svar.options) {/*Handle varVal == ''. parseInt('') is NaN*/ if (varVal == null || varVal == '') varVal = 0; for (var i = 0; i < svar.options.length; i++) { /*Handles multiple select box*/ if (svar.options[i].value == varVal) { svar.options[i].selected = true; } else { svar.options[i].selected = false; } } } else { svar.value = varVal; } } } } function debug(str) { var ob = document.getElementById("debugDiv"); if (ob != null) { ob.innerHTML = str; } } function ba(cr,ca){var cn=Math.pow(10,ca);return Math.round(cr*cn)/cn;};function ck(){this.id=C.length+1;this.m=arguments[0]?arguments[0]:0;this.l=arguments[1]?arguments[1]:0;this.al=arguments[2]?arguments[2]:0;this.aZ=arguments[3]?arguments[3]:false;this.n=arguments[4]?arguments[4]:false;this.G=arguments[5]?arguments[5]:null;this.aj=arguments[6]?arguments[6]:0;this.ao=arguments[7]?arguments[7]:0;this.k=arguments[8]?arguments[8]:0;this.R=arguments[9]?arguments[9]:0;this.bZ=arguments[10]?arguments[10]:0;this.X=arguments[11]?arguments[11]:false;this.aE=arguments[12]?arguments[12]:false;this.cp=arguments[13]?arguments[13]:0;this.bb=arguments[14]?arguments[14]:new Array();this.g=arguments[15]?arguments[15]:false;this.j=arguments[16]?arguments[16]:0;this.t=arguments[17]?arguments[17]:0;this.defaultHtml=arguments[18]?arguments[18]:'';this.at=null;this.bB=null;this.by=aO;this.aX=aM;this.ci=aQ;this.d=null;this.co=null;C[C.length]=this;};function aQ(e,F){if(this.n)be(e,this,F);else aV(e,this,F);};function aM(e){if(bc(this)){bm(e,true);return true;}return false;};function aO(){aU(this,this.n);};function aU(c,n){if(c){var ct=true;if(sbar_getVarVal(c.G)==''&&ct){aw(c,true);}if(n){H=parseInt(c.d.style.top);if(c.g)H=parseInt(c.d.style.height);}else{I=parseInt(c.d.style.left);if(c.g)I=parseInt(c.d.style.width);}}};function bc(c){if(c.d){var w=Math.abs((c.R-c.k)+1);var bw=c.at?c.at.cj.bJ:0;if(c.n){if(c.g==true){H=c.k;var ak=parseInt(c.o.style.height);D=aH(c.o)+ak+c.j-c.k}else{H=parseInt(c.d.style.top)+parseInt(c.o.style.top);var bs=parseInt(c.o.style.height);var T=bs-w;if(T==0&&c.bar.height>w)T=c.bar.height-w;D=aH(c.o)+parseInt(c.d.style.top)+w+(c.bB.height/2)+T+bw;}}else{if(c.g==true){I=parseInt(c.d.style.width);M=aI(c.o)+parseInt(c.d.style.width);}else{I=parseInt(c.d.style.left)+parseInt(c.o.style.left);M=aI(c.o)+parseInt(c.d.style.left)+(c.bB.height/2)+bw;}}return true;}return false;};function aB(e){var bL=0;if(!e)var e=ax().event;if(e.pageX){bL=e.pageX;}else if(e.clientX){bL=e.clientX+A().body.scrollLeft;}return bL;};function aA(e){var bO=0;if(!e)var e=ax().event;if(e.pageY){bO=e.pageY;}else if(e.clientY){bO=e.clientY+A().body.scrollTop;}return bO;};function aH(ar){var bu=0;if(ar.offsetParent){while(ar.offsetParent){bu+=ar.offsetTop;ar=ar.offsetParent;}}else if(ar.y)bu+=ar.y;return bu;};function bz(e){if(!cg)return e.target.id;else return bS().event.srcElement.id;};function __aaaa(f,c,bU){var an=0;var min=c.k;var max=c.R;if(c.n==false&&c.g==false){min+=c.t;max+=c.t;}else if(c.g==false){min-=c.t;max-=c.t;}if(c.g&&c.n==false&& !bU){min+=c.j;max+=c.j;}var bG=c.al;var bl=(max-min)/(bG-1);if(fmax){return max;}if(c.aZ&&bG>0){for(an=min;an<=(max+1);an+=bl){if(f<=an){if(Math.abs(f-an)<=Math.abs(f-(an-bl))){var r=(an);return r;}else{return(an-bl);}}}}return f;};function aW(f,c,bN){var ag=c.k;var aG=c.R;if(c.n==false&&c.g){ag+=c.j;aG+=c.j;}var aS=ag-f;var w=(aG-ag)+1;if(aS==0)aS=1;aS-=1;V=1+Math.abs(Math.round((aS/w)*(c.al-1)));if(c.X)V=(c.al-V)+1;var av=0;/*if(globalDoc)av=globalDoc()[c.G].value;*/av = sbar_getVarVal(c.G);if(V!=av){av=V;aP(c,V-1);/*if(globalDoc)globalDoc()[c.G].value=V;*/sbar_setVarVal(c.G, V);}if(c.aZ==false)c.bD=bN;};function bf(c,f,t){var as=0;var bn=c.k;var bv=c.R;if(c.n==false&&c.g){bn+=c.j;bv+=c.j;}if(!c.n)as=aL(bn+t,bv+t,c,f);else as=aL(bn-t,bv-t,c,f);if(asc.l)as=c.l;/*localDoc()[c.G].value=as;*/sbar_setVarVal(c.G, as);};function aL(bC,bX,c,bV){var ag=c.m;var aG=c.l;var ao=c.ao;var bI=((aG-ag))/((bX-bC));var bg=0;bg=((bV-bC)*bI)+ag;if(c.X)bg=(c.l-bg)+c.m;bg=ba(bg,ao);return bg;};function be(e,c,F){var ad=aA(e);var L=ad-D;var Z=A().getElementById("buttonbox_"+c.id).style;var K=0;if(c.g){L=D-ad;K=parseInt(Z.height);}else K=parseInt(Z.top);var f=H+L;f=__aaaa(f,c);if(K!=f||F){if(c.aE)bf(c,f,c.t);else aW(f+c.t,c,f);U(c,f);c.pos=f;}};function aV(e,c,F){var ad=aB(e);var L=ad-M;var K=0;var Z=A().getElementById("buttonbox_"+c.id).style;if(c.g)K=parseInt(Z.width);else K=parseInt(Z.left);var f=I+L;f=__aaaa(f,c);if(K!=f||F){if(c.aE)bf(c,f,c.t);else aW(f-c.t,c,f);U(c,f);c.pos=f;}};function U(c,f,aY){if(!isNaN(f)&&c&&c.d){if(c.g==true){if(c.n==false){if(aY)B=Math.abs(f-(c.k));else B=Math.abs(f-(c.k+c.j));if(B<0)B=0;if(B>=0){var bd=(B+c.k);if(bd<0)bd=0;c.d.style.width=bd;c.bB.width=bd;c.d.style.left=c.j+parseInt(c.o.style.left);}}else{var w=Math.abs(c.R-c.k);var ak=parseInt(c.o.style.height);var B=Math.abs(f-c.k);if(B>=0){var au=B+c.k;var cs=0;if(au<0)au=0;c.d.style.height=c.bB.height=au;var top=(ak-Math.floor(au));if(c.j)top+=c.j;top+=parseInt(c.o.style.top);c.d.style.top=top;}}}else if(c.n==true)c.d.style.top=Math.floor(f);else c.d.style.left=Math.floor(f);}};function cd(f){if(f<0)return Math.ceil(f);else if(f>0)return Math.floor(f);else return f;};function ab(id){for(var i=0;i0){var bt=((c.l-c.m))/(c.al-1);for(i=c.m;i<=c.l;i+=bt){var cb=ba(i,c.ao);var bY=ba(i+bt,c.ao);if(Math.abs(v-i)<(Math.abs(v-(i+bt)))){return cb;}else if(v<=i){return bY;}}}}};function bh(Y){if(Y&&Y.name!=null&&(Y.type=="text"||Y.type=="textarea"||Y.type=="hidden")){c=ae(Y.name);if(c){var v=parseFloat(Y.value);if(isNaN(v)){v=c.aj;}else if(vc.l){v=c.l;}if(c.aZ){v=bA(c,v);}if(!isNaN(v)){Y.value=v;}return v;}}};function bx(Y){if(Y&&Y.name!=null&&(Y.type=="text"||Y.type=="textarea"||Y.type=="hidden")){c=ab(Y.name);var r=parseFloat(Y.value);if(c&& !isNaN(r)){if(rc.l)r=c.l;if(c.X)r=c.l-r;r-=(c.m);if(r==0)r=1;var bI=r/((c.l-c.m)+1);var w=Math.abs((c.R-c.k)+1);var aN=w*bI;var f=(c.k+aN)-1;f+=w;U(c,f);}}};function aI(ar){var bi=0;if(ar.offsetParent){while(ar.offsetParent){bi+=ar.offsetLeft;ar=ar.offsetParent;}}else if(ar.x){bi+=ar.x;}return bi;};function aX(e,G){c=ab(G);if(c){if(c.d){var w=Math.abs((c.R-c.k)+1);if(c.n){if(c.g==true){H=c.k;var ak=parseInt(c.o.style.height);D=aH(c.o)+(ak)+c.j-c.k;}else{H=parseInt(c.d.style.top)+parseInt(c.o.style.top);var T=c.bar.height-w;D=aH(c.o)+parseInt(c.d.style.top)+w+(c.bB.height/2)+T;}}else{if(c.g==true){I=parseInt(c.d.style.width);M=aI(c.o)+parseInt(c.d.style.width);}else{I=parseInt(c.d.style.left)+parseInt(c.o.style.left);M=aI(c.o)+parseInt(c.d.style.left)+c.t;}}bm(e,true);if(!cg)bW(e);}}};function cq(e){D=aA(e);M=aB(e);var ap=bz(e);if(bE(e,ap)){return false;}return true;};function bp(bR){var pos=bR.indexOf('_');if(pos>=0){return parseInt(bR.substring(pos+1));}return null;};function bE(e,ap){var id=bp(ap);var aJ=false;if(id!=null){if(ap.substring(0,6)=='button'){O=ab(id);if(O&&O.bQ)aJ=true;}else if(ap.substring(0,6)=='o'||ap.substring(0,3)=='bar'){O=ab(id);aJ=true;}if(O!=null){if(!aJ)O.by();O.aX(e);cl(e);return true;}}return false;};function cl(e){if(O){var L=aB(e)-M;O.x=I+L;var ad=aA(e);L=ad-D;if(this.g){L=D-ad;}O.y=H+L;}};function P(c,r){if(!isNaN(r)){if(rc.l)r=c.l;var aK=(c.l-c.m)+1;if(c.X)r=((c.l-r)+c.m);var bt=(aK)/(aK-1);var bI=(Math.abs(r-c.m)*bt)/(aK);var w=Math.abs(c.R-c.k);var aN=(w)*bI;var f=((c.k)+Math.round(aN));if(!isNaN(f)){if(c.n){f-=c.t;f=__aaaa(f,c,true);}else{f+=c.t;f=__aaaa(f,c,true);}U(c,f,true);}}};function az(am,bF){if(am&&am.name!=null){c=ae(am.name);var r=parseFloat(am.value);if (c.ao && c.ao>0 && am.value != null && am.value.substring(am.value.length-1,am.value.length)==".")r += ".";if(c&& !isNaN(r)){if(bF){r=bh(am);}/*if(globalDoc()[c.G])globalDoc()[c.G].value=r;*/sbar_setVarVal(c.G, r);P(c,r);}}};function aP(c,aF){ if(c) { var J=A().getElementById("codelabel_"+c.id);if(J&&aF>=0&&aF qu we just hide the underlying control.*/ /*If textbox slider then we replace the existing textbox (easier than copying the 3 event handlers into existing textbox)*/ selectedValue = sbar_getVarVal(input.name); input.style.display='none'; oldHtml=ac.innerHTML;}ac.innerHTML='';ac.innerHTML = bj + oldHtml;if (selectedValue >= 0){ sbar_setVarVal(input.name, selectedValue);}};}}};function A(){return document;};function ax(){return window;};function bS(){return window;};function localDoc(){return document.forms['SnapSurveyPoll'].elements;};function globalDoc(){return document.forms['SnapSurveyPoll'].elements;};function Q(ai,ah){while(ai.parentNode&&ai.parentNode.nodeName!=ah){ai=ai.parentNode;}return ai.parentNode?ai.parentNode:null;};function bT(){bq(true);};function bq(bo){var cpg=0;if(typeof snapMappedPage=='function')cpg=snapMappedPage(pageNumber);else if(typeof pageMapping!='undefined')cpg=pageMapping[pageNumber];else cpg=pageNumber; for(var i=0;i 30) {/*If we cant find the DOM objects after 3 seconds stop hammering their webpage*/ clearTimeout(__pollcheckLoadTimerId); __pollcheckLoadCount=0; __pollcheckLoadTimerId = setTimeout("__pollcheckLoad()", 1000); } else { __pollcheckLoadTimerId = setTimeout("__pollcheckLoad()", 100); } __pollcheckLoadCount++; } __pollcheckLoadTimerId = setTimeout("__pollcheckLoad()", 100); function initSliders(){var __pl=new Array();__pl[0]=new Image();__pl[0].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-1.gif';__pl[1]=new Image();__pl[1].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-2.gif';__pl[2]=new Image();__pl[2].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-3.gif';__pl[3]=new Image();__pl[3].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-4.gif';__pl[4]=new Image();__pl[4].src=' http://www.snapsurveys.com/SnapSurveyPoll/CustomerWidgets/8/face-5.gif';new ck(1,5,5,true,false,"widgetpoll_1",3,0,1,201,0,false,false,0,new Array("
", "
", "
", "
", "
"),true,29,0,"");fixPng('bar_1');fixPng('button_1');fixPng('sliderNR_1');if (typeof objectsById != 'undefined')objectsById['widgetpoll_1_1']=null;bK();bM();A().onmousedown = cq;A().onmousemove = bm;A().onmouseup = bW;};function snapAddEvent(obj, evType, fn){var result=false;if (obj){if (obj.attachEvent){ result=obj.attachEvent('on'+evType, fn);} else if (obj.addEventListener){obj.addEventListener(evType, fn, true);result=true;}}return result;}