window._bvt||function(){var o={};(function(){function b(a){return a<10?"0"+a:a}function a(a){d.lastIndex=0;return d.test(a)?'"'+a.replace(d,function(a){var c=g[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(b,e){var d,i,g,m,r=f,n,k=e[b];k&&typeof k==="object"&&typeof k.toURJSON==="function"&&(k=k.toURJSON(b));typeof j==="function"&&(k=j.call(e,b,k));switch(typeof k){case "string":return a(k);case "number":return isFinite(k)?String(k):
"null";case "boolean":case "null":return String(k);case "object":if(!k)return"null";f+=h;n=[];if(Object.prototype.toString.apply(k)==="[object Array]"){m=k.length;for(d=0;d<m;d+=1)n[d]=c(d,k)||"null";g=n.length===0?"[]":f?"[\n"+f+n.join(",\n"+f)+"\n"+r+"]":"["+n.join(",")+"]";f=r;return g}if(j&&typeof j==="object"){m=j.length;for(d=0;d<m;d+=1)i=j[d],typeof i==="string"&&(g=c(i,k))&&n.push(a(i)+(f?": ":":")+g)}else for(i in k)Object.hasOwnProperty.call(k,i)&&(g=c(i,k))&&n.push(a(i)+(f?": ":":")+g);
g=n.length===0?"{}":f?"{\n"+f+n.join(",\n"+f)+"\n"+r+"}":"{"+n.join(",")+"}";f=r;return g}}if(typeof Date.prototype.toURJSON!=="function")Date.prototype.toURJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z":null},String.prototype.toURJSON=Number.prototype.toURJSON=Boolean.prototype.toURJSON=function(){return this.valueOf()};var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
d=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,h,g={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},j;if(typeof o.stringify!=="function")o.stringify=function(a,b,e){var d;h=f="";if(typeof e==="number")for(d=0;d<e;d+=1)h+=" ";else typeof e==="string"&&(h=e);if((j=b)&&typeof b!=="function"&&(typeof b!=="object"||typeof b.length!=="number"))throw Error("JSON.stringify");return c("",{"":a})};
if(typeof o.parse!=="function")o.parse=function(a,b){function c(a,e){var d,l,f=a[e];if(f&&typeof f==="object")for(d in f)Object.hasOwnProperty.call(f,d)&&(l=c(f,d),l!==void 0?f[d]=l:delete f[d]);return b.call(a,e,f)}var d;e.lastIndex=0;e.test(a)&&(a=a.replace(e,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,
"")))return d=eval("("+a+")"),typeof b==="function"?c({"":d},""):d;throw new SyntaxError("JSON.parse");};var i={Util:{attachEvent:function(a,b,c){var e="on"+b;if(typeof a.addEventListener!="undefined")a.addEventListener(b,c,false);else if(typeof a.document!="undefined"&&typeof a.document.addEventListener!="undefined")a.document.addEventListener(b,c,false);else if(typeof a.attachEvent!="undefined")a.attachEvent(e,c);else if(typeof a[e]=="function"){var d=a[e];a[e]=function(){d();c()}}else a[e]=c},
onLoadExternal:function(a,b){this.attachEvent(a,"load",b)},_onLoadCalls:null,onLoad:function(a){if(this._onLoadCalls==null){var b=this;this._onLoadCalls=new i.CallsQueue;this.onLoadExternal(window,function(){b._onLoadCalls.call()})}this._onLoadCalls.add(a)},_isLoaded:false,onLoadGuaranteed:function(a){if(this._isLoaded)a();else this.onLoad(a)},isDomReady:function(){return!(!document||!document.getElementsByTagName||!document.getElementById||!document.body)},onDomReady:function(a){var b=this;if(b.isMSIE())b.onLoadGuaranteed(a);
else b.isDomReady()?a():setTimeout(function(){b.onDomReady(a)},20)},isMSIE:function(){return/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)},isMSIE6:function(){return/msie 6/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},getUrl:function(){var a;try{for(var b=window.top;;)if(b=window.top,a=b.location.href,b==window.top)break}catch(c){}finally{return a||document.location.href}},getHostname:function(){return document.location.hostname},
getPageArgs:function(a){var b={};/[?](.+)/.exec((a||window).location.href.toString());a=RegExp.$1;a!=""&&i.Array.each(a.split("&"),function(a){a=a.split("=");b[a[0]]=a.length==0?null:a[1]});return b},setPageArgs:function(a){/([^?]+)/.exec(window.location.href.toString());var b=RegExp.$1,c="?",e;for(e in a)b+=c+e+"="+a[e],c="&";window.location=b},setVisibilityForPendentControls:function(a){var b=function(b){for(var b=document.getElementsByTagName(b),c=0;c<b.length;c++){var e=b[c];if(!(e.className.indexOf("urp-no-hide")>=
0)&&(a||e.style.visibility!="hidden")){var d=a?typeof e.old_vis=="undefined"?"visible":e.old_vis:"hidden";if(!a)e.old_vis=e.style.visibility;e.style.visibility=d}}};b("object");b("embed");b("iframe");this.isMSIE()&&b("select")},cancelEvent:function(a){a.cancel=true;a.preventDefault&&a.preventDefault();a.stopPropagation&&a.stopPropagation()},mergeObjects:function(a,b){for(attrname in b)a[attrname]=b[attrname];return a},random:function(){return Math.ceil(1E5*Math.random())},convertFunctionToString:function(a){var b=
"__capacentMethod"+this.random().toString();window[b]=a;return b}},Css:{registerexternal:function(a,b){var c=a.document.createElement("style");c.type="text/css";c.styleSheet?c.styleSheet.cssText=b:c.appendChild(a.document.createTextNode(b));var e="CustomCSS_"+Math.random();c.id=e;a.document.getElementsByTagName("head")[0].appendChild(c);return e},register:function(a){this.registerexternal(window,a)},registerUrl:function(a){this.registerUrlExternal(window,a)},registerUrlExternal:function(a,b){if(!i.Css.isRegisteredExternal(a,
b)){var c=a.document.createElement("link");c.rel="stylesheet";c.type="text/css";c.href=b;a.document.getElementsByTagName("head")[0].appendChild(c)}},isRegisteredExternal:function(a,b){for(var c=a.document.getElementsByTagName("head")[0].getElementsByTagName("link"),e=0;e<c.length;e++)if(c[e].href.indexOf(b)>0)return true;return false},isRegistered:function(a){return this.isRegisteredExternal(window,a)},createCssBuilder:function(){return{_styleSheet:"",_hasCurrentStylesheet:false,createRule:function(a){this._hasCurrentStylesheet&&
(this._styleSheet+="}\n");this._hasCurrentStylesheet=true;this._styleSheet+=a+" {\n"},addProperty:function(a,b){i.String.isNullOrEmpty(b)||(this._styleSheet+=a+": "+b+";")},toString:function(){this._styleSheet!=""&&(this._styleSheet+="}");return this._styleSheet}}}},Ajax:{_crossDomainCallInited:false,crossDomainCall:function(a,b,c,e,d,f){if(this._crossDomainCallInited==false){typeof $__BPN=="undefined"&&($__BPN={});if(typeof $__BPN.Protocol=="undefined")$__BPN.Protocol={};if(typeof $__BPN.Protocol.Complete==
"undefined")$__BPN.Protocol.Complete=Protocol.Complete;this._crossDomainCallInited=true}a=new Protocol(a);if(typeof f!="undefined")a.Timeout=f;a.execute(b,c,e,d)}},String:{isNullOrEmpty:function(a){return a==void 0||a==null||/^\s*$/.test(a)},replaceEx:function(a,b){for(var c in b)a=a.replace(RegExp("{"+c+"}","gi"),b[c]);return a}},RegularCookie:{set:function(a,b,c){b=this._escape(b);if(c){var e=new Date;e.setTime(e.getTime()+c*864E5);c="; expires="+e.toGMTString()}else c="";document.cookie=a+"="+
b+c+"; path=/"},get:function(a){a+="=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var e=b[c];e.charAt(0)==" ";)e=e.substring(1,e.length);if(e.indexOf(a)==0)return this._unescape(e.substring(a.length,e.length))}return null},clear:function(a){this.set(a,"",-1)},_escape:function(a){return encodeURIComponent(a)},_unescape:function(a){return decodeURIComponent(a)}},Array:{each:function(a,b){for(var c=a.length,e=0;e<c;e++)b(a[e],e,c)}},CallsQueue:function(){var a=[];this.add=function(b){a.push(b)};
this.call=function(){var b=a;a=[];for(var c=0;c<b.length;c++)b[c]()}},LazyCalls:function(a){var b=a||true,c=new i.CallsQueue;this.call=function(a){b?c.add(a):a()};this.flush=function(){b=false;c.call()}},Synchronization:function(){var a=false,b=new i.CallsQueue;this.lock=function(c){a?b.add(c):(a=true,c())};this.release=function(){a=false;b.call()}},TimeoutCall:function(a,b){var c=setTimeout(b,a);this.cancel=function(){c!=null&&clearTimeout(c)}},StopWatch:function(){var a=null;this.reset=function(){a=
(new Date).getTime()};this.duration=function(){return((new Date).getTime()-a)/1E3};this.reset()},JSON:{encode:function(a){return o.stringify(a)},decode:function(a){return o.parse(a)}},init:function(){var a=setInterval(function(){if(document.readyState=="complete")clearInterval(a),i.Util._isLoaded=true,i.Util._onLoadCalls.call()},10);this.Util.onLoad(function(){i.Util._isLoaded=true;clearInterval(a)})}};i.init();typeof window.Capacent=="undefined"?window.Capacent=i:i.Util.mergeObjects(window.Capacent,
i)})();var t=function(b){var a=window.document.createElement("script"),c=document.head||(document.head=document.getElementsByTagName("head")[0]);a.setAttribute("type","text/javascript");a.setAttribute("charset","utf-8");a.setAttribute("src",b);c.appendChild(a)};Protocol=function(b){this.ServiceURL=b};Protocol.prototype.ServiceURL="";Protocol.prototype.Timeout=25E3;Protocol.prototype.RID="";Protocol.prototype.timerID=null;Protocol.prototype.url=null;Protocol.prototype.runing=false;Protocol.ST_OK=0;
Protocol.ST_METHOD_NOT_FOUND=1;Protocol.ST_SERVER_EXCEPTION=2;Protocol.ST_METHOD_EXCEPTION=3;Protocol.ST_TIMEOUT=4;Protocol.ST_OTHER=10;Protocol.ExplainCode=function(b){switch(b){case Protocol.ST_OK:return"Ok";case Protocol.ST_METHOD_NOT_FOUND:return"Method not found";case Protocol.ST_SERVER_EXCEPTION:return"Serverside exception";case Protocol.ST_METHOD_EXCEPTION:return"Unhandled method exception";case Protocol.ST_TIMEOUT:return"Execution timeout";case Protocol.ST_OTHER:return"Unknown"}};Protocol._pool=
{};Protocol._send=function(b,a,c,e){Protocol._pool[a.RID]={instance:a,onSuccess:c,onFailure:e};t(b)};Protocol.Complete=function(b,a,c){try{c!=null&&(c=eval("("+c+")"))}catch(e){c=null}var d=Protocol._pool[b];if(d!=null&&typeof d!="undefined"){clearTimeout(d.instance.timerID);if(a==Protocol.ST_OK){if(typeof d.onSuccess=="function")d.onSuccess(c)}else if(typeof d.onFailure=="function")d.onFailure(a,c);d.instance.runing=false;delete Protocol._pool[b]}};Protocol.prototype.execute=function(b,a,c,e){if(!this.runing){this.runing=
true;var d="PROTOCOL-"+Math.random();this.RID=d;var f="";if(Capacent.JSON)f=Capacent.JSON.encode(a);else{for(var h=0;h<a.length;h++){var g=a[h];typeof g!="number"&&(g='"'+g+'"');f+=g+(h!=a.length-1?",":"")}f="["+f+"]"}b=this.ServiceURL+"?methodName="+encodeURIComponent(b)+"&params="+encodeURIComponent(f)+"&rid="+d+"&r="+Math.random();this.timerID=setTimeout(function(){Protocol.Complete(d,Protocol.ST_TIMEOUT,null)},this.Timeout);Protocol._send(b,this,c,e)}};window.$__Protocol=Protocol;Capacent.Log=
function(b){this.Enable=true;this.ModuleName="";this._container=null;this._containerHTML="";this.init=function(){if(typeof Capacent.Log._container=="undefined"){if(document.body==null){setTimeout(arguments.callee,50);return}var a=document.createElement("div");a.style.position="absolute";a.style.width="400px";a.style.height="500px";a.style.right="0";a.style.top="0";a.style.border="2px solid #000";a.style.background="#ddd";a.style.overflow="auto";a.style.padding="5px";a.style.zIndex="1000";a.style.fontFamily=
"Monospace";a.style.fontSize="8pt";a.style.MozBoxSizing="border-box";Capacent.Log._container=document.body.appendChild(a);a.innerHTML=this._containerHTML;this._containerHTML=""}this._container=Capacent.Log._container};this.write=function(a){this.Enable&&a!=null&&a!=""&&(a="&bull;&nbsp;"+this.ModuleName+": "+a+"<br />",this._container==null?this._containerHTML+=a:this._container.innerHTML+=a)};Capacent.Util.mergeObjects(this,b||{});if(typeof b!="undefined")this.Enable=typeof b.Enable!="undefined"?
b.Enable:this.Enable,this.ModuleName=typeof b.ModuleName!="undefined"?b.ModuleName:this.ModuleName;this.Enable&&this.init()};Capacent.CrossDomain={StringStream:function(b){var a=this;this.className="Capacent.CrossDomain.StringStream";this.log=function(){};var c=function(b){a.log(b)},e=false,d=["//comet.userreport.com/CrossDomainProxy.ashx"],f=[],h=function(){if(f.length==0&&d.length==0)throw c("Comet urls are not configured!"),"Comet urls are not configured!";d.length==0&&(d=f,f=[]);var a=Math.floor(Math.random()*
d.length),b=d[a];f.push(b);d=d.slice(0,a).concat(d.slice(a+1));return b},g=h(),j=h();this.write=function(a,d){e||(c("Begin write '"+a+"'"),Capacent.Ajax.crossDomainCall(j,"Write",[b,a],d,d,100))};this.read=function(a){if(!e){var d=function(a){e?c("Listener disposed"):(c("Start listen..."),Capacent.Ajax.crossDomainCall(g,"Read",[b],function(b){b.Value.Error?c("Server error. Error="+b.Value.Error):e||(c("Data received"),a(b.Value.Content));d(a)},function(b){b==4?c("Listener reconnection..."):c("Protocol error. Error-code="+
b);d(a)},2E4))};c("Begin read...");d(a)}};this.close=function(){e||(e=true,c("Marked as disposed"))}}};Capacent.Cookie={};Capacent.Cookie.Result=function(b,a,c){this.Id=b||null;this.Sender=a||null;this.Time=c||null;this.toString=function(){return"Id="+this.Id+" Sender="+(this.Sender==null?"":this.Sender.className)+" Time="+(this.Time==null?"":this.Time)};this.serialize=function(){return"{id:'"+this.Id+"', senderClassName:'"+(this.Sender==null?"":this.Sender.className)+"', time:"+this.Time+"}"}};Capacent.Cookie.Silverlight=
function(b){var a=this,c=new Capacent.LazyCalls;this._movie=null;this.className="Capacent.Cookie.Silverlight";this.isEnabled=function(){var a=void 0;a==void 0&&(a=null);var b=false;try{var c=null,h=false;if(window.ActiveXObject)try{c=new ActiveXObject("AgControl.AgControl"),a===null?b=true:c.IsVersionSupported(a)&&(b=true)}catch(g){h=true}else h=true;if(h){var j=navigator.plugins["Silverlight Plug-In"];if(j)if(a===null)b=true;else{var i=j.description;i==="1.0.30226.2"&&(i="2.0.30226.2");for(var l=
i.split(".");l.length>3;)l.pop();for(;l.length<4;)l.push(0);for(var p=a.split(".");p.length>4;)p.pop();var q,s,a=0;do q=parseInt(p[a]),s=parseInt(l[a]),a++;while(a<p.length&&q===s);q<=s&&!isNaN(q)&&(b=true)}}}catch(u){b=false}return b};this.init=function(){(function(a){var b=[];b.push('<object type="application/x-silverlight" data="data:application/x-silverlight,"');var c=a.id||"__slPlugin"+Capacent.Util.random().toString();b.push(' id="'+c+'"');b.push(' width="1"');b.push(' height="1"');b.push(" >");
var h=null;for(key in a)if(c=a[key]){if(typeof c=="function")var g=c,c=Capacent.Util.convertFunctionToString(function(){g(h)});b.push('<param name="'+key+'" value="'+c+'" />')}b.push("</object>");a=document.createElement("div");a.style.width="0px";a.style.height="0px";a.style.position="absolute";a.style.left="-10px";document.body.appendChild(a);a.innerHTML=b.join("");return h=a.firstChild})({source:b,enableHtmlAccess:"true",onLoad:function(b){a._movie=b;c.flush()}})};this.get=function(b){var d=new Capacent.StopWatch;
c.call(function(){var c=a._movie.Content.SLCookie.Get("UserId");b(new Capacent.Cookie.Result(c==""||c=="null"?null:c,a,d.duration()))})};this.set=function(b,d){c.call(function(){a._movie.Content.SLCookie.Set("UserId",b);d(new Capacent.Cookie.Result(b,a))})}};Capacent.Cookie.Flash=function(b){var a=this,c=new Capacent.LazyCalls;this._movie=null;this.className="Capacent.Cookie.Flash";this.isEnabled=function(){return function(){var a=[{name:"ShockwaveFlash.ShockwaveFlash.7"},{name:"ShockwaveFlash.ShockwaveFlash.6"},
{name:"ShockwaveFlash.ShockwaveFlash"}];return function(){if(navigator.plugins&&navigator.plugins.length>0){var b=navigator.mimeTypes;if(b&&b["application/x-shockwave-flash"]&&b["application/x-shockwave-flash"].enabledPlugin&&b["application/x-shockwave-flash"].enabledPlugin.description)return true}else if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript)for(b=0;b<a.length;b++){var c=-1;try{c=new ActiveXObject(a[b].name)}catch(h){c={activeXError:true}}if(!c.activeXError)return true}return false}()}()};
this.init=function(){(function(a){var b=document.createElement("div");b.style.width="1px";b.style.height="1px";b.style.position="absolute";b.style.left="-10px";document.body.appendChild(b);var c=a.id||"__fshPlugin"+Capacent.Util.random().toString();delete a.id;var h=a.source;delete a.source;var g=null,j=false;if(typeof a.onLoad=="function")a.flashvars="onFlashReady="+Capacent.Util.convertFunctionToString(function(){if(g==null)j=true;else a.onLoad(g)});(function(a,b,c,e,d,f){function h(a,b){j=document.createElement("param");
j.name=a;j.value=b;return j}var g,j,k;g=document.createElement("object");g.type="application/x-shockwave-flash";g.id=b;g.data=c;g.width=e;g.height=d;if(f)for(k in f)f.hasOwnProperty(k)&&g.appendChild(h(k,f[k]));for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(g)})(b,c,h,1,1,a);g=b.firstChild;if(j)a.onLoad(g);return g})({source:b,allowScriptAccess:"always",onLoad:function(b){if(typeof b.getCookie!="undefined"&&typeof b.setCookie!="undefined")a._movie=b,c.flush()}})};this.get=function(b){var d=
new Capacent.StopWatch;c.call(function(){var c=a._movie.getCookie();b(new Capacent.Cookie.Result(c==""||c=="null"?null:c,a,d.duration()))})};this.set=function(b,d){c.call(function(){a._movie.setCookie(b);d(new Capacent.Cookie.Result(b,a))})}};Capacent.Cookie.LocalStorage=function(b){function a(a){a.data.indexOf("userId:")===0&&d(a.data.replace("userId:",""));a.data==="ready"&&e.flush()}var c=this;this.className="Capacent.Cookie.LocalStorage";var e=new Capacent.LazyCalls;this.isEnabled=function(){var a;
try{a="localStorage"in window&&window.localStorage!==null}catch(b){a=false}if(a)try{a="postMessage"in window&&typeof window.postMessage=="function"}catch(c){a=false}return a};var d=function(){},f;this.init=function(){window.addEventListener?window.addEventListener("message",a,false):window.attachEvent("onmessage",a);var c=document.createElement("iframe");c.src=b;c.style.display="none";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(c,e);f=c.contentWindow};this.get=function(a){var b=
new Capacent.StopWatch;e.call(function(){d=function(e){a(new Capacent.Cookie.Result(e==""||e=="null"?null:e,c,b.duration()))};f.postMessage("GetUser","*")})};this.set=function(a,b){e.call(function(){f.postMessage("SetUser:"+a,"*");b(new Capacent.Cookie.Result(a,c))})}};Capacent.Cookie.Proxy=function(b){var a=this;this.log=function(){};var c=[new Capacent.Cookie.Flash(b.FlashCookieUrl),new Capacent.Cookie.LocalStorage(b.LocalStorageCookiePageUrl)];this.get=function(b){function d(a){f||(f=true,b(a||
new Capacent.Cookie.Result(null,null)))}var f=false,h=[],g=false,j=c.length,i=0;if(j==0)d(),a.onGetCompleted(h);else{var l="",p=new Capacent.TimeoutCall(3E3,function(){a.log("Get timeout occurred. Executed for: "+l);d();a.onGetCompleted(h)});Capacent.Array.each(c,function(b){b.get(function(c){l+=b.className+" ";i++;!g&&c.Id!=null&&(g=true,a.set(c.Id,function(){}),d(c));h.push(c);i==j&&(p.cancel(),d(),a.onGetCompleted(h))})})}};this.onGetCompleted=function(){};this.set=function(b,d){var f=false,h=
"",g=new Capacent.TimeoutCall(3E3,function(){a.log("Set timeout occurred. Executed for: "+h);d(new Capacent.Cookie.Result(f?b:null,null))}),j=c.length,i=0;Capacent.Array.each(c,function(a){a.set(b,function(){h+=a.className+" ";f=true;i++;i==j&&(g.cancel(),d(new Capacent.Cookie.Result(b,null)))})})};this.clear=function(a){this.set("",a)};Capacent.Util.onDomReady(function(){var a=[];Capacent.Array.each(c,function(b){b.isEnabled()&&a.push(b)});c=a;Capacent.Array.each(c,function(a){a.init()})})};Capacent.TagBackend=
function(b){var a=this;this.log=function(){};var c=function(b){a.log(b)};this.getUser=function(a,d){c("Send GetUser() request");Capacent.Ajax.crossDomainCall(b,"GetUser",[a==null?"":a],function(a){a.executeClear=!Capacent.String.isNullOrEmpty(a.FlashIdToSet)&&a.FlashIdToSet=="clear";a.idToSet=Capacent.String.isNullOrEmpty(a.FlashIdToSet)?null:a.FlashIdToSet;d(a)},function(a,b){c("Failed with code "+a,b);d({Error:a})})};this.setUser=function(a,d){c("Send SetUser() request");Capacent.Ajax.crossDomainCall(b,
"SetUser",[a],function(a){a.executeClear=!Capacent.String.isNullOrEmpty(a.FlashIdToSet)&&a.FlashIdToSet=="clear";a.idToSet=Capacent.String.isNullOrEmpty(a.FlashIdToSet)?null:a.FlashIdToSet;d(a)},function(a,b){c("Failed with code "+a,b);d({Error:a})})};this.clearUser=function(a){c("Send ClearUser() request");Capacent.Ajax.crossDomainCall(b,"ClearUser",[],function(){a({})},function(b,f){c("Failed with code "+b,f);a({Error:b})})};this.getRequestResult=function(a,d,f){c("Send GetRequestResult(requestId="+
a+") request");Capacent.Ajax.crossDomainCall(b,"GetRequestResult",[a],function(a){d(a.Value||null)},function(a,b){f({Error:a,Response:b})})};this.writeDebugInfo=function(a){c("Send WriteDebugInfo("+a+") request");Capacent.Ajax.crossDomainCall(b,"WriteDebugInfo",[a],function(){},function(){})};this.writeMigrationInfo=function(a){a="User Migrated: "+a;c("Send WriteLog("+a+") request");Capacent.Ajax.crossDomainCall(b,"WriteLog",[a],function(){},function(){})}};Capacent.Tag=function(b){var a=this;this.ConnectionStrings=
{BackendUrl:document.location.protocol+"//tag.userreport.com/execute.ashx",FlashCookieUrl:document.location.protocol+"//tag.userreport.com/FlashCookieProxy.swf",SilverlightCookieUrl:document.location.protocol+"//tag.userreport.com/SilverlightCookieProxy.xap",DomStorageUrl:document.location.protocol+"//tag.userreport.com/DomStorageProxy.aspx",LocalStorageCookiePageUrl:document.location.protocol=="http:"?"http://sdscdn.userreport.com/ls.html":"https://d1chfpa9hnx6ug.cloudfront.net/ls.html"};Capacent.Util.mergeObjects(this.ConnectionStrings,
b);var c=new Capacent.Cookie.Proxy(this.ConnectionStrings),e=new Capacent.TagBackend(this.ConnectionStrings.BackendUrl);this.log=function(){};var d=function(b){a.log(b)};c.log=d;e.log=d;c.onGetCompleted=function(a){for(var b="[",c="",d=0;d<a.length;d++)b+=c+a[d].serialize(),c=",";b+="]";e.writeDebugInfo(b)};this.get=function(a){d("Try to get local cookie");c.get(function(b){d("Local cookie: "+b.toString());e.getUser(b.Id,function(e){d("GetUser() successfully completed",e);e.executeClear?(d("Clear local cookie"),
c.clear(function(){})):e.idToSet!=null&&(d("Update local cookie"),c.set(e.idToSet,function(){}));a(e.UserId,e,b)})})};this.set=function(a,b){e.setUser(a,function(e){e.executeClear?(d("Clear local cookie"),c.clear(function(){b&&b(a)})):e.idToSet!=null&&(d("Update local cookie"),c.set(e.idToSet,function(){b&&b(a)}))})};this.clear=function(a){e.clearUser(function(){d("Clear local cookie");c.clear(function(){a&&a()})})}};(function(){var b=function(a){this.newTag=null;this.GetUser=function(a){this.init();
this.newTag.get(a)};this.SetUser=function(a,b){this.init();this.newTag.set(a,b)};this.ClearUser=function(a){this.init();this.newTag.clear(a)};this.SetLogger=function(a){this.init();this.newTag.log=a};this.init=function(){if(this.newTag==null)this.newTag=new Capacent.Tag(a)}};window.$__TAG=new b(null);window.$__getTAG=b})();if(typeof Capacent=="undefined")window.Capacent={};Function.prototype.urp={};Function.prototype.urpBind=function(b){var a=this;return function(){return a.apply(b,arguments)}};Capacent.RoundButtons=
{Register:function(){},Update:function(){}};Capacent.UserreportBackend={bpn:null,getSiteInfoAsync:function(b,a){var c=this;c.bpn.log.write("Start init site");Capacent.Ajax.crossDomainCall(c.bpn.Settings.BackendUrl,"InitSite",[b],function(b){c.bpn.log.write("BE say: "+b.Message);typeof a=="function"&&a(b)},c.bpn._onCommunicationFailure)},getParticipationFactorAsync:function(b,a,c,e,d,f,h){var g=this;g.bpn.log.write("Try to communicate BE");var b=[],j;for(j in d)d.hasOwnProperty(j)&&b.push(j+":"+(d[j]!=
null?d[j]:"null"));d="{"+b.join(",")+"}";Capacent.Ajax.crossDomainCall(g.bpn.Settings.BackendUrl,"GetParticipationFactor2",[a,c,e,d,f],function(a){g.bpn.log.write("BE say: "+a.Message);a.AllowToParticipate=/^true/.test(a.Message);typeof h=="function"&&h(a)},g.bpn._onCommunicationFailure)},setInvitationAcceptedAsync:function(b,a,c){var e=this;e.bpn.log.write("Try to set invitation accepted");Capacent.Ajax.crossDomainCall(e.bpn.Settings.BackendUrl,"SetInvitationAccepted",[b,a],function(a){e.bpn.log.write("BE say: "+
a.Message);typeof c=="function"&&c(a)},e.bpn._onCommunicationFailure)},setInvitationClosed:function(b,a,c){var e=this;e.bpn.log.write("Try to log user closed popup");Capacent.Ajax.crossDomainCall(e.bpn.Settings.BackendUrl,"SetInvitationClosed",[b,a],function(a){e.bpn.log.write("BE say: "+a.Message);typeof c=="function"&&c(a)},e.bpn._onCommunicationFailure)},setDeclinedRespondent:function(b,a,c,e){var d=this;d.bpn.log.write("Try to set decline respondent");Capacent.Ajax.crossDomainCall(d.bpn.Settings.BackendUrl,
"SetDeclinedRespondent2",[b,a,c],function(a){d.bpn.log.write("BE say: "+a.Message);typeof e=="function"&&e(a)},d.bpn._onCommunicationFailure)},setStayAwayRespondent:function(b){var a=this;a.bpn.log.write("Try to set respondent as stay away");$__TAG.GetUser(function(c){Capacent.Ajax.crossDomainCall(a.bpn.Settings.BackendUrl,"SetStayAwayRespondent",[c],function(c){a.bpn.log.write("BE says"+c.Message);$__TAG.SetUser(c.UserIdToSet,b)},a.bpn._onCommunicationFailure)})},setInvitationPostponed:function(b,
a,c){var e=this;e.bpn.log.write("Try to set postponed invitation");Capacent.Ajax.crossDomainCall(e.bpn.Settings.BackendUrl,"SetInvitationPostponed",[b,a],function(a){e.bpn.log.write("BE say: "+a.Message);typeof c=="function"&&c(a)},e.bpn._onCommunicationFailure)},getWebsiteId:function(b){var a=this;a.bpn.log.write("Try to get website id");var c=Capacent.Util.getUrl();Capacent.Ajax.crossDomainCall(a.bpn.Settings.BackendUrl,"GetWebsiteId",[c],function(c){a.bpn.log.write("BE say: "+c.Message);typeof b==
"function"&&b(c)},a.bpn._onCommunicationFailure)},getSurveyForWebsite:function(b,a,c){var e=this;e.bpn.log.write("Try to get survey by website id - "+b);Capacent.Util.getUrl();Capacent.Ajax.crossDomainCall(e.bpn.Settings.BackendUrl,"GetSurvey",[b,a],function(a){e.bpn.log.write("BE say: "+a.Message);typeof c=="function"&&c(a)},e.bpn._onCommunicationFailure)},saveSurveyResults:function(b,a,c,e,d,f,h){var g=this;g.bpn.log.write("Try to save survey results for website id - "+b);Capacent.Util.getUrl();
Capacent.Ajax.crossDomainCall(g.bpn.Settings.BackendUrl,"SaveSurveyResults",[b,a,c,e,d,f],function(a){g.bpn.log.write("BE say: "+a.Message);typeof h=="function"&&h(a)},g.bpn._onCommunicationFailure)}};Capacent=Capacent||{};Capacent.ClickMapIntegration={clickMapScriptUrl:document.location.protocol+"//sds.userreport.com/ClickMap/ClickMap.js",pages:null,gridClickMap:null,bpn:null,trackedPage:null,respondentId:null,sessionId:null,log:null,matchUrl:function(b){var a=document.location.toString().toLowerCase(),
b=b.toLowerCase();if(b.indexOf("?")!=-1)return a.indexOf(b)!=-1;a.indexOf("?")!=-1&&(a=a.substr(0,a.indexOf("?")));return b==a},Init:function(b,a,c,e){this.log=new Capacent.Log({Enable:b.Settings.ShowLog,ModuleName:"ClickMap"});this.bpn=b;this.pages=a;this.respondentId=c;this.sessionId=e;if(a)for(b=0;b<a.length;b++)if(c=a[b],this.matchUrl(c.Url)){this.log.write("Page URL found in tracked pages list");c.TrackClick?(this.log.write("Page should be tracked session["+e+"]"),this.trackedPage=c,this._loadClickMapScript(this._trackClicks.urpBind(this))):
this.log.write("Server decided to not track this visit");break}},_loadClickMapScript:function(b){t(this.clickMapScriptUrl);var a=setInterval(function(){Capacent&&Capacent.ClickMap&&(clearInterval(a),b())}.urpBind(this),100)},_trackClicks:function(){this.gridClickMap=new Capacent.ClickMap(this._clickDetected.urpBind(this),this.trackedPage.PreferablePageWidth);this.log.write("Click Map script loaded. Ready to track clicks")},_explainObject:function(b){var a="{",c;for(c in b)b.hasOwnProperty(c)&&(a+=
c+": "+b[c]+", ");a+="}";return a},_clickDetected:function(b,a){var c=this.trackedPage.Id,e=this.respondentId,d=this.sessionId;this.log.write("Click detected: "+this._explainObject(b)+". Debug variables: "+this._explainObject(a));Capacent.Ajax.crossDomainCall(this.bpn.Settings.BackendUrl,"TrackClick",[d,c,e,b,a],this._clickTracked.urpBind(this),this.bpn._onCommunicationFailure)},_clickTracked:function(){this.log.write("Click successfully tracked")}};Capacent.CrowdIntelligenceCss="/*CIFeedback */\r\n\r\nhtml.feedbackLinkFrameHtml, body.feedbackLinkFrameBody {\r\n\tpadding: 0;\r\n\tmargin: 0;\r\n\toverflow: hidden;\r\n\twidth: 100%;\r\n\theight: 40px;\r\n}\r\n\r\n/* FEEDBACK BUTTON */\r\n\r\n.ur-feedback-btn {\r\n\tcursor: pointer;\r\n\tbackground: #30b4d2 url(feedback-btn-gradient.png) left bottom repeat-x;\r\n\theight: 40px;\r\n}\r\n\r\n.ur-feedback-btn.ur-btn-left {\r\n\t-moz-border-radius-topright: 5px;\r\n\t-moz-border-radius-bottomright: 5px;\r\n\tborder-top-right-radius: 5px;\r\n\tborder-bottom-right-radius: 5px;\r\n}\r\n\r\n.ur-feedback-btn.ur-btn-right {\r\n\t-moz-border-radius-topleft: 5px;\r\n\t-moz-border-radius-bottomleft: 5px;\r\n\tborder-top-left-radius: 5px;\r\n\tborder-bottom-left-radius: 5px;\r\n}\r\n\r\n.ur-feedback-btn div {\r\n\tmargin: 8px 12px 8px 10px;\r\n\tbackground: url(feedback-btn-logo.png) no-repeat;\r\n\theight: 24px;\r\n\tpadding-top: 2px;\r\n\tcolor: #FFF;\r\n\tfont-size: 14px;\r\n\tline-height: 20px;\r\n\tfont-weight: bold;\r\n\ttext-shadow: -1px -1px 0px rgba(0,0,0,.2);\r\n\tfloat: left;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.ur-feedback-btn.ur-btn-left div {\r\n\tpadding-right: 37px;\r\n\tbackground-position: right center;\r\n}\r\n\r\n.ur-feedback-btn.ur-btn-right div {\r\n\tpadding-left: 37px;\r\n\tbackground-position: left center;\r\n}\r\n\r\n.ur-feedback-btn {\r\n\tfont-family: Arial, Helvetica, sans-serif;\r\n\tfont-size: 12px;\r\n\tfont-weight: bold;\r\n\tfont-style: normal;\r\n\tfont-size-adjust: none;\r\n\tcolor: #FFFFFF;\r\n\ttext-transform: none;\r\n\ttext-decoration: none;\r\n\tletter-spacing: normal;\r\n\tword-spacing: 0;\r\n\tline-height: 18px;\r\n\ttext-align: left;\r\n\tvertical-align: baseline;\r\n\tdirection: ltr;\r\n\twhite-space: nowrap;\r\n}\r\n/**************BEGIN DEFAULT ***********/\r\n\r\n#CI_Shortcut_Container {\r\n\theight: 40px;\r\n\twidth: 346px;\r\n\tposition: fixed;\r\n\ttop: 50%;\r\n\tz-index:2147483646;\r\n\tmargin-top: -20px;\r\n}\r\n\r\n#CI_Shortcut_Container.ur-btn-left {\r\n\tleft: -300px;\r\n}\r\n\r\n#CI_Shortcut_Container.ur-btn-right {\r\n\tright: -300px;\r\n}\r\n\r\n#CI_Shortcut_Container iframe {\r\n\theight: 40px;\r\n\twidth: 100%;\r\n\tdisplay: block;\r\n\tz-index:2147483646;\r\n}\r\n";
Capacent.InitFeedbackAnimation=function(b,a,c,e,d){function f(){this.from=0;this.to=500;this.duration=1E3;this.start=(new Date).getTime()}var h="out",g=function(b,d){var i;a?(i=new f,d?(i.from=b.offsetLeft,i.to=0):(i.to=c-b.offsetWidth,i.from=b.offsetLeft)):(i=new f,d?(i.from=c>b.offsetWidth?c:b.offsetWidth,i.to=e):(i.to=c,i.from=e<b.offsetWidth?e:b.offsetWidth));return i},j=null,i=function(b,c,e,d,f){setTimeout(function(){if(e!=h||c.from==c.to)d&&d();else{var i=((new Date).getTime()-c.start)/c.duration,
i=Math.round((c.to-c.from)*2*(1-Math.sin((1-i)*Math.PI/2))+c.from),i=c.from<c.to?Math.min(i,c.to):Math.max(i,c.to);a?b.style.left=i+"px":b.style.width=i+"px";c.from<=c.to&&i<c.to||c.from>c.to&&i>c.to?setTimeout(arguments.callee,f):d&&d()}},10)};(function(a){Capacent.Util.attachEvent(a,"mouseover",function(){clearTimeout(j);j=setTimeout(function(){h="out";var b=g(a,true);b.duration=300;i(a,b,"out",null,10)},300)});Capacent.Util.attachEvent(a,"mouseout",function(){clearTimeout(j);h="in";var b=g(a,false);
b.duration=500;i(a,b,"in",null,50)});if(d){var c=g(b,true);c.duration=500;i(a,c,"out",function(){setTimeout(function(){var b=g(a,false);b.duration=1E3;h="in";i(a,b,"in",null,50)},1E3)},50)}})(b,c)};Capacent=Capacent||{};Capacent.CrowdIntelligence=function(){var b=function(){var a=document.body;if(document.createElement&&a&&a.appendChild&&a.removeChild){var b=document.createElement("div");if(!b.getBoundingClientRect)return null;b.innerHTML="x";b.style.cssText="position:fixed;top:100px;";a.appendChild(b);
var c=a.style.height,e=a.scrollTop;a.style.height="3000px";a.scrollTop=500;var d=b.getBoundingClientRect().top;a.style.height=c;c=d===100;a.removeChild(b);a.scrollTop=e;return c}return null},a=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,c=this,e=false,d=this.bpn=null,f=null,h=false,g=function(){},j,i=true;this.executeCIActionIfNeeded=function(){var a=window.name||document.location.hash;if(a.indexOf("#ci/?")===0){window.name="";a=a.substr(5);this.showPopup();var b={};Capacent.Array.each(a.split("&"),function(a){a=
a.split("=");b[a[0]]=a.length==0?null:a[1]});a=b.UserReportAction;delete b.UserReportAction;var c=JSON.stringify(b);g("_ciq.push(['"+a+"', "+c+"])")}else a.indexOf("#ci/")===0&&(this.showPopup(),g("_ciq.push(['navigateTo', '"+a+"'])"))};this.initPopup=function(){if(e!=true)e=true,d=document.createElement("div"),d.id="__bpnFeedbackPopup",d.className="bpnFeedbackPopup",d.style.display="none",d.style.width="1000px",d.style.height="520px",d.style.position="absolute",d.style.left="50%",d.style.marginLeft=
"-500px",d.style.zIndex=2E5,document.body.appendChild(d),Capacent.IframeHelper.Create("CrowdIntelligenceFrame",function(a){a.style.display="block";a.style.width="100%";a.style.height="100%";a.className="urp-no-hide";d.appendChild(a);var b=Capacent.IframeHelper.GetFrameDoc(a);b.open();b.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body style="background-color: #fff">Loading...</body></html>');
b.close();var e=b.head||(b.head=b.getElementsByTagName("head")[0]),a=b.createElement("script");a.src=c.bpn.Settings.CrowdIntelligenceScriptUrl;a.type="text/javascript";a.setAttribute("charset","utf-8");e.appendChild(a);g=function(a){var c=b.createElement("script");c.type="text/javascript";Capacent.Util.isMSIE()?c.text=a:c.appendChild(b.createTextNode(a));e.appendChild(c)};(a=c.bpn.CurrentSession.ri)&&(a="'"+a+"'");a="window._ciq = window._ciq || []; \t\t\t\t_ciq.push(['clear']); \t\t\t\t_ciq.push(['setUrllessNavigation', true]); \t\t\t\t_ciq.push(['setUserIdSetter', window.parent._bvt.setUserId]); \t\t\t\t_ciq.push(['setPageUrl', '"+
Capacent.Util.getUrl()+"']); \t\t\t\t_ciq.push(['init', '"+c.bpn.Settings.SiteId+"', "+a+"]);";g(a)})};this.showPopup=function(){if(h!==true){this.initPopup();h=true;this.bpn.Settings.OverlayEnabled&&this.bpn.Overlay.show();Capacent.Util.setVisibilityForPendentControls(false);var a=(Capacent.ViewPort.getSize().h-520)/2;a<=0&&(a=20);var b;d.style.top=a+((b=document.documentElement.scrollTop)?b:document.body.scrollTop)+"px";d.style.display="block"}};this.hidePopup=function(){if(h!==false)h=false,d.style.display=
"none",this.bpn.Overlay.hide(),Capacent.Util.setVisibilityForPendentControls(true)};this.togglePopup=function(){h?this.hidePopup():this.showPopup()};this.getLinkContent=function(a){var b="";b+='<div id="CIFeedback" class="urpci_'+a+'"><div class="shortcut"><div class="w1"><div class="w2"><div class="t"></div></div></div></div></div>';return b};this.hide=function(){Capacent.Util.setVisibilityForPendentControls(true);this.bpn.Overlay.hide();d.style.display="none";this.bpn.Communication.close()};this.showLink=
function(){this.initLink();var a;a=-1;navigator.appName=="Microsoft Internet Explorer"&&/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)!=null&&(a=parseFloat(RegExp.$1));if(!(a>-1&&a<7)&&!arguments.callee.done)arguments.callee.done=true,f.style.display="block",f.style.visibility="visible",Capacent.InitFeedbackAnimation(f,i,46,j,this.bpn.Settings.PerformInitialShorctutAnimation&&this.bpn.CurrentSession.IsFirstLoad)};this.initLink=function(){if(this.linkInited!=true){var c=this.bpn.Settings.PopupCssUrl,
c=c.substr(0,c.lastIndexOf("/")+1);Capacent.CrowdIntelligenceCss=Capacent.CrowdIntelligenceCss.replace(/ url\(/gi," url("+c);Capacent.Css.register(Capacent.CrowdIntelligenceCss);var e=this.bpn.CurrentSession.fp,d=this.bpn.CurrentSession.fo||"50%";parseInt(d,10)<2&&(d="0%");var g=this.bpn.CurrentSession.fst,h=this.bpn.CurrentSession.cmc,g=(g||"").replace(a,"");f=document.createElement("div");f.setAttribute("id","CI_Shortcut_Container");e!="left"&&e!="right"&&(e="left");f.style.display="block";f.style.visibility=
"hidden";f.style.top=d;if(d=="0%")f.style.marginTop=0;else if(d=="100%")f.style.marginTop="-40px";window.getCiTop=function(){var a=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop,b=Capacent.ViewPort.getSize().h,c=parseInt(d,10),a=b*c/100+a;isNaN(a)&&(a=0);return a+"px"};window.getCiScrollShift=function(){return"-"+(document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)+
"px"};if(b()==false)f.style.position="absolute",f.style.setExpression?(f.style.setExpression("top","getCiTop()"),f.style.setExpression("right","getCiScrollShift()")):(Capacent.Util.attachEvent(window,"resize",function(){f.style.top=getCiTop();f.style.right=getCiScrollShift()}),Capacent.Util.attachEvent(window,"scroll",function(){f.style.top=getCiTop();f.style.right=getCiScrollShift()}));f.bpn=this.bpn;document.body.appendChild(f);var m=this;this._createFeedbackLinkIframe(f,"CIFeedbackFrame",function(a){function b(){l=
d.offsetWidth;j=l+22;if(e==="left")f.style.width=l+22+"px",f.style.left=-l+24+"px",i=true;else if(e==="right")i=false,f.style[e]="0px",f.style.width="46px";f.style.display="block";if(h)c.getElementById("btn").style.backgroundColor=h}var c=Capacent.IframeHelper.GetFrameDoc(a);c.open();c.write(m.bpn.Popup._getHeader(m.bpn));c.write('<style type="text/css">'+Capacent.CrowdIntelligenceCss+"</style>");m.bpn.Settings.IsDocumentDomainChanged&&Capacent.Util.isMSIE()&&c.write("<script>document.domain='"+document.domain+
"';<\/script>");c.write('<div id="btn" class="ur-feedback-btn ur-btn-'+e+'"><div id="text">'+g+"</div></div>");c.write(m.bpn.Popup._footer);c.close();c.getElementsByTagName("body")[0].className="feedbackLinkFrameBody urpci_"+e;c.getElementsByTagName("html")[0].className="feedbackLinkFrameHtml urpci_"+e;var d=c.getElementById("text"),l=d.offsetWidth;l?b():setTimeout(b,100);Capacent.Util.attachEvent(c.body,"click",m._onShowFeedbackClick);Capacent.Util.attachEvent(c.body,"mouseover",m.initPopup);m.linkInited=
true})}};this._onShowFeedbackClick=function(){c.bpn.Feedback.togglePopup()};this._createFeedbackLinkIframe=function(a,b,c){Capacent.IframeHelper.Create(b,function(b){b.className+=" urp-no-hide";a.appendChild(b);c(b)})}};Capacent.GAIntegration={bpn:null,log:null,_getTracker:function(){return window._gaq||[]},_writeLog:function(b){this.log&&this.log.write(b)},_setVariable:function(b,a,c,e){(window[b]||[]).push(["_setCustomVar",a,c,e,2])},_flushVariables:function(){this._getTracker().push(["_trackEvent",
"Global","UserReport user detected"])},_initGAV:function(){var b=this._getTracker(),a=this.bpn.Settings.GaAccount;a==null||typeof a=="undefined"?window.pageTracker&&(a=window.pageTracker._getAccount(),a==null||typeof a=="undefined"||b.push(["_setAccount",window.pageTracker.s])):b.push(["_setAccount",a]);b.push(["_setMaxCustomVariables",10])},_cleanup:function(b){return b.replace(/\s+/gi,"_").replace(/\//gi,"-").replace(/,/gi,"").replace(/\(/gi,"").replace(/\)/gi,"")},SetVariables:function(b){this._writeLog("<b>pushing variables</b>");
this._initGAV();for(var a=0;a<b.length;a++){var c=b[a],e=c.Slot,d=c.QuestionIdent,f=this._cleanup(c.VariableName),h=this._cleanup(c.Value).substr(0,64-f.length),c=c.CommandsQueueName;this._writeLog("Queue: "+c+", Slot: "+e+", QuestionIdent: "+d+", VariableName: "+f+", Value: "+h);this._setVariable(c,e,f,h)}this._flushVariables();this._writeLog("<b>variables set</b>");return true}};Capacent.Surveying={bpn:null,getContent:function(){return'<div class="urpInvitationHeader"> \t<span class="urpLogo" id="urpLogo"><\!-- --\></span> \t<h1>{invitation-title}</h1> \t<span class="urpSiteName">{site-url}</span> </div> <div id="bpnPopupContent"> \t<div class="urpInvitationContent" id="urpInvitationContent"> \t\t{invitation-text} \t</div> \t<div class="urpButtons"> \t\t<div class="urpButtonsContent"> \t\t\t<div class="urpBtn urpDefault"> \t\t\t\t<a href="#accept" id="bpnAccept">{accept-title}</a> \t\t\t</div> \t\t\t<div class="urpBtn"> \t\t\t\t<a href="#reject" id="bpnReject">{reject-title}</a> \t\t\t</div> \t\t</div> \t</div> </div> <iframe id="bpnInlineSurvey" class="urp-no-hide" style="border: 0 none; width: 100%; display: none; height: 100%;position:relative;z-index:200;" border="0" frameborder="0"></iframe>'},
_popupCtrl:null,_onCloseClick:function(b){Capacent.Util.cancelEvent(b);var a=(b.target||b.srcElement).bpn;a.Popup.hide();a.Settings.TestInviteMode==false?a.Backend.setInvitationClosed(a.Settings.InvitationId,a.Settings.RespondentId,function(b){Capacent.String.isNullOrEmpty(b.FlashIdToSet)||a.Popup.SetTagUserId(a,b.FlashIdToSet,function(){a.log.write("Reject completed")});(a.Settings.IsAutoResumeEnabled||a.CurrentSession.ip)&&a.Popup.checkWhetherSurveyCompleted(b,a)}):a.Popup.checkWhetherSurveyCompleted({IsSurveyCompleted:a.CurrentSession.isc},
a);return false},_resizeFrame:function(){var b=this.bpn.Settings.SmallScreen==false?200:135;this._inlineSurveyFrame.style.height=Capacent.ViewPort.getSize().h-b+"px"},_onResize:function(){this._resizeFrame()},_onDisclaimerAgreeClick:function(b){var b=b.target||b.srcElement,a=b.bpn.Popup._acceptCtrl.parentNode,c=b.bpn.Popup._postponeCtrl;b.checked?(a.className=a.className.replace("bpnDisabled",""),c.className=c.className.replace("bpnDisabled","")):(a.className+=" bpnDisabled",c.className+=" bpnDisabled");
Capacent.RoundButtons.Update()},_onRejectClick:function(b){Capacent.Util.cancelEvent(b);var a=(b.target||b.srcElement).bpn,b=a.Popup._disclaimerAgreeCtrl.checked;a.Popup.hide();if(a.Settings.SurveyUrl!=null&&a.Settings.TestInviteMode==false)a.Backend.setDeclinedRespondent(a.Settings.InvitationId,a.Settings.RespondentId,b,function(b){Capacent.String.isNullOrEmpty(b.FlashIdToSet)||a.Popup.SetTagUserId(a,b.FlashIdToSet,function(){a.log.write("Reject completed")})}),a.Settings.InvitationId=null,a.Settings.SurveyUrl=
null;return false},_onAcceptClick:function(b){var a=(b.target||b.srcElement).bpn;return a.Popup._disclaimerAgreeCtrl.checked?(a.Settings.SurveyUrl!=null&&a.Settings.TestInviteMode==false&&a.Backend.setInvitationAcceptedAsync(a.Settings.InvitationId,a.Settings.RespondentId,function(b){a.Popup.SetTagUserId(a,b.UserIdToSet,function(){a.log.write("Accept completed")})}),a.Popup.ShowSurvey(a,b,false)):(Capacent.Util.cancelEvent(b),false)},SetTagUserId:function(b,a,c){c||(c=function(){});if(Capacent.String.isNullOrEmpty(a))c();
else{b.log.write("<b>Set RespondentId to "+a+"</b>");var e=new Capacent.Tag;a=="clear"?(b.CurrentSession.ri=null,b.CurrentSession.save(),b.Settings.RespondentId=null,e.clear(c)):(b.CurrentSession.ri=a,b.CurrentSession.save(),b.Settings.RespondentId=a,e.set(a,c))}},ShowSurvey:function(b,a,c){if(b.Settings.Inline==false)b.Popup.hide();else return c==true?(b.Popup.show(),b.Popup.showInlineSurvey(b,"Resumed=true")):b.Popup.showInlineSurvey(b),b.CurrentSession.iss=true,b.CurrentSession.save(),typeof a!=
"undefined"&&a!=null&&Capacent.Util.cancelEvent(a),b.Popup.HideContinueLink(),false;return true},_disclaimerAgreeCtrl:null,_rejectCtrl:null,_postponeCtrl:null,_acceptCtrl:null,_invitationControl:null,_inlineSurveyFrame:null,_iframe:null,_iframeDoc:null,_createIframe:function(b,a,c,e,d){Capacent.IframeHelper.Create(a,function(a){a.style.width=c;a.style.height=e;a.style.backgroundColor="#fff";a.className+=" urp-no-hide";b.appendChild(a);d(a)})},_createContinueIframe:function(b,a,c){Capacent.IframeHelper.Create(a,
function(a){a.className+=" urp-no-hide";b.appendChild(a);c(a)})},_getHeader:function(b){return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> \t\t\t<html xmlns="http://www.w3.org/1999/xhtml"> \t\t\t<head> \t\t\t<title>Web survey</title> \t\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" /> \t\t\t<link type="text/css" rel=Stylesheet href="'+b.Settings.PopupCssUrl+'" /></head>'},_getSurveyHeader:function(b){return'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> \t\t\t<html xmlns="http://www.w3.org/1999/xhtml"> \t\t\t<head> \t\t\t<title>Web survey</title> \t\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\t\t\t<link type="text/css" rel="Stylesheet" href="'+
b.Settings.SurveyRendererCssUrl+'" /> \t\t\t</head>\t\t\t<body class="urpSkin-userreport inline">\t\t\t<form class="h100" id="aspnetForm">\t\t\t<div id="wrapper" class="h100">\t\t\t<div class="h100" id="SurveyContainer">'},_footer:"</html>",_surveyFooter:"</div></div></form></body></html>",_color1:"",_color2:"",getCss:function(){var b=Capacent.Css.createCssBuilder(),a=this._color1||this.bpn.CurrentSession.cmc,c=this._color2||this.bpn.CurrentSession.csc;if(Capacent.String.isNullOrEmpty(a)==true&&Capacent.String.isNullOrEmpty(c)==
true)return"";c==null&&(c="#fff");b.createRule(".urpBtn a");b.addProperty("border-color",a);b.addProperty("background-color",c);b.addProperty("color",a);b.addProperty("-hover-bg-color",a);b.addProperty("-normal-bg-color",c);b.createRule(".urpBtn a:hover");b.addProperty("background-color",a);b.addProperty("color",c);b.createRule("body .urpDefault a");b.addProperty("background-color",a);b.addProperty("color",c);b.addProperty("-hover-bg-color",c);b.addProperty("-normal-bg-color",a);b.createRule("body .urpDefault a:hover");
b.addProperty("background-color",c+"!important");b.addProperty("color",a);b.createRule(".urpReset .urpPopupContent .urpInvitationContent h2");b.addProperty("color",a);b.createRule(".urpReset div.urpPopupContent .urpInvitationContent a");b.addProperty("color",a);b.createRule(".urpReset div.urpPopupContent .urpInvitationHeader .urpSiteName");b.addProperty("color",a);return b.toString()},ensureInit:function(b){if(arguments.callee.done)typeof b=="function"&&setTimeout(b,20);else{arguments.callee.done=
true;Capacent.Css.registerUrl(this.bpn.Settings.PopupCssUrl);this._popupCtrl=document.createElement("div");this._popupCtrl.id="__bpnPopup";var a="urpPopup urpReset";if(Capacent.ViewPort.getSize().h<=700)a+=" urpSmallScreen",this.bpn.Settings.SmallScreen=true;this._popupCtrl.className=a;this._popupCtrl.style.visibility="hidden";this._popupCtrl.style.display="none";a=Capacent.String.replaceEx('<a href="#close" id="bpnClose" class="urpClose" title="{close-tooltip}"><span><\!-- --\></span></a>',{"close-tooltip":this.bpn.CurrentSession.ctt});
this._popupCtrl.innerHTML='<div class="urpHeader"><div class="urpContent" id="urpFrameContainer">'+a+'</div></div><div class="urpFooter"><div><span><\!-- --\></span></div></div><div class="urpPreload"></div>';document.body.appendChild(this._popupCtrl);this._createIframe(document.getElementById("urpFrameContainer"),"urpFrame","100%","0",function(a){this._iframe=a;var e=Capacent.IframeHelper.GetFrameDoc(a);this._iframeDoc=e;var d=this.getContent(),f=this.bpn.Settings,h=this.bpn.CurrentSession,g="";
f.TrackingEnabled&&f.TestInviteMode==false&&Capacent.String.isNullOrEmpty(h.tiu)==false&&(g="<img style='display:none;height:1px;width:1px;' src='"+h.tiu+"' />");d=Capacent.String.replaceEx(d,{"invitation-text":this.bpn.CurrentSession.itx+g});d=Capacent.String.replaceEx(d,{"invitation-title":this.bpn.CurrentSession.it,"site-url":this.bpn.CurrentSession.sn,"userreport-with-ga-url":this.bpn.Settings.UserReportWithGaUrl,"accept-title":this.bpn.CurrentSession.at,"reject-title":this.bpn.CurrentSession.rt,
"postpone-link-id":"bpnPostpone","user-agreement-checbox-id":"bpnDisclaimerAgree","privacy-policy-url":this.bpn.Settings.getDisclaimerUrl(this.bpn.CurrentSession.sc)});f="urpSkin-"+this.bpn.CurrentSession.Skin;this.bpn.Settings.SmallScreen&&(f+=" urpSmallScreen");d='<body class="urpReset"><div class="urpPopupContent '+f+'" id="urpPopupContent" style="overflow: hidden; zoom: 1; clear: both;">'+d+"</div>";d+="<script>";this.bpn.Settings.IsDocumentDomainChanged&&Capacent.Util.isMSIE()&&(d+='document.domain = "'+
document.domain+'";');d+='var frame =  null;var getFrame = function() { if (frame == null) { frame = window.parent.document.getElementById("urpFrame"); } }; var resize = function() { \tgetFrame(); \tif (frame != null) {\t\tframe.style.height = (document.body.offsetHeight) + "px"; \t} };setInterval(resize, 10); resize(); window.parent.document.getElementById("__bpnPopup").style.visibility = "visible"; <\/script>';d+="</body>";e.open();e.write(this._getHeader(this.bpn));e.write(d);e.write(this._footer);
e.close();this._logoElement=e.getElementById("urpLogo");if(Capacent.String.isNullOrEmpty(this.bpn.CurrentSession.clu)==false)this._logoElement.style.backgroundImage="url("+this.bpn.CurrentSession.clu+")";d=e.getElementById("urpInvitationContent").getElementsByTagName("a");for(f=0;f<d.length;f++)d[f].target="_blank";this._rejectCtrl=e.getElementById("bpnReject");this._acceptCtrl=e.getElementById("bpnAccept");this._postponeCtrl=e.getElementById("bpnPostpone");this._inlineSurveyFrame=e.getElementById("bpnInlineSurvey");
this._invitationControl=e.getElementById("bpnPopupContent");this._disclaimerAgreeCtrl=e.getElementById("bpnDisclaimerAgree");if(this._disclaimerAgreeCtrl!=null)this._disclaimerAgreeCtrl.checked=true;f=document.getElementById("bpnClose");this._acceptCtrl.href=this.bpn.Settings.SurveyUrl+"&back="+encodeURIComponent(document.location);this._acceptCtrl.target="_blank";this._rejectCtrl.bpn=this.bpn;this._acceptCtrl.bpn=this.bpn;if(this._postponeCtrl)this._postponeCtrl.bpn=this.bpn;if(this._disclaimerAgreeCtrl)this._disclaimerAgreeCtrl.bpn=
this.bpn;f.bpn=this.bpn;this._disclaimerAgreeCtrl&&Capacent.Util.attachEvent(this._disclaimerAgreeCtrl,"click",this._onDisclaimerAgreeClick);if(this.bpn.Settings.LinksEnabled==true)Capacent.Util.attachEvent(this._rejectCtrl,"click",this._onRejectClick),this._postponeCtrl!=null&&typeof this._postponeCtrl!="undefined"&&Capacent.Util.attachEvent(this._postponeCtrl,"click",this._onPostponeClick),Capacent.Util.attachEvent(this._acceptCtrl,"click",this._onAcceptClick),Capacent.Util.attachEvent(f,"click",
this._onCloseClick);else{d=e.getElementsByTagName("a");e=function(a){Capacent.Util.cancelEvent(a);return false};Capacent.Util.attachEvent(f,"click",e);for(f=0;f<d.length;f++)Capacent.Util.attachEvent(d[f],"click",e)}Capacent.Util.attachEvent(window,"resize",this._onResize.urpBind(this));this._customCssId=Capacent.Css.registerexternal(a.window||a.contentWindow,this.getCss());var j=this;Capacent.Util.attachEvent(this._iframe.window||this._iframe.contentWindow,"load",function(){setTimeout(function(){Capacent.RoundButtons.Register(j._acceptCtrl);
Capacent.RoundButtons.Register(j._rejectCtrl)},10)});typeof b=="function"&&b()}.urpBind(this))}},intervalTimerId:null,show:function(){this.ensureInit(function(){var b=this;this.intervalTimerId=setInterval(function(){b.intervalTimerId!=null&&Capacent.Util.setVisibilityForPendentControls(false)},10);this.bpn.Settings.OverlayEnabled&&this.bpn.Overlay.show();this._popupCtrl.style.display="block"}.urpBind(this))},hide:function(){if(this.intervalTimerId!=null)clearInterval(this.intervalTimerId),this.intervalTimerId=
null;this.ensureInit();this.bpn.Overlay.hide();this._popupCtrl.style.display="none";if(this.bpn.Settings.UseJSSurveyRenderer==false)this._inlineSurveyFrame.src="about:blank";Capacent.Util.setVisibilityForPendentControls(true)},_surveyInitialized:false,showInlineSurvey:function(b,a){this.ensureInit(function(){if(this._popupCtrl.style.display!="block")this._popupCtrl.style.display="block";this._popupCtrl.className+=" urpSurveyPopup";this._invitationControl.style.display="none";var c=this._inlineSurveyFrame;
if(b.Settings.UseJSSurveyRenderer){if(this._surveyInitialized===false){this._surveyInitialized=true;var e=this._inlineSurveyFrame.parentNode;e.removeChild(this._inlineSurveyFrame);Capacent.IframeHelper.Create("bpnInlineSurvey",function(a){window._bvt.resultsReady=function(a){b.CurrentSession.cr=null;b.CurrentSession.ip=false;b.CurrentSession.isc=true;b.CurrentSession.save();b.Backend.saveSurveyResults(b.Settings.SiteId,a.responses,b.CurrentSession.iid,b.Settings.RespondentId,a.surveyStartDate,a.usedRecruitmentQuestionId,
function(a){b.log.write("Results successfully saved");Capacent.String.isNullOrEmpty(a.FlashIdToSet)||b.Popup.SetTagUserId(b,a.FlashIdToSet,function(){b.log.write("Reject completed")})},function(a,c){b.log.write("Error while saving results ("+a+"): "+c.ErrorMessage)})};window._bvt.pageChanged=function(a){b.CurrentSession.cr=a.results;b.CurrentSession.save()};a.className="urp-no-hide";a.style.width="100%";a.style.height="100%";a.style.display="none";a.style.visibility="visible";e.appendChild(a);c=this._inlineSurveyFrame=
a;var d=Capacent.IframeHelper.GetFrameDoc(a);d.open();d.write(b.Popup._getSurveyHeader(b));b.Settings.IsDocumentDomainChanged&&Capacent.Util.isMSIE()&&d.write('<script>document.domain="'+document.domain+'";<\/script>');d.write(b.Popup._surveyFooter);d.close();var a=function(a,b){var c=a.createElement("script"),e=a.head||(a.head=a.getElementsByTagName("head")[0]);c.setAttribute("type","text/javascript");c.setAttribute("charset","utf-8");c.setAttribute("src",b);e.appendChild(c)},g=function(a){var b=
d.head||(d.head=d.getElementsByTagName("head")[0]),c=d.createElement("script");c.type="text/javascript";Capacent.Util.isMSIE()?c.text=a:c.appendChild(d.createTextNode(a));b.appendChild(c)};a(d,b.Settings.SurveyRendererScriptUrl);g('window._srq = window._srq || [];\t\t\t\t\t\t_srq.push(["setOption", "loadCSS", false]); \t\t\t\t\t\t_srq.push(["setOption", "resultsReadyCallback", window.parent.parent._bvt.resultsReady]); \t\t\t\t\t\t_srq.push(["setOption", "currentPageChangedCallback", window.parent.parent._bvt.pageChanged]); \t\t\t\t\t\t_srq.push(["init", "'+
b.Settings.SiteId+'", {renderTo: "#SurveyContainer"}])');b.CurrentSession.cr&&g('_srq.push(["loadResults", '+JSON.stringify(b.CurrentSession.cr)+"]);");b.Settings.TestInviteMode==false&&(a(d,("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js"),g('window._gaq = window._gaq || []; \t\t\t\t\t\t\t\t_gaq.push(["_setAccount", "'+b.CurrentSession.gac+'"]);\t\t\t\t\t\t\t\t_gaq.push(["_setDomainName", "none"]);\t\t\t\t\t\t\t\t_gaq.push(["_trackPageview", "/'+b.CurrentSession.scc+
'"]);'));this._resizeFrame();c.style.display="block"}.urpBind(this),e.document)}}else{var d=this.bpn.Settings.SurveyUrl+"&back="+encodeURIComponent(document.location);typeof a!="undefined"&&a!=""&&(d=d+"&"+a);c.src=d;this._resizeFrame();c.style.display="block"}}.urpBind(this))},SetPopupPosition:function(b,a){var c=this;c.bpn.addOnPopupReadyNandler(function(){c.ensureInit();c._popupCtrl.style.top=a;c._popupCtrl.style.left=b;c._popupCtrl.style.position="absolute"})},_logoImage:null,_logoElement:null,
_oldLogoUrl:null,SetLogoUrl:function(b){var a=this;a.bpn.addOnPopupReadyNandler(function(){a.ensureInit();var c=a._logoElement;if(Capacent.String.isNullOrEmpty(b)==false){if(a._logoImage==null){a._oldLogoUrl=c.style.backgroundImage;c.style.backgroundImage="none";c.style.overflow="hidden";var e=a._iframeDoc.createElement("img");a._logoImage=c.appendChild(e)}a._logoImage.src=b}else if(a._oldLogoUrl!=null)c.style.backgroundImage="",c.removeChild(a._logoImage),a._logoImage=null})},SetLogoHeight:function(b){var a=
this;a.bpn.addOnPopupReadyNandler(function(){if(a._logoImage!=null)a._logoImage.style.height=parseInt(b,10)+"px"})},SetLogoPosition:function(b,a){var c=this;c.bpn.addOnPopupReadyNandler(function(){if(c._logoImage!=null)c._logoImage.style.marginLeft=b+"px",c._logoImage.style.marginTop=a+"px"})},SetColors:function(b,a){var c=this;c.bpn.addOnPopupReadyNandler(function(){c.ensureInit();c._color1=b;c._color2=a;var e=c._iframe,d=c._iframeDoc.getElementById(c._customCssId);d!=null&&d.parentNode.removeChild(d);
c._customCssId=Capacent.Css.registerexternal(e.window||e.contentWindow,c.getCss());Capacent.RoundButtons.Update()})},_onPostponeClick:function(b){Capacent.Util.cancelEvent(b);b=(b.target||b.srcElement).bpn;b.Popup._disclaimerAgreeCtrl.checked&&(b.Popup.hide(),b.Popup.PostponeInvitation(b));return false},checkWhetherSurveyCompleted:function(b,a){b.IsSurveyCompleted==true||a.CurrentSession.isc==true?a.Popup.CompleteTheInvitation(a):this.bpn.CurrentSession.iss==true&&a.Popup.PostponeInvitation(a)},CompleteTheInvitation:function(){this.bpn.Popup.HideContinueLink();
this.bpn.CurrentSession.ip=false;this.bpn.CurrentSession.save()},PostponeInvitation:function(b){this.bpn.CurrentSession.ip=true;this.bpn.CurrentSession.save();var a=function(){b.log.write("Postpone completed")};b.Settings.TestInviteMode==false?b.Backend.setInvitationPostponed(b.Settings.InvitationId,b.Settings.RespondentId,function(c){b.Popup.SetTagUserId(b,c.FlashIdToSet,a)}):a();b.Popup.ShowContinueSurveyButton()},continueInited:null,_continueLink:null,InitContinueSurveyButton:function(){if(!arguments.callee.done&&
(arguments.callee.done=true,this.continueInited!=true&&!Capacent.String.isNullOrEmpty(this.bpn.CurrentSession.ct))){Capacent.Css.registerUrl(this.bpn.Settings.PopupCssUrl);var b=document.createElement("div");b.setAttribute("id","bpnContinueDiv");b.className="bpn-continue-survey-link";b.style.display="none";b.style.visibility="hidden";b.bpn=this.bpn;this._continueLink=document.body.appendChild(b);this._createContinueIframe(document.getElementById("bpnContinueDiv"),"urpContinueFrame",function(a){this._iframe=
a;var b=Capacent.IframeHelper.GetFrameDoc(a);this._iframeDoc=b;b.open();b.write(this._getHeader(this.bpn));this.bpn.Settings.IsDocumentDomainChanged&&Capacent.Util.isMSIE()&&b.write('<script>document.domain="'+document.domain+'";<\/script>');b.write(this.getContinueLinkContent());b.write(this._footer);b.close();b.getElementsByTagName("body")[0].className="continueFrameBody";b.getElementsByTagName("html")[0].className="continueFrameHtml";b=b.getElementsByTagName("a")[0];b.href=this.bpn.Settings.SurveyUrl;
b.target="_blank";b.bpn=this.bpn;b.firstChild.bpn=this.bpn;Capacent.Util.attachEvent(b,"click",this._onContinueSurveyClick);Capacent.Css.registerexternal(a.window||a.contentWindow,this.getContinueLinkCss());this.ensureDocumentBGExists();this.continueInited=true}.urpBind(this))}},ShowContinueSurveyButton:function(){this.InitContinueSurveyButton();if(this._continueLink!=null)this._continueLink.style.display="block",this._continueLink.style.visibility="visible"},getContinueLinkContent:function(){var b=
"";b+='<a id="bpnContnue"><span>'+this.bpn.CurrentSession.ct+"</span></a>";return b},_onContinueSurveyClick:function(b){var a=(b.target||b.srcElement).bpn;return a.Popup.ShowSurvey(a,b,true)},HideContinueLink:function(){if(this._continueLink!=null)this._continueLink.style.display="none",this._continueLink.style.visibility="hidden"},ensureDocumentBGExists:function(){if(Capacent.Util.isMSIE6()&&(document.body.currentStyle.backgroundImage==""||document.body.currentStyle.backgroundImage=="none"))document.body.className+=
" urpBackgroundFix"},getContinueLinkCss:function(){var b=Capacent.Css.createCssBuilder(),a=this._color1||this.bpn.CurrentSession.cmc,c=this._color2||this.bpn.CurrentSession.csc;if(Capacent.String.isNullOrEmpty(a)!=true||Capacent.String.isNullOrEmpty(c)!=true)b.createRule("a#bpnContnue"),b.addProperty("border-color",a),b.addProperty("color",c),b.addProperty("background-color",a),b.createRule("a#bpnContnue:hover"),b.addProperty("border-color",a),b.addProperty("color",a),b.addProperty("background-color",
c);return b.toString()}};Capacent=Capacent||{};Capacent.IframeHelper={isDocumentDomainChanged:false,isIE:/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent),Create:function(b,a,c){var c=c||document,e=c.createElement("iframe");e.name=e.id=b;e.style.border="none 0";e.border="0";e.frameBorder="0";this.isIE&&this.isDocumentDomainChanged?(e.src="javascript:document.open(); document.write('<script> document.domain=\\'"+document.domain+"\\'; <\/script>'); document.close();",e.style.width=
"1px",e.style.height="1px",e.style.position="absolute",e.style.left="-200px",e.style.top="-200px",c.body.appendChild(e),setTimeout(function(){c.body.removeChild(e);e.style.width="";e.style.height="";e.style.position="";e.style.left="";e.style.top="";e.name=e.id=b;e.style.border="none 0";e.border="0";e.frameBorder="0";a(e)},10)):(e.src="about:blank",a(e))},GetFrameDoc:function(b){var a;if(b.contentDocument)a=b.contentDocument;else if(b.contentWindow)a=b.contentWindow.document;else if(window.frames[b.name])a=
window.frames[b.name].document;return a}};Capacent.ViewPort={getSize:function(b,a){var b=b||window,a=a||document,c,e;typeof b.innerWidth!="undefined"?(c=b.innerWidth,e=b.innerHeight):typeof a.documentElement!="undefined"&&typeof a.documentElement.clientWidth!="undefined"&&a.documentElement.clientWidth!=0?(c=a.documentElement.clientWidth,e=a.documentElement.clientHeight):(c=a.getElementsByTagName("body")[0].clientWidth,e=a.getElementsByTagName("body")[0].clientHeight);return{w:c,h:e}},getDocSize:function(){var b=
document,a=b.documentElement,c=Math.max(Math.max(b.body.scrollHeight,a.scrollHeight),Math.max(b.body.offsetHeight,a.offsetHeight),Math.max(b.body.clientHeight,a.clientHeight));return{w:Math.max(Math.max(b.body.scrollWidth,a.scrollWidth),Math.max(b.body.offsetWidth,a.offsetWidth),Math.max(b.body.clientWidth,a.clientWidth)),h:c}}};Capacent.CI_Status={Disabled:0,Auto:1,Forced:2};Capacent.BPN=function(b){this.Settings={PrivacyPolicyUrl:null,TestInviteMode:false,ShowLog:false,Inline:false,SurveyUrl:null,
SiteId:null,GaAccount:null,RespondentId:null,IsAutoResumeEnabled:true,PerformInitialShorctutAnimation:true,Params:{},InvitationId:null,CustomMainColor:null,CustomSecondaryColor:null,PopupCssUrl:"https:"==document.location.protocol?"https://sds.userreport.com/Popup2/popup2.css":"http://sdscdn.userreport.com/Popup2/popup2.css",BackendUrl:document.location.protocol+"//be.userreport.com/protocol/execute.ashx",DisclaimerUrl:document.location.protocol+"//www.userreport.com/AnonymousModule/InvitationPrivacyPolicy.aspx",
SurveyRendererScriptUrl:("https:"==document.location.protocol?"//d1chfpa9hnx6ug.cloudfront.net/SurveyRenderer/":"//sdscdn.userreport.com/SurveyRenderer/")+"SurveyRenderer.min.js",SurveyRendererCssUrl:("https:"==document.location.protocol?"//d1chfpa9hnx6ug.cloudfront.net/SurveyRenderer/":"//sdscdn.userreport.com/SurveyRenderer/")+"SurveyRenderer.css",CrowdIntelligenceScriptUrl:"https:"==document.location.protocol?"https://d1chfpa9hnx6ug.cloudfront.net/ci.min.js":"http://sdscdn.userreport.com/ci.min.js",
SmallScreen:false,CIEnabled:Capacent.CI_Status.Auto,OpenCIAutomatically:false,OverlayEnabled:true,TrackingEnabled:true,LinksEnabled:true,RefreshSession:false,IsDocumentDomainChanged:false,UseJSSurveyRenderer:true,_determineByBackendUrl:function(a){return this.BackendUrl.replace(/Protocol\/Execute.ashx/i,a)},_getCountryFromCulture:function(a){return a.split("-")[1]},getDisclaimerUrl:function(a){return this.PrivacyPolicyUrl+"?PPculture="+a+"&utm_source=userreport_invitation&utm_campaign=privacy&utm_medium="+
this._getCountryFromCulture(a)},getTestInviteSurveyUrl:function(){return this._determineByBackendUrl("?test_invite=1&Id="+this.SiteId+(this.Inline?"&inline=true":""))}};Function.prototype.urp={};Function.prototype.urpBind=function(a){var b=this;return function(){return b.apply(a,arguments)}};this.CurrentSession={IsFirstLoad:true,wi:false,fe:true,it:"",itx:"",at:"",ct:"",ip:"",iss:"",isc:"",su:"",cr:null,rt:"",ctt:"",fp:null,fa:null,fo:null,fst:null,Skin:"",sc:"",sn:"",tiu:"",cmp:null,cmid:null,ri:null,
gac:null,scc:null,_sessionCookieName:"__urpSession",_sessionSuffix:"",_persistent:true,_getCookieName:function(a){return this._sessionCookieName+"_"+this._sessionSuffix+"_"+a},_skipFields:"itx,at,rt,tiu,Skin,IsFirstLoad".split(","),save:function(){if(this._persistent!=false){var a={},b;for(b in this)if(!/^_/i.test(b)){for(var d=false,f=0;f<this._skipFields.length;f++)if(this._skipFields[f]==b){d=true;break}d||(a[b]=this[b])}this.destroy();a=Capacent.JSON.encode(a);b=0;for(d=1;b<a.length;b+=512,d++)f=
a.substr(b,512),Capacent.RegularCookie.set(this._getCookieName(d),f)}},initDone:function(a){var b=this;return function(){b.save();typeof a=="function"&&a()}},destroy:function(){for(var a=0;a<10;a++)Capacent.RegularCookie.clear(this._getCookieName(a))},init:function(a,b,d){this._persistent=d;for(var d="",f=1;;){var h=Capacent.RegularCookie.get(this._getCookieName(f));if(Capacent.String.isNullOrEmpty(h))break;d+=h;f++}if(Capacent.String.isNullOrEmpty(d)==false){this.IsFirstLoad=false;var b=Capacent.JSON.decode(d),
g;for(g in b)this[g]=b[g];typeof a=="function"&&a()}else b(this,this.initDone(a))}};this.Communication=new function(){var a=this;this.SessionId=Capacent.Util.random().toString();var b=null,d=[],f=function(a){Capacent.Array.each(a,function(a){Capacent.Array.each(d,function(b){a!=null&&a.indexOf(b.sender)==0&&b.func(a)})})},h=function(){b==null&&(b=new Capacent.CrossDomain.StringStream(a.SessionId),b.read(function(a){f(a)}))};this.waitForMessage=function(a,b){d.push({sender:a,func:b});setTimeout(function(){h()},
300)};this.close=function(){b!=null&&(b.close(),b=null)}};this.Overlay=new function(){var a=true,b=null,d=0,f="div.bpn-overlay { padding: 0; margin: 0; position:absolute; left:0px; top:0px; z-index:140000; background-color: #333; opacity:0.8; -moz-opacity: 0.8; filter: progid:DXImageTransform.Microsoft.Alpha(opacity=80); }";f+="body.bpn-overlay { height:100%;}";var h=function(){var a=Capacent.ViewPort.getDocSize();b.style.height=a.h+"px";b.style.width=a.w+"px"},g=function(){if(!g.done)g.done=true,
b=document.createElement("div"),b.className="bpn-overlay",b.style.display="none",document.body.appendChild(b),Capacent.Css.register(f),Capacent.Util.attachEvent(window,"resize",h)};this.show=function(){g();d++;if(a)a=false,h(),b.style.display="block",document.body.className+=" bpn-overlay"};this.hide=function(){g();if(!a&&(d--,d==0))a=true,b.style.display="none",document.body.className=document.body.className.replace("bpn-overlay","")}};this.Backend=Capacent.UserreportBackend;this.Feedback=new Capacent.CrowdIntelligence;
this.ClickMapIntegration=Capacent.ClickMapIntegration;this.GA=Capacent.GAIntegration;this.Popup=Capacent.Surveying;Capacent.Util.mergeObjects(this.Settings,b||{});Capacent.IframeHelper.isDocumentDomainChanged=this.Settings.IsDocumentDomainChanged;this.log=new Capacent.Log({Enable:this.Settings.ShowLog,ModuleName:"SYSTEM"});this.Backend.bpn=this;this.Feedback.bpn=this;this.Popup.bpn=this;this.GA.bpn=this;this.GA.log=new Capacent.Log({Enable:this.Settings.ShowLog,ModuleName:"DataPush"});var a=this;
this._onCommunicationFailure=function(b){a.log.write("Failed to communicate server. Error code: "+b)};this._onPopupReadyCallsQueue=new Capacent.LazyCalls;this.addOnPopupReadyNandler=function(b){a._onPopupReadyCallsQueue.call(b)};this.init=function(){this.CurrentSession._sessionSuffix=this.Settings.SiteId;(this.Settings.RefreshSession==true||this.Settings.TestInviteMode==true)&&this.CurrentSession.destroy();this.CurrentSession.init(function(){this.log.write("Begin get user id");a.CurrentSession.save();
this._onPopupReadyCallsQueue.flush();if(this.Settings.TestInviteMode)this.Settings.SurveyUrl=this.Settings.getTestInviteSurveyUrl(),Capacent.Util.onLoadGuaranteed(function(){a.Popup.show();if(a.CurrentSession.fe&&a.Settings.CIEnabled!=Capacent.CI_Status.Disabled||a.Settings.CIEnabled==Capacent.CI_Status.Forced)a.Feedback.showLink(),a.Feedback.executeCIActionIfNeeded(),a.Settings.OpenCIAutomatically&&a.Feedback.showPopup()});else if(this.ClickMapIntegration.Init(this,a.CurrentSession.cmp,a.CurrentSession.ri,
a.CurrentSession.cmid),this.log.write("Starting initialization"),a.CurrentSession.fe&&a.Settings.CIEnabled!=Capacent.CI_Status.Disabled||a.Settings.CIEnabled==Capacent.CI_Status.Forced?(a.log.write("<b>Feedback enabled!</b>"),Capacent.Util.onLoadGuaranteed(function(){a.Feedback.showLink();a.Feedback.executeCIActionIfNeeded();a.Settings.OpenCIAutomatically&&a.Feedback.showPopup()})):a.log.write("<b>Feedback disabled!</b>"),a.CurrentSession.wi&&(a.log.write("User <b>was</b> invited in this session<br />Invitation skipped."),
a.CurrentSession.ip==true))a.Settings.SurveyUrl=a.CurrentSession.su,a.Settings.InvitationId=a.CurrentSession.iid,a.Popup.ShowContinueSurveyButton()}.urpBind(this),function(b,e){var d=new Capacent.Tag({},true),f=new Capacent.Log({Enable:a.Settings.ShowLog,ModuleName:"TAG"});d.log=function(a){f.write(a)};d.get(function(d,f){if(!Capacent.String.isNullOrEmpty(d))a.Settings.RespondentId=d,a.log.write("<b>Detected respondent: "+d+"</b>");var j=Capacent.Util.getUrl();a.Backend.getParticipationFactorAsync(j,
a.Settings.SiteId,a.Settings.RespondentId,f.HasFlashCookie,a.Settings.Params,a.Settings.TestInviteMode,function(d){b.it=d.InvitationTitle;a.Settings.UserReportWithGaUrl=d.UserReportWithGaUrl;b.itx=d.InvitationText;b.at=d.AcceptTitle;b.ct=d.ContinueTitle;b.rt=d.RejectTitle;a.Settings.PrivacyPolicyUrl=d.PrivacyPolicyUrl;b.ctt=d.CloseTooltip;b.fe=d.CrowdIntelligenceEnabled;b.Skin=d.Skin;b.clu=document.location.protocol=="http:"?d.CustomLogoUrl:d.CustomLogoHttpsUrl;b.sc=d.SurveyCulture;b.scc=d.SurveyCountryCode;
b.cmc=d.CustomMainColor;b.fp=d.ShortcutPin;b.fa=d.ShortcutAttach;b.fo=d.ShortcutOffset;b.fst=d.ShortcutText;b.ri=a.Settings.RespondentId;b.csc=d.CustomSecondaryColor;b.sn=d.SiteName;b.tiu=d.TrackingImageUrl;b.wi=true;b.cmp=d.ClickMapPages;b.cmid=d.ClickMapSession;b.gac=d.GoogleAnalyticsAccount;if(d.AllowToParticipate){a.log.write("<b>Invitate user to participate the survey!</b>");if(d.IsThirdPartSurvey)a.Settings.Inline=false;a.Settings.SurveyUrl=d.SurveyUrl;a.Settings.Inline==true&&(a.Settings.SurveyUrl+=
"&inline=true");a.CurrentSession.su=a.Settings.SurveyUrl;a.Settings.InvitationId=d.NavId;a.CurrentSession.iid=d.NavId;a.log.write("BE-Server returned the following survey URL: "+a.Settings.SurveyUrl);Capacent.Util.onLoadGuaranteed(function(){a.log.write("<b>Showing popup!</b>");a.Popup.show()})}a.Settings.TestInviteMode==false&&d.GAVariables&&d.GAVariables.length>0&&(a.log.write("<b>Got variables to set from server</b>"),a.GA.SetVariables(d.GAVariables));e()})})},this.Settings.TestInviteMode==false)};
this.ensureInit=function(){if(!arguments.callee.done)arguments.callee.done=true,this.init()};this.setSite=function(a){if(Capacent.String.isNullOrEmpty(a)){var b=this;this.Backend.getWebsiteId(function(a){a=a.WebsiteId;Capacent.String.isNullOrEmpty(a)?b.log.write("Site id not found by URL!"):(b.log.write("<b>Site id detected: "+a+"</b>"),b.Settings.SiteId=a,b.ensureInit())})}else this.Settings.SiteId=a,this.ensureInit()}};(function(){var b;window._bvt={inline:true,performInitialShorctutAnimation:true,
isAutoResumeEnabled:true,isDocumentDomainChanged:false,gaAccount:null,parameters:{},setParam:function(a,b){this.parameters[a]=b},site:null,hideCrowdIntelligence:function(){b.Feedback.hidePopup()},setUserId:function(a){b.Popup.SetTagUserId(b,a)},initSite:function(a){if(!this._alreadyInited){this._alreadyInited=true;this.site=a;var c=this;Capacent.Util.onDomReady(function(){var a=window.location.href,d=navigator.userAgent.toLowerCase(),f=/__(bpn|urp)=test_invite/i.test(a);/minimo|symbianos|netfront|nokia|windows\sphone|fennec|iphone|ipad|ipod|android|blackberry|opera\smini|opera\smobi|windows\sce|palm/i.test(d)||
(d=/__(bpn|urp)ui=show_debug/i.test(a)||/__(bpn|urp)=debug/i.test(a),a=/__urpCI=force/i.test(a)?Capacent.CI_Status.Forced:Capacent.CI_Status.Auto,b=new Capacent.BPN({TestInviteMode:f,ShowLog:d,Inline:c.inline,Params:c.parameters,CIEnabled:a,IsAutoResumeEnabled:c.isAutoResumeEnabled,IsDocumentDomainChanged:c.isDocumentDomainChanged,GaAccount:c.gaAccount,PerformInitialShorctutAnimation:c.performInitialShorctutAnimation}),b.setSite(c.site))})}},setStayAwayRespondent:function(a){b.Backend.setStayAwayRespondent(a)},
disableAutoResume:function(){this.isAutoResumeEnabled=false},setAutoResumeEnabled:function(a){this.isAutoResumeEnabled=a},setDocumentDomainChanged:function(a){this.isDocumentDomainChanged=a},setPerformInitialShorctutAnimation:function(a){this.performInitialShorctutAnimation=a},setGACode:function(a){this.gaAccount=a}}})();(function(){var b;window.InvitationPreview={SetLogoUrl:function(a){b.Popup.SetLogoUrl(a)},SetColors:function(a,c){b.Popup.SetColors(a,c)},SetPopupPosition:function(a,c){b.Popup.SetPopupPosition(a,
c)},SetLogoHeight:function(a){b.Popup.SetLogoHeight(a)},SetLogoPosition:function(a,c){b.Popup.SetLogoPosition(a,c)},Init:function(a){b=new Capacent.BPN({TestInviteMode:true,ShowLog:false,Inline:true,Params:{},CIEnabled:Capacent.CI_Status.Disabled,OverlayEnabled:false,LinksEnabled:false,RefreshSession:true,TrackingEnabled:false});b.setSite(a)}}})();(function(){for(var b={push:function(a){var b=a.shift();_bvt[b]&&_bvt[b].apply(_bvt,a)}},a=window._urq||[],c;c=a.shift();)b.push(c);window._urq=b})()}(window,
void 0);

