
/*
YQL Geo library by Christian Heilmann
Homepage: http://isithackday.com/geo/yql-geo-library
Copyright (c)2010 Christian Heilmann
Code licensed under the BSD License:
http://wait-till-i.com/license.txt
V2 by Allan Ebdrup (simplified, no named functions and fallback to geoPlugin.com if YQL does not return location)
*/
window.Uia = window.Uia || {};
if (!Uia.debugPrint) {
    Uia.debugPrint = function () { };
}
var yqlgeo2 = {
    getGeoLocation: function (fnCallback) {
        this.mfnCallback = fnCallback;
        this.retrieveIp();
    },
    retrieveIp: function () {
        this.createScript('http://jsonip.appspot.com/?callback=yqlgeo2.ipRetrievedCallback');
    },
    ipRetrievedCallback: function (o) {
        //Uia.debugPrint("ip: " + o.ip);
        this.mstrIp = o.ip;
        this.getGeoLocationFromIp(o.ip);
    },
    createScript: function (src) {
        var head = document.getElementsByTagName('head')[0];
        var s = document.createElement('script');
        s.src = src;
        head.appendChild(s);
    },
    getGeoLocationFromIp2: function (ip) {
        //make callback that emulates yql result
        window["geoPlugin"] = function (o2) {
            var o = {
                method: "geoPlugin",
                query: {
                    results: {
                        ip: ip,
                        place: {
                            centroid: { latitude: o2.geoplugin_latitude, longitude: o2.geoplugin_longitude },
                            country: { content: o2.geoplugin_countryName, code: o2.geoplugin_countryCode },
                            locality1: {
                                content: o2.geoplugin_region
                            },
                            locality2: {
                                content: o2.geoplugin_city
                            }
                        }
                    }
                }

            };
            yqlgeo2.geoLocationRetrievedCallback(o);
        }
        this.createScript("http://www.geoplugin.net/json.gp?ip=" + ip);
    },
    getGeoLocationFromIp: function (ip) {
        Uia.debugPrint("YqlGeo. IP: '" + ip + "'");
        var yql = 'select * from geo.places where woeid in (' +
    'select place.woeid from flickr.places where (lat,lon) in(' +
    'select latitude,longitude from pidgets.geoip' +
    ' where ip="' + ip + '"))';
        this.executeYql(yql, 'yqlgeo2.geoLocationRetrievedCallback');
    },
    executeYql: function (yql, cb) {
        var src = 'http://query.yahooapis.com/v1/public/yql?q=' +
    encodeURIComponent(yql) + '&format=json&callback=' + cb + '&' +
    'env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys';
        this.createScript(src);
    },
    geoLocationRetrievedCallback: function (o) {
        Uia.debugPrint("YqlGeo. o.query:" + o.query);
        Uia.debugPrint("YqlGeo. o.query.results:" + o.query.results);
        if (o.query.results) {
            if (o.query.results.place) {
                o.query.results.ip = this.mstrIp;
                this.mfnCallback(o.query.results);
                return;
            }
        }
        if (!o.method || o.method != "geoPlugin") {
            Uia.debugPrint("YqlGeo. Yql gave no result. trying geoPlugin...");
            this.getGeoLocationFromIp2(this.mstrIp);
        }
    }
};


/*
click handler for SexyBookmarks
Credit: Phong Thai Cao - http://www.JavaScriptBank.com
Please keep this creadit when you use this code
*/
Uia.sexyBookmarksReady = function () {

    // xhtml 1.0 strict way of using target _blank
    jQuery('.sexy-bookmarks a.external').attr("target", "_blank");

    // this block sets the auto vertical expand when there are more than 
    // one row of bookmarks.
    var sexyBaseHeight = jQuery('.sexy-bookmarks').height();
    var sexyFullHeight = jQuery('.sexy-bookmarks ul.socials').height();
    if (sexyFullHeight > sexyBaseHeight) {
        jQuery('.sexy-bookmarks-expand').hover(
			function () {
			    jQuery(this).animate({
			        height: sexyFullHeight + 'px'
			    }, { duration: 400, queue: false });
			},
			function () {
			    jQuery(this).animate({
			        height: sexyBaseHeight + 'px'
			    }, { duration: 400, queue: false });
			}
		);
    }
    // autocentering
    if (jQuery('.sexy-bookmarks-center') || jQuery('.sexy-bookmarks-spaced')) {
        var sexyFullWidth = jQuery('.sexy-bookmarks').width();
        var sexyBookmarkWidth = jQuery('.sexy-bookmarks:first ul.socials li').width();
        var sexyBookmarkCount = jQuery('.sexy-bookmarks:first ul.socials li').length;
        var numPerRow = Math.floor(sexyFullWidth / sexyBookmarkWidth);
        var sexyRowWidth = Math.min(numPerRow, sexyBookmarkCount) * sexyBookmarkWidth;

        if (jQuery('.sexy-bookmarks-spaced').length > 0) {
            var sexyLeftMargin = Math.floor((sexyFullWidth - sexyRowWidth) / (Math.min(numPerRow, sexyBookmarkCount) + 1));
            jQuery('.sexy-bookmarks ul.socials li').css('margin-left', sexyLeftMargin + 'px');
        } else if (jQuery('.sexy-bookmarks-center'.length > 0)) {
            var sexyLeftMargin = (sexyFullWidth - sexyRowWidth) / 2;
            jQuery('.sexy-bookmarks-center').css('margin-left', sexyLeftMargin + 'px');
        }

    }

    /*
    click handler for SexyBookmarks
    Credit: Cao Phong - http://www.JavaScriptBank.com
    Please keep this creadit when you use this code
    */
    if (!Uia.g_blnSexyInitDone) {
        Uia.g_blnSexyInitDone = true;
        jQuery('.sexy-bookmarks a.external').click(function () {
            var url = encodeURIComponent(window.location.href.replace("?obsurveytest=true", "")), desc = '';
            if (jQuery('p.sexy-bookmarks-content').length) {
                desc = encodeURIComponent(jQuery('p.sexy-bookmarks-content').text());
            }
            switch (this.parentNode.className) {
                case 'sexy-twittley':
                    this.href += '?title=' + document.title + '&url=' + url + '&desc=' + desc + '&pcat=Internet&tags=';
                    break;
                case 'sexy-digg':
                    this.href += '?phase=2&title=' + document.title + '&url=' + url + '&desc=' + desc;
                    break;
                case 'sexy-twitter':
                    this.href += '?status=' + document.title + '+-+' + url;
                    break;
                case 'sexy-scriptstyle':
                    this.href += '?title=' + document.title + '&url=' + url;
                    break;
                case 'sexy-reddit':
                    this.href += '?title=' + document.title + '&url=' + url;
                    break;
                case 'sexy-delicious':
                    this.href += '?title=' + document.title + '&url=' + url;
                    break;
                case 'sexy-stumbleupon':
                    this.href += '?title=' + document.title + '&url=' + url;
                    break;
                case 'sexy-mixx':
                    this.href += '?title=' + document.title + '&page_url=' + url + '&desc=' + desc;
                    break;
                case 'sexy-technorati':
                    this.href += '?add=' + url;
                    break;
                case 'sexy-blinklist':
                    this.href += '?Action=Blink/addblink.php&Title=' + document.title + '&Url=' + url;
                    break;
                case 'sexy-diigo':
                    this.href += '?title=' + document.title + '&url=' + url + '&desc=' + desc;
                    break;
                case 'sexy-yahoobuzz':
                    this.href += '?submitHeadline=' + document.title + '&submitUrl=' + url + '&submitSummary=' + desc + '&submitCategory=science&submitAssetType=text';
                    break;
                case 'sexy-myspace':
                    this.href += '?t=' + document.title + '&u=' + url;
                    break;
                case 'sexy-facebook':
                    this.href += '?t=' + document.title + '&u=' + url;
                    break;
                case 'sexy-designfloat':
                    this.href += '?title=' + document.title + '&url=' + url;
                    break;
                case 'sexy-devmarks':
                    this.href += '?posttitle=' + document.title + '&posturl=' + url + '&posttext=' + desc;
                    break;
                case 'sexy-newsvine':
                    this.href += '?h=' + document.title + '&u=' + url;
                    break;
                case 'sexy-google':
                    this.href += '?op=add&title=' + document.title + '&bkmk=' + url;
                    break;
            }

        });
    }
}

window.Uia=window.Uia||{};Uia.c=function(){};Uia.d=document.location.href.toLowerCase().indexOf("surveyonblog")!==-1;Uia.e=Uia.d?"http://surveyonblog.com":"http://obsurvey.com";Uia.f=function(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(new RegExp("[xy]","g"),function(g){var h=Math.random()*16|0,i=g=='x'?h:(h&0x3|0x8);return i.toString(16);});}
Uia.j=function(){if(!Uia.k){window["YUI"]()["use"]('*',function(l){Uia.k=l;});}
return Uia.k;}
Uia.m=function(n){return Uia.j()["JSON"]["stringify"](n);}
Uia.o=function(p,q,r){var s=r.toString();while(s.length<q){s=p+s;}
return s;}
Uia.t=function(u,v){var w=v||0;return Array.prototype.slice.apply(u,[w]);}
Uia.z=function(A){return A instanceof Array;}
Uia.B=function(A){return A instanceof Date;}
Uia.C=function(A){return typeof A=='boolean'||A instanceof Boolean;}
Uia.D=function(A){var F,i;if(Uia.G(A)){for(F in A){i=A[F];if(!!Uia.H(i)&&!!Uia.I(i)){return false;}}}
return true;}
Uia.I=function(A){return typeof A=='function';}
Uia.J=function(A){return typeof A=='object'&&!A;}
Uia.K=function(A){return(typeof A=='number'||A instanceof Number)&&isFinite(A);}
Uia.L=function(A){return(Uia.K(A)&&(parseInt(A.toFixed(0),10)==A)&&(A<=Uia.M)&&(A>=Uia.N));}
Uia.O=function(A,P,Q){return Uia.L(A)&&A>=P&&A<=Q;}
Uia.G=function(A){return(typeof A=='object'&&!!A)||Uia.I(A);}
Uia.R=function(A){return typeof A=='string'||A instanceof String;}
Uia.H=function(A){return typeof A=='undefined';}
Uia.S=function(A){for(var F=1;F<arguments.length;F++){if(A==arguments[F]){return false;}}
return true;}
Uia.T=function(A){return A===true||(Uia.G(A)&&(A.valueOf)&&A.valueOf()===true);}
Uia.U=function(A){return A===false||(Uia.G(A)&&(A.valueOf)&&A.valueOf()===false);}
Uia.V=function(W,X){var Y=function(Z,ab){return function(){return ab.apply(Z,Uia.t(arguments));};}(X,W);return Y;}
Uia.bb=function(cb,db){return function(){return Array(cb.apply(this,Uia.t(arguments)),db.apply(this,Uia.t(arguments)));};}
Uia.eb=function(cb,db){return function(){var fb=cb.apply(this,Uia.t(arguments));db.apply(this,Uia.t(arguments));return fb;};}
Uia.gb=function(cb,db){return function(){cb.apply(this,Uia.t(arguments));return db.apply(this,Uia.t(arguments));};}
Uia.hb=function(cb,db){return function(){cb.apply(this,Uia.t(arguments));db.apply(this,Uia.t(arguments));};}
function ib(jb){var kb,F=0,lb,mb=true,length=jb.length,nb=[],ob;while(mb){kb="_UNIQUE_ARRAY_PROPERTY_"+F+"_"+(new Date()).getTime();mb=false;for(lb=0;lb<length&&!mb;lb++){mb=(typeof jb[lb][kb]!='undefined');}
F++;}
for(F=0;F<length;F++){ob=jb[F];if(typeof ob[kb]=='undefined'){ob[kb]=true;nb.push(ob);}}
for(F=0;F<length;F++){delete jb[F][kb];}
return nb;}
Uia.M=9007199254740991;Uia.N=-9007199254740991;Uia.pb=function(qb,rb){rb.b=Uia.b;rb.sb=Uia.sb;rb.tb=Uia.tb;rb.ub=Uia.ub;rb.vb=function(wb){if(Uia.I(wb)){Uia.vb.apply(this.prototype,Uia.t(arguments));}else{Uia.vb.apply(this,Uia.t(arguments));}
return this;};rb.xb=Uia.xb;Uia[qb]=rb;}
Uia.b=function(yb,zb,Ab,Bb){var Cb=!Uia.U(Ab);var Db=Uia.T(Bb);var Eb=this.prototype[yb];if(!Db&&(Eb)){throw new Error("Override not allowed: "+yb);}else if(Db&&!Uia.I(Eb)){throw new Error("No method to override: "+yb);}
if(Uia.I(Eb)){var Fb=this.prototype.Gb;if(Uia.H(Fb)){Fb=[];}
var Hb=Uia.Ib.Jb(Fb,yb);if(Hb==-1){Fb.push(yb,[Eb]);}else{Fb[Hb+1].push(Eb);}
this.prototype.Gb=Fb;}
if(yb!="instanceOf"&&Cb&&Uia.Kb){this.prototype[yb]=Uia.Lb(zb,yb);}else{this.prototype[yb]=zb;}
if(!this.Mb){this.Mb=[];}
this.Mb.push(yb);return this;};Uia.sb=function(yb,Nb,Ab){this.b(yb,Nb,Ab,true);};Uia.tb=function(yb){if(!Uia.H(this.prototype[yb])){throw new Error("can't redefine property/method as abstract method");}
this.prototype[yb]=Uia.Ob;return this;};Uia.Ob=function(){};Uia.Pb=function(){};Uia.Ib={};Uia.Ib.Qb=function(Rb,Sb,Tb){var Ub=Rb[Sb];Rb[Sb]=Rb[Tb];Rb[Tb]=Ub;};Uia.Ib.Vb=function(Rb,Wb,Xb){if(Wb!=Xb){Uia.Ib.Yb(Rb,Wb);Uia.Ib.Zb(Rb,Wb,Xb);}};Uia.Ib.ac=function(Rb,Wb,bc){if(Wb!=bc){Uia.Ib.Yb(Rb,Wb);Uia.Ib.insertBefore(Rb,Wb,bc);}};Uia.Ib.cc=function(Rb,v){var Fb=[];var w=v||0;for(var F=w;F<Rb.length;F++){Fb[F-w]=Rb[F];}
return Fb;};Uia.Ib.dc=function(a){var mb=true,kb,length=a.length,F=0,lb,ec=[],ob,fc=false,gc=[];while(mb){kb="_^￿"+(F++);mb=false;for(lb=0;lb<length&&!mb;lb++){ob=a[lb];if(ob){mb=(kb in ob);gc.push(ob);}else{fc=true;}}}
length=gc.length;for(F=0;F<length;F++){ob=gc[F];if(!(kb in ob)){ob[kb]=true;ec.push(ob);}}
for(F=0;F<length;F++){delete gc[F][kb];}
if(fc){ec.push(null);}
return ec;};Uia.Ib.hc=function(Rb,ic){Rb.splice(ic,1);};Uia.Ib.Yb=function(Rb,jc,kc){var F=Uia.Ib.Jb(Rb,jc,kc);if(F==-1){throw new Error("Value not found");}
Uia.Ib.hc(Rb,F);};Uia.Ib.Zb=function(Rb,lc,mc,kc){var F=0;if(Uia.J(mc)){Rb.push(lc);}else{var ic=Uia.Ib.Jb(Rb,mc,kc);if(ic==-1){throw new Error("value does not exist");}
if(ic==Rb.length){Rb.push(lc);}else{Rb.splice(ic+1,0,lc);}}};Uia.Ib.insertBefore=function(Rb,lc,nc,kc){var F=0;if(Uia.J(nc)){Rb.push(lc);}else{var ic=Uia.Ib.Jb(Rb,nc,kc);if(ic==-1){throw new Error("value does not exist");}
Rb.splice(ic,0,lc);}};Uia.Ib.Jb=function(Rb,jc,kc){var F=-1;if(Uia.H(kc)){for(F=Rb.length-1;F>=0&&Rb[F]!=jc;F--){}}else{for(F=Rb.length-1;F>=0&&!kc(Rb[F],jc);F--){}}
return F;};Uia.Ib.oc=function(Rb,jc){for(var pc in Rb){if(Rb[pc]===jc){return pc;}}
return null;};Uia.Ib.qc=function(Rb,jc,kc){return(Uia.Ib.Jb(Rb,jc,kc)!=-1);};Uia.ub=function(rc){if(!Uia.H(this.sc)){throw new Error("Can't inherit twice");}
if(Uia.H(rc))throw new Error("undefined Inherit");this.sc=rc;this.prototype=new rc(Uia.Pb);this.prototype.constructor=this;if(this.prototype.Gb!==undefined){var Fb=Uia.Ib.cc(this.prototype.Gb);for(var F=1;F<Fb.length;F+=2){Fb[F]=Uia.Ib.cc(Fb[F]);}}
this.prototype.Gb=Fb;if(rc.Mb){this.Mb=Uia.Ib.cc(rc.Mb);}
if(!this.prototype.tc){this.b("tc",tc=function(yb){return this.uc(yb,Uia.t(arguments,1));});}
if(!this.prototype.uc){this.b("uc",uc=function(yb,vc){var F,Hb;F=0;if(Uia.H(this.Gb)){throw new Error("mySuper not allowed for this object, no methods are overridden");}
if(Uia.H(this.wc)){this.wc=[];}
var xc=!Uia.z(this.wc[yb]);if(xc){for(F=(this.Gb.length);F>=0&&this.Gb[F]!=yb;F-=2){}
Hb=F;if(Hb<0){throw new Error("the method "+yb+" does not exist in parent");}
this.wc[yb]=Uia.Ib.cc(this.Gb[Hb+1]);}
var Eb=this.wc[yb].pop();var fb=Eb.apply(this,vc);this.wc[yb].push(Eb);return fb;});}
return this;};Uia.vb=function(wb){for(var pc in wb.prototype){var yc=wb.prototype[pc];if(yc==Uia.Ob&&!Uia.I(this[pc])){throw new Error("Object does not implement the abstract method: "+pc);}
if(Uia.I(yc)&&!Uia.I(this[pc])){this[pc]=yc;}}
new wb(this,arguments[1],arguments[2],arguments[3],arguments[4]);return this;};Uia.xb=function(rb){var zc=this;while((!(zc==rb))&&(zc.sc)){zc=zc.sc;}
return(zc==rb);};Uia.Ac=function(rb){var zc=this.constructor;while((!(zc==rb))&&(zc.sc)){zc=zc.sc;}
return(zc==rb);};Uia.Bc=function(Cc,u){var Dc=(u.length===1&&u[0]===Uia.Pb);if(!Dc&&Uia.Kb){Uia.Ec(u);}
if(!Dc){if(Cc==Uia){throw new Error("remember 'new' when creating object");}
if(!Cc.constructor.prototype.Fc){Cc.constructor.b("Fc",function(yb){if(!this.Gc){this.Gc={};}
if(!this.Gc["_"+yb]){this.Gc["_"+yb]=Uia.V(this[yb],this);}
return this.Gc["_"+yb];});}
Cc.Ac=Uia.Ac;Cc.vb=Uia.vb;}
return Dc;}
Uia.pb("Hc",function(Ic){Ic.Jc=null;Ic.Kc=null;Ic.Lc=null;Ic.Mc=null;Ic.Nc=0;Ic.Oc=0;});Uia.Hc.b("Pc",function(){if(Uia.H(this.Qc)){this.Qc=new Uia.Rc(0);if(this.Sc){this.Qc.Tc(this,this.Sc,true);}}
return this.Qc;});Uia.Hc.b("Uc",function(Vc){if(!Uia.H(this.Nc)){if(this.Wc()>Vc){this.Pc().Xc(this.Wc());return;}}
this.Pc().Xc(Vc);return this;});Uia.Hc.b("Yc",function(){return this.Pc().Zc();});Uia.Hc.b("Wc",function(){return this.Nc;});Uia.Hc.b("ad",function(bd){this.Nc=bd;return this;});Uia.Hc.b("cd",function(){if(Uia.H(this.dd)){this.dd=new Uia.Rc(0);if(this.ed){this.dd.Tc(this,this.ed,true);}}
return this.dd;});Uia.Hc.b("fd",function(gd){if(!Uia.H(this.Oc)){if(this.hd()>gd){this.cd().Xc(this.hd());return;}}
this.cd().Xc(gd);return this;});Uia.Hc.b("jd",function(){return this.cd().Zc();});Uia.Hc.b("hd",function(){return this.Oc;});Uia.Hc.b("kd",function(bd){this.Oc=bd;return this;});Uia.Hc.b("ld",function(Vc,gd){this.Uc(Vc);this.fd(gd);return this;});Uia.Hc.b("md",function(){if(Uia.J(this.Jc)){this.Jc=new Uia.nd();this.Jc.Tc(this,this.Uc,true);}
return this.Jc;});Uia.Hc.b("od",function(pd){this.md().qd(pd);return this;});Uia.Hc.b("rd",function(pd){this.md().sd(pd);return this;});Uia.Hc.b("td",function(ud){if(ud!=this.Lc){if(!Uia.J(this.Lc)){this.md().vd();}
if(!Uia.J(ud)){this.od(ud.Pc());}
this.Lc=ud;}
return this;});Uia.Hc.b("wd",function(){return this.Lc;});Uia.Hc.b("xd",function(){if(Uia.J(this.Kc)){this.Kc=new Uia.nd();this.Kc.Tc(this,this.fd,true);}
return this.Kc;});Uia.Hc.b("yd",function(zd){this.xd().qd(zd);return this;});Uia.Hc.b("Ad",function(zd){this.xd().sd(zd);return this;});Uia.Hc.b("Bd",function(ud){if(ud!=this.Mc){if(!Uia.J(this.Mc)){this.xd().vd();}
if(!Uia.J(ud)){this.yd(ud.cd());}
this.Mc=ud;}
return this;});Uia.Hc.b("Cd",function(){return this.Lc;});Uia.Hc.b("Dd",function(ud,Ed){this.Fd=Ed;this.td(ud);this.Bd(ud);return this;});Uia.Hc.b("Gd",function(pd,zd){this.od(pd);this.yd(zd);return this;});Uia.Hc.b("Hd",function(pd,zd){this.rd(pd);this.Ad(zd);return this;});Uia.pb("Id",function(Jd){if(Uia.Bc(this,arguments)){return this;}
if(!Uia.Id.Kd){Uia.Id.Kd=new Uia.Ld();}});Uia.Id.b("Md",function(){if(Uia.H(this.Nd)){this.Nd=[];this.Od=[];this.Pd=true;this.Qd=new Uia.Rd(false);this.Sd=new Uia.Rd(false);this.Td=false;this.Ud=[];}});Uia.Id.b("Vd",function(Wd,Xd,Yd){this.Md();if(this.Pd){if(!this.Td){this.Sd.Tc(this,this.Zd);this.Td=true;}
this.Od.push(Wd);Uia.Id.Kd.add(Wd,this,this.Fc("ae"),Xd,Yd);this.Sd.Xc(true);}else{Wd();}
return this;});Uia.Id.b("be",function(){this.Md();return this.Qd;});Uia.Id.b("ce",function(){this.Md();return this.Sd;});Uia.Id.b("de",function(){this.Md();return this.Sd.Zc();});Uia.Id.b("ee",function(fe){this.Md();this.Sd.Xc(fe);return this;});Uia.Id.b("ge",function(){this.Md();return this.Qd.Zc();});Uia.Id.b("he",function(Jd){this.Md();this.Ud.push(Jd);Jd.be().Tc(this,this.Zd,true);return this;});Uia.Id.b("Zd",function(){this.Md();var ie=this.Sd.Zc();if(!ie){for(var F=0;!ie&&F<this.Ud.length;F++){ie=this.Ud[F].ge();}}
this.Qd.Xc(ie);});Uia.Id.b("je",function(ke){this.Md();this.le=ke;});Uia.Id.b("ae",function(Wd){this.Md();Uia.Ib.Yb(this.Od,Wd);if(this.Od.length==0){this.Sd.Xc(false);}});Uia.Id.b("me",function(ne){this.Md();this.Nd.push(ne);ne.oe(this.pe());ne.je(this);return this;});Uia.Id.b("qe",function(){this.Md();Uia.Id.Kd.clear(this);if(this.Nd){for(var F=0;F<this.Nd.length;F++){this.Nd[F].qe();}}
return this;});Uia.Id.b("oe",function(re){this.Md();this.Pd=re;for(var F=0;F<this.Nd.length;F++){this.Nd[F].oe(re);}
return this;});Uia.Id.b("pe",function(re){this.Md();return this.Pd;});Uia.Id.b("se",function(){this.Md();return Uia.Id.Kd.se();});Uia.pb("Ld",function(){if(Uia.Bc(this,arguments)){return this;}
this.te=[];});Uia.Ld.b("add",function(Wd,ue,ve,Xd,Yd){var we=false,xe=Uia.H(Yd)?true:Yd;for(var F=0;!we&&F<this.te.length;F++){we=this.te[F].Wd===Wd;}
if(!we){var ye={Wd:Wd,ue:ue,ve:ve,xe:xe};if(Xd){this.te.push(ye);}else{this.te.unshift(ye);}}else{ve(Wd);}
if(!this.ze){this.ze=true;setTimeout(this.Fc("Ae"),1);this.Be=(new Date()).getTime()+200;}});Uia.Ld.b("clear",function(ue){var F=0;while(F<this.te.length){var ye=this.te[F];if(ye.ue===ue&&ye.xe){this.te.splice(F,1);ye.ve(ye.Wd);}else{F++;}}});Uia.Ld.b("se",function(){return this.Be;});Uia.Ld.b("Ae",function(){this.Be=(new Date()).getTime()+200;while((new Date()).getTime()<this.Be){if(this.te.length==0){this.ze=false;return;}
var ye=this.te.shift();ye.Wd();ye.ve(ye.Wd);}
if(this.te.length>0){setTimeout(this.Fc("Ae"),10);}else{this.ze=false;}});Uia.pb("Ce",function(De,Ee,u){if(Uia.Bc(this,arguments)){return this;}
this.Fe=De;this.Ge=Ee;this.He=u;});Uia.Ce.b("Ie",function(){return this.Fe;});Uia.Ce.b("Je",function(){return this.Ge;});Uia.Ce.b("Ke",function(){return this.He;});Uia.Ce.b("Le",function(Me,jc){this[Me]=jc;});Uia.pb("Ne",function(){if(Uia.Bc(this,arguments)){return this;}
this.Oe=null;this.Pe=[];});Uia.Ne.b("Qe",function(Re){if(!Uia.J(this.Oe)){for(var F=0;F<this.Pe.length;F++){this.Se(this.Pe[F],null);}}
this.Oe=Re;for(var F=0;F<this.Pe.length;F++){this.Se(this.Pe[F],Re);}});Uia.Ne.b("Te",function(){return this.Oe;});Uia.Ne.b("Ue",function(){this.Te().clear();});Uia.Ne.b("Ve",function(){var Re=this.Te();if(Uia.J(Re))return false;return Re.Ve();});Uia.Ne.b("We",function(){var Re=this.Te();if(Uia.J(Re))return false;if(Re.Ve())return false;return true;});Uia.Ne.b("Xe",function(Ye){if(Uia.Ib.Jb(this.Pe,Ye)!=-1){return;}
this.Pe.push(Ye);if(Ye.Ac(Uia.Ze)){Ye.Tc(this,this.af);}
this.Se(Ye,this.Te());});Uia.Ne.b("bf",function(Ye){Uia.Ib.Yb(this.Pe,Ye);if(Ye.Ac(Uia.Ze)){Ye.cf(this);}
this.Se(Ye,null);});Uia.Ne.b("Se",function(df,Re){if(df.Ac&&df.Ac(Uia.Ze)){for(var F=0;F<df.length();F++){this.Se(df.ef(F),Re);}}
if(df.Ac&&df.Ac(Uia.Ne)){df.Qe(Re);}});Uia.Ne.b("af",function(ff){if(!ff){return;}else{var gf=ff;}
switch(gf.Ie()){case"push":for(F=0;F<gf.hf.length;F++){this.Se(gf.hf[F],this.Te());}
break;case"pop":break;case"shift":break;case"setValueAt":this.Se(gf.jf,this.Te());break;case"removeValueAt":break;case"splice":for(F=0;F<gf.hf.length;F++){this.Se(gf.hf[F],this.Te());}
break;case"moveValueAfter":break;case"moveValueBefore":break;case"swap":break;case"unshift":for(F=0;F<gf.hf.length;F++){this.Se(gf.hf[F],this.Te());}
break;case"setValue":if(gf.kf&&gf.kf!=null){for(F=0;F<this.kf.length();F++){this.Se(this.lf.ef(F),this.Te());}}
break;case"sort":case"reverse":break;default:throw new Error("Unknown event: "+gf.Ie());}});Uia.pb("mf",function(nf){if(Uia.Bc(this,arguments)){return this;}
this.of=nf||false;this.pf=[];Uia.Ne.call(this);});Uia.mf.ub(Uia.Ne);Uia.mf.b("qf",function(){return this.of;});Uia.mf.b("rf",function(sf){this.of=sf;return this;});Uia.mf.b("tf",function(uf){uf.Tc(this,this.vf);this.Xe(uf);return uf;});Uia.mf.b("wf",function(uf){uf.xf(this);this.bf(uf);return this;});Uia.mf.b("Tc",function(yf,zf,Af){if(!Uia.I(zf)){throw new Error("changehandler is not a function");}
this.pf.push(zf);this.pf.push(yf);var Bf;if(this.Zc){Bf=this.Zc();}
if(Af){zf.call(yf,Bf,false);}});Uia.mf.b("xf",function(yf,Cf){var Df=Uia.H(Cf)?true:Uia.T(Cf);var Ef=0;for(var ic=1;ic<this.pf.length;ic+=2){while(this.pf[ic]==yf){Ef++;this.pf.splice(ic-1,2);}}
if(Ef===0&&Df){throw new Error("no changehandlers removed");}});Uia.mf.b("vf",function(){var Ff=this.Ve();var Bf;if(this.Zc){Bf=this.Zc();}
for(var F=0;F<this.pf.length;F+=2){this.pf[F].call(this.pf[F+1],Bf,Ff);}});Uia.pb("Ze",function(Gf,nf){if(Uia.Bc(this,arguments)){return this;}
Uia.mf.call(this,nf);this.Hf=[];this.If=[];this.Xc(Gf);});Uia.Ze.ub(Uia.mf);Uia.Ze.b("Jf",function(Kf){var Lf=Uia.J(Kf)?null:Kf.Zc();var sf=Uia.J(Kf)?true:Kf.qf();this.rf(sf);this.Xc(Lf);});Uia.Ze.sb("Tc",function(yf,zf,Mf){this.pf.unshift({zf:zf,yf:yf});if(Mf){zf.call(yf);}});Uia.Ze.b("Nf",function(Of){this.Hf.unshift(Of);});Uia.Ze.b("Pf",function(Qf){this.If.unshift(Qf);});Uia.Ze.sb("xf",function(yf,Cf){var Df=Uia.H(Cf)?true:Uia.T(Cf);var Ef=0;for(var ic=0;ic<this.pf.length;ic++){while(ic<this.pf.length&&this.pf[ic].yf==yf){Ef++;this.pf.splice(ic,1);}}
if(Ef===0&&Df){throw new Error("no changehandlers removed");}});Uia.Ze.sb("vf",function(ff){var hf=[],Rf=[],De=Uia.H(ff)?"none":ff.Ie();switch(De){case"push":hf=ff.hf
break;case"pop":Rf.push(ff.Sf);break;case"shift":Rf.push(ff.Sf);break;case"setValueAt":Rf.push(ff.Sf);hf.push(ff.jf);break;case"removeValueAt":Rf.push(ff.Sf);break;case"splice":Rf=ff.Rf;hf=ff.hf;break;case"moveValueAfter":break;case"moveValueBefore":break;case"swap":break;case"unshift":hf=ff.hf;break;case"setValue":Rf=ff.Tf;hf=ff.value;break;case"sort":case"reverse":case"none":break;default:throw new Error("Unknown event in Uia.BoxedArray: "+ff.Ie());}
if(this.If.length>0&&!Uia.J(Rf)&&Rf.length>0){for(var F=0;F<this.If.length;F++){this.If[F](Rf);}}
if(this.Hf.length>0&&!Uia.J(hf)&&hf.length>0){for(var F=0;F<this.Hf.length;F++){this.Hf[F](hf);}}
if(this.We()&&ff){this.Uf(ff);}
var Vf=this.Ve();if(ff){ff.Le("Wf",Vf);}
var Xf=Uia.Ib.cc(this.pf);for(var F=0;F<Xf.length;F++){var Yf=Xf[F].yf;Xf[F].zf.call(Yf,ff);}});Uia.Ze.b("Uf",function(gf){var Zf=gf.Ie();var vc=Uia.t(gf.Ke());this.Te().ag(
new Uia.bg(
"No decription yet",this,Zf,vc).cg(true).dg(gf)
);});Uia.Ze.b("Jb",function(jc,kc){return Uia.Ib.Jb(this.eg,jc,kc);});Uia.Ze.b("qc",function(jc,kc){return(Uia.Ib.Jb(this.eg,jc,kc)!=-1);});Uia.Ze.b("fg",function(){this.gg=true;});Uia.Ze.b("hg",function(){this.gg=false;});Uia.Ze.b("Xc",function(Gf,ig){if(this.gg){throw new Error("Locked");}
if(Uia.J(Gf)&&!this.qf()){throw new Error("Can't set to null");}
if(this.eg!==Gf){if(this.eg&&!Uia.J(this.eg)&&!Uia.J(Gf)&&Gf.length==this.eg.length){var jg=true;for(var F=0;jg&&F<Gf.length;F++){jg=(Gf[F]===this.eg[F]);}
if(jg){Uia.c("BoxedArray.setValue. Arrays are the same, not setting value.");return;}}
if(ig){this.qe();}
var gf=new Uia.Ce("setValue",this,arguments);gf.Le("value",Gf);gf.Le("Tf",this.eg);this.eg=Gf;this.vf(gf);}});Uia.Ze.b("length",function(){return this.eg.length;});Uia.Ze.b("kg",function(lg,mg,ng){if(this.gg){throw new Error("Locked");}
og=[];var pg=ng||1;if(lg>mg&&pg>0){throw new Error("Can't step up when 'from' is higher than 'to'");}
if(lg<mg&&pg<0){throw new Error("Can't step down when 'from' is lower than 'to'");}
if(lg<mg){for(var F=lg;F<=mg;F+=pg){og.push(F);}}
if(lg>mg){for(var F=lg;F>=mg;F+=pg){og.push(F);}}
this.Xc(og);return this;});Uia.Ze.b("qg",function(ic,jc){if(this.gg){throw new Error("Locked");}
if(Uia.J(this.eg)){throw new Error("Can't set value at "+ic+" when array is null");}
var gf=new Uia.Ce("setValueAt",this,arguments);gf.Le("index",ic);gf.Le("jf",jc);gf.Le("Sf",this.eg[ic]);this.eg[ic]=jc;this.vf(gf);});Uia.Ze.b("Zc",function(){return this.eg;});Uia.Ze.b("ef",function(ic){if(Uia.J(this.eg)){return this.eg;}
return this.eg[ic];});Uia.Ze.b("hc",function(ic){if(this.gg){throw new Error("Locked");}
if(Uia.J(this.eg)){throw new Error("Can't remove value at "+ic+" when array is null");}
var gf=new Uia.Ce("removeValueAt",this,arguments);gf.Le("index",ic);gf.Le("Sf",this.ef(ic));Uia.Ib.hc(this.eg,ic);this.vf(gf);});Uia.Ze.b("Yb",function(rg,kc){if(this.gg){throw new Error("Locked");}
if(Uia.J(this.eg)){return;}
var ic=this.Jb(rg,kc);if(ic==-1){throw new Error("Can't find value to remove");}
this.hc(ic);});Uia.Ze.b("Qb",function(Sb,Tb){if(this.gg){throw new Error("Locked");}
var gf=new Uia.Ce("swap",this,arguments);gf.Le("sg",Sb);gf.Le("tg",Tb);gf.Le("ug",this.ef(Sb));gf.Le("vg",this.ef(Tb));Uia.Ib.Qb(this.eg,Sb,Tb);this.vf(gf);});Uia.Ze.b("Vb",function(Wb,Xb){if(this.gg){throw new Error("Locked");}
if(Wb!=Xb){var wg=Uia.Ib.Jb(this.eg,Wb);var xg=Uia.Ib.Jb(this.eg,Xb);if(xg+1==wg)return;var gf=new Uia.Ce("moveValueAfter",this,arguments);if(wg>0){gf.Le("yg",this.eg[wg-1]);}
if(wg<this.length()-1){gf.Le("zg",this.eg[wg+1]);}
gf.Le("Ag",Wb);gf.Le("Bg",wg);gf.Le("Cg",Xb);gf.Le("Dg",xg);Uia.Ib.Yb(this.eg,Wb);Uia.Ib.Zb(this.eg,Wb,Xb);this.vf(gf);}});Uia.Ze.b("ac",function(Wb,bc){if(this.gg){throw new Error("Locked");}
if(Wb!=bc){var wg=Uia.Ib.Jb(this.eg,Wb);var Eg=Uia.Ib.Jb(this.eg,bc);if(wg+1==Eg)return;var gf=new Uia.Ce("moveValueBefore",this,arguments);if(wg>0){gf.Le("yg",this.eg[wg-1]);}
if(wg<this.length()-1){gf.Le("zg",this.eg[wg+1]);}
gf.Le("Ag",Wb);gf.Le("Bg",wg);gf.Le("Fg",bc);gf.Le("Gg",Eg);Uia.Ib.Yb(this.eg,Wb);Uia.Ib.insertBefore(this.eg,Wb,bc);this.vf(gf);}});Uia.Ze.b("cc",function(){if(Uia.J(this.eg)){return null;}
return new Uia.Ze(Uia.Ib.cc(this.eg));});Uia.Ze.b("Zb",function(Hg,Xb,kc){if(this.gg){throw new Error("Locked");}
var F=0;if(Uia.J(Xb)){Rb.push(Hg);}else{var ic=this.Jb(Xb,kc);if(ic==-1){throw new Error("value does not exist");}
if(ic==this.length()){this.push(Hg);}else{this.splice(ic+1,0,Hg);}}});Uia.Ze.b("insertBefore",function(Hg,bc,kc){if(this.gg){throw new Error("Locked");}
var F=0;if(Uia.J(bc)){Rb.push(Hg);}else{var ic=this.Jb(bc,kc);if(ic==-1){throw new Error("value does not exist");}
this.splice(ic,0,Hg);}});Uia.Ze.b("concat",function(Rb){return this.eg.concat(Uia.t(arguments));});Uia.Ze.b("join",function(Ig){return Uia.H(Ig)?this.Zc().join():this.Zc().join(Ig);});Uia.Ze.b("pop",function(){if(this.gg){throw new Error("Locked");}
if(Uia.J(this.eg)){return this.eg;}
var gf=new Uia.Ce("pop",this,arguments);var Jg=this.eg.pop();gf.Le("Sf",Jg);this.vf(gf);return Jg;});Uia.Ze.b("push",function(jc){if(this.gg){throw new Error("Locked");}
var gf=new Uia.Ce("push",this,arguments);var Kg=Uia.t(arguments);this.eg=this.eg.concat(Kg);gf.Le("hf",Kg);this.vf(gf);return this.eg.length;});Uia.Ze.b("unshift",function(jc){if(this.gg){throw new Error("Locked");}
if(!arguments){throw new Error("Must pass one or more elements to Uia.BoxedArray.unshift");}
var gf=new Uia.Ce("unshift",this,arguments);var Kg=Uia.t(arguments);this.eg=Kg.concat(this.eg);gf.Le("hf",Kg);this.vf(gf);return this.eg.length;});Uia.Ze.b("reverse",function(){if(this.gg){throw new Error("Locked");}
var gf=new Uia.Ce("reverse",this,arguments);gf.Le("Tf",Uia.Ib.cc(this.eg));this.Zc().reverse();this.vf(gf);});Uia.Ze.b("shift",function(){if(this.gg){throw new Error("Locked");}
var gf=new Uia.Ce("shift",this,arguments);gf.Le("Tf",this.eg);var Jg=this.eg.shift();gf.Le("Sf",Jg);this.vf(gf);return Jg;});Uia.Ze.b("slice",function(Lg,Mg){return this.eg.slice(Lg,Mg);});Uia.Ze.b("splice",function(ic,Ng){if(this.gg){throw new Error("Locked");}
var gf=new Uia.Ce("splice",this,arguments);gf.Le("index",ic);gf.Le("Og",Ng);var Pg=this.ef(ic);if(Uia.H(Pg)){Pg=null;}
gf.Le("Qg",Pg);var Rg=Uia.t(arguments,2);var Sg=this.eg.splice.apply(this.eg,arguments);gf.Le("Rf",Sg);gf.Le("hf",Rg);this.vf(gf);return Sg;});Uia.Ze.b("sort",function(kc){if(this.gg){throw new Error("Locked");}
var gf=new Uia.Ce("sort",this,arguments);gf.Le("Tf",Uia.Ib.cc(this.Zc()));if(Uia.H(kc)){this.Zc().sort();}else{this.Zc().sort(kc);gf.Le("Tg",kc);}
this.vf(gf);return this.Zc();});Uia.Ze.b("Ug",function(gf){Vg=this;switch(gf.Ie()){case"push":for(F=0;F<gf.hf.length;F++){Vg.pop();}
break;case"pop":Vg.push(gf.Sf);break;case"shift":Vg.unshift(gf.Sf);break;case"setValueAt":Vg.qg(gf.index,gf.Sf);break;case"removeValueAt":if(gf.index>0){Vg.Zb(gf.Sf,Vg.ef(gf.index-1));}else{Vg.unshift(gf.Sf);}
break;case"splice":var vc=[];vc.push(gf.index);vc.push(gf.hf.length);for(var F=0;F<gf.Rf.length;F++){vc.push(gf.Rf[F]);}
Vg.splice.apply(Vg,vc);break;case"moveValueAfter":case"moveValueBefore":if(gf.zg){Vg.ac(gf.Ag,gf.zg);}else{Vg.Vb(gf.Ag,gf.yg);}
break;case"swap":Vg.Qb(gf.sg,gf.tg);break;case"unshift":Vg.shift();break;case"setValue":case"sort":case"reverse":Vg.Xc(gf.Tf);break;default:throw new Error("Unknown event in undoing array modelevent: "+gf.Ie());}});Uia.Ze.vb(Uia.Id);Uia.pb("Wg",function(Xg,Yg,nf){if(Uia.Bc(this,arguments)){return this;}
this.oe(false);this.Zg=Yg;this.ah=Xg;Uia.Ze.call(this,Xg.Zc(),nf);this.ah.Tc(this,this.bh);});Uia.Wg.ub(Uia.Ze);Uia.Wg.b("dh",function(){return this.ah;});Uia.Wg.b("eh",function(fh){this.gh=fh;return this;});Uia.Wg.b("hh",function(){return this;});Uia.Wg.b("bh",function(gf){switch(gf.Ie()){case"pop":if(this.ih){this.Xc(this.ah.Zc());}else{if(this.Zg(gf.Sf)){this.pop();}}
break;case"push":if(this.ih){this.Xc(this.ah.Zc());}else{this.push.apply(this,gf.Ke());}
break;case"removeValueAt":if(this.ih){this.Xc(this.ah.Zc());}else{if(this.Zg(gf.Sf)){this.Yb(gf.Sf);}}
break;case"reverse":if(this.ih){this.Xc(this.ah.Zc());}else{this.reverse();}
break;case"setValue":this.Xc(gf.value);break;case"setValueAt":this.Xc(this.ah.Zc());break;case"shift":if(this.ih){this.Xc(this.ah.Zc());}else{if(this.Zg(gf.Sf)){this.shift();}}
break;case"sort":this.Xc(this.ah.Zc());break;case"splice":this.Xc(this.ah.Zc());break;case"swap":this.Xc(this.ah.Zc());break;case"moveValueAfter":this.Xc(this.ah.Zc());break;case"moveValueBefore":this.Xc(this.ah.Zc());break;case"unshift":if(this.ih){this.Xc(this.ah.Zc());}else{this.unshift.apply(this,gf.Ke());}
break;default:throw new Error("Trying to call unknown syncronizer on Uia.FilteredArray");}});Uia.Wg.b("jh",function(bd,kh){for(var F=bd;F>=0;F--){var lh=this.ah.ef(F);if(this.Zg(lh)&&lh!==kh){return this.ah.ef(F);}}
return null;});Uia.Wg.b("mh",function(ig){this.nh=Uia.H(ig)?false:ig;this.Xc(this.ah.Zc());});Uia.Wg.sb("Xc",function(Gf){if(Uia.J(Gf)){if(!this.qf()){throw new Error("Can't set to null");}
return this.tc("Xc",null);}
this.ih=Gf;this.oh=[];this.ph=0;this.Vd(this.Fc("qh"));return this;});Uia.Wg.b("rh",function(Gf){this.tc("Xc",Gf);});Uia.Wg.b("qh",function(){var Gf=this.ih;if(Gf){var oh=this.oh,sh=this.se(),Yg=this.Zg,q=Gf.length,F;if(this.pe()){for(F=this.ph;F<q&&(new Date()).getTime()<sh;F++){if(Yg(Gf[F])){oh.push(Gf[F]);}}}else{for(F=this.ph;F<q;F++){if(Yg(Gf[F])){oh.push(Gf[F]);}}}
this.ph=F;if(F==q){this.ee(false);this.tc("Xc",oh,this.nh);this.ih=undefined;}else{this.Vd(this.Fc("qh"));}}});Uia.Wg.sb("splice",function(ic,Ng){if(!arguments){throw new Error("Must pass one or more elements to Uia.FilteredArray.splice");}
if(this.ih){throw new Error("Can't splice on a array that's in a worker queue");}else{var oh=[];oh.push(ic,Ng);for(var F=2;F<arguments.length;F++){oh.push(this.Zg(arguments[F]));}
return this.uc("splice",oh);}});Uia.Wg.sb("push",function(jc){var th=[];for(var F=0;F<arguments.length;F++){if(this.Zg(arguments[F])){th.push(arguments[F]);}}
return this.uc("push",th);});Uia.Wg.sb("unshift",function(jc){var th=[];for(var F=0;F<arguments.length;F++){if(this.Zg(arguments[F])){th.push(arguments[F]);}}
return this.uc("unshift",th);});Uia.pb("uh",function(vh,nf){if(Uia.Bc(this,arguments)){return this;}
Uia.mf.call(this,nf);this.Xc(vh);});Uia.uh.ub(Uia.mf);Uia.uh.b("Xc",function(wh){if(Uia.J(wh)&&!this.qf()){throw new Error("Can't set to null");}
if(this.xh!==wh){if(this.We()){this.Te().ag(
new Uia.yh("No decription yet",this,wh).cg(true)
);}
this.xh=wh;this.vf();}
return this;});Uia.uh.b("Zc",function(){return this.xh;});Uia.pb("Rd",function(zh,nf){if(Uia.Bc(this,arguments)){return this;}
Uia.mf.call(this,nf);this.Xc(zh);});Uia.Rd.ub(Uia.mf);Uia.Rd.sb("toString",function(){return this.Zc().toString();});Uia.Rd.b("Xc",function(zh){if(Uia.J(zh)){if(!this.qf()){throw new Error("Can't set to null");}
if(!Uia.J(this.Ah)){if(this.We()){this.Te().ag(
new Uia.Bh("No decription yet",this,zh).cg(true)
);}
this.Ah=zh;this.vf();}}else{var Ch=Uia.T(zh);if(Ch!=this.Ah){if(this.We()){this.Te().ag(
new Uia.Bh("No decription yet",this,Ch).cg(true)
);}
this.Ah=Ch;this.vf();}}});Uia.Rd.b("Dh",function(){if(Uia.J(this.Ah)){throw new Error("can't flip null");}
this.Xc(!Uia.T(this.Ah));});Uia.Rd.b("Zc",function(){return Uia.J(this.Ah)?null:this.Ah.valueOf();});Uia.Rd.b("Eh",function(){for(var F=0;F<this.Fh.length;F++){this.Fh[F].Xc(this.Zc());}});Uia.Rd.b("Gh",function(Hh){this.Xc(Hh);});Uia.Rd.b("Ih",function(Jh){if(!this.Fh){this.Fh=[];this.Tc(this,this.Eh);}
this.Fh.push(Jh);Jh.Tc(this,this.Gh);});Uia.pb("Rc",function(Kh,nf,Lh,Mh){if(Uia.Bc(this,arguments)){return this;}
Uia.mf.call(this,nf);this.Nh=Lh||Uia.N;this.Oh=Mh||Uia.M;this.Xc(Kh);});Uia.Rc.ub(Uia.mf);Uia.Rc.b("toExponential",function(Ph){if(Uia.J(this.Qh)){return this.Qh;}else{return this.Qh.toExponential(Ph);}});Uia.Rc.b("Xc",function(Kh){if(Uia.J(Kh)&&!this.qf()){throw new Error("Can't set to null");}
if(!Uia.J(Kh)&&!Uia.L(Kh))
{throw new Error("can't set to non integer value:"+Kh.toString());}
if(this.Qh!==Kh){this.Qh=Kh;this.vf();}
return this;});Uia.Rc.b("Rh",function(){return this.Nh!==Uia.N;});Uia.Rc.b("Sh",function(){return this.Oh!==Uia.M;});Uia.Rc.b("Th",function(){return this.Oh;});Uia.Rc.b("Uh",function(){return this.Nh;});Uia.Rc.b("kg",function(Vh,Wh){this.Nh=Vh;this.Oh=Wh;return this;});Uia.Rc.b("Xh",function(Wh){this.Oh=Wh;return this;});Uia.Rc.b("Yh",function(Vh){this.Nh=Vh;return this;});Uia.Rc.b("Zh",function(bd){if(Uia.J(this.Zc())){this.Xc(bd);}else{this.Xc(this.Zc()+bd);}});Uia.Rc.b("Zc",function(){if(Uia.J(this.Qh)){return this.Qh;}else{return this.Qh.valueOf();}});Uia.pb("ai",function(bi,nf,ci,di){if(Uia.Bc(this,arguments)){return this;}
Uia.mf.call(this,nf);this.ei=Uia.T(nf)?null:"";this.fi=Uia.H(ci)?0:ci;this.gi=Uia.H(di)?Number.POSITIVE_INFINITY:di;this.Xc(bi);});Uia.ai.ub(Uia.mf);Uia.ai.b("hi",function(){return new Uia.ai(this.Zc());});Uia.ai.b("ii",function(){return this;});Uia.ai.b("ji",function(){return this.Zc();});Uia.ai.b("length",function(){return this.Zc().length;});Uia.ai.b("charAt",function(ic){return this.Zc().charAt(ic);});Uia.ai.b("charCodeAt",function(ic){return this.Zc().charCodeAt(ic);});Uia.ai.b("concat",function(n){this.Xc(this.Zc().concat(n));return this;});Uia.ai.b("fromCharCode",function(ki,li,mi){return new Uia.ai(String.fromCharCode(ki,li,mi));});Uia.ai.b("indexOf",function(r,w){return this.Zc().indexOf(r,w);});Uia.ai.b("lastIndexOf",function(r,w){return this.Zc().lastIndexOf(r,w);});Uia.ai.b("match",function(ni){return this.Zc().match(ni);});Uia.ai.b("replace",function(oi){this.Xc(this.Zc().replace(oi));});Uia.ai.b("search",function(pi){return this.Zc().search(pi);});Uia.ai.b("slice",function(Lg,Mg){this.Xc(this.Zc().slice(Lg,Mg));return this;});Uia.ai.b("split",function(qi,ri){return this.Zc().split(qi,ri);});Uia.ai.b("substr",function(si,q){return this.Zc().substr();});Uia.ai.b("substring",function(ti,ui){return this.Zc().substring(ti,ui);});Uia.ai.b("toLowerCase",function(){this.Xc(this.Zc().toLowerCase());return this;});Uia.ai.sb("toString",function(){return this.Zc().toString();});Uia.ai.b("toUpperCase",function(){this.Xc(this.Zc().toUpperCase());return this;});Uia.ai.b("Rh",function(){return this.fi!==0;});Uia.ai.b("Sh",function(){return this.gi!==Number.POSITIVE_INFINITY;});Uia.ai.b("vi",function(){return this.fi;});Uia.ai.b("wi",function(){return this.gi;});Uia.ai.b("Xc",function(bi){if(Uia.J(bi)){if(!this.qf()){throw new Error("Can't set to null");}}else if(!Uia.R(bi)){throw new Error("Setting string to non-string value");}else if(bi.length>this.gi||bi.length<this.fi){throw new Error("Length of string has to be between : "+this.fi+" - "+this.gi);}
if(this.Zc()!=bi){if(this.We())
{this.Te().ag(
new Uia.xi("No decription yet",this,bi).cg(true)
);}
this.ei=bi;this.vf();}});Uia.ai.b("Zc",function(){return Uia.J(this.ei)?this.ei:this.ei.valueOf();});Uia.ai.b("yi",function(){return this.Zc().yi();});Uia.pb("zi",function(Ai,Bi){if(Uia.Bc(this,arguments)){return this;}
this.Ci=Bi;this.ah=null;Uia.Ze.call(this,null,true);this.Di=false;this.Ei=false;this.Fi=[];this.Gi(Ai);});Uia.zi.ub(Uia.Ze);Uia.zi.b("Hi",function(Ii){if(Ii&&!this.Ei){this.Tc(this,this.Fc("Ji"));}else if(!Ii&&this.Ei){this.xf(this);}
this.Di=Ii;return this;});Uia.zi.b("Gi",function(Kf){{if(this.ah&&this.ah!=null){this.ah.xf(this);}
this.ah=Kf;if(!Uia.J(this.ah)){this.ah.Tc(this,this.Ki);}
if(!Uia.J(Kf))this.Xc(Kf.Zc());}
return this;});Uia.zi.b("Li",function(){return this.ah;});Uia.zi.sb("Ve",function(){return Uia.J(this.ah)?false:this.ah.Ve();});Uia.zi.b("Mi",function(jc){return this.ef(this.Li().Jb(jc));});Uia.zi.b("Ki",function(gf){switch(gf.Ie()){case"pop":this.pop.apply(this,gf.Ke());break;case"push":this.push.apply(this,gf.Ke());break;case"removeValueAt":this.hc(gf.index);break;case"reverse":this.reverse();break;case"setValue":this.Xc(gf.value);break;case"setValueAt":this.qg(gf.index,gf.jf);break;case"shift":this.shift();break;case"sort":this.sort();break;case"splice":this.splice.apply(this,gf.Ke());break;case"swap":this.Qb(gf.sg,gf.tg);break;case"moveValueAfter":this.Vb(this.ef(gf.Bg),this.ef(gf.Dg));break;case"moveValueBefore":this.ac(this.ef(gf.Bg),this.ef(gf.Gg));break;case"unshift":this.unshift.apply(this,gf.Ke());break;default:throw new Error("Trying to call unknown syncronizer on SyncronizedArray");}});Uia.zi.b("Ji",function(gf){if(!this.Di){throw new Error("Changhandler called while reuse set to false");}
var F;switch(gf.Ie()){case"push":break;case"pop":this.Fi.push(gf.Sf);break;case"shift":this.Fi.push(gf.Sf);break;case"setValueAt":this.Fi.push(gf.Sf);break;case"removeValueAt":this.Fi.push(gf.Sf);break;case"splice":for(F=0;F<gf.Rf.length;F++){this.Fi.push(gf.Rf[F]);}
break;case"moveValueAfter":break;case"moveValueBefore":break;case"swap":break;case"unshift":break;case"setValue":break;case"sort":case"reverse":break;default:throw new Error("Unknown event in reusing in Uia.MappedArray: "+gf.Ie());}});Uia.zi.b("Ni",function(Oi,Pi){if(!this.Di||this.Fi.length==0){return this.Ci(Oi,Pi);}else{var Qi=this.Fi.pop();Qi.Ri(Oi);return Qi;}});Uia.zi.b("Si",function(Gf){this.Xc(this.ah.Zc());});Uia.zi.sb("Xc",function(Gf){if(this.Di){var Ti=this.Zc();for(var lb=0;lb<Ti.length;lb++){this.Fi.push(Ti[lb]);}}
var oh;if(Uia.J(Gf)){if(!this.qf()){throw new Error("Can't set to null");}
oh=null;}else{oh=[];for(var F=0;F<Gf.length;F++){oh[F]=this.Ni(Gf[F],F);}}
return this.tc("Xc",oh);});Uia.zi.sb("qg",function(ic,jc){return this.tc("qg",ic,this.Ni(jc,ic));});Uia.zi.sb("splice",function(ic,Ng){if(!arguments){throw new Error("Must pass one or more elements to Uia.MappedArray.splice");}
var oh=[];oh.push(ic,Ng);for(var F=2;F<arguments.length;F++){oh.push(this.Ni(arguments[F]));}
return this.uc("splice",oh);});Uia.zi.sb("push",function(jc){var oh=[];for(var F=0;F<arguments.length;F++){oh.push(this.Ni(arguments[F]));}
return this.uc("push",oh);});Uia.zi.sb("unshift",function(jc){var oh=[];for(var F=0;F<arguments.length;F++){oh.push(this.Ni(arguments[F]));}
return this.uc("unshift",oh);});Uia.Ui=function(Vi,Wi){var iframe=document.createElement("iframe");var Xi="UNIQUE_"+new Date().getTime()+Math.random();document.body.appendChild(iframe);iframe.style.display="none";iframe.contentWindow.name=Xi;var form=document.createElement("form");form.target=Xi;form.action=Vi;form["method"]="POST";for(var F=0;F<Wi.length;F+=2){var input=document.createElement("input");input.type="hidden";input.name=Wi[F];input.value=Wi[F+1];form.appendChild(input);}
document.body.appendChild(form);form.submit();}
Uia.Yi=1;Uia.Zi=2;Uia.pb("aj",function(bj){if(Uia.Bc(this,arguments)){return this;}
this.cj=new Uia.Ze([]);var dj=Uia.H(bj)?Uia.Yi:bj;Uia.mf.call(this);this.ej=new Uia.Rc(dj);this.cj.Tc(this,this.vf);});Uia.aj.ub(Uia.mf);Uia.aj.b("fj",function(){return(this.cj.length()>0);});Uia.aj.b("clear",function(){while(this.cj.length()>0){this.cj.ef(0).clear();}
return this;});Uia.aj.b("gj",function(){for(var F=0;F<this.cj.length();F++){var hj=this.cj.ef(F);if(hj.gj){hj.gj();}}
return this;});Uia.aj.b("ij",function(){return this.cj.length();});Uia.aj.b("jj",function(kj){var lj=new Uia.mj(kj);this.nj(lj);return lj;});Uia.aj.b("oj",function(){var pj=new Uia.qj();this.nj(pj);return pj;});Uia.aj.b("rj",function(){var sj=new Uia.tj();this.nj(sj);return sj;});Uia.aj.b("uj",function(){var vj=new Uia.aj();this.nj(vj);return vj;});Uia.aj.b("wj",function(dj){if(dj!==this.ej.Zc()){this.ej.Xc(dj);if(this.fj()){this.vf();}}
return this;});Uia.aj.b("xj",function(){return this.ej.Zc();});Uia.aj.b("nj",function(yj){var Cc=this;yj.Tc(this,function(){Cc.zj(yj)},true);});Uia.aj.b("zj",function(yj){var ic=this.cj.Jb(yj);if(yj.fj()){if(ic==-1){this.cj.push(yj);}else{this.vf();}}else{if(ic!=-1){this.cj.Yb(yj);}else{}}});Uia.aj.b("filter",function(Aj){var Bj=this.cj.Zc(),F,q=Bj.length,Cj;if(q==0){return true;}
if(Aj===undefined){return false;}
if(this.ej.Zc()==Uia.Yi){Cj=true;for(F=0;Cj&&F<q;F++){Cj=Bj[F].filter(Aj);}
return Cj;}else{Cj=false;for(F=0;!Cj&&F<q;F++){Cj=Bj[F].filter(Aj);}
return Cj;}});Uia.pb("mj",function(kj){if(Uia.Bc(this,arguments)){return this;}
this.ej=new Uia.Rc(Uia.Zi);this.Dj=new Uia.Ze([]);this.Ej=[];Uia.mf.call(this);this.ej.Tc(this,this.vf);this.Dj.Tc(this,this.vf);if(kj){this.Fj=kj;kj.Tc(this,this.Gj);}});Uia.mj.ub(Uia.mf);Uia.mj.b("filter",function(Hj){if(this.Ej.length==0){return true;}
var F,lb,Ij=this.Dj.Zc(),Jj=Ij.length,Kj,Lj=Uia.Ib.cc(this.Ej);for(F=0;Lj.length>0&&F<Jj;F++){Kj=Hj[Ij[F]];if(Kj){for(lb=0;lb<Lj.length;lb++){while(lb<Lj.length&&Kj.toLowerCase().indexOf(Lj[lb].toLowerCase())!==-1){Lj.splice(lb,1);};}}}
return Lj.length===0;});Uia.mj.b("Gj",function(Mj){var Nj=this.Oj(Mj),Pj=this.Ej,Qj=(Nj.length==Pj.length),F;for(F=0;Qj&&F<Nj.length;F++){Qj=(Nj[F]===Pj[F]);}
if(!Qj){this.Ej=Nj;this.vf();}
if(this.Fj){this.Fj.Xc(Mj);}
return this;});Uia.mj.b("Rj",function(){return this.Ej;});Uia.mj.b("Sj",function(){return this.Ej.join(" ");});Uia.mj.b("Tj",function(Uj){this.Dj.Xc(Uj);return this;});Uia.mj.b("Oj",function(Vj){var F,lb,Wj=[],Xj=Vj.split(" "),Mj,Yj,Zj;for(F=0;F<Xj.length;F++){Mj=Xj[F];Yj=false;if(Mj==""){Yj=true;}
for(lb=0;!Yj&&lb<Wj.length;lb++){Zj=Wj[lb];if(Zj.indexOf(Mj)!=-1){Yj=true;}else if(Mj.indexOf(Zj)!=-1){Wj[lb]=Mj;Yj=true;}}
if(!Yj){Wj.push(Mj);}}
return Wj;});Uia.mj.b("fj",function(){return(this.Ej.length!==0&&this.Dj.length()!==0)
});Uia.mj.b("clear",function(){this.Gj("");});Uia.pb("qj",function(){if(Uia.Bc(this,arguments)){return this;}
this.ak=new Uia.ai("");this.xh=new Uia.uh(null,true);Uia.mf.call(this);this.ak.Tc(this,this.vf);this.xh.Tc(this,this.vf);});Uia.qj.ub(Uia.mf);Uia.qj.b("filter",function(Hj){return Hj[this.ak.Zc()]===this.xh.Zc();});Uia.qj.b("Xc",function(jc){this.xh.Xc(jc);return this;});Uia.qj.b("bk",function(pc){this.ak.Xc(pc);return this;});Uia.qj.b("fj",function(){return(this.ak.length()!==0&&!Uia.J(this.xh.Zc()));});Uia.qj.b("clear",function(){this.Xc(null);return this;});Uia.pb("ck",function(){if(Uia.Bc(this,arguments)){return this;}
this.ak=new Uia.ai("");this.dk=new Uia.Rc(0);Uia.mf.call(this);this.ak.Tc(this,this.vf);this.dk.Tc(this,this.vf);});Uia.ck.ub(Uia.mf);Uia.ck.b("filter",function(Hj){var ek=true,fk=this.dk.Zc(),gk=this.ak.Zc().replace("*","");if(fk>0){ek=false;for(var pc in Hj){if(pc.substr(0,gk.length)==gk){fk--;if(fk==0){}}}}
return Hj[this.ak.Zc()]===this.xh.Zc();});Uia.ck.b("hk",function(fk){this.dk.Xc(fk);return this;});Uia.ck.b("bk",function(pc){this.ak.Xc(pc);return this;});Uia.ck.b("fj",function(){return(this.ak.length()!==0&&!Uia.J(this.xh.Zc()));});Uia.ck.b("clear",function(){this.Xc(null);return this;});Uia.pb("tj",function(){if(Uia.Bc(this,arguments)){return this;}
this.ak=new Uia.ai("");this.ik=new Uia.Rd(true);Uia.mf.call(this);this.ak.Tc(this,this.vf);this.ik.Tc(this,this.vf);this.gj();});Uia.tj.ub(Uia.mf);Uia.tj.b("gj",function(){this.jk={};});Uia.tj.sb("vf",function(wh){this.gj();this.tc("vf",wh);});Uia.tj.b("filter",function(Hj){var kk="`"+Hj[this.ak.Zc()];if(!(kk in this.jk)){this.jk[kk]=true;return true;}
return false;});Uia.tj.b("lk",function(mk){this.ik.Xc(mk);return this;});Uia.tj.b("bk",function(pc){this.ak.Xc(pc);return this;});Uia.tj.b("fj",function(){return this.ik.Zc();});Uia.tj.b("nk",function(){return this.ik;});Uia.tj.b("clear",function(){this.lk(false);return this;});Uia.ok=[
new RegExp("\\&","gi"),"&amp;",new RegExp("\\<","gi"),"&lt;",new RegExp("\\>","gi"),"&gt;",new RegExp("\\\"","gi"),"&quot;",new RegExp("\\'","gi"),"&apos;"
];Uia.pk=function(n){var qk=n;for(var F=0;F<Uia.ok.length;F+=2){qk=qk.replace(Uia.ok[F],Uia.ok[F+1]);}
return qk;}
Uia.rk=[
new RegExp("\\&apos;","gi"),"'",new RegExp("\\&quot;","gi"),"\"",new RegExp("\\&gt;","gi"),">",new RegExp("\\&lt;","gi"),"<",new RegExp("\\&amp;","gi"),"&"
];Uia.sk=function(n){var qk=n;if(n)
{for(var F=0;F<Uia.rk.length;F+=2){qk=qk.replace(Uia.rk[F],Uia.rk[F+1]);}}
return qk;}
Uia.tk=new RegExp("(<\\!\\[CDATA\\[|<[^>]+>|[^<]+)","gm");Uia.uk=function(vk,wk){var xk=Uia.H(wk)?new Object():wk;xk.yk=[];Uia.tk.lastIndex=0;var zk=false;for(var Ak=Uia.tk.exec(vk);!Uia.J(Ak)&&!zk;Ak=Uia.tk.exec(vk)){if(Ak[1].charAt(0)==="<"){var Bk=Ak[1];if(Bk=="<![CDATA["){var Ck=new RegExp("(((?!\\]\\])>|[^>])*)\\]\\]>","gm");var Dk=Ck.exec(vk);if(Uia.J(Dk)){throw new Error("Can't find CDATA content:\n"+vk);}
xk.content=Dk[1].substring(9);zk=true;}
else{var Ek=Uia.Fk(Bk,Ek);xk.yk.push(Ek);if(!Uia.z(xk["a"+Ek.tagName])){xk["a"+Ek.tagName]=[];}
xk["a"+Ek.tagName].push(Ek);if(Bk.substring(Bk.length-2)!="/>"){var Gk=new RegExp("(</"+Ek.tagName+"\\s*>)","gm");var Hk=Uia.tk.lastIndex;Gk.lastIndex=Uia.tk.lastIndex;var Ik=Gk.exec(vk);if(Uia.J(Ik)){Uia.c("Can't find end of tag: "+Ek.tagName+", in xml: "+vk);}
else{var Jk=Gk.lastIndex-Ik[1].length;var Kk=vk.substring(Hk,Jk);Ek.content=Kk;Uia.uk(Kk,Ek);Uia.tk.lastIndex=Gk.lastIndex;}}else{Ek.content="";}}}else{if(vk.indexOf("<")==-1){xk.content=Uia.sk(vk);}}}
return xk;}
Uia.Lk=new RegExp("<(\\w+)","gm");Uia.Mk=new RegExp("\\s*(\\w+)\\s*\\=\\s*\\\"([^\\\"]*)\\\"","gm");Uia.Fk=function(Nk){var Ek=new Object();Ek.attributes=new Object();Uia.Lk.lastIndex=0;var Ak=Uia.Lk.exec(Nk);if(Uia.J(Ak)){throw new Error("Error parsing XML tag: "+Nk);}
Ek.tagName=Ak[1];Uia.Mk.lastIndex=Uia.Lk.lastIndex;for(var Ak=Uia.Mk.exec(Nk);!Uia.J(Ak);Ak=Uia.Mk.exec(Nk)){Ek.attributes[Ak[1]]=Ak[2];}
return Ek;}
Uia.Ok=false;Uia.Pk=(document.all)?1:0;Uia.Qk=2;Uia.Rk=(document.all)?4:1;Uia.pb("Sk",function(){if(Uia.Bc(this,arguments)){return this;}});Uia.Sk.b("Tk",function(Uk){this.Vk=false;if(Uk.type.indexOf("touch")!=-1){Uia.Wk=true;}
var Xk={};if(Uk&&Uk.type&&Uk.type.indexOf("touch")!=-1&&Uk.changedTouches){Xk=Uk.changedTouches[0];}
this.Yk=Uk;this.bubbles=Uk.bubbles;this.cancelable=Uk.cancelable;this.type=Uk.type;this.currentTarget=Uk.currentTarget;this.target=Uk.target;this.preventDefault=(Uk.preventDefault)?function(){Uk.preventDefault();Uk.returnValue=false;}:function(){Uk.returnValue=false;}
this.keyCode=(Uk.charCode&&Uk.charCode>0)?Uk.charCode:Uk.keyCode;this.shiftKey=Uk.shiftKey;this.ctrlKey=Uk.ctrlKey;this.clientX=Uk.clientX||Xk.clientX;this.clientY=Uk.clientY||Xk.clientY;this.Zk=Uk.clientX||Xk.clientX;this.al=Uk.clientY||Xk.clientY;this.screenX=Uk.screenX||Xk.screenX;this.screenY=Uk.screenY||Xk.screenY;this.button=Uk.button;this.fromElement=Uk.relatedTarget||Uk.fromElement;this.toElement=Uk.relatedTarget||Uk.toElement;});Uia.Sk.b("stopPropagation",function(){this.Yk.cancelBubble=true;this.Yk.returnValue=false;if(this.Yk.stopPropagation){this.Yk.stopPropagation();this.Yk.preventDefault();}
return false;});Uia.Sk.b("cancelBubble",function(){this.Yk.cancelBubble=true;if(this.Yk.stopPropagation){this.Yk.stopPropagation();}});Uia.Sk.b("bl",function(){this.prototype=null;for(var pc in this){delete this[pc];}});Uia.pb("cl",function(dl,ve,el){if(Uia.Bc(this,arguments)){return this;}
this.fl=dl;this.gl=ve;this.hl=el;Uia.il(dl,"realmouseout",this.Fc("jl"));this.kl=false;});Uia.cl.b("jl",function(ll){if(ll.toElement){if(!Uia.ml(this.fl,ll.toElement)&&ll.toElement!=this.fl){this.gl.call(this.hl,ll);}}else{this.gl.call(this.hl,ll);}});Uia.pb("nl",function(dl,ve,el){if(Uia.Bc(this,arguments)){return this;}
this.fl=dl;this.gl=ve;this.hl=el;Uia.il(dl,"realmouseover",this.Fc("ol"));this.kl=false;});Uia.nl.b("ol",function(ll){if(ll.fromElement){if(!Uia.ml(this.fl,ll.fromElement)&&ll.fromElement!=this.fl){this.gl.call(this.hl,ll);}}else{this.gl.call(this.hl,ll);}});Uia.pl=null;Uia.ql=0;Uia.rl="E_";Uia.sl=function(ll){for(var F=0;F<Uia.tl.length;F++){var ul=Uia.tl[F];var vl=Uia.pl[ul];if(ul=="E_X"){var dl=window;for(var pc in vl){dl["on"+pc]=null;}
var dl=document;for(var pc in vl){dl["on"+pc]=null;}
var dl=document.body;for(var pc in vl){dl["on"+pc]=null;}}else{var dl=Uia.wl[ul];for(var pc in vl){dl["on"+pc]=null;}}}
Uia.pl=null;Uia.ql=0;Uia.wl=null;Uia.tl=null;}
Uia.wl={};Uia.tl=[];Uia.xl=function(dl){var ul=dl.id;if(!ul){if(dl==window||dl==document||dl==document.body||!(dl.tagName)||dl.tagName.toLowerCase()=="body"){ul="E_X";}else{ul=Uia.rl+Uia.ql++;dl.id=ul;Uia.wl[ul]=dl;}
Uia.tl.push(ul);}
return ul;}
Uia.yl=function(ll){var Kg=Uia.zl;for(var F=0;F<Kg.length;F++){var dl=Kg[F].dl,Al=Uia.Bl(dl,"display");if(Al!="none"){if(!Uia.ml(dl,ll.target)&&dl!=ll.target){Kg[F].Cl(ll);}}}}
Uia.Dl=function(ll,El,dl,Cl,Cc){if(Uia.Ib.Jb(El,"insidescrollparent")!=-1){var Fl=Uia.Gl(dl);if(Uia.J(Fl)){return;}
if(!Uia.ml(Fl,ll.target)&&dl!=ll.target){return;}}
if(Uia.Ib.Jb(El,"notonexpanded")!=-1){setTimeout(function(){if(!Uia.Hl()&&!Cc.Il()){Cl.call(Cc,ll);}},250);return;}
Cl.call(Cc,ll);}
Uia.il=function(dl,Jl,Cl,Cc,Kl){if(!Uia.R(Jl)){for(var F=0;F<Jl.Ll.length;F++){Jl.Ll[F]=Jl.Ll[F].toLowerCase();}
var Ml=(function(El,Nl,Ol,Pl){return function(ll){Uia.Dl(ll,El,Nl,Ol,Pl);};}(Jl.Ll,dl,Cl,Cc));Uia.il(dl,Jl.event,Ml,Cc,Kl);return;}
var Ql=Jl.toLowerCase();if(!Uia.I(Cl)){throw new Error("eventHandler not a valid function");}
switch(Ql){case"mousemove":Uia.il(dl,"touchmove",Cl,Cc,Kl);break;case"mousedown":Uia.il(dl,"touchstart",Cl,Cc,Kl);break;case"mousedownnotouch":Ql="mousedown";break;case"mouseup":Uia.il(dl,"touchend",Cl,Cc,Kl);break;case"anyclick":Uia.il(dl,"click",Cl,Cc,Kl);Uia.il(dl,"dblclick",Cl,Cc,Kl);return;case"clickoutside":if(!Uia.zl){Uia.zl=[];Uia.il(document,"mousedown",Uia.yl,Cc,Kl);}
Uia.zl.push({dl:dl,Cl:Cl});return;case"mouseout":new Uia.cl(dl,Cl,Cc);return;case"mouseover":new Uia.nl(dl,Cl,Cc);return;case"realmouseover":Uia.il(dl,"touchstart",Cl,Cc,Kl);Ql="mouseover";break;case"realmouseout":Uia.il(dl,"touchend",Cl,Cc,Kl);Ql="mouseout";break;}
var ul=Uia.xl(dl);if(Uia.J(Uia.pl)){Uia.pl={};if(Uia.Rl){Uia.il(window,"unload",Uia.sl,null);}}
var vl=null;if(Uia.H(Uia.pl[ul])){vl={};Uia.pl[ul]=vl;}else{vl=Uia.pl[ul];}
var Sl;if(Uia.H(vl[Ql])){Sl=[];vl[Ql]=Sl;dl["on"+Ql]=Uia.Tl;}else{Sl=vl[Ql];}
Sl.push(Cl);Sl.push(Cc);Sl.push(Kl);Sl.push(0);}
Uia.Tl=function(ll){if(Uia.Ok)return false;if(Uia.Sk==undefined)return;var ul=this.id;if(!ul){ul="E_X";}
if(!ul||Uia.J(Uia.pl)){Uia.c("can't find ID "+ul);return;}
var vl=Uia.pl[ul];if(!vl){throw new Error("Can't find HtmlNode");}
var Ul=false;if(!ll){if(window.event){ll=window.event;if(!ll.target){ll.target=window.event.srcElement;}
Ul=true;}else{throw new Error("Event not set in eventhandler and window.event does not exist");}}
var Vl=new Uia.Sk();Vl.Tk(ll);if(!vl[Vl.type]){throw new Error("Can't find Eventtype: "+Vl.type+", strID: "+ul);return;}
var Sl=vl[Vl.type];for(var F=Sl.length-1;F>=0;F-=4){var Wl=Sl[F];var Kl=Sl[F-1];var Cc=Sl[F-2];var Cl=Sl[F-3];if(Kl){if(new Date().getTime()-Wl>Kl){Sl[F]=new Date().getTime();Cl.call(Cc,Vl);}}else{Cl.call(Cc,Vl);}}
Vl.bl();if(Ul){ll.currentTarget=null;ll.target=null;}}
Uia.Xl=navigator.userAgent.toLowerCase();Uia.Rl=((Uia.Xl.indexOf("msie")!=-1)&&(Uia.Xl.indexOf("opera")==-1));Uia.Yl=Uia.Xl.indexOf("firefox")!=-1;Uia.Zl=Uia.Yl?parseFloat(Uia.Xl.substring(Uia.Xl.indexOf('firefox/')+8)):-1;Uia.am=Uia.Xl.indexOf("opera")!=-1;Uia.bm=Uia.Xl.indexOf("webkit")!=-1;Uia.cm=Uia.Xl.indexOf("safari")!=-1;Uia.dm=function()
{var em=-1;if(navigator.appName=='Microsoft Internet Explorer'){var fm=navigator.userAgent;var gm=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");if(gm.exec(fm)!=null)
em=parseFloat(RegExp.$1);}
return em;}
Uia.hm="http://obsurveystatic.appspot.com/static/";Uia.im="http://observey.appspot.com/static/";Uia.jm=new RegExp("(<![^-]*\\-+(?:[^->][^-]*\\-+)*>)","gm");Uia.km=new RegExp("(<![^-]*\\-+(?:[^->][^-]*\\-+)*>)|(<[^>]*>)","gm");Uia.lm=new RegExp("<br[^>]*>","gmi");Uia.mm=new RegExp("\\&nbsp;","gmi");Uia.nm=new RegExp("\\n","gmi");Uia.om=new RegExp("[^\\S\\n]+","gm");Uia.pm=new RegExp("(<![^-]*\\-+(?:[^->][^-]*\\-+)*>)|(<(([^b>][^r>][^>]*)|[^>]|b[^r>][^>]*)>)","gm");Uia.qm=function(rm){return rm.replace(Uia.nm," ").replace(Uia.lm,"\n").replace(Uia.km,"").replace(Uia.mm," ").replace(Uia.om," ");}
Uia.sm=function(rm){return rm.replace(Uia.jm,"");}
Uia.tm=function(rm){return rm.replace(Uia.pm,"");}
Uia.um=function(rm){if(!Uia.vm){Uia.vm=new Uia.wm();}
Uia.vm.xm("");Uia.vm.ym(rm);return Uia.vm.zm().innerHTML;}
Uia.Am=new RegExp("(\\[|\\\\|\\^|\\$|\\.|\\||\\?|\\*|\\+|\\(|\\))","gmi");Uia.Bm=function(rm){return rm.replace(Uia.Am,function(Cm){return"\\"+Cm});}
Uia.Dm=function(rm,Em){var Fm=rm,Gm,Hm,F,Im=[],Jm=[],Km=[],charCode,Lm,Mm=[],Nm="[|^$.|?*+()\\";;for(var F=0;F<Em.length;F++){Om=Em[F];if(Uia.R(Om)&&Om.length>0){Mm.push(Om);}}
if(Mm.length==0){return Uia.um(rm);}
charCode=32;while(Im.length<Mm.length){Pm=String.fromCharCode(charCode).toLowerCase();Lm=false;for(var F=0;!Lm&&F<Mm.length;F++){Lm=Mm[F].toLowerCase().indexOf(Pm)!=-1;}
if(!Lm){Lm=rm.toLowerCase().indexOf(Pm)!=-1;}
if(!Lm){Lm=Nm.indexOf(Pm)!=-1;}
if(!Lm){Im.push(Pm);}
charCode++;}
var Qm=[];for(var F=0;F<Mm.length;F++){Om=Mm[F];Rm=new RegExp(Uia.Bm(Om),"gmi");Fm=Fm.replace(Rm,function(Sm){if(!Qm[F]){Qm[F]=[];}
Qm[F].push(Sm);return Im[F];});}
Fm=Uia.um(Fm);for(var F=0;F<Im.length;F++){Km[F]=Uia.um(Im[F]);Jm[F]=Uia.Bm(Km[F]);}
Tm=new RegExp("("+Jm.join(")|(")+")","gm");Fm=Fm.replace(Tm,function(Um){F=Uia.Ib.Jb(Km,Um);if(F!=-1){var Vm=Qm[F].shift();return"<span class=\"searched"+F%5+"\">"+Uia.um(Vm)+"</span>"
}else{Uia.c("WARNING:Uia.markTextsAndHtmlEncode: can't find : "+Um+" in aHtmlMarkChars");}});return Fm;}
Uia.Wm=function(src){var Xm=document.getElementsByTagName('head')[0];var Ym=document.createElement('script');Ym.src=src;Xm.appendChild(Ym);};Uia.Zm=0;Uia.an=1;Uia.bn=function(cn,dn){try{cn.focus();if(document.body.createTextRange)
{var kg=document.body.createTextRange();kg.moveToElementText(cn);if(dn==Uia.Zm){kg.collapse(true);}
else{kg.collapse(false);}
kg.select();}
else{var en=window.getSelection();var kg=en.getRangeAt(0);kg.selectNodeContents(cn);en.addRange(kg);if(dn==Uia.Zm){en.collapseToStart();}
else{en.collapseToEnd();}}}catch(fn){Uia.c("WARNING error in Uia.focusOnContentEditabel");}}
Uia.Bl=function(gn,hn){var jn=null;if(typeof gn.currentStyle!='undefined'){jn=gn.currentStyle;}else if(document.defaultView){jn=document.defaultView.getComputedStyle(gn,null);}
if(Uia.J(jn)){Uia.c("WARNING: computedStyle = null");return"";}
return jn[hn];}
Uia.kn=1;Uia.ln=1;Uia.mn=function(ve,nn){if(document.selection){var kg=document.selection.createRange();var on=kg.boundingLeft;var pn=kg.boundingTop;var qn=kg.offsetLeft;var rn=kg.offsetTop;setTimeout(function(){var kg=document.selection.createRange();if(on==kg.boundingLeft&&
pn==kg.boundingTop&&
qn==kg.offsetLeft&&
rn==kg.offsetTop){ve();}else{}},1);}else if(window.getSelection&&window.getSelection().rangeCount>0){var kg=window.getSelection().getRangeAt(0).cloneRange(),sn=-2,tn=-1;setTimeout(function(){var un=window.getSelection().getRangeAt(0)
if(kg.startContainer==un.startContainer&&
kg.endContainer==un.endContainer&&
kg.endOffset==un.endOffset&&
kg.startOffset==un.startOffset){ve();}else if(nn==Uia.kn){}},1);}else{}}
Uia.vn=function(){if(!window.getSelection){return Uia.wn!==null;}else{return(window.getSelection().rangeCount>0)
}}
Uia.xn=function(yn){if(Uia.J(yn))return yn;if(Uia.R(yn))return document.createTextNode(yn);if(yn.Ac&&yn.Ac(Uia.wm))return yn.zm();return yn;}
Uia.zn=function(An,Nl){var Bn=An.nextSibling;var Cn=Nl.nextSibling;var Dn=An.parentNode;var En=Nl.parentNode;if(Dn==null){if(En==null){}else{En.replaceChild(An,Nl);}}else{if(En==null){Dn.replaceChild(Nl,An);}else{if(Bn==Nl){Dn.insertBefore(An,Cn);}else{En.replaceChild(An,Nl);Dn.insertBefore(Nl,Bn);}}}}
Uia.Fn=function(){if(window.scrollX&&window.innerWidth){return(window.scrollX+window.innerWidth);}
if(document.body&&document.documentElement){return(document.documentElement.scrollLeft!=0?document.documentElement.scrollLeft:document.body.scrollLeft)
+(document.documentElement.clientWidth!=0?document.documentElement.clientWidth:document.body.clientWidth);}}
Uia.Gn=function(){return Uia.Hn();}
Uia.In=function(){return Uia.Hn()+Uia.Jn();}
Uia.Jn=function(){if(window.innerHeight){return window.innerHeight;}
var Kn=0;if(document.documentElement&&document.documentElement.clientHeight){Kn=document.documentElement.clientHeight;}else if(document.body&&document.body.clientHeight){Kn=document.body.clientHeight;}
return Kn;}
Uia.Ln=function(){if(window.innerWidth){return window.innerWidth;}
var Mn=0;if(document.documentElement&&document.documentElement.clientWidth){Mn=document.documentElement.clientWidth;}else if(document.body&&document.body.clientWidth){Mn=document.body.clientWidth;}
return Mn;}
Uia.Hn=function(){if(window.scrollY){return window.scrollY;}
var Nn=0;if(document.documentElement&&document.documentElement.scrollTop){Nn=document.documentElement.scrollTop;}else if(document.body&&document.body.scrollTop){Nn=document.body.scrollTop;}
return Nn;}
Uia.On=function(){if(window.scrollX){return window.scrollX;}
var Pn=0;if(document.documentElement&&document.documentElement.scrollLeft){Pn=document.documentElement.scrollLeft;}else if(document.body&&document.body.scrollLeft){Pn=document.body.scrollLeft;}
return Pn;}
Uia.Qn=function(dl){var x=Uia.Rn(dl);return x;}
Uia.Rn=function(dl){var x=dl.offsetLeft;try{var x=dl.offsetLeft,offsetParent=dl.offsetParent;for(var ob=dl.parentNode;ob!=offsetParent;ob=ob.parentNode){x-=(ob.scrollLeft||0);}
if(offsetParent!=null){x+=Uia.Rn(offsetParent)-(offsetParent.scrollLeft||0);}
return x;}catch(fn){Uia.c("WARNING error in Uia._getPageOffsetLeft");return 0;}}
Uia.Sn=function(dl){var y=Uia.Tn(dl);return y;}
Uia.Tn=function(dl){try{var y=dl.offsetTop,offsetParent=dl.offsetParent;for(var ob=dl.parentNode;ob!=offsetParent;ob=ob.parentNode){y-=(ob.scrollTop||0);}
if(offsetParent!=null){y+=Uia.Tn(offsetParent)-(offsetParent.scrollTop||0);}
return y;}catch(fn){Uia.c("WARNING error in Uia._getPageOffsetTop");return 0;}}
Uia.Un=function(){var Vn;try{Vn=new ActiveXObject("Msxml2.XMLHTTP");}catch(ll){try{Vn=new ActiveXObject("Microsoft.XMLHTTP");}catch(E){Vn=false;}}
if(!Vn){try{Vn=new XMLHttpRequest();}catch(ll){Vn=false;}}
if(!Vn)throw new Error("Can't create XMLHttpRequest");return Vn;}
Uia.Wn=function(Xn){try{var Yn=Uia.Un();Yn.open("GET",Xn,false);Yn.send("");return Yn.Zn;}catch(fn){Uia.c("Error getting: "+Xn);return"";}}
Uia.ao=function(rm,Xn){var Yn=Uia.Un();Yn.open("POST",Xn,false);Yn.setRequestHeader("Content-Type","application/x-www-form-urlencoded");Yn.send("data="&rm);return Yn.Zn;}
Uia.ml=function(bo,co){if(co.parentNode&&(bo===co.parentNode))return true;if(co.parentNode){return Uia.ml(bo,co.parentNode);}else{return false;}}
Uia.eo=function(dl){var fo;while(dl.parentNode){if(fo){if(dl.parentNode.offsetWidth&&
dl.parentNode.offsetWidth<fo){fo=dl.parentNode.offsetWidth;fo=dl.parentNode.offsetWidth;}}else{fo=dl.parentNode.offsetWidth;}
dl=dl.parentNode;}
return fo;}
Uia.go=function(co,ho){if(co.className&&co.className.indexOf(ho)!=-1){return true;}
if(co.parentNode){return Uia.go(co.parentNode,ho);}else{return false;}}
Uia.io=function(ll){if(ll.keyCode==13){ll.preventDefault();}}
Uia.jo=function(ll){if(ll.keyCode<48||ll.keyCode>57){ll.preventDefault();}}
Uia.ko=function(ll){var F=0;if((ll.keyCode<48||ll.keyCode>57)&&ll.keyCode!=45&&ll.keyCode!=46){ll.preventDefault();}}
Uia.lo=function(ll){if((ll.keyCode<48||ll.keyCode>57)&&ll.keyCode!=45){ll.preventDefault();}}
Uia.preventDefault=function(ll){ll.preventDefault();}
Uia.mo=function(name,value,no){var oo;if(no){var po=new Date();po.setTime(po.getTime()+(no*24*60*60*1000));oo="; expires="+po.toGMTString();}
else oo="";document.cookie=name+"="+value+oo+"; path=/";}
Uia.qo=function(name){var ro=name+"=";var so=document.cookie.split(';');for(var F=0;F<so.length;F++){var g=so[F];while(g.charAt(0)==' ')g=g.substring(1,g.length);if(g.indexOf(ro)==0)return g.substring(ro.length,g.length);}
return null;}
Uia.to=function(name){Uia.mo(name,"",-1);}
Uia.scrollIntoView=function(dl){var uo=Uia.Gl(dl);if(Uia.J(uo)){uo=document.body;}
if(uo!=document.body){var vo=Uia.Sn(uo),wo=uo.offsetHeight,xo=vo+wo,yo=Uia.Sn(dl),zo=dl.offsetHeight,Ao=yo+zo,Bo=20;if(yo>(xo-Bo)||Ao<(vo+Bo)){var Nn;if(wo<=zo){Nn=uo.scrollTop+yo-vo;}else{Nn=uo.scrollTop+(yo-vo)-Math.round((wo-zo)/2);}
uo.scrollTop=Nn;}else{}}else{}}
Uia.Gl=function(dl){for(var Co=dl.parentNode;!(Uia.J(Co)||Uia.J(Co.style)||Uia.H(Co.style));Co=Co.parentNode){var Do=Uia.Bl(Co,"overflow");if(Do.toLowerCase()=="auto"||
Do.toLowerCase()=="scroll"){return Co;}}
return null;}
Uia.Eo=[];Uia.Fo=function(){Uia.Eo=[];Uia.Go=true;}
Uia.Ho=function(){Uia.Go=false;}
Uia.pb("Io",function(){if(Uia.Bc(this,arguments)){return this;}
this.Jo=0;});Uia.Io.b("fg",function(Ko,Lo){if(this.Jo==0){if(Uia.Mo&&Uia.Mo.No){Uia.Mo.No();}
if(this.Oo==null){this.Oo=new Uia.wm().vb(Uia.Po).vb(Uia.Qo);this.Oo.Ro(0);this.Oo.So(0);this.Oo.To(9998);this.Oo.Uo("LockMessage");this.Vo=new Uia.wm().vb(Uia.Po).vb(Uia.Qo);this.Vo.Ro(0);this.Vo.So(0);this.Vo.To(9999);this.Vo.Uo("LockText");this.Wo().appendChild(this.Oo.zm());this.Wo().appendChild(this.Vo.zm());Uia.il(window,"resize",this.Xo,this);}else{this.Wo().appendChild(this.Oo.zm());this.Wo().appendChild(this.Vo.zm());}
this.Oo.Uc(this.Yo());this.Oo.fd(this.Zo());this.Oo.expand();if(Uia.H(Ko)||Uia.R(Ko)){var ap=Ko||"Loading...";this.Vo.Uc(this.Yo());this.Vo.fd(this.Zo());this.Vo.xm("<table width='100%' height='100%'><tbody><tr><td valign='middle' align='center'><h1 class='LockText'>"+ap+"</h1><br><img src=\""+Uia.hm+"loadingbar.gif\"></td></tr></tbody></table>");this.Vo.expand();}else{this.Vo.collapse();if(!this.bp){this.bp=new Uia.cp().vb(Uia.Po).vb(Uia.Qo);this.bp.Ro(0);this.bp.So(0);this.bp.To(9999);this.bp.Uc(this.Yo());this.bp.fd(this.Zo());this.dp=new Uia.ep().fp("middle").gp("center");this.bp.hp([this.dp]);this.Wo().appendChild(this.bp.zm());}
if(this.ip&&Ko!==this.ip){this.ip.collapse();}
this.ip=Ko;this.dp.jp(Ko);this.ip.expand();this.bp.expand();}
if(!Lo){Uia.Ok=true;this.Wo().style.cursor="wait";}
this.Jo=1;}
else{if(!Lo){Uia.Ok=true;this.Wo().style.cursor="wait";}
this.Jo++;}
Uia.kp.push(Uia.T(Lo));});Uia.kp=[];Uia.Io.b("lp",function(){return this.Jo>0;});Uia.Io.b("hg",function(){if(this.Jo==0){return;}
Uia.kp.pop();if(this.Jo==1){this.Jo=0;Uia.Ok=false;this.Wo().style.cursor="default";this.Oo.collapse();this.Vo.collapse();if(this.bp){this.bp.collapse();}
if(Uia.Mo&&Uia.Mo.mp){Uia.Mo.mp();}}
else if(this.Jo>0){var np=!Uia.T(Uia.kp[Uia.kp.length-1]);Uia.c("Noevents: "+np);Uia.Ok=np;if(np){this.Wo().style.cursor="wait";}else{this.Wo().style.cursor="default";}
this.Jo--;}});Uia.Io.b("Xo",function(ll){this.Oo.Uc(this.Yo());this.Oo.fd(this.Zo());if(this.Vo){this.Vo.Uc(this.Yo());this.Vo.fd(this.Zo());}
if(this.bp){this.bp.Uc(this.Yo());this.bp.fd(this.Zo());}});Uia.Io.b("Wo",function(){return document.getElementsByTagName("BODY").item(0);});Uia.Io.b("Yo",function(){return Uia.Fn();});Uia.Io.b("Zo",function(){return Uia.In();});Uia.op=new Uia.Io();Uia.fg=Uia.op.Fc("fg");Uia.hg=Uia.op.Fc("hg");Uia.lp=Uia.op.Fc("lp");Uia.pp=true;Uia.pb("wm",function(){if(Uia.Bc(this,arguments)){return this;}});Uia.qp=function(){for(var F=0;F<Uia.rp.length;F++){Uia.rp[F].sp=null;}}
Uia.wm.b("zm",function(tp){if(!(this.sp)){var up=this.vp().toLowerCase();switch(up){case"div":case"textarea":case"tbody":case"thead":case"tfoot":case"tr":case"td":case"th":case"img":case"select":case"button":case"option":case"iframe":case"label":case"ul":case"li":case"a":case"fieldset":case"legend":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":this.sp=document.createElement(up);break;case"table":this.sp=document.createElement(up);this.sp.wp=0;this.sp.xp=0;break;case"input type=checkbox":this.sp=document.createElement("INPUT");this.sp.type="checkbox";break;case"input type=file":this.sp=document.createElement("INPUT");this.sp.type="file";break;case"input type=password":this.sp=document.createElement("INPUT");this.sp.type="password";break;case"input type=radio":this.sp=document.createElement("INPUT");this.sp.type="radio";break;case"input type=text":this.sp=document.createElement("INPUT");this.sp.type="text";break;default:throw new Error("Html Tag not supported: "+up+" (use DIV?)");}
if(Uia.Rl){if(!Uia.rp){Uia.rp=[];Uia.il(window,"unload",Uia.qp,null);}
Uia.rp.push(this);}
if(this.yp){this.yp.call(this,tp);}
if(this.zp){this.Uo(this.zp);}
if(this.Ap){this.Bp(this.Ap);}
if(this.Cp)this.Dp(this.Cp);if(this.Ep){this.collapse();}else{this.expand();}
if(Uia.H(this.Fp)||Uia.T(this.Fp)){this.Gp();}else{this.Hp();}
this.Ip(Uia.T(this.Jp));}
return this.sp;});Uia.wm.b("Kp",function(){if(!this.Lp){this.Lp=true;this.Mp=new Uia.wm();this.Np(this.Mp);var Cc=this;setTimeout(function(){Cc.Np(Cc.Mp);Cc.Lp=false;},1);}});Uia.wm.b("Bl",function(Op){return Uia.Bl(this.zm(),Op);});Uia.wm.b("xm",function(Pp){var Bf=Uia.J(Pp)?"null":Pp;switch(this.vp().toLowerCase()){case"div":case"td":case"th":case"option":case"label":case"a":case"ul":case"li":case"fieldset":case"legend":this.zm().innerHTML=Bf;break;default:this.zm().value=Bf;}
return this;});Uia.wm.b("Qp",function(){switch(this.vp().toLowerCase()){case"div":case"td":case"th":case"option":case"label":case"a":case"ul":case"li":case"fieldset":case"legend":return this.zm().innerHTML;break;default:return this.zm().value;}});Uia.wm.b("Rp",function(Me,Bf){this.zm().style[Me]=Bf;return this;});Uia.wm.b("Sp",function(){for(var F=0;F<arguments.length;F+=2){this.zm().style[arguments[F]]=arguments[F+1];}
return this;});Uia.wm.b("Tp",function(Me,Bf){this.zm()[Me]=Bf;return this;});Uia.wm.b("Up",function(Vp){if(!this.Wp){if(this.Xp){this.zm().insertBefore(Vp,this.Xp.zm().nextSibling);}else{this.zm().insertBefore(Vp,this.zm().firstChild);}}});Uia.wm.b("Yp",function(Vp){if(!this.Wp){if(this.Zp){this.zm().insertBefore(Vp,this.Zp.zm());}else{this.zm().appendChild(Vp);}}});Uia.wm.b("aq",function(gn){if(!this.Wp){if(this.Xp){throw new Error("can't insert header twice");}
this.bq(gn);this.Xp=gn;}
return this;});Uia.wm.b("cq",function(){return this.Xp;});Uia.wm.b("dq",function(gn){if(!this.Wp){if(this.Zp){throw new Error("can't insert footer twice");}
this.jp(gn);this.Zp=gn;}
return this;});Uia.wm.b("eq",function(){return this.Zp;});Uia.wm.b("ym",function(fq){if(!this.Wp){this.Yp(document.createTextNode(fq));}else{Uia.c("WARNING: appendString to removed");}
return this;});Uia.wm.b("gq",function(fq){if(!this.Wp){this.Up(document.createTextNode(fq))
}else{Uia.c("WARNING: insertString to removed");}
return this;});Uia.wm.b("bq",function(gn){if(!this.Wp){this.Up(gn.zm(this));}else{Uia.c("WARNING: insertHtmlChild to removed");}});Uia.wm.b("Gl",function(){return Uia.Gl(this.zm());});Uia.wm.b("hq",function(gn){var iq;if(Uia.am){iq=document.body;}else{iq=Uia.Gl(this.zm())
if(Uia.J(iq)){iq=document.body;}}
iq.insertBefore(gn.zm(this),iq.firstChild);});Uia.wm.b("jq",function(ll){return ll.al<(Uia.Sn(this.zm())+(this.kq()/2));});Uia.wm.b("lq",function(ll){return ll.Zk<(Uia.Qn(this.zm())+(this.mq()/2));});Uia.wm.b("jp",function(gn){if(!this.Wp){this.Yp(gn.zm(this));}else{Uia.c("WARNING: appendHtmlChild to removed");}
return this;});Uia.wm.b("nq",function(oq,pq){if(!this.Wp){if(Uia.J(pq)){this.Yp(oq.zm(this));}else{this.zm().insertBefore(oq.zm(this),pq.zm());}}else{Uia.c("WARNING: insertHtmlChildBefore to removed");}});Uia.wm.b("qq",function(oq,rq){if(!this.Wp){this.zm().insertBefore(oq.zm(this),rq.zm().nextSibling);}else{Uia.c("WARNING: insertHtmlChildAfter to removed");}});Uia.wm.b("Np",function(gn){if(!this.Wp){Uia.zn(this.zm(),gn.zm());if(this.sq)this.sq();if(gn.sq)gn.sq();}});Uia.wm.b("tq",function(uq,Jl,Cl,Kl){if(!this.Wp){Uia.il(uq.zm(),Jl,Cl,this,Kl);}});Uia.wm.b("vq",function(){return Uia.T(this.Jp);});Uia.wm.b("focus",function(){if(!this.Wp&&this.wq()){var Cc=this;setTimeout(function(){try{Cc.zm().focus();}catch(fn){Uia.c("WARNING, HtmlComponent.focus error");}},1);}});Uia.wm.b("blur",function(){if(!this.Wp){this.zm().blur();}});Uia.wm.b("Ip",function(xq){if(!this.Wp){this.Jp=xq||(this.sp&&this.sp.contentEditable===true);if(this.sp){this.sp.unselectable=(!xq)?"on":"off";if(Uia.Rl){if(!xq){this.sp["onselectstart"]=function(ll){if(ll&&ll.target.unselectable=="on"&&ll.target.contentEditable!=true){return(false);}};}else{this.sp["onselectstart"]=function(){};}}else if(Uia.Yl){if(!xq){this.sp.addEventListener('selectstart',function(ll){if(ll.target.unselectable=="on"&&ll.target.contentEditable!=true){ll.preventDefault();return false;}},false);this.sp.addEventListener('select',function(ll){if(ll.target.unselectable=="on"&&ll.target.contentEditable!=true){ll.preventDefault();return false;}},false);this.sp.addEventListener('dblclick',function(ll){if(ll.target.unselectable=="on"&&ll.target.contentEditable!=true){ll.preventDefault();return false;}},false);this.sp.addEventListener('mousedown',function(ll){if(ll.target.unselectable=="on"&&ll.target.contentEditable!=true){ll.preventDefault();return false;}},false);}}else if(!Uia.am){if(!xq){this.zm().style.KHtmlUserSelect="none";this.zm().style.KHtmlUserDrag="none";this.sp.addEventListener('selectstart',this.Fc("yq"),false);this.sp.addEventListener('select',this.Fc("yq"),false);this.sp.addEventListener('dblclick',this.Fc("yq"),false);this.sp.addEventListener('mousedown',this.Fc("yq"),false);}else{var zq=Uia.xl(this.sp);Uia.Aq[zq]=true;this.zm().style.KHtmlUserSelect="auto";}}}}
return this;});Uia.Aq=new Object();Uia.wm.b("yq",function(Bq){for(var Vp=Bq.target;((!Vp.id||!Uia.Aq[Vp.id])&&!Uia.J(Vp.parentNode));Vp=Vp.parentNode);if((!Vp.id||!Uia.Aq[Vp.id])){Bq.preventDefault();return false;}});Uia.wm.b("Cq",function(){return(this.zp)?this.zp:"";});Uia.wm.b("Uo",function(Dq){if(!this.Wp){this.zp=Dq;if(this.sp){this.sp.className=Dq;}}
return this;});Uia.wm.b("Eq",function(ll){if(Uia.pp){if(!this.Fq){this.Gq=this.Cq();this.Uo(this.Ap);}else{this.Hq(this.Ap);this.Iq(this.Fq);}}});Uia.wm.b("Jq",function(ll){if(Uia.pp){this.Hq(this.Ap);}});Uia.wm.b("Kq",function(ll){if(!this.Fq){this.Iq(this.Ap);if(this.Gq){this.Uo(this.Gq);}}else{this.Iq(this.Ap);this.Hq(this.Fq);}});Uia.wm.b("Bp",function(Dq,Lq,Mq){if(!this.Wp){this.Ap=Dq;this.Fq=Mq;var Nq=Uia.H(Lq)?false:Lq;if(this.sp){if(Nq===true){this.tq(this,"mouseover",this.Eq);}else{this.tq(this,"mouseover",this.Jq);}
this.tq(this,"mouseout",this.Kq);this.tq(this,"click",this.Kq);}}
return this;});Uia.wm.b("Hq",function(Dq){if(!this.Wp){if(this.Oq(Dq)){return this;}
return this.Uo(this.Cq()+" "+Dq);}});Uia.wm.b("Oq",function(Dq){return(this.Cq().search(new RegExp("\\b"+Dq+"\\b"))!=-1);});Uia.wm.b("Iq",function(Dq){var Pq,Qq;Qq=[];Pq=this.Cq().split(" ");for(var F=0;F<Pq.length;F++){if(Pq[F]!=Dq){Qq.push(Pq[F]);}}
return this.Uo(Qq.join(" ").toString());});Uia.wm.b("Rq",function(Sq){if(!this.Wp){this.Tq=Sq;if(this.sp&&!this.Ep){this.sp.style.display=Uia.T(Sq)?"block":"inline";}}
return this;});Uia.wm.b("Uq",function(Sq){return this.Tq?true:false;});Uia.wm.b("collapse",function(){this.Ep=true;if(this.sp){this.sp.style.display="none";}
return this;});Uia.wm.b("expand",function(){this.Ep=false;if(this.sp){if(this.vp().toLowerCase()=="div"){this.sp.style.display=Uia.T(this.Tq)?"block":"inline";}else{this.sp.style.display="";}}
return this;});Uia.wm.b("wq",function(){if(this.sp){if(this.sp.style.display=="none"){return false;}
var zq=Uia.xl(this.zm());if(Uia.J(document.getElementById(zq))){return false;}
return(this.Bl("display")!="none");}else{return false;}});Uia.wm.b("Gp",function(){this.Fp=true;if(this.sp){this.sp.style.visibility="";}
return this;});Uia.wm.b("Hp",function(){this.Fp=false;if(this.sp){this.sp.style.visibility="hidden";}
return this;});Uia.wm.b("Vq",function(){return Uia.H(this.Fp)||Uia.T(this.Fp);});Uia.wm.b("Wq",function(){if(!this.sp||this.Wp){return 0;}
var Xq=Uia.Qn(this.sp);if(!Uia.Rl&&this.Yq()){Xq+=Math.round(this.kq()/2.0);Xq-=Math.round(this.mq()/2.0);}
return Xq;});Uia.wm.b("Zq",function(){if(!this.sp||this.Wp){return 0;}
var ar=Uia.Sn(this.sp);if(!Uia.Rl&&this.Yq()){ar+=Math.round(this.mq()/2.0);ar-=Math.round(this.kq()/2.0);}
return ar;});Uia.wm.b("kq",function(){if(!this.Wp){if(!Uia.Rl){if(this.Yq()){return this.br();}}
return this.cr();}});Uia.wm.b("Yq",function(){var Ym=this.zm().style;dr=Ym["webkitTransform"]||Ym["MozTransform"]||Ym["OTransform"]||Ym["transform"];var er=new RegExp("rotate\\((90|\\-90|270|\\-270)deg\\)","gi");return er.test(dr);});Uia.wm.b("cr",function(){if(!this.Wp){return this.zm().offsetHeight;}});Uia.wm.b("mq",function(){if(!this.Wp){if(!Uia.Rl){if(this.Yq()){return this.cr();}}
return this.br();}});Uia.wm.b("br",function(){if(!this.Wp){return this.zm().offsetWidth;}});Uia.wm.b("eo",function(){if(!this.Wp){return Uia.eo(this.zm());}});Uia.wm.b("fr",function(up){if(this.sp){throw new Error("Can't set Html tag after HtmlNode has been created");}
this.gr=up;return this;});Uia.wm.b("vp",function(){return(this.gr)?this.gr:"DIV";});Uia.wm.b("Dp",function(rm){this.Cp=rm;if(this.sp){this.sp.title=this.Cp;}
return this;});Uia.wm.b("ir",function(){if(this.sp){if(!Uia.J(this.sp.parentNode)){this.sp.parentNode.removeChild(this.sp);if(!this.Ri){Uia.c("HtmlComponent.removeHtmlNode: No reuse, CSS:"+this.Cq());this.collapse();this.sp=undefined;this.Wp=true;}}}});Uia.wm.b("jr",function(){return this.Wp;});Uia.wm.b("scrollIntoView",function(kr,lr){if((!Uia.Go||lr)&&!Uia.mr){if(!this.Wp&&this.wq()){if(Uia.I(kr)){var Cc=this;setTimeout(function(){if(Cc.zm().scrollIntoView){Uia.scrollIntoView(Cc.zm());setTimeout(kr,1);}},1);}else if(!Uia.H(kr)){var Cc=this;setTimeout(function(){if(Cc.zm().scrollIntoView){Uia.scrollIntoView(Cc.zm());}},1);}else{setTimeout(this.Fc("nr"),1);}}else if(Uia.I(kr)){kr();}}});Uia.wm.b("nr",function(){if(!this.Wp&&this.wq()){if(this.zm().scrollIntoView){Uia.scrollIntoView(this.zm());}}});Uia.wm.b("or",function(pr){if(pr<0)pr=0;if(pr>100)pr=100;if(this.zm().style.filter!=null){var qr=new RegExp("alpha\\(opacity\\=[0-9]*\\)\\;","gi");var rr=this.zm().style.filter;rr=rr.replace(qr,"");rr+="alpha(opacity="+pr+");";this.zm().style.filter=rr;}
if(this.zm().style.opacity!=null){this.zm().style.opacity=pr/100;}
return this;});Uia.wm.b("sr",function(){if(!this.zm()
||!this.zm().style
||(!this.zm().style.filter
&&!this.zm().style.opacity))return 100;if(this.zm().style.filter){return parseInt(this.zm().style.filter.substring(this.zm().style.filter.indexOf("=")+1),10);}
if(this.zm().style.opacity){return parseFloat(this.zm().style.opacity)*100;}});Uia.wm.b("tr",function(){return(Uia.Fn()-this.Wq()-this.mq());});Uia.wm.b("ur",function(){return Uia.In()-this.Zq()-this.kq();});Uia.pb("vr",function(uq){if(Uia.Bc(this,arguments,false)){return this;}
if(this.yp){if(!Uia.I(uq.yp)){uq.yp=this.yp;}else{uq.yp=Uia.hb(uq.yp,this.yp);}
if(uq.sp){this.yp.call(uq);}}});Uia.pb("Po",function(uq){if(Uia.Bc(this,arguments,false)){return this;}
Uia.vr.call(this,uq);Uia.Hc.call(this,uq);uq.Tq=true;});Uia.Po.ub(Uia.vr);Uia.Po.b("yp",function(){if(!Uia.H(this.Qc)){this.Sc(this.Qc.Zc());}
if(!Uia.H(this.dd)){this.ed(this.dd.Zc());}});Uia.Po.b("Sc",function(wr){if(this.sp&&!isNaN(wr)){this.sp.style.width=wr+"px";}});Uia.Po.b("ed",function(xr){if(this.sp&&!isNaN(xr)){this.sp.style.height=xr+"px";}});Uia.Po.vb(Uia.Hc);Uia.yr=true;Uia.pb("zr",function(uq,Ar,Br){if(Uia.Bc(this,arguments,false)){return this;}
Uia.vr.call(this,uq);uq.Cr=null;uq.Dr=false;uq.Er=Uia.H(Br)?null:Br;uq.Fr=Uia.H(Ar)?null:Ar;});Uia.zr.ub(Uia.vr);Uia.zr.b("yp",function(){this.Gr();});Uia.zr.b("Gi",function(Hr){var uf=Uia.H(Hr)?null:Hr;if(uf===this.Cr)return;if(!Uia.J(this.Cr)){this.Ir(this.Cr);this.Dr=false;}
this.Cr=uf;this.Gr(uf);});Uia.zr.b("Ir",function(Jr){Jr.xf(this);});Uia.zr.b("Kr",function(Jr){if(!Uia.J(this.Er)&&this.Lr){this.Cr.Tc(this,this.Lr,this.Er,true);}else if(this.Lr){this.Cr.Tc(this,this.Lr,true);}});Uia.zr.b("Gr",function(){if(!Uia.J(this.Cr)&&this.sp&&!this.Dr){this.Dr=true;this.Kr(this.Cr);}else if(Uia.J(this.Cr)&&this.Lr){this.Lr(null);}});Uia.zr.b("Mr",function(){return this.Cr;});Uia.pb("Nr",function(uq,Ar,Br){if(Uia.Bc(this,arguments,false)){return this;}
Uia.zr.call(this,uq,Ar,Br);if(uq.Or){uq.Or=function(cb){return function(){if(!Uia.J(this.Mr())){cb.apply(this,Uia.t(arguments));}};}(uq.Or);}});Uia.Nr.ub(Uia.zr);Uia.pb("Pr",function(uq){if(Uia.Bc(this,arguments,false)){return this;}
Uia.vr.call(this,uq);});Uia.Pr.ub(Uia.vr);Uia.Pr.b("Qr",function(){this.zm().style.cssText="";this.Rr=false;});Uia.Pr.b("Sr",function(){if(this.Rr){return;}
this.Rr=true;this.Tr=this.Ur;this.Vr=this.Wr;this.Xr=this.Yr;this.Zr=this.as;this.bs=this.cs;this.ds=this.es;this.fs=(new Date()).getTime();this.gs();});Uia.Pr.b("hs",function(is,js,ks){this.Ur=is;this.Wr=js;this.Yr=ks;});Uia.Pr.b("ls",function(is,js,ks){this.as=is;this.cs=js;this.es=ks;});Uia.Pr.b("ms",function(bd){var ns=bd.toString(16);if(ns.length==1){ns="0"+ns;}
return ns;});Uia.Pr.b("gs",function(){if(!this.Rr){return;}
var os=false;var ps=((new Date()).getTime()-this.fs)/1000;if(ps>1){ps=1;os=true
}
var is=Math.round(((this.Zr-this.Tr)*ps)+this.Tr);var js=Math.round(((this.bs-this.Vr)*ps)+this.Vr);var ks=Math.round(((this.ds-this.Xr)*ps)+this.Xr);var qs="#"+this.ms(is)+this.ms(js)+this.ms(ks);this.zm().style.cssText="background-color: "+qs+" !important; filter: none !important;background: "+qs+" !important;"+"filter: progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr="+qs+",endColorstr="+qs+",GradientType=0) !important;"
"background: -moz-linear-gradient(top, "+qs+" 0%, "+qs+" 100%) !important;"+"background: -webkit-gradient(linear, left top, left bottom, from("+qs+"), to("+qs+")) !important;";if(os){this.fs=(new Date()).getTime();if(this.Tr==this.Ur&&
this.Vr==this.Wr&&
this.Xr==this.Yr){this.Tr=this.as;this.Vr=this.cs;this.Xr=this.es;this.Zr=this.Ur;this.bs=this.Wr;this.ds=this.Yr;}else{this.Tr=this.Ur;this.Vr=this.Wr;this.Xr=this.Yr;this.Zr=this.as;this.bs=this.cs;this.ds=this.es;}}
setTimeout(this.Fc("gs"),10);});Uia.pb("rs",function(uq){if(Uia.Bc(this,arguments,false)){return this;}
Uia.vr.call(this,uq);Uia.Hc.call(this,uq);uq.Tq=true;uq.ss=150.0;});Uia.rs.ub(Uia.Po);Uia.rs.b("ts",function(us){this.vs=true;if(!this.ws()){return;}
this.xs=this.zm().style.overflow;this.Rp("overflow","visible");this.expand();this.ys=new Date().getTime();this.zs=us;this.As=this.kq();this.Rp("overflow","hidden");this.fd(0);setTimeout(this.Fc("Bs"),1);});Uia.rs.b("ws",function(re){return Uia.H(this.Cs)||this.Cs;});Uia.rs.b("Ds",function(ve){if(!this.Es){this.Es=[];}
this.Es.push(ve);});Uia.rs.b("Fs",function(re){this.Cs=re;});Uia.rs.b("Bs",function(){var Gs=new Date().getTime()-this.ys;if(Gs<this.ss){if(Gs>0){var gd=Math.round((Gs/this.ss)*this.As);this.fd(gd);if(this.Es){for(var F=0;F<this.Es.length;F++){this.Es[F]();}}
if(Uia.Hs){Uia.Hs();}}
setTimeout(this.Fc("Bs"),1);}else{this.Rp("overflow",this.xs);this.Rp("height","");if(this.Es){for(var F=0;F<this.Es.length;F++){this.Es[F]();}}
if(this.zs){this.zs();}
if(Uia.Hs){Uia.Hs();}
this.vs=false;}});Uia.rs.b("Is",function(){return this.vs;});Uia.rs.b("Js",function(us){if(!this.ws()){Uia.c("slideExpand disabled");this.collapse();return;}
this.expand();this.Ks=this.kq();this.ys=new Date().getTime();this.xs=this.zm().style.overflow;this.Rp("overflow","hidden");this.Ls=us;setTimeout(this.Fc("Ms"),1);});Uia.rs.b("Ms",function(){var Gs=new Date().getTime()-this.ys;if(Gs<this.ss){if(Gs>0){var gd=Math.round((1.0-(Gs/this.ss))*this.Ks)
this.fd(gd);if(this.Es){for(var F=0;F<this.Es.length;F++){this.Es[F]();}}
if(Uia.Hs){Uia.Hs();}}
setTimeout(this.Fc("Ms"),1);}else{this.Rp("overflow",this.xs);this.collapse();if(this.Es){for(var F=0;F<this.Es.length;F++){this.Es[F]();}}
if(this.Ls){this.Ls();}
if(Uia.Hs){Uia.Hs();}}});Uia.rs.vb(Uia.Hc);Uia.Ns=0;Uia.pb("Os",function(){if(Uia.Bc(this,arguments)){return this;}
this.ei="";this.Ps="";this.Qs="obsurvey_radio_"+Uia.Ns++;this.fr("INPUT type=radio");});Uia.Os.ub(Uia.wm);Uia.Os.b("Rs",function(Ss){this.Ps=Ss;return this;});Uia.Os.b("Xc",function(r){this.ei=r;return this;});Uia.Os.b("Zc",function(){return this.ei;});Uia.Os.b("Ts",function(){return this.Qs;});Uia.Os.b("Us",function(){return this.zm().checked;});Uia.Os.b("Vs",function(Ws){this.zm().checked=Ws;return this;});Uia.Xs=true;Uia.Os.sb("zm",function(){if(!(this.sp)){if(Uia.Xs){try{var Ys="";if(this.zp)Ys+="class='"+this.zp+"' ";Ys+="unselectable=";Ys+=Uia.T(this.Jp)?"'off' ":"'on' ";Ys+="id='"+this.Ts()+"' ";var Zs="<input type='radio' "+Ys+"name='"+this.Ps+"' value='"+this.ei+"'>"
this.sp=document.createElement(Zs);return this.sp;}catch(fn){Uia.Xs=false;}}
this.sp=document.createElement("INPUT");this.sp.type="radio";this.sp.id=this.Ts();this.sp.value=this.ei;this.sp.name=this.Ps;if(this.yp){this.yp.call(this);}
if(this.zp){this.Uo(this.zp);}
if(this.Ap){this.Bp(this.Ap);}
if(this.Cp)this.Dp(this.Cp);if(this.Ep){this.collapse();}else{this.expand();}
if(Uia.H(this.Fp)||Uia.T(this.Fp)){this.Gp();}else{this.Hp();}
this.Ip(Uia.T(this.Jp));}
return this.sp;});Uia.pb("at",function(bt){if(Uia.Bc(this,arguments)){return this;}
this.ct=bt;this.dt=new Uia.Os();});Uia.at.ub(Uia.wm);Uia.at.b("yp",function(){this.jp(this.dt);this.et=new Uia.ft(this.ct);this.ym(" ");this.tq(this.et,"anyclick",this.gt);this.jp(this.et);});Uia.at.b("gt",function(){this.dt.Vs(!this.dt.Us());});Uia.at.b("Rs",function(Ss){this.dt.Rs(Ss);return this;});Uia.at.b("Xc",function(r){this.dt.Xc(r);return this;});Uia.at.b("Zc",function(){this.dt.Zc();});Uia.at.b("Ts",function(){return this.dt.Ts();});Uia.at.b("Us",function(){return this.dt.Us();});Uia.at.b("Vs",function(Ws){this.dt.Vs(Ws);return this;});Uia.ht=0;Uia.pb("it",function(jt){if(Uia.Bc(this,arguments)){return this;}
this.fr("INPUT type=checkbox");this.kt=jt;this.Qs="obsurvey_checkbox_"+Uia.ht++;});Uia.it.ub(Uia.wm);Uia.it.b("yp",function(){this.zm().id=this.Qs;if(this.kt!=null){this.kt.Tc(this,this.Fc("lt"),true);}});Uia.it.b("Ts",function(){return this.Qs;});Uia.it.b("Us",function(){return this.zm().checked;});Uia.it.b("lt",function(Ws){this.zm().checked=Ws;});Uia.it.b("Vs",function(Ws){if(this.kt!=null){this.kt.Xc(Ws);}else{this.zm().checked=Ws;}});Uia.pb("mt",function(nt,ot){if(Uia.Bc(this,arguments)){return this;}
this.fr("INPUT type=text");this.Ip(true);this.pt="";if(!Uia.H(ot))this.Uo(ot);this.qt=false;this.st=null;});Uia.mt.ub(Uia.wm);Uia.mt.b("yp",function(){this.tq(this,"keypress",this.tt);this.tq(this,"activate",this.ut);this.tq(this,"focus",this.ut);this.tq(this,"deactivate",this.vt);this.tq(this,"blur",this.vt);this.tq(this,"keypress",this.wt);this.tq(this,"keypress",this.ut);this.tq(this,"keydown",this.ut);this.xt();this.tt();});Uia.mt.b("xt",function(){this.xm(this.pt);});Uia.mt.b("select",function(){this.zm().select();});Uia.mt.b("ut",function(){Uia.yt=false;});Uia.mt.b("vt",function(){Uia.yt=true;});Uia.mt.b("tt",function(ll){if(Uia.H(this.zt)){var At=Math.min(Math.round(this.Qp().length)+5,50);this.zm().size=At;if(this.Qp().length+5>50){this.Dp(this.Qp());}}else{this.zm().size=this.zt;}});Uia.mt.b("Bt",function(Ct){this.zt=Ct;return this;});Uia.mt.b("clear",function(ll){if(this.Qp()===this.pt){this.xm("");}});Uia.mt.b("Dt",function(n){this.pt=n;});Uia.mt.b("wt",function(ll){if(this.st!=null&&ll.keyCode==13){this.st();ll.stopPropagation();}});Uia.mt.b("Et",function(Ft){this.st=Ft;});Uia.mt.vb(Uia.Nr);Uia.pb("HtmlText",function(Gt,Ht){if(Uia.Bc(this,arguments)){return this;}
this.Gi(Gt);this.It=Uia.H(Ht)?true:Ht;});Uia.HtmlText.ub(Uia.wm);Uia.HtmlText.b("yp",function(){if(this.It)this.ym(" ");});Uia.HtmlText.b("Lr",function(Jt){if(this.It){this.zm().childNodes[0].nodeValue=Jt;}
else{this.xm(Jt);}});Uia.HtmlText.vb(Uia.zr,Uia.ai);Uia.pb("Kt",function(Gt,Ht){if(Uia.Bc(this,arguments)){return this;}
this.fr("label");Uia.HtmlText.call(this,Gt,Ht);});Uia.Kt.ub(Uia.HtmlText);Uia.Kt.b("HtmlFor",function(uq){this.zm().HtmlFor=uq.Ts();return this;});Uia.pb("ft",function(n,Ht){if(Uia.Bc(this,arguments)){return this;}
this.Lt=n;this.It=Uia.H(Ht)?true:Ht;});Uia.ft.ub(Uia.wm);Uia.ft.b("yp",function(){if(this.It){this.ym(this.Lt);}
else{this.xm(this.Lt);}});Uia.ft.b("Zc",function(){return this.Lt;});Uia.pb("Mt",function(Nt,Ot){if(Uia.Bc(this,arguments)){return this;}
this.Gi(Nt);this.fr("TEXTAREA");this.Ip(true);this.Pt=Ot||"Click here to edit";this.Qt=new Uia.Rd(false);});Uia.Mt.ub(Uia.wm);Uia.Mt.b("yp",function(){this.sp.style.textAlign="left";this.sp.style.width="350px";this.sp.style.height="50px";this.sp.wrap="off";this.tq(this,"blur",this.Or);this.tq(this,"keypress",this.Or);this.tq(this,"keyup",this.Or);this.tq(this,"activate",this.ut);this.tq(this,"focus",this.ut);this.tq(this,"deactivate",this.vt);this.tq(this,"blur",this.vt);this.tq(this,"keypress",this.ut);this.tq(this,"keydown",this.ut);});Uia.Mt.b("Rt",function(De){this.St=De;var Tt=Uia.xl(this.zm());var Ut,Vt;Ut=["AeHtml.js"];Vt=["ColorCoding1/CodeMirror-0.9/css/AeHtml.css"];var options={"tabMode":"shift","height":"100%","textWrapping":true,"basefiles":Ut,"stylesheet":Vt,"path":"ColorCoding1/CodeMirror-0.9/js/","autoMatchParens":false,"lineNumbers":false,"initCallback":this.Fc("Wt")
};this.Xt=window["CodeMirror"]["fromTextArea"](Tt,options);return this.Xt;});Uia.Mt.b("Yt",function(){var Vp=this.Xt["wrapping"];Vp.parentNode.removeChild(Vp);this.Xt=undefined;});Uia.Mt.b("Wt",function(Zt){var Cc=this;setTimeout(function(){Cc.au(Zt);},1);});Uia.Mt.b("au",function(Zt){Zt["editor"]["listenKeyDown"](this.Fc("bu"));Zt["editor"]["listenKeyUp"](this.Fc("Or"));if(this.St=="css"){Zt["setParser"]("CSSParser");}
if(!Uia.Rl){setTimeout(function(){Zt["win"].document.body.style.fontSize="12px";Zt["win"].document.body.style.fontFamily="monaco, consolas, monospace";},1);}
this.Xt.cu=true;this.Lr(this.Mr().Zc());});Uia.Mt.b("bu",function(du){var ll=du;if(ll.ctrlKey&&String.fromCharCode(ll.keyCode).toLowerCase()=="z"){if(ll.shiftKey){if(this.Mr().Te().eu()){this.Mr().Te().fu();}}else if(this.Mr().Te().gu()){Uia.hu("Press Ctrl+Y to redo");this.Mr().Te().iu();}
ll["stop"]();}else if(ll.ctrlKey&&String.fromCharCode(ll.keyCode).toLowerCase()=="y"){if(this.Mr().Te().eu()){this.Mr().Te().fu();}
ll["stop"]();}
return false;});Uia.Mt.b("Lr",function(Jt){if(this.Xt&&this.Xt.cu){if(Jt!==this.Xt["getCode"]()){var ju=0;try{ju=this.Xt["currentLine"]();}catch(fn){}
try{this.Xt["setCode"](Jt);if(ju!=0){this.Xt["jumpToLine"](ju);}}catch(fn){}}}else{if(Jt!==this.Qp()){this.xm(Jt);}}});Uia.Mt.b("Or",function(){if(this.Xt){var Cc=this;setTimeout(function(){var ku=Cc.Xt["getCode"]();Cc.Mr().Xc(ku);},1);}else{this.Mr().Xc(this.zm().value);}});Uia.Mt.b("fj",function(){return this.Qt.Zc();});Uia.Mt.b("nk",function(){return this.Qt;});Uia.Mt.b("ut",function(){this.Qt.Xc(true);Uia.yt=false;});Uia.Mt.b("vt",function(){this.Qt.Xc(false);Uia.yt=true;});Uia.Mt.vb(Uia.Nr,Uia.ai);Uia.pb("lu",function(Nt){if(Uia.Bc(this,arguments)){return this;}
this.Gi(Nt,Uia.ai);Uia.mt.call(this);});Uia.lu.ub(Uia.mt);Uia.lu.sb("yp",function(){this.tc("yp");this.tq(this,"keypress",this.Or);this.tq(this,"keydown",this.Or);this.tq(this,"keyup",this.Or);this.tq(this,"focusout",this.Or);this.tq(this,"deactivate",this.Or);});Uia.lu.b("Lr",function(Jt){if(Jt!==this.Qp()){this.xm(Jt);if(!Uia.J(Jt)){this.Dp(Jt);}
this.tt();}});Uia.lu.b("Or",function(){Jt=this.Qp();this.Mr().Xc(Jt);});Uia.pb("mu",function(Ai,nu,ou,pu,qu){if(Uia.Bc(this,arguments)){return this;}
this.Ci=Uia.H(nu)?null:nu;this.ru=ou;this.su=Uia.H(pu)?false:pu;this.tu=null;this.uu=Ai;var vu=Uia.H(qu)?true:qu;this.pf=[];if(vu){this.Gi(this.uu);}
this.wu=false;});Uia.mu.ub(Uia.wm);Uia.mu.b("Tc",function(yf,zf,Mf){this.pf.unshift({zf:zf,yf:yf});if(Mf){zf.call(yf);}});Uia.mu.b("Hi",function(xu){this.tu.Hi(xu);return this;});Uia.mu.b("yu",function(yf,zf,Mf){this.pf.unshift({zf:zf,yf:yf,zu:true});if(Mf){zf.call(yf);}});Uia.mu.b("xf",function(yf,Cf){var Df=Uia.H(Cf)?true:Uia.T(Cf);var Ef=0;for(var ic=0;ic<this.pf.length;ic++){while(ic<this.pf.length&&this.pf[ic].yf==yf){Ef++;this.pf.splice(ic,1);}}
if(Ef===0&&Df){throw new Error("no changehandlers removed");}});Uia.mu.b("vf",function(Au){var Xf=Uia.Ib.cc(this.pf);for(var F=0;F<Xf.length;F++){if(Uia.T(Au)&&Xf[F].zu||!Uia.T(Au)&&!Xf[F].zu){var Yf=Xf[F].yf;Xf[F].zf.call(Yf);}}});Uia.mu.b("Bu",function(Cu){this.wu=Cu&&!Uia.Rl;});Uia.mu.b("Mr",function(){return this.uu;});Uia.mu.b("Gi",function(Kf){this.uu=Kf;var Du=false;if(this.lf!==Kf){if(this.lf){this.lf.xf(this);}
if(Uia.J(this.Ci)){this.lf=Kf;}else{if(this.tu==null){this.tu=new Uia.zi(null,this.Ci);}
this.lf=this.tu;if(!Uia.J(Kf)){this.lf.Tc(this,this.Eu);Du=true;}
this.tu.Gi(Kf);}
if(!Du&&!Uia.J(Kf)){this.lf.Tc(this,this.Eu);}}
return this;});Uia.mu.b("Fu",function(){return this.lf;});Uia.mu.b("Gu",function(){if(this.tu){return this.tu;}else{return this.lf
}});Uia.mu.b("length",function(){return this.Fu().length();});Uia.mu.b("yp",function(){this.Hu();});Uia.mu.b("Hu",function(){var Iu=new Uia.wm();this.Np(Iu);for(var F=0;F<this.lf.length();F++){if(this.wu)Uia.Ju(this.lf.ef(F));this.jp(this.lf.ef(F));}
this.Np(Iu);this.Ku();});Uia.mu.b("Mi",function(jc){if(this.lf.Ac(Uia.zi)){return this.lf.Mi(jc);}else if(this.lf.qc(jc)){return jc;}});Uia.mu.b("Lu",function(gn){this.Mu=gn;this.Ku();});Uia.mu.b("Ku",function(gn){if(this.Mu){if(this.Gu().length()==0&&!this.Nu){this.Nu=true;this.jp(this.Mu);this.Mu.expand();}else if(this.Gu().length()>0&&this.Nu){this.Nu=false;this.Mu.collapse();}}});Uia.mu.b("Eu",function(gf){if(this.sp){this.vf(true);if(!Uia.H(this.ru)){if(!Uia.H(gf.hf)){for(var F=0;F<gf.hf.length;F++){gf.hf[F]=this.ru(gf.hf[F]);}}else if(!Uia.H(gf.jf)){gf.jf=this.ru(gf.jf);}}
var Ou=(this.length()>0)&&gf.Wf;switch(gf.Ie()){case"push":for(var F=0;F<gf.hf.length;F++){if(this.wu)Uia.Ju(gf.hf[F]);this.jp(gf.hf[F]);if(gf.Wf)gf.hf[F].scrollIntoView();}
break;case"pop":if(Ou){gf.Sf.scrollIntoView(function(){gf.Sf.ir()});}else{gf.Sf.ir();}
break;case"shift":if(Ou){gf.Sf.scrollIntoView(function(){gf.Sf.ir()});}else{gf.Sf.ir();}
break;case"setValueAt":if(this.wu)Uia.Ju(gf.jf);this.nq(gf.jf,gf.Sf);gf.Sf.ir();if(gf.Wf)gf.jf.scrollIntoView();break;case"removeValueAt":if(Ou){gf.Sf.scrollIntoView(function(){gf.Sf.ir()});}else{gf.Sf.ir();}
break;case"splice":for(var F=0;F<gf.hf.length;F++){if(this.wu)Uia.Ju(gf.hf[F]);this.nq(gf.hf[F],gf.Qg);if(gf.Wf)gf.hf[F].scrollIntoView();}
for(var F=0;F<gf.Rf.length;F++){gf.Rf[F].ir();}
break;case"moveValueAfter":this.qq(gf.Ag,gf.Cg);if(gf.Ag.sq)gf.Ag.sq();if(gf.Wf)gf.Ag.scrollIntoView();break;case"moveValueBefore":this.nq(gf.Ag,gf.Fg);if(gf.Ag.sq)gf.Ag.sq();if(gf.Wf)gf.Ag.scrollIntoView();break;case"swap":gf.ug.Np(gf.vg);if(gf.Wf)gf.ug.scrollIntoView();break;case"unshift":for(var F=0;F<gf.hf.length;F++){if(this.wu)Uia.Ju(gf.hf[F]);this.bq(gf.hf[F]);if(gf.Wf)gf.hf[F].scrollIntoView();}
break;case"setValue":if(gf.Tf&&gf.Tf!=null){for(var F=0;F<gf.Tf.length;F++){gf.Tf[F].ir();}}
for(var F=0;F<this.lf.length();F++){if(this.wu)Uia.Ju(this.lf.ef(F));this.jp(this.lf.ef(F));}
break;case"sort":case"reverse":for(var F=0;F<this.lf.length();F++){this.jp(this.lf.ef(F));}
break;default:throw new Error("Unknown event in syncronizing Uia.HtmlArray: "+gf.Ie());}
this.Ku();this.vf();}});Uia.pb("Pu",function(Qu,ot){if(Uia.Bc(this,arguments)){return this;}
this.Ru=Qu||undefined;if(ot)this.Uo(ot);});Uia.Pu.ub(Uia.wm);Uia.Pu.b("yp",function(){if(!Uia.H(this.Ru)){this.jp(this.Ru);}});Uia.Pu.b("Su",function(){return this.Ru;});Uia.pb("Tu",function(Ss,Uu){if(Uia.Bc(this,arguments)){return this;}
this.Ps=Ss;this.Vu=Uu;this.fr("button");this.Ip(true);});Uia.Tu.ub(Uia.wm);Uia.Tu.b("yp",function(){this.ym(this.Ps);this.tq(this,"anyclick",this.click);});Uia.Tu.b("click",function(ll){if(!Uia.H(this.Vu)){this.Vu();}
ll.stopPropagation();});Uia.Tu.b("Wu",function(Xu){this.zm().disabled=Xu;});Uia.Tu.sb("xm",function(rm){this.Ps=rm;this.zm().innerHTML="";this.ym(rm);});Uia.Yu="header";Uia.Zu="body";Uia.av="footer";Uia.pb("cp",function(bv,cv){if(Uia.Bc(this,arguments)){return this;}
this.fr("TABLE");this.dv=null;this.ev=null;this.fv=null;if(bv)this.hp(bv,cv);});Uia.cp.ub(Uia.wm);Uia.cp.b("gv",function(hv,cv,iv){var jv=(cv===undefined)?Uia.Zu:cv;if(hv.Ac&&hv.Ac(Uia.Ze)){switch(jv){case Uia.Yu:if(!Uia.J(this.dv)){throw new Error("Can't overwrite header");}
this.dv=new Uia.kv(this,hv,jv,iv);this.bq(this.dv);return this.dv;break;case Uia.Zu:this.ev=new Uia.kv(this,hv,jv,iv);this.nq(this.ev,this.fv);return this.ev;break;case Uia.av:if(!Uia.J(this.fv)){throw new Error("Can't overwrite footer");}
if(lv){this.fv=new Uia.mv(this,hv,jv,iv,nu);}else{this.fv=new Uia.kv(this,hv,jv,iv);}
this.jp(this.fv);return this.fv;break;default:throw new Error("Unknown position to insert row: "+jv);}}else if(Uia.z(hv)){for(var F=0;F<hv.length;F++){this.hp(hv[F]);}}else{throw new Error("only Arrays or boxed Arrays may be added");}
this.zm().cellSpacing=0;this.zm().cellPadding=0;});Uia.cp.b("Uc",function(nv){this.zm().style["width"]=Uia.L(nv)?nv+"px":nv;return this;});Uia.cp.b("hp",function(hv,cv){var jv=(cv===undefined)?Uia.Zu:cv;var ov;switch(jv){case Uia.Yu:if(this.dv===null){this.dv=new Uia.pv(jv);this.bq(this.dv);}
ov=this.dv.hp(hv);break;case Uia.Zu:if(this.ev===null){this.ev=new Uia.pv();this.nq(this.ev,this.fv);}
ov=this.ev.hp(hv);break;case Uia.av:if(this.fv===null){this.fv=new Uia.pv(jv);this.jp(this.fv);}
ov=this.fv.hp(hv);break;default:throw new Error("Unknown position to insert row: "+jv);}
this.zm().cellSpacing=0;this.zm().cellPadding=0;return ov;});Uia.cp.b("qv",function(hv,cv){var jv=(cv===undefined)?Uia.Zu:cv;var ov;switch(jv){case Uia.Yu:if(this.dv===null){this.dv=new Uia.pv(jv);this.bq(this.dv);}
ov=this.dv.qv(hv);break;case Uia.Zu:if(this.ev===null){this.ev=new Uia.pv();this.nq(this.ev,this.fv);}
ov=this.ev.qv(hv);break;case Uia.av:if(this.fv===null){this.fv=new Uia.pv(jv);this.jp(this.fv);}
ov=this.fv.qv(hv);break;default:throw new Error("Unknown position to insert row: "+jv);}
this.zm().cellSpacing=0;this.zm().cellPadding=0;return ov;});Uia.pb("pv",function(cv){if(Uia.Bc(this,arguments)){return this;}
this.rv=(cv===undefined)?Uia.Zu:cv;switch(this.rv){case Uia.Zu:this.fr("TBODY");break;case Uia.Yu:this.fr("THEAD");break;case Uia.av:this.fr("TFOOT");break;default:throw new Error("unknown position");}});Uia.pv.ub(Uia.wm);Uia.pv.b("sv",function(hv){var ov;if(Uia.z(hv)){ov=new Uia.tv(hv);}else if(hv.Ac&&hv.Ac(Uia.Ze)){ov=new Uia.uv(hv);}else if(hv.Ac&&hv.Ac(Uia.wm)){switch(hv.vp().toUpperCase()){case"TR":ov=hv;break;default:ov=new Uia.tv(Array(hv));break;}}else if(Uia.R(hv)){ov=new Uia.tv(Array(hv));}else{throw new Error("only Strings, Arrays, Boxed Arrays and HtmlComponents can be added as rows");}
return ov;});Uia.pv.b("hp",function(hv){var ov=this.sv(hv);this.jp(ov);return ov;});Uia.pv.b("qv",function(hv){var ov=this.sv(hv);this.bq(ov);return ov;});Uia.pb("kv",function(vv,wv,cv,iv){if(Uia.Bc(this,arguments)){return this;}
Uia.mu.call(this,wv,Uia.V(this.sv,this));Uia.pv.call(this,cv);this.xv="";this.yv="";if(iv){var zv=new Uia.pv(cv);zv.hp(iv);this.Av=zv;}
this.Bv=false;this.Cv=vv;});Uia.kv.ub(Uia.mu);Uia.kv.sb("yp",function(){this.tc("yp");if(this.Av){this.Cv.jp(this.Av);this.Av.collapse();}
this.Tc(this,this.Dv,true);});Uia.kv.b("Dv",function(){this.Ev();this.Fv();});Uia.kv.b("Fv",function(gf){if(this.length()==0&&this.Av&&!this.Bv){if(!Uia.J(this.Cv.dv))this.Cv.dv.collapse();if(!Uia.J(this.Cv.fv))this.Cv.fv.collapse();if(!Uia.J(this.Cv.ev))this.Cv.ev.collapse();this.Av.expand();this.Bv=true;}
if(this.length()!=0&&this.Av&&this.Bv){if(!Uia.J(this.Cv.dv))this.Cv.dv.expand();if(!Uia.J(this.Cv.fv))this.Cv.fv.expand();if(!Uia.J(this.Cv.ev))this.Cv.ev.expand();this.Av.collapse();this.Bv=false;}});Uia.kv.b("Ev",function(){this.Gv=false;if(this.xv!==""||this.yv!==""){var Hv=this.Fu().Zc();for(var F=0;F<Hv.length;F++){Hv[F].Uo(((F%2===0)?this.yv:this.xv));}}});Uia.kv.b("Iv",function(Jv){this.xv=Jv;this.Ev();return this;});Uia.kv.b("Kv",function(Lv){this.yv=Lv;this.Ev();return this;});Uia.kv.b("sv",Uia.pv.prototype.sv);Uia.pb("tv",function(Mv){if(Uia.Bc(this,arguments)){return this;}
this.fr("TR");if(Mv!==undefined){this.Nv(Mv);}});Uia.tv.ub(Uia.wm);Uia.tv.b("Nv",function(Ov){for(var F=0;F<Ov.length;F++){this.Pv(Ov[F]);}
return this;});Uia.tv.b("Qv",function(){return this.Rv;});Uia.tv.b("Sv",function(hv){this.Rv=hv;var Tv;if(Uia.H(hv)){Tv=new Uia.ep("");}else if(Uia.R(hv)){Tv=new Uia.ep(hv);}else if(Uia.I(hv.Ac)&&hv.Ac(Uia.wm)){if(hv.vp().toUpperCase()!="TD"&&hv.vp().toUpperCase()!="TH"){Tv=new Uia.ep(hv);}else{Tv=hv;}}else{if(hv.nodeName.toUpperCase()!="TD"&&hv.nodeName.toUpperCase()!="TH"){throw new Error("Can't insert component that's not a TD or TH");}
Tv=new Uia.ep();Tv.Uv=hv;}
return Tv;});Uia.tv.b("Pv",function(hv,ot){var Tv=this.Sv(hv,ot);this.jp(Tv);return Tv;});Uia.pb("uv",function(Vv){if(Uia.Bc(this,arguments)){return this;}
Uia.mu.call(this,Vv,Uia.V(this.Sv,this));this.fr("TR");});Uia.uv.ub(Uia.mu);Uia.uv.b("Sv",Uia.tv.prototype.Sv);Uia.pb("ep",function(bv,Wv,Xv,Yv,Zv,aw){if(Uia.Bc(this,arguments)){return this;}
this.bw=(Yv===undefined)?false:Yv;this.cw=(Wv===undefined)?1:Wv;this.dw=(Xv===undefined)?1:Xv;this.ew=(Zv===undefined)?"center":Zv;this.fw=(aw===undefined)?"left":aw;if(this.bw){this.fr("TH");}else{this.fr("TD");}
if(Uia.Bc(this,arguments)){return this;}
if(bv!==undefined){if(Uia.R(bv)){if(bv===""){this.jp(new Uia.gw(Uia.hm+"1x1.gif").ld(1,1));}else{this.xm(bv);}}else{this.jp(bv);}}});Uia.ep.ub(Uia.wm);Uia.ep.b("yp",function(){this.zm().rowSpan=this.dw;this.zm().colSpan=this.cw;this.zm().vAlign=this.ew;this.zm().align=this.fw;});Uia.ep.b("fp",function(hw){this.ew=hw;this.zm().vAlign=this.ew;return this;});Uia.ep.b("iw",function(jw){this.cw=jw;this.zm().colSpan=jw;return this;});Uia.ep.b("kw",function(lw){this.dw=lw;this.zm().rowSpan=lw;return this;});Uia.ep.b("gp",function(mw){this.fw=mw;this.zm().align=this.fw;this.Rp("align",mw);return this;});Uia.pb("gw",function(nw,ot){if(Uia.Bc(this,arguments)){return this;}
this.fr("IMG");this.ow=nw;if(ot)this.Uo(ot);this.pw=null;this.qw=false;});Uia.gw.ub(Uia.wm);Uia.gw.b("yp",function(){this.sp.src=this.ow;});Uia.gw.b("rw",function(nw){this.ow=nw;this.sp.src=this.ow;});Uia.gw.b("sw",function(Vc,gd){if(!this.qw){if(this.pw==null){this.pw=new Uia.gw(Uia.hm+"1x1.gif");this.pw.zm().width=Vc;this.pw.zm().height=gd;}
this.Np(this.pw);this.qw=true;}
return this;});Uia.gw.b("tw",function(){if(this.qw&&this.pw!=null){this.Np(this.pw);Uia.Ju(this);this.qw=false;}
return this;});Uia.gw.b("ld",function(Vc,gd){this.zm();this.sp.width=Vc;this.sp.height=gd;return this;});Uia.pb("uw",function(us){if(Uia.Bc(this,arguments)){return this;}
this.gl=us;Uia.cp.call(this);this.vw=new Uia.ai("");this.Uo("TableWithHeader");this.ww=new Uia.ai("Enter password");this.xw=false;});Uia.uw.ub(Uia.cp);Uia.uw.b("yp",function(){var yw=new Uia.ep(new Uia.HtmlText(this.ww),1,1,true);this.hp(yw);this.zw=new Uia.lu(this.vw).fr("INPUT type=password");this.zw.Et(this.Fc("Aw"));this.zw.vb(Uia.Po);this.zw.Uc(150);this.hp(this.zw);var Bw=new Uia.Tu("Done",this.Fc("Aw"));Bw.vb(Uia.Po);Bw.Uc(80);var Cw=new Uia.Pu(Bw);var Dw=new Uia.Tu("Cancel",this.Fc("Ew"));Dw.vb(Uia.Po);Dw.Uc(80);Cw.ym("  ");Cw.jp(Dw);this.Fw=this.hp(new Uia.ep(Cw).gp("right"));});Uia.uw.b("Gw",function(Hw){this.xw=Hw;this.Iw();});Uia.uw.b("Iw",function(){if(this.Fw){if(this.xw){this.Fw.expand();}else{this.Fw.collapse();}}});Uia.uw.b("Jw",function(){this.vw.Xc("");});Uia.uw.b("Kw",function(ve){this.gl=ve;});Uia.uw.b("Tc",function(Cc,zf){this.vw.Tc(Cc,zf);});Uia.uw.b("Lw",function(Mw){this.ww.Xc(Mw);});Uia.uw.sb("focus",function(){if(this.zw){this.zw.focus();}});Uia.uw.b("select",function(){if(this.zw){this.zw.select();}});Uia.uw.b("Aw",function(){this.gl(this.vw.Zc());this.Jw();});Uia.uw.b("Ew",function(){this.Jw();this.gl(null);});Uia.pb("Nw",function(Ow){if(Uia.Bc(this,arguments)){return this;}
Uia.mf.call(this);this.Pw=Ow;this.Pw.Qw().Rw().Tc(this,this.Sw);this.Tw=this.tf(new Uia.Ze([]));this.Uw=this.tf(new Uia.uh(null,true));this.Vw=this.tf(new Uia.Rd(true));this.Ww=this.tf(new Uia.Rd(false));this.Xw=this.tf(new Uia.Rd(false));this.Uw.Tc(this,this.Yw,true);});Uia.Nw.ub(Uia.mf);Uia.Nw.b("cc",function(){var Zw=new Uia.Nw(this.ax());Zw.bx(this.cx());Zw.dx(Uia.Ib.cc(this.ex().Zc()));Zw.fx(this.gx());Zw.hx(this.ix());return Zw;});Uia.Nw.b("ex",function(){return this.Tw;});Uia.Nw.b("D",function(){return(this.ex().length()==0||Uia.J(this.cx()));});Uia.Nw.b("jx",function(){var kx=this.cx(),lx,mx={};if(Uia.J(kx)){return null;}
mx["questionToHide"]=this.Pw.nx();if(kx.Ac(Uia.ox)){lx=kx.px();mx["statement"]=kx.nx();}else{lx=kx;}
mx["question"]=lx.nx();var qx=this.ex().Zc(),rx=[];for(var F=0;F<qx.length;F++){rx.push(qx[F].nx());}
mx["choices"]=rx;mx["isAnsweredBy"]=this.Vw.Zc();mx["matchAllChoices"]=this.Ww.Zc();mx["and"]=this.Xw.Zc();return mx;});Uia.Nw.b("sx",function(tx){if(tx["questionToHide"]!=this.Pw.nx().toString()){throw new Error("Error in positions: "+tx["questionToHide"]+" not equal :"+this.Pw.nx().toString());}
var ux=this.Pw.Qw(),lx=ux.vx(new Number(tx["question"])),qx=[];if(tx["statement"]){var wx=lx.xx().ef(new Number(tx["statement"])-1);this.bx(wx);var yx=tx["choices"],zx=lx.Ax().Zc();for(var F=0;yx&&F<yx.length;F++){qx.push(zx[yx[F]-1]);}}else{this.bx(lx);var Bx=tx["choices"],Cx=lx.xx().Zc();for(var F=0;Bx&&F<Bx.length;F++){qx.push(Cx[Bx[F]-1]);}}
this.dx(qx);this.hx(tx["isAnsweredBy"]);this.fx(tx["matchAllChoices"]);this.Dx(tx["and"]);});Uia.Nw.b("dx",function(qx){var Ex=this.Tw;if(Ex.length()==qx.length){var Fx=true;for(var F=0;F<qx.length&&Fx;F++){Fx=Ex.Jb(qx[F])!=-1;}
if(Fx){return;}}
this.Tw.Xc(qx);return this;});Uia.Nw.b("ax",function(){return this.Pw;});Uia.Nw.b("cx",function(){return this.Uw.Zc();});Uia.Nw.b("Gx",function(){return this.Uw;});Uia.Nw.b("hx",function(Hx){this.Vw.Xc(Hx);});Uia.Nw.b("ix",function(){return this.Vw.Zc();});Uia.Nw.b("Ix",function(){return this.Vw;});Uia.Nw.b("fx",function(Jx){this.Ww.Xc(Jx);});Uia.Nw.b("gx",function(){return this.Ww.Zc();});Uia.Nw.b("Kx",function(){return this.Ww;});Uia.Nw.b("Dx",function(Lx){this.Xw.Xc(Lx);});Uia.Nw.b("Mx",function(){return this.Xw.Zc();});Uia.Nw.b("Nx",function(){return this.Xw;});Uia.Nw.b("bx",function(Ox){this.Uw.Xc(Ox);return this;});Uia.Nw.b("Yw",function(){var Px=Uia.H(this.Qx)?null:this.Qx;var Ox=this.cx();if(Px!==Ox){if(!Uia.J(Px)){var Rx=Px;if(Px.Ac(Uia.ox)){Rx=Rx.px();Rx.Ax().xf(this);}else{Rx.Sx().xf(this);}
Rx.xx().xf(this);}
this.Uw.Xc(Ox);if(!Uia.J(Ox)){var lx=Ox;if(Ox.Ac(Uia.ox)){lx=lx.px();lx.Ax().Tc(this,this.Tx);}else{lx.Sx().Tc(this,this.Ux);}
lx.xx().Tc(this,this.Vx);}}
this.Qx=Ox;});Uia.Nw.b("Ux",function(){if(this.cx().Ie()=="SingleSelect"){this.Ww.Xc(false);}});Uia.Nw.b("Sw",function(){if(!Uia.J(this.cx())){var lx=this.cx();if(lx.Ac(Uia.ox)){lx=lx.px();}
var Wx=this.Pw.Qw().Rw().Jb(lx);var Xx=this.Pw.Qw().Rw().Jb(this.Pw);if(Wx==-1){this.bx(null);this.dx([]);}else if(Xx<Wx){this.bx(null);this.dx([]);}}});Uia.Nw.b("Vx",function(){var qx=this.ex().Zc();var kx=this.cx();if(!Uia.J(kx)){if(kx.Ac(Uia.ox)){var Yx=kx.px().xx();if(Yx.Jb(kx)==-1){this.bx(null);this.dx([]);}}else if(!Uia.J(qx)){var Yx=kx.xx(),Zx=[];for(var F=0;F<qx.length;F++){var ay=qx[F];if(Yx.Jb(ay)==-1){Zx.push(ay);}}
for(var F=0;F<Zx.length;F++){var ay=Zx[F];this.ex().Yb(ay);}}}});Uia.Nw.b("Tx",function(){var qx=this.ex().Zc();var by=this.cx().px().Ax(),Zx=[];for(var F=0;F<qx.length;F++){var cy=qx[F];if(by.Jb(cy)==-1){Zx.push(cy);}}
for(var F=0;F<Zx.length;F++){var cy=Zx[F];this.ex().Yb(cy);}});Uia.Nw.b("dy",function(vj){var ey=1;if(!this.ix()){ey=undefined;}
fy=vj.uj();if(this.gx()){fy.wj(Uia.Yi);}else{fy.wj(Uia.Zi);}
var qx=this.ex().Zc();for(var F=0;F<qx.length;F++){if(this.cx().Ac(Uia.ox)){var pc=this.cx().gy()+"_"+qx[F].gy();fy.oj().bk(pc).Xc(ey);}else{pc=qx[F].gy();fy.oj().bk(pc).Xc(ey);}}});Uia.pb("hy",function(Ow){if(Uia.Bc(this,arguments)){return this;}
Uia.Ze.call(this,[]);this.Pw=Ow;this.Nf(this.Fc("iy"));this.Pf(this.Fc("jy"));});Uia.hy.ub(Uia.Ze);Uia.hy.sb("Xc",function(Lf){var Ti=this.Zc();var ky=Uia.Ib.dc(Lf),ly=[];for(var F=0;F<ky.length;F++){if(!ky[F].D()){ly.push(ky[F]);}else{Uia.c("Empty Hiderule");}}
if(Ti&&ly.length==Ti.length){Uia.c("arrays have same length");if(Ti.length==Uia.Ib.dc(Ti).length){Uia.c("no doubles in current array");if(Ti.length==Uia.Ib.dc([].concat(Ti).concat(ly)).length){Uia.c("nothing new in aValue");return;}}}
this.tc("Xc",ly);return this;});Uia.hy.b("jx",function(){var my=this.Zc();var mx=[];for(var F=0;F<my.length;F++){var tx=my[F].jx();if(!Uia.J(tx)){mx.push(tx);}}
return mx;});Uia.hy.b("ny",function(oy){var py=this.qy().filter(oy);return!py;});Uia.hy.b("qy",function(){this.ry=new Uia.aj().wj(Uia.Zi);if(this.length()==0){return this.ry;}
var sy=this.ry.uj().wj(Uia.Yi);var ty=this.ef(0);ty.dy(sy);for(var F=1;F<this.length();F++){var ty=this.ef(F);if(!ty.Mx()){sy=this.ry.uj().wj(Uia.Zi);}
ty.dy(sy);}
return this.ry;});Uia.hy.b("sx",function(uy){var my=[];for(var F=0;F<uy.length;F++){var Zw=new Uia.Nw(this.Pw);Zw.sx(uy[F]);my.push(Zw);}
this.Xc(my);});Uia.hy.b("iy",function(vy){for(var F=0;F<vy.length;F++){this.tf(vy[F]);}});Uia.hy.b("jy",function(vy){for(var F=0;F<vy.length;F++){this.wf(vy[F]);}});Uia.pb("wy",function(xy){if(Uia.Bc(this,arguments)){return this;}
Uia.mf.call(this);this.yy=xy;this.zy="";this.Ay=this.tf(new Uia.ai(""));this.By=new Uia.ai("");this.Cy=this.tf(new Uia.Ze([],false));this.Cy.Tc(this,this.Sw);this.Cy.name="SurveyQuestions";this.Dy=this.tf(new Uia.ai("Next page"));this.Ey=false;this.Fy=false;this.Gy=new Uia.Ze([],false);this.Hy=false;this.Iy=new Uia.Rd(true);this.Jy=new Uia.Rd(false);this.Ky=this.tf(new Uia.ai(
"/* NOTE: The SurveyPage class is not used\n** if you embed the survey with JavaScript */\n.SurveyPage\n{\n  background: white;\n  padding-top: 20px;\n}\n\n.SurveyPage, .SurveyPage TD\n{\n  /* NOTE: if you edit the font family\n  here, it will not have an effect when\n  the survey is embedded with JavaScript.\n  If that is what you want, then edit\n  it in the .Survey class below instead */\n  font-family: Verdana, Arial, sans-serif;\n  font-size:  9pt;\n}\n\n.Survey textarea, .Survey input\n{\n  font-size:  9pt;\n}\n\n.NotEmbeddedSurvey{\n/*NOTE: Embedded surveys don't have\n  this class, so their width fits\n  wherever they are embedded */\n  width: 700px;\n}\n\n.Survey\n{\n max-width: 700px;\n border: 1px solid #ccc;\n  text-align: left;\n  margin: 0px auto 0px auto; /* center */\n  padding-bottom: 20px;\n  -webkit-box-shadow: rgba(0,0,0,1) 0px 0px 2px;\n  -moz-box-shadow: rgba(0,0,0,1) 0px 0px 2px;\n  box-shadow: rgba(0,0,0,1) 0px 0px 0px;\n  -moz-border-radius: 4px;\n  -webkit-border-radius: 4px;\n  border-radius: 4px;\n  background: #C2C2C2;\n  background: -moz-linear-gradient(top, #C2C2C2 0%, #F7F7F7 100%);\n\n background: -webkit-gradient(linear, left top, left bottom, from(#C2C2C2), to(#F7F7F7));  \n  filter: progid:DXImageTransform.Microsoft.gradient(enabled='true',startColorstr=#C2C2C2,endColorstr=#F7F7F7,GradientType=0);\n}\n\n.Survey, .Survey TD\n{\n  font-family: inherit;\n  font-size:  inherit;\n}\n\n.SurveyHeader\n{\n  padding: 15px;\n  color: #1C1C1C;\n  font-size: 24px;\n  font-weight: bold;\n  text-align: center;\n  margin: 0px 0px 0px 0px;\n}\n\n.QuestionText\n{\n  color: #1C1C1C;\n  font-weight: bold;\n  font-size:  10pt;\n  line-height: 20px;\n}\n\n.Question\n{\n  -moz-border-radius: 4px;\n  -webkit-border-radius: 4px;\n  border-radius: 4px;\n  padding: 15px;\n  margin-top: 10px;\n  margin-bottom: 10px;\n  margin-left: 25px;\n  margin-right: 25px;\n  background-color: #F7F7F7;\n  -webkit-box-shadow: rgba(0,0,0,0.3) 0px 0px 5px;\n  -moz-box-shadow: rgba(0,0,0,0.3) 0px 0px 5px;\n  box-shadow: rgba(0,0,0,1) 0px 0px 0px;\n}\n\n.QuestionBody\n{\n  font-weight: normal;  \n  color: #565B6E;  \n}\n\n.ShortTextInput\n{\n  width: 175px;\n  height: 16px;\n}\n\n.ShortTextInputPrefix\n{\n  margin-right: 4px;\n}\n\n.ShortTextInputPostfix\n{\n  margin-left: 4px;\n}\n\n.NumberInput\n{\n  width: 100px;\n  text-align: right;\n}\n\n.TextArea\n{\n  width: 100% !important;\n  height: 100px !important;\n}\n\n.Choice\n{\n   margin-top: 3px !important;\n}\n\n.NextButton\n{\n  font-size: 20px;\n  font-weight: bold;\n  text-align: center;\n  padding: 2px 50px 2px 50px;\n}\n\n.NextButtonContainer\n{\n  padding-top: 10px;\n  text-align: center;\n}\n\n.RequiredQuestionMarker\n{\n  font-weight: bold;\n  text-shadow: 2px 1px 2px #999;\n  padding-left: 3px;\n  padding-bottom: 8px;\n}\n\n.RatingQuestionRating\n{\n  font-size: 8pt !important;\n  font-weight: normal;\n  border-left: solid 2px #565B6E;\n  border-bottom: solid 2px #565B6E;\n  margin: 0px;\n  padding: 4px;\n  vertical-align: bottom;\n\n text-align: center;\n}\n\n.RatingQuestionStatement\n{\n  padding: 5px;\n}\n\n.RatingQuestionStatementRating\n{\n  text-align: center;\n  padding: 8px;\n  border-left: solid 2px #565B6E;\n}\n\n.RatingQuestionStatementsHeader\n{\n  border-bottom: solid 2px #565B6E;\n}\n\n.RatingQuestionStatementOddRow\n{\n  background-color: #E5E5E5;\n}\n\n"
));this.Ly=new Uia.Rd(false);});Uia.wy.ub(Uia.mf);Uia.wy.b("Ts",function(){return this.yy;});Uia.wy.b("My",function(){this.Ny=this.Oy(true);});Uia.wy.b("Py",function(){return(this.Ny!=this.Oy(true));});Uia.wy.b("Qy",function(){var Ry=this.Rw().Zc(),Zx=[];for(var F=0;F<Ry.length;F++){var lx=Ry[F];if(lx.Qy){lx.Qy();}
if(lx.Ie().indexOf("QuestionInserter")!=-1){Zx.push(lx);}}
for(var F=0;F<Zx.length;F++){this.Rw().Yb(Zx[F]);}});Uia.wy.b("Sy",function(){this.Rw().push(
new Uia.Ty(this),new Uia.Uy("Thank you for participating in the survey.",this),new Uia.Uy("<div align=\"right\" style=\"font-size:9px\">powered by <a href=\""+Uia.e+"\">obsurvey</a></div>",this)
);});Uia.wy.b("Vy",function(Wy){var Ry=this.Rw().Zc();for(var F=0;F<Ry.length;F++){var lx=Ry[F];if(lx.Vy){lx.Vy(Wy);}}});Uia.wy.b("Xy",function(Yy){var Zy=!Yy.az();return Zy;});Uia.wy.b("bz",function(){this.cz().mh();});Uia.wy.b("Sw",function(){var Ry=this.Rw().Zc(),dz=1,ez=2,fz=1,gz=true,hz=-1;for(var F=0;F<Ry.length;F++){var lx=Ry[F];switch(lx.Ie()){case"LeadText":if(lx.iz){lx.iz(fz);fz++;}
break;case"Text":case"SingleSelect":case"MultipleSelect":case"Matrix":if(lx.iz){lx.iz(fz);fz++;}
lx.jz(dz);dz++;gz=false;break;case"PageBreak":if(!this.kz&&!this.Ve()&&((hz+1==F)||(F==Ry.length-1))){this.Rw().Yb(lx);Uia.c("Removing PageBreak for empty page");return;}
hz=F;if(lx.iz){lx.iz(fz);fz++;}
gz=true;lx.jz(ez);ez++;break;}}
if(this.lz()){this.Iy.Xc(gz);}
if(this.mz&&this.Rw().Jb(this.mz)==-1){this.mz.nk().Xc(false);}});Uia.wy.b("nz",function(){return this.Iy.Zc();});Uia.wy.b("oz",function(){return this.Iy;});Uia.wy.b("pz",function(gz){return this.Iy.Xc(gz);});Uia.wy.b("vx",function(fz){return this.Rw().ef(fz-1);});Uia.wy.b("qz",function(){var ux=new Uia.wy(this.Ts());ux.rz(this.sz());ux.Rs(this.getName());ux.tz(this.uz());return ux;});Uia.wy.b("vz",function(wz){this.yy=wz;});Uia.wy.b("xz",function(){this.Cy.Xc([]);});Uia.wy.b("yz",function(zz){this.Hy=zz;});Uia.wy.b("Az",function(wz){return this.Hy;});Uia.wy.b("lz",function(){return this.Ey;});Uia.wy.b("Bz",function(Cz){this.Ey=Cz;});Uia.wy.b("Dz",function(){return this.Fy;});Uia.wy.b("Ez",function(Fz){this.Fy=Fz;});Uia.wy.b("Gz",function(){return this.Ky.Zc();});Uia.wy.b("Hz",function(){var Iz="\n\n/** SOCIAL SHARING CSS **/\ndiv.sexy-bookmarks {\n	margin:20px 0 0 0;\n	clear: both !important;\n}\ndiv.sexy-bookmarks-expand {\n	height: 29px;\n	overflow: hidden;\n}\n.sexy-bookmarks-bg-sexy, .sexy-bookmarks-bg-caring, .sexy-bookmarks-bg-caring-old, .sexy-bookmarks-bg-love, .sexy-bookmarks-bg-wealth, .sexy-bookmarks-bg-enjoy {\n	background-image:url(\"http://observey.appspot.com/static/images/sexy-trans.png\") !important;\n	background-repeat: no-repeat !important;\n}\ndiv.sexy-bookmarks-bg-sexy {\n	padding: 28px 0 0 10px !important;\n	background-position: left -348px !important;\n}\ndiv.sexy-bookmarks-bg-caring {\n	padding: 26px 0 0 10px !important;\n	background-position: left 0 !important;\n}\ndiv.sexy-bookmarks-bg-caring-old {\n	padding: 26px 0 0 10px !important;\n	background-position: left -748px !important;\n}\ndiv.sexy-bookmarks-bg-love {\n	padding: 26px 0 0 10px !important;\n	background-position: left -1148px !important;\n}	\ndiv.sexy-bookmarks-bg-wealth {\n	margin-left: 15px !important;\n	padding: 35px 0 0 20px !important;\n	background-position: left -1535px !important;\n}\ndiv.sexy-bookmarks-bg-enjoy {\n	padding: 26px 0 0 10px !important;\n	background-position: left -1895px !important;\n}\ndiv.sexy-bookmarks ul.socials {\n	width:100% !important;\n	margin:0 !important;\n	padding:0 !important;\n	float: left !important;\n}\ndiv.sexy-bookmarks ul.socials {\n	background:transparent none !important;\n	border:0 none !important;\n	outline:0 none !important;\n}\ndiv.sexy-bookmarks ul.socials li {\n	display:inline !important;\n	float:left !important;\n	list-style-type:none !important;\n	margin:0;\n	height:29px !important;\n	width:60px !important;\n	cursor:pointer !important;\n	padding:0 !important;\n	background-color:transparent !important;\n	border:0 none !important;\n	outline:0 none !important;\n	clear:none !important;\n}\ndiv.sexy-bookmarks ul.socials li:before, div.sexy-bookmarks ul.socials li:after, div.sexy-bookmarks ul.socials li a:before, div.sexy-bookmarks ul.socials li a:after {\n	content:none !important;\n}\ndiv.sexy-bookmarks ul.socials a {\n	display:block !important;\n	width:60px !important;\n	height:29px !important;\n	text-indent: -9999px !important;\n	background-color:transparent !important;\n}\ndiv.sexy-bookmarks ul.socials a:hover, div.sexy-bookmarks ul.socials li:hover {\n	background-color:transparent !important;\n	border:0 none !important;\n	outline:0 none !important;\n}\nli.sexy-diigo, li.sexy-diigo:hover, li.sexy-digg, li.sexy-digg:hover, li.sexy-reddit, li.sexy-reddit:hover, li.sexy-stumbleupon, li.sexy-stumbleupon:hover, li.sexy-delicious, li.sexy-delicious:hover, li.sexy-yahoobuzz, li.sexy-yahoobuzz:hover, li.sexy-blinklist, li.sexy-blinklist:hover, li.sexy-technorati, li.sexy-technorati:hover, li.sexy-facebook, li.sexy-facebook:hover, li.sexy-twitter, li.sexy-twitter:hover, li.sexy-myspace, li.sexy-myspace:hover, li.sexy-mixx, li.sexy-mixx:hover, li.sexy-scriptstyle, li.sexy-scriptstyle:hover, li.sexy-designfloat, li.sexy-designfloat:hover, li.sexy-mail, li.sexy-mail:hover, li.sexy-comfeed, li.sexy-comfeed:hover, li.sexy-newsvine, li.sexy-newsvine:hover, li.sexy-devmarks, li.sexy-devmarks:hover, li.sexy-linkedin, li.sexy-linkedin:hover, li.sexy-google, li.sexy-google:hover, li.sexy-misterwong, li.sexy-misterwong:hover, li.sexy-izeby, li.sexy-izeby:hover, li.sexy-twittley, li.sexy-twittley:hover, li.sexy-tipd, li.sexy-tipd:hover, li.sexy-pfbuzz, li.sexy-pfbuzz:hover, li.sexy-friendfeed, li.sexy-friendfeed:hover, li.sexy-blogmarks, li.sexy-blogmarks:hover, li.sexy-fwisp, li.sexy-fwisp:hover, li.sexy-designmoo, li.sexy-designmoo:hover, li.sexy-bobrdobr, li.sexy-bobrdobr:hover, li.sexy-yandex, li.sexy-yandex:hover, li.sexy-memoryru, li.sexy-memoryru:hover, li.sexy-100zakladok, li.sexy-100zakladok:hover, li.sexy-moemesto, li.sexy-moemesto:hover, li.sexy-ning, li.sexy-ning:hover, li.sexy-hackernews, li.sexy-hackernews:hover, li.sexy-identica, li.sexy-identica:hover, li.sexy-printfriendly, li.sexy-printfriendly:hover, li.sexy-designbump, li.sexy-designbump:hover, li.sexy-fleck, li.sexy-fleck:hover, li.sexy-netvibes, li.sexy-netvibes:hover, li.sexy-netvouz, li.sexy-netvouz:hover, li.sexy-nujij, li.sexy-nujij:hover, li.sexy-globalgrind, li.sexy-globalgrind:hover, li.sexy-wikio, li.sexy-wikio:hover, li.sexy-xerpi, li.sexy-xerpi:hover, li.sexy-sphinn, li.sexy-sphinn:hover, li.sexy-blogospherenews, li.sexy-blogospherenews:hover, li.sexy-posterous, li.sexy-posterous:hover, li.sexy-techmeme, li.sexy-techmeme:hover, li.sexy-ekudos, li.sexy-ekudos:hover, li.sexy-pingfm, li.sexy-pingfm:hover, li.sexy-tomuse, li.sexy-tomuse:hover {\n	background:url(\"http://observey.appspot.com/static/images/sexy-sprite.png\") no-repeat !important;\n}\nli.sexy-diigo {\n	background-position:-910px bottom !important;\n}\nli.sexy-diigo:hover {\n	background-position:-910px top !important;\n}\nli.sexy-digg {\n	background-position:-980px bottom !important;\n}\nli.sexy-digg:hover {\n	background-position:-980px top !important;\n}\nli.sexy-reddit {\n	background-position:-700px bottom !important;\n}\nli.sexy-reddit:hover {\n	background-position:-700px top !important;\n}\nli.sexy-stumbleupon {\n	background-position:-630px bottom !important;\n}\nli.sexy-stumbleupon:hover {\n	background-position:-630px top !important;\n}\nli.sexy-delicious {\n	background-position:-1190px bottom !important;\n}\nli.sexy-delicious:hover {\n	background-position:-1190px top !important;\n}\nli.sexy-yahoobuzz {\n	background-position:-1120px bottom !important;\n}\nli.sexy-yahoobuzz:hover {\n	background-position:-1120px top !important;\n}\nli.sexy-blinklist {\n	background-position:-1260px bottom !important;\n}\nli.sexy-blinklist:hover {\n	background-position:-1260px top !important;\n}\nli.sexy-technorati {\n	background-position:-560px bottom !important;\n}\nli.sexy-technorati:hover {\n	background-position:-560px top !important;\n}\nli.sexy-myspace {\n	background-position:-770px bottom !important;\n}\nli.sexy-myspace:hover {\n	background-position:-770px top !important;\n}\nli.sexy-twitter {\n	background-position:-490px bottom !important;\n}\nli.sexy-twitter:hover {\n	background-position:-490px top !important;\n}\nli.sexy-facebook {\n	background-position:-1330px bottom !important;\n}\nli.sexy-facebook:hover {\n	background-position:-1330px top !important;\n}\nli.sexy-mixx {\n	background-position:-840px bottom !important;\n}\nli.sexy-mixx:hover {\n	background-position:-840px top !important;\n}\nli.sexy-scriptstyle {\n	background-position:-280px bottom !important;\n}\nli.sexy-scriptstyle:hover {\n	background-position:-280px top !important;\n}\nli.sexy-designfloat {\n	background-position:-1050px bottom !important;\n}\nli.sexy-designfloat:hover {\n	background-position:-1050px top !important;\n}\nli.sexy-newsvine {\n	background-position:left bottom !important;\n}\nli.sexy-newsvine:hover {\n	background-position:left top !important;\n}\nli.sexy-google {\n	background-position:-210px bottom !important;\n}\nli.sexy-google:hover {\n	background-position:-210px top !important;\n}\nli.sexy-comfeed {\n	background-position:-420px bottom !important;\n}\nli.sexy-comfeed:hover {\n	background-position:-420px top !important;\n}\nli.sexy-mail {\n	background-position:-350px bottom !important;\n}\nli.sexy-mail:hover {\n	background-position:-350px top !important;\n}\nli.sexy-devmarks {\n	background-position:-140px bottom !important;\n}\nli.sexy-devmarks:hover {\n	background-position:-140px top !important;\n}\nli.sexy-linkedin {\n	background-position:-70px bottom !important;\n}\nli.sexy-linkedin:hover {\n	background-position:-70px top !important;\n}\nli.sexy-misterwong {\n	background-position:-1400px bottom !important;\n}\nli.sexy-misterwong:hover {\n	background-position:-1400px top !important;\n}\nli.sexy-izeby {\n	background-position:-1470px bottom !important;\n}\nli.sexy-izeby:hover {\n	background-position:-1470px top !important;\n}\nli.sexy-twittley {\n	background-position:-1540px bottom !important;\n}\nli.sexy-twittley:hover {\n	background-position:-1540px top !important;\n}\nli.sexy-tipd {\n	background-position:-1610px bottom !important;\n}\nli.sexy-tipd:hover {\n	background-position:-1610px top !important;\n}\nli.sexy-pfbuzz {\n	background-position:-1680px bottom !important;\n}\nli.sexy-pfbuzz:hover {\n	background-position:-1680px top !important;\n}\nli.sexy-friendfeed {\n	background-position:-1750px bottom !important;\n}\nli.sexy-friendfeed:hover {\n	background-position:-1750px top !important;\n}\nli.sexy-blogmarks {\n	background-position:-1820px bottom !important;\n}\nli.sexy-blogmarks:hover {\n	background-position:-1820px top !important;\n}\nli.sexy-fwisp {\n	background-position:-1890px bottom !important;\n}\nli.sexy-fwisp:hover {\n	background-position:-1890px top !important;\n}\nli.sexy-designmoo {\n	background-position:-1960px bottom !important;\n}\nli.sexy-designmoo:hover {\n	background-position:-1960px top !important;\n}\nli.sexy-bobrdobr {\n	background-position:-2030px bottom !important;\n}\nli.sexy-bobrdobr:hover {\n	background-position:-2030px top !important;\n}\nli.sexy-memoryru {\n	background-position:-2100px bottom !important;\n}\nli.sexy-memoryru:hover {\n	background-position:-2100px top !important;\n}\nli.sexy-100zakladok {\n	background-position:-2170px bottom !important;\n}\nli.sexy-100zakladok:hover {\n	background-position:-2170px top !important;\n}\nli.sexy-yandex {\n	background-position:-2240px bottom !important;\n}\nli.sexy-yandex:hover {\n	background-position:-2240px top !important;\n}\nli.sexy-moemesto {\n	background-position:-2310px bottom !important;\n}\nli.sexy-moemesto:hover {\n	background-position:-2310px top !important;\n}\nli.sexy-marrows {\n	background-position:-2380px bottom !important;\n}\nli.sexy-marrows:hover {\n	background-position:-2380px top !important;\n}\nli.sexy-identica {\n	background-position:-2450px bottom !important;\n}\n\ni.sexy-identica:hover {\n	background-position:-2450px top !important;\n}\nli.sexy-hackernews {\n	background-position:-2520px bottom !important;\n}\nli.sexy-hackernews:hover {\n	background-position:-2520px top !important;\n}\nli.sexy-ning {\n	background-position:-2590px bottom !important;\n}\nli.sexy-ning:hover {\n	background-position:-2590px top !important;\n}\nli.sexy-designbump {\n	background-position:-2660px bottom !important;\n}\nli.sexy-designbump:hover {\n	background-position:-2660px top !important;\n}\nli.sexy-printfriendly {\n	background-position:-2730px bottom !important;\n}\nli.sexy-printfriendly:hover {\n	background-position:-2730px top !important;\n}\nli.sexy-fleck{\n	background-position:-2800px bottom !important;\n}\nli.sexy-fleck:hover{\n	background-position:-2800px top !important;\n}\nli.sexy-netvibes{\n	background-position:-2870px bottom !important;\n}\nli.sexy-netvibes:hover{\n	background-position:-2870px top !important;\n}\nli.sexy-netvouz{\n	background-position:-2940px bottom !important;\n}\nli.sexy-netvouz:hover{\n	background-position:-2940px top !important;\n}\nli.sexy-nujij{\n	background-position:-3010px bottom !important;\n}\nli.sexy-nujij:hover{\n	background-position:-3010px top !important;\n}\nli.sexy-globalgrind{\n	background-position:-3080px bottom !important;\n}\nli.sexy-globalgrind:hover{\n	background-position:-3080px top !important;\n}\nli.sexy-wikio{\n	background-position:-3150px bottom !important;\n}\nli.sexy-wikio:hover{\n	background-position:-3150px top !important;\n}\nli.sexy-xerpi{\n	background-position:-3220px bottom !important;\n}\nli.sexy-xerpi:hover{\n	background-position:-3220px top !important;\n}\nli.sexy-sphinn{\n	background-position:-3290px bottom !important;\n}\nli.sexy-sphinn:hover{\n	background-position:-3290px top !important;\n}\nli.sexy-blogospherenews{\n	background-position:-3360px bottom !important;\n}\nli.sexy-blogospherenews:hover{\n	background-position:-3360px top !important;\n}\nli.sexy-posterous{\n	background-position:-3430px bottom !important;\n}\nli.sexy-posterous:hover{\n	background-position:-3430px top !important;\n}\nli.sexy-techmeme{\n	background-position:-3500px bottom !important;\n}\nli.sexy-techmeme:hover{\n	background-position:-3500px top !important;\n}\nli.sexy-ekudos{\n	background-position:-3570px bottom !important;\n}\nli.sexy-ekudos:hover{\n	background-position:-3570px top !important;\n}\nli.sexy-pingfm{\n	background-position:-3640px bottom !important;\n}\nli.sexy-pingfm:hover{\n	background-position:-3640px top !important;\n}\nli.sexy-tomuse{\n	background-position:-3710px bottom !important;\n}\nli.sexy-tomuse:hover {\n	background-position:-3710px top !important;\n}";return this.Gz()+Iz;});Uia.wy.b("Jz",function(){return this.Ky;});Uia.wy.b("Sp",function(Kz){this.Ky.Xc(Kz);});Uia.wy.b("Lz",function(){return this.Dy.Zc();});Uia.wy.b("Mz",function(){return this.Dy;});Uia.wy.b("Nz",function(Oz){this.Dy.Xc(Oz);});Uia.wy.b("az",function(){return this.Jy.Zc();});Uia.wy.b("Pz",function(){return this.Jy;});Uia.wy.b("Qz",function(Rz){this.Jy.Xc(Rz);});Uia.wy.b("Sz",function(){return this.Ly.Zc();});Uia.wy.b("Tz",function(){return this.Ly;});Uia.wy.b("Uz",function(Vz){this.Ly.Xc(Vz);});Uia.wy.b("sz",function(){return this.By.Zc();});Uia.wy.b("Wz",function(){return this.By;});Uia.wy.b("rz",function(Xz){this.By.Xc(Xz);});Uia.wy.b("uz",function(){return this.zy;});Uia.wy.b("tz",function(Yz){this.zy=Yz;});Uia.wy.b("getName",function(){return this.Ay.Zc();});Uia.wy.b("Zz",function(){return this.Ay;});Uia.wy.b("Rs",function(Ss){this.Ay.Xc(Ss);});Uia.wy.b("Rw",function(){return this.Cy;});Uia.wy.b("aA",function(){if(!this.bA){this.cA=new Uia.Wg(this.Rw(),function(hj){return(!hj.dA())});this.bA=new Uia.eA(this.cA);this.bA.fA(function(lx){return lx.Ie()=="PageBreak"});}
return this.bA;});Uia.wy.b("gA",function(){var hA=1;var iA=this.Rw();for(var F=0;F<iA.length();F++){if(iA.ef(F).Ie()=="PageBreak"){hA++;}}
return hA;});Uia.wy.b("jA",function(){return this.Gy;});Uia.wy.b("cz",function(){if(!this.kA){this.kA=new Uia.Wg(this.Gy,this.Fc("Xy")).oe(false);}
return this.kA;});Uia.wy.b("lA",function(wz){var mA=this.jA().Zc();for(var F=0;F<mA.length;F++){if(mA[F].Ts().toString()===wz.toString()){return mA[F];}}
return null;});Uia.wy.b("nA",function(){var oA=false;var F=1;var pA="Collection ";while(!oA){oA=true;for(var lb=0;lb<this.jA().length();lb++){if(this.jA().ef(lb).getName()==pA+F){oA=false;F++;break;}}}
return pA+F;});Uia.wy.b("Oy",function(qA){var rA=Uia.H(qA)?false:qA;var Xz="";if(!rA){Xz="<Status>"+this.sz()+"</Status>";}
var sA="<Survey><Id>"+this.Ts()+"</Id><Name><![CDATA["+this.getName()+"]]></Name><LinkId>"+this.uz()+"</LinkId>"+Xz+this.tA()+"<Questions>";var uA=1;this.Sw();for(var F=0;F<this.Rw().length();F++){var lx=this.Rw().ef(F);if(lx.Ie()=="PageBreak"){uA++;}
else if(lx.Ie().indexOf("QuestionInserter")==-1){sA+=lx.Oy(uA,rA);}}
sA+="</Questions></Survey>";return sA;});Uia.wy.b("tA",function(){var mx={"nextButtonText":this.Lz(),style:this.Gz()};return"<State><![CDATA["+Uia.j()["JSON"]["stringify"](mx)+"]]></State>";});Uia.wy.b("vA",function(){if(this.mz){this.mz.lk(false);}});Uia.wy.b("wA",function(){if(this.mz&&this.mz.fj()){return this.mz;}else{return null;}});Uia.wy.b("xA",function(lx,mk){if(mk&&this.mz&&this.mz!=lx){this.mz.nk().Xc(false);}
if(mk){this.mz=lx;}
lx.nk().Xc(mk);});Uia.wy.b("yA",function(lx,zA){if(zA&&this.AA&&this.AA!=lx){this.AA.BA().Xc(false);}
if(zA){this.AA=lx;}
lx.BA().Xc(zA);});Uia.wy.b("CA",function(ux){var sA=ux.Oy();var DA=Uia.uk(sA);if(DA["aSurvey"][0]["aQuestions"]){var EA=DA["aSurvey"][0]["aQuestions"][0]["aQuestion"];this.FA(EA,false);}else{throw new Error("no questions in survey xml");}});Uia.wy.b("GA",function(sA,HA){var Re=this.Te(),F,wz;this.Qe(null);var DA=Uia.uk(sA);if(DA["aError"]){this.Rs("Can't show survey");var IA=new Uia.Uy(DA["aError"][0].content,this);this.Rw().Xc([IA]);return false;}
if(!HA){this.vz(new Number(DA["aSurvey"][0]["aId"][0].content));this.rz(DA["aSurvey"][0]["aStatus"][0].content);}
this.tz(DA["aSurvey"][0]["aLinkId"][0].content);var Ss=DA["aSurvey"][0]["aName"][0].content;if(Uia.H(Ss)){Ss="";}
this.Rs(Ss);if(DA["aSurvey"][0]["aQuestions"]){var EA=DA["aSurvey"][0]["aQuestions"][0]["aQuestion"];this.FA(EA);}
if(DA["aSurvey"][0]["aState"]){var tx=new Function("{ return "+DA["aSurvey"][0]["aState"][0].content+"}")();if(tx["nextButtonText"]){this.Nz(tx["nextButtonText"]);}
if(tx["style"]){this.Sp(tx["style"]);}}
if(DA["aSurvey"][0]["aResponseCollections"]){var JA=DA["aSurvey"][0]["aResponseCollections"][0]["aResponseCollection"];if(JA){for(var F=0;F<JA.length;F++){wz=new Number(JA[F]["aId"][0].content);var Ss=JA[F]["aName"][0].content;var Yz=JA[F]["aLinkId"][0].content;var Xz=JA[F]["aStatus"][0].content;var KA=JA[F]["aPasswordPrompt"][0].content;var LA=JA[F]["aReportPassword"][0].content;var MA=JA[F]["aIsShared"][0].content.toLowerCase()=="true";var NA=JA[F]["aSurveyPassword"][0].content;var OA=JA[F]["aOneResponsePerComputer"][0].content.toLowerCase()=="true";var PA=new Number(JA[F]["aResponseCount"][0].content)
var QA=new Number(JA[F]["aNewResponseCount"][0].content);var Yy=new Uia.RA(this,wz,Ss,Yz,Xz,KA,LA,MA,NA,PA,QA,OA);this.Gy.push(Yy);}}
this.Ez(true);}
this.Qe(Re);return true;});Uia.wy.b("FA",function(EA,SA){var TA=Uia.H(SA)?true:SA;var UA=1;if(EA){var VA="1",lb=0,F,wz,Ry=[],WA=[],XA=[];this.Bz(false);for(var F=0;F<EA.length;F++){if(VA!=EA[F].attributes["page"]){Ry.push(new Uia.Ty(this));VA=EA[F].attributes["page"];UA++;}
var lx,De=EA[F].attributes["type"];fz=new Number(EA[F].attributes["position"]);if(fz>(UA+1)){Uia.c("Uia.Survey.unserializeQuestions: Expected position: "+(UA+1)+", Actual position: "+fz+" inserting dummy");while(fz>(UA+1)){lx=new Uia.Uy("",this);Ry.push(lx);XA.push(lx);UA++;}}
UA=fz;switch(De){case"LeadText":lx=new Uia.Uy(Uia.sk(EA[F]["aQuestionText"][0].content),this);break;case"Text":lx=new Uia.YA(Uia.sk(EA[F]["aQuestionText"][0].content),this,EA[F].attributes["isMultipleLine"]=="True");break;case"SingleSelect":case"MultipleSelect":lx=new Uia.ZA(De,Uia.sk(EA[F]["aQuestionText"][0].content),this);if(EA[F]["aOptions"][0]["aOption"]){for(lb=0;lb<EA[F]["aOptions"][0]["aOption"].length;lb++){wz=0;if(TA&&EA[F]["aOptions"][0]["aOption"][lb]["aId"]){wz=parseInt(EA[F]["aOptions"][0]["aOption"][lb]["aId"][0].content);}
var aB=(EA[F]["aOptions"][0]["aOption"][lb].attributes["hasOther"]=="True");lx.bB(Uia.sk(EA[F]["aOptions"][0]["aOption"][lb]["aOptionText"][0].content),aB).vz(wz);}}
break;case"Matrix":var cB=(EA[F].attributes["ratingWidth"])?parseInt(EA[F].attributes["ratingWidth"]):0;lx=new Uia.dB("",this,cB,EA[F].attributes["hasEvenlySpacedRatings"]=="True");if(EA[F]["aRatings"][0]["aRating"]){for(lb=0;lb<EA[F]["aRatings"][0]["aRating"].length;lb++){wz=0;if(TA&&EA[F]["aRatings"][0]["aRating"][lb]["aId"]){wz=parseInt(EA[F]["aRatings"][0]["aRating"][lb]["aId"][0].content);}
lx.eB(Uia.sk(EA[F]["aRatings"][0]["aRating"][lb]["aRatingText"][0].content)).vz(wz);}}
if(EA[F]["aOptions"][0]["aOption"]){for(lb=0;lb<EA[F]["aOptions"][0]["aOption"].length;lb++){wz=0;if(TA&&EA[F]["aOptions"][0]["aOption"][lb]["aId"]){wz=parseInt(EA[F]["aOptions"][0]["aOption"][lb]["aId"][0].content);}
lx.bB(Uia.sk(EA[F]["aOptions"][0]["aOption"][lb]["aOptionText"][0].content)).vz(wz);}}
break;}
if(EA[F]["aState"]){var tx=new Function("{ return "+EA[F]["aState"][0].content+"}")();if(tx["hideRules"]&&Uia.Nw){WA.push({lx:lx,fB:tx["hideRules"]});}
lx.sx(tx);}
if(TA&&EA[F]["aId"]){lx.vz(parseInt(EA[F]["aId"][0].content));}
Ry.push(lx);}
this.kz=true;this.Rw().Xc(Ry);this.kz=false;for(F=0;F<WA.length;F++){WA[F].lx.gB().sx(WA[F].fB);}
while(XA.hB>0){var iB=XA.pop();this.Rw().Yb(iB);}
this.Sw();this.Bz(true);}});Uia.pb("jB",function(kB){if(Uia.Bc(this,arguments)){return this;}
Uia.mf.call(this);this.lB=kB;this.ik=new Uia.Rd(false);this.mB=new Uia.Rd(false);this.nB=new Uia.Rd(false);this.oB=this.tf(new Uia.ai("None"));});Uia.jB.ub(Uia.mf);Uia.jB.b("dA",function(){return this.pB;});Uia.jB.b("qB",function(rB){this.pB=rB;return this;});Uia.jB.b("Ie",function(){return this.oB.Zc();});Uia.jB.b("Sx",function(){return this.oB;});Uia.jB.b("sB",function(n){return this.oB.Xc(n);});Uia.jB.b("Qw",function(){return this.lB;});Uia.jB.b("tB",function(ux){this.lB=ux;return this;});Uia.jB.b("uB",function(vB){this.mB.Xc(vB);return this;});Uia.jB.b("wB",function(){return this.mB;});Uia.jB.b("xB",function(){return this.mB.Zc();});Uia.jB.b("lk",function(mk){var lx=this;if(this.Ie()=="PageBreak"){lx=this.Qw().Rw().ef(this.Qw().Rw().Jb(lx)+1);}
this.Qw().xA(lx,mk);return this;});Uia.jB.b("nk",function(){return this.ik;});Uia.jB.b("fj",function(){return this.ik.Zc();});Uia.jB.b("yB",function(){return this.nB.Zc();});Uia.jB.b("zB",function(zA){this.Qw().yA(this,zA);return this;});Uia.jB.b("BA",function(){return this.nB;});Uia.jB.b("AB",function(){if(Uia.H(this.lB))return true;var iA=this.lB.Rw();return iA.ef(iA.length()-1)==this;});Uia.jB.b("BB",function(){if(Uia.H(this.lB))return true;var iA=this.lB.Rw();return iA.ef(0)==this;});Uia.jB.b("CB",function(){if(!this.dA()){return!this.BB();}else{var iA=this.Qw().Rw();var DB=this.dA()
var F;for(F=iA.Jb(this)-1;F>=0&&iA.ef(F).dA()!=DB;F--);return(F!=-1);}});Uia.jB.b("EB",function(){if(!this.dA()){return!this.AB();}else{var F=this.FB();var iA=this.Qw().Rw();if(iA.ef(F).AB()){return false;}
return iA.ef(F+1).dA()==this.dA();}});Uia.jB.b("FB",function(){return this.Qw().Rw().Jb(this);});Uia.jB.b("GB",function(){if(!this.CB()){throw new Error("Can't move previous");}
var iA=this.Qw().Rw();var DB=this.dA()
var F;for(F=iA.Jb(this)-1;iA.ef(F).dA()!=DB;F--);var HB=iA.ef(F);this.IB(HB);});Uia.jB.b("insertBefore",function(JB){JB.qB(this.dA());this.Qw().Rw().insertBefore(JB,this);});Uia.jB.b("IB",function(KB){var iA=this.Qw().Rw();var Ry=Uia.Ib.cc(iA.Zc());var w=iA.Jb(this),LB=this.FB();Uia.c("intFromIndex:"+w+", intToIndex: "+LB);Uia.Ib.MB(Ry,w,LB,KB);iA.Xc(Ry);});Uia.Ib.MB=function(Rb,w,LB,NB){var OB=Rb.splice(w,LB-w+1);Uia.c("Moving: "+OB.length+" elements");var PB=Uia.Ib.Jb(Rb,NB);OB.unshift(0);OB.unshift(PB);Rb.splice.apply(Rb,OB);Uia.c("intNewIndex:"+PB);}
Uia.jB.b("QB",function(){if(!this.EB()){throw new Error("Can't move next");}
var iA=this.Qw().Rw();var DB=this.dA()
var F;for(F=iA.Jb(this)+1;iA.ef(F).dA()!=DB;F++);var RB=iA.ef(F);this.SB(RB);});Uia.jB.b("Zb",function(JB){JB.qB(this.dA());var TB=this.FB();var iA=this.Qw().Rw();var UB=iA.ef(TB);iA.Zb(JB,UB);});Uia.jB.b("SB",function(VB){var TB=VB.FB();var iA=this.Qw().Rw();var UB=iA.ef(TB);var Ry=Uia.Ib.cc(iA.Zc());var w=iA.Jb(this),LB=this.FB();Uia.c("intFromIndex:"+w+", intToIndex: "+LB);Uia.Ib.WB(Ry,w,LB,UB);iA.Xc(Ry);});Uia.Ib.WB=function(Rb,w,LB,XB){var OB=Rb.splice(w,LB-w+1);Uia.c("Moving: "+OB.length+" elements");var PB=Uia.Ib.Jb(Rb,XB);OB.unshift(0);OB.unshift(PB+1);Rb.splice.apply(Rb,OB);Uia.c("intNewIndex:"+(PB+1));}
Uia.pb("YB",function(ZB,kB){if(Uia.Bc(this,arguments)){return this;}
Uia.jB.call(this,kB);this.aC=0;this.bC=new Uia.Rc(0);this.cC=new Uia.Rc(0);var dC=ZB||"";this.eC=this.tf(new Uia.ai(dC));this.fC=this.tf(new Uia.Rd(false));});Uia.YB.ub(Uia.jB);Uia.YB.b("Ts",function(){return this.aC;});Uia.YB.b("Vy",function(Wy){this.gC(Wy(this.px()));});Uia.YB.b("vz",function(wz){this.aC=wz;return this;});Uia.YB.b("gB",function(){if(!this.hC){this.hC=this.tf(new Uia.hy(this));}
return this.hC;});Uia.YB.b("ny",function(oy){if(!this.hC){return false;}else{return this.hC.ny(oy);}});Uia.YB.b("iC",function(){return this.bC.Zc();});Uia.YB.b("jC",function(){return this.bC;});Uia.YB.b("jz",function(kC){this.bC.Xc(kC);return this;});Uia.YB.b("nx",function(){return this.cC.Zc();});Uia.YB.b("lC",function(){return this.cC;});Uia.YB.b("iz",function(fz){this.cC.Xc(fz);return this;});Uia.YB.b("mC",function(nC){this.fC.Xc(nC);return this;});Uia.YB.b("oC",function(){return this.fC;});Uia.YB.b("pC",function(){return this.fC.Zc();});Uia.YB.b("qC",function(mk){var iA=this.lB.Rw();for(var F=iA.Jb(this)-1;F>=0;F--){var lx=iA.ef(F);switch(lx.Ie()){case"SingleSelect":case"MultipleSelect":case"Matrix":return lx;}}
return null;});Uia.YB.b("rC",function(n){return this.eC;});Uia.YB.b("px",function(){return this.eC.Zc();});Uia.YB.b("gC",function(n){return this.eC.Xc(n);});Uia.YB.b("tA",function(){var mx=this.jx();return"<State><![CDATA["+Uia.j()["JSON"]["stringify"](mx)+"]]></State>";});Uia.YB.b("jx",function(){var mx={};if(this.hC&&this.hC.length()>0){mx["hideRules"]=this.hC.jx();}
if(this.pC()){mx["required"]=true;}
return mx;});Uia.YB.b("sx",function(tx){if(tx["required"]){this.mC(tx["required"]);}});Uia.sC=0;Uia.tC=function(){return new Date().getTime()+"_"+Uia.sC++;}
Uia.pb("Ty",function(kB){if(Uia.Bc(this,arguments)){return this;}
Uia.YB.call(this,"",kB);this.sB("PageBreak");});Uia.Ty.b("cc",function(){return new Uia.Ty();});Uia.Ty.ub(Uia.YB);Uia.pb("Uy",function(uC,kB){if(Uia.Bc(this,arguments)){return this;}
Uia.YB.call(this,uC,kB);this.sB("LeadText");});Uia.Uy.ub(Uia.YB);Uia.Uy.b("cc",function(){return new Uia.Uy(this.px());});Uia.Uy.b("Oy",function(uA){var fz=this.nx();return"<Question type=\"LeadText\" position=\""+fz+"\" page=\""+uA+"\">"+"<Id>"+this.Ts()+"</Id>"+"<QuestionText><![CDATA["+this.px()+"]]></QuestionText>"+this.tA()+"</Question>";});Uia.pb("ZA",function(De,ZB,kB){if(Uia.Bc(this,arguments)){return this;}
Uia.YB.call(this,ZB,kB);this.sB(De);this.vC=this.tf(new Uia.Ze([]));this.vC.Tc(this,this.Vx);});Uia.ZA.ub(Uia.YB);Uia.ZA.sb("FB",function(){var Cx=this.xx().Zc();for(var F=Cx.length-1;F>=0;F--){var wC=Cx[F].xC().Zc();Uia.c("aFollowups.length: "+wC.length);if(wC.length>0){return wC[wC.length-1].FB();}}
return this.tc("FB");});Uia.ZA.b("Qy",function(){var Cx=this.xx().Zc(),yC=[];if(Cx.length>1){var zC=new RegExp("\s|(\\&nbsp;)","gmi");for(var F=0;F<Cx.length;F++){var ay=Cx[F],AC=ay.BC().replace(zC,"");if(AC==""){yC.push(ay);}}
if(yC.length==Cx.length){yC.pop();}
for(var F=0;F<yC.length;F++){this.xx().Yb(yC[F]);}}});Uia.ZA.b("Vx",function(){var Cx=this.xx().Zc(),fz=1;for(var F=0;F<Cx.length;F++){var ay=Cx[F];ay.iz(fz);fz++;}});Uia.ZA.b("cc",function(){var CC=new Uia.ZA(this.Ie(),this.px()),qx=this.xx().Zc();for(var F=0;F<qx.length;F++){var DC=qx[F];CC.bB(DC.BC(),DC.EC());}
return CC;});Uia.ZA.sb("Vy",function(Wy){this.tc("Vy",Wy);var Cx=this.xx().Zc();for(var F=0;F<Cx.length;F++){var ay=Cx[F];ay.Vy(Wy);}});Uia.ZA.b("Oy",function(uA){var sA,fz=this.nx();sA="<Question type=\""+this.Ie()+"\" position=\""+fz+"\" page=\""+uA+"\">"+"<Id>"+this.Ts()+"</Id>"+"<QuestionText><![CDATA["+this.px()+"]]></QuestionText>"+"<Options>";for(var F=0;F<this.vC.length();F++){sA+=this.vC.ef(F).Oy(F)
}
sA+="</Options>"+this.tA()+"</Question>";return sA;});Uia.ZA.b("bB",function(FC,GC){var HC=new Uia.ox(this,FC,GC);if(!this.EC()){this.vC.push(HC);}else{if(Uia.T(GC))throw new Error("Can't have two options with other option");this.vC.insertBefore(HC,this.vC.ef(this.vC.length()-1));}
return HC;});Uia.ZA.b("IC",function(JC,KC){if(KC.EC()){throw new Error("Can't insert option after option with other");}
var HC=new Uia.ox(this,JC,false);this.vC.Zb(HC,KC);return HC;});Uia.ZA.b("xx",function(){return this.vC;});Uia.ZA.b("EC",function(){if(this.xx().length()>0){return this.xx().ef(this.xx().length()-1).EC();}
return false;});Uia.ZA.b("LC",function(){if(this.EC()){return this.xx().ef(this.xx().length()-1);}else{return null;}
return false;});Uia.pb("ox",function(MC,NC,GC){if(Uia.Bc(this,arguments)){return this;}
Uia.mf.call(this);this.OC=Uia.T(GC)?true:false;this.aC=0;var JC=NC||"";this.PC=this.tf(new Uia.ai(JC));this.QC=this.tf(new Uia.uh(MC,true));this.cC=new Uia.Rc(0);});Uia.ox.ub(Uia.mf);Uia.ox.b("Oy",function(){var fz=this.nx();var RC=(this.EC())?"True":"False";return"<Option position=\""+fz+"\" hasOther=\""+RC+"\">"+"<Id>"+this.Ts()+"</Id>"+"<OptionText><![CDATA["+this.BC()+"]]></OptionText></Option>";});Uia.ox.b("Vy",function(Wy){this.SC(Wy(this.BC()));});Uia.ox.b("xC",function(){if(!this.TC){var Cc=this;this.TC=new Uia.Ze([]);}
return this.TC;});Uia.ox.b("remove",function(){this.px().xx().Yb(this);return this;});Uia.ox.b("Ts",function(){return this.aC;});Uia.ox.b("vz",function(wz){this.aC=wz;return this;});Uia.ox.b("gy",function(wz){var zq="o"+this.Ts();if(zq=="o0"){zq="o"+this.px().nx()+"_"+this.nx();}
return zq;});Uia.ox.b("EC",function(){return this.OC;});Uia.ox.b("UC",function(aB){this.OC=aB;return this;});Uia.ox.b("VC",function(){if(this.EC())throw new Error("Can't move other option")
var ic=this.px().xx().Jb(this);if(ic>0){this.px().xx().Qb(ic,ic-1);return true;}
return false;});Uia.ox.b("WC",function(){if(this.EC())throw new Error("Can't move other option")
ic=this.px().xx().Jb(this);if(!Uia.H(this.px().EC)&&this.px().EC()&&ic==(this.px().xx().length()-2)){return false;}
if(ic<(this.px().xx().length()-1)){this.px().xx().Qb(ic,ic+1);return true;}
return false;});Uia.ox.b("XC",function(){return this.PC;});Uia.ox.b("BC",function(){return this.PC.Zc();});Uia.ox.b("SC",function(JC){this.PC.Xc(JC);return this;});Uia.ox.b("px",function(JC){return this.QC.Zc();});Uia.ox.b("gC",function(lx){this.QC.Xc(lx);return this;});Uia.ox.b("Qw",function(){return this.px().Qw();});Uia.ox.b("nx",function(){return this.cC.Zc();});Uia.ox.b("lC",function(){return this.cC;});Uia.ox.b("iz",function(fz){this.cC.Xc(fz);return this;});Uia.pb("YA",function(ZB,kB,YC){if(Uia.Bc(this,arguments)){return this;}
Uia.YB.call(this,ZB,kB);var ZC=Uia.H(YC)?true:YC;this.aD=this.tf(new Uia.Rd(ZC));this.bD=this.tf(new Uia.Rd(false));this.cD=this.tf(new Uia.Rd(false));this.dD=this.tf(new Uia.ai(""));this.eD=this.tf(new Uia.ai(""));this.fD=this.tf(new Uia.ai(""));this.sB("Text");});Uia.YA.ub(Uia.YB);Uia.YA.b("cc",function(){return new Uia.YA(this.px(),undefined,this.gD());});Uia.YA.b("gy",function(){var zq="t"+this.Ts();if(zq=="t0"){zq="t"+this.nx();}
return zq;});Uia.YA.b("gD",function(){return this.aD.Zc();});Uia.YA.b("hD",function(ZC){this.aD.Xc(ZC);return this;});Uia.YA.b("iD",function(){return this.aD;});Uia.YA.b("jD",function(){return this.bD.Zc();});Uia.YA.b("kD",function(lD){this.bD.Xc(lD);return this;});Uia.YA.b("mD",function(){return this.bD;});Uia.YA.b("nD",function(){return this.cD.Zc();});Uia.YA.b("oD",function(pD){this.cD.Xc(pD);return this;});Uia.YA.b("qD",function(){return this.cD;});Uia.YA.b("rD",function(){return this.dD.Zc();});Uia.YA.b("sD",function(tD){this.dD.Xc(tD);return this;});Uia.YA.b("uD",function(){return this.dD;});Uia.YA.b("vD",function(){return this.eD.Zc();});Uia.YA.b("wD",function(xD){this.eD.Xc(xD);return this;});Uia.YA.b("yD",function(){return this.eD;});Uia.YA.b("zD",function(){return this.fD.Zc();});Uia.YA.b("AD",function(BD){this.fD.Xc(BD);return this;});Uia.YA.b("CD",function(){return this.fD;});Uia.YA.b("Oy",function(uA){var fz=this.nx();var DD=this.gD()?"True":"False";return"<Question type=\"Text\" isMultipleLine=\""+DD+"\" position=\""+fz+"\" page=\""+uA+"\">"+"<Id>"+this.Ts()+"</Id>"+"<QuestionText><![CDATA["+this.px()+"]]></QuestionText>"+this.tA()+"</Question>";});Uia.YA.sb("jx",function(){var hj=this.tc("jx");hj["subType"]=this.zD();hj["prefixEnabled"]=this.jD();hj["postfixEnabled"]=this.nD();hj["postfix"]=this.vD();hj["prefix"]=this.rD();return hj;});Uia.YA.sb("sx",function(tx){this.tc("sx",tx);if(tx["subType"]){this.AD(tx["subType"]);}
if(tx["prefixEnabled"]){this.kD(tx["prefixEnabled"]);}
if(tx["postfixEnabled"]){this.oD(tx["postfixEnabled"]);}
if(tx["postfix"]){this.wD(tx["postfix"]);}
if(tx["prefix"]){this.sD(tx["prefix"]);}});Uia.pb("dB",function(ZB,kB,ED,FD){if(Uia.Bc(this,arguments)){return this;}
Uia.YB.call(this,ZB,kB);this.sB("Matrix");this.GD=this.tf(new Uia.Ze([]));this.GD.Tc(this,this.Tx);this.vC=this.tf(new Uia.Ze([]));this.vC.Tc(this,this.Vx);this.HD=new Uia.Rc(ED||0);var JD=Uia.T(FD)||Uia.H(FD);this.KD=this.tf(new Uia.Rd(JD));});Uia.dB.ub(Uia.YB);Uia.dB.sb("Vy",function(Wy){this.tc("Vy",Wy);var Cx=this.xx().Zc();for(var F=0;F<Cx.length;F++){var ay=Cx[F];ay.Vy(Wy);}
var zx=this.Ax().Zc();for(var F=0;F<zx.length;F++){var cy=zx[F];cy.Vy(Wy);}});Uia.dB.b("Qy",function(){var Cx=this.xx().Zc(),yC=[];if(Cx.length>1){var zC=new RegExp("\s|(\\&nbsp;)","gmi");for(var F=0;F<Cx.length;F++){var ay=Cx[F],AC=ay.BC().replace(zC,"");if(AC==""){yC.push(ay);}}
if(yC.length==Cx.length){yC.pop();}
for(var F=0;F<yC.length;F++){this.xx().Yb(yC[F]);}}
var zx=this.Ax().Zc(),yC=[];if(zx.length>1){var zC=new RegExp("\s|(\\&nbsp;)","gmi");for(var F=0;F<zx.length;F++){var cy=zx[F],LD=cy.BC().replace(zC,"");if(LD==""){yC.push(cy);}}
if(yC.length==zx.length){yC.pop();}
for(var F=0;F<yC.length;F++){this.Ax().Yb(yC[F]);}}});Uia.dB.b("Vx",function(){var Cx=this.xx().Zc(),fz=1;for(var F=0;F<Cx.length;F++){var ay=Cx[F];ay.iz(fz);fz++;}});Uia.dB.b("Tx",function(){var zx=this.Ax().Zc(),fz=1;for(var F=0;F<zx.length;F++){var cy=zx[F];cy.iz(fz);fz++;}});Uia.dB.b("cc",function(){var CC=new Uia.dB(this.px()),MD=this.xx().Zc(),zx=this.Ax().Zc();for(var F=0;F<MD.length;F++){var wx=MD[F];CC.bB(wx.BC());}
for(var F=0;F<zx.length;F++){var cy=zx[F];CC.eB(cy.BC());}
CC.ND(this.OD());return CC;});Uia.dB.b("Oy",function(uA,rA){var sA,F;var fz=this.nx();var PD=this.OD()?"True":"False";sA="<Question type=\"Matrix\" position=\""+fz+"\" hasEvenlySpacedRatings=\""+PD+"\"";if(!rA){sA+=" ratingWidth=\""+this.QD()+"\"";}
sA+=" page=\""+uA+"\">"+"<Id>"+this.Ts()+"</Id>"+"<QuestionText><![CDATA["+this.px()+"]]></QuestionText>"+"<Ratings>";for(var F=0;F<this.GD.length();F++){sA+=this.GD.ef(F).Oy()
}
sA+="</Ratings><Options>";for(var F=0;F<this.vC.length();F++){sA+=this.vC.ef(F).Oy()
}
sA+="</Options>"+this.tA()+"</Question>";return sA;});Uia.dB.b("eB",function(RD){var SD=new Uia.TD(this,RD);this.GD.push(SD);return SD;});Uia.dB.b("UD",function(VD,WD){var SD=new Uia.TD(this,VD);this.GD.Zb(SD,WD);return SD;});Uia.dB.b("Ax",function(){return this.GD;});Uia.dB.b("QD",function(){return this.HD.Zc();});Uia.dB.b("XD",function(cB){return this.HD.Xc(cB);});Uia.dB.b("OD",function(){return this.KD.Zc();});Uia.dB.b("YD",function(){return this.KD;});Uia.dB.b("ND",function(JD){this.KD.Xc(JD);return this;});Uia.dB.b("bB",function(ZD){var HC=new Uia.ox(this,ZD);this.vC.push(HC);return HC;});Uia.dB.b("IC",function(JC,KC){var HC=new Uia.ox(this,JC,false);this.vC.Zb(HC,KC);return HC;});Uia.dB.b("xx",function(){return this.vC;});Uia.pb("TD",function(aE,NC){if(Uia.Bc(this,arguments)){return this;}
Uia.ox.call(this,aE,NC);});Uia.TD.ub(Uia.ox);Uia.TD.sb("gy",function(wz){var zq="r"+this.Ts();if(zq=="r0"){zq="r"+this.px().nx()+"_"+this.nx();}
return zq;});Uia.TD.sb("Oy",function(){var fz=this.nx();return"<Rating position=\""+fz+"\">"+"<Id>"+this.Ts()+"</Id>"+"<RatingText><![CDATA["+this.BC()+"]]></RatingText></Rating>";});Uia.TD.sb("remove",function(){this.px().Ax().Yb(this);});Uia.TD.b("bE",function(){var ic=this.px().Ax().Jb(this);if(ic>0){this.px().Ax().Qb(ic,ic-1);return true;}
return false;});Uia.TD.b("cE",function(){ic=this.px().Ax().Jb(this);if(ic<(this.px().Ax().length()-1)){this.px().Ax().Qb(ic,ic+1);return true;}
return false;});Uia.TD.sb("VC",function(){throw new Error("Not for ratings");});Uia.TD.sb("WC",function(){throw new Error("Not for ratings");});Uia.pb("dE",function(lx){if(Uia.Bc(this,arguments)){return this;}
this.eE=lx;this.fE=null;this.gE=false;this.hE=null;this.Rq(true);this.iE=false;});Uia.dE.ub(Uia.wm);Uia.dE.b("yp",function(){this.Cv=new Uia.cp();this.Cv.zm().cellSpacing=0;this.Cv.zm().cellPadding=0;this.hs(255,100,100);this.ls(255,245,245);this.Hq("Question");this.jp(this.Cv);});Uia.dE.b("hp",function(){return this.Cv.hp.apply(this.Cv,Uia.t(arguments));});Uia.dE.b("gv",function(){return this.Cv.gv.apply(this.Cv,Uia.t(arguments));});Uia.dE.b("px",function(){return this.eE;});Uia.dE.b("jE",function(){if(this.eE.pC()){for(var F=0;F<this.kE.length;F++){this.kE[F].expand();}}else{for(var F=0;F<this.kE.length;F++){this.kE[F].collapse();}}});Uia.dE.b("lE",function(){var mE=new Uia.ep("*").Uo("RequiredQuestionMarker").fp("bottom");if(!this.kE){this.kE=[];this.eE.oC().Tc(this,this.jE);}
this.kE.push(mE);this.jE();return mE;});Uia.dE.b("nE",function(){return this.gE;});Uia.dE.b("oE",function(pE){this.gE=pE;return this;});Uia.dE.b("qE",function(rE){if(Uia.J(this.hE)){this.hE=[];}
this.hE.push(rE)
});Uia.dE.b("sE",function(tE){return true;});Uia.dE.b("uE",function(){if(this.hE){for(var F=0;F<this.hE.length;F++){this.hE[F]();}}});Uia.dE.b("vE",function(){return this.iE;});Uia.dE.b("wE",function(xE){this.iE=xE;return this;});Uia.dE.vb(Uia.Pr);Uia.dE.vb(Uia.rs);Uia.pb("yE",function(zE,AE){if(Uia.Bc(this,arguments)){return this;}
this.BE=zE;this.CE=null;this.DE=AE;Uia.dE.call(this,zE);});Uia.yE.ub(Uia.dE);Uia.yE.sb("yp",function(){this.tc("yp");if(this.nE()){this.CE=new Uia.HtmlText(this.BE.rC(),false).Rq(true);}else{this.CE=new Uia.EE(this.BE.rC(),"Click <span class=here>here</span> to edit text, use shift + return to add linebreaks");this.CE.FE("Enter text here");this.CE.GE(this.Fc("HE"));this.CE.IE(this.Fc("JE"));this.CE.KE(this.Fc("HE"));this.CE.LE(this.Fc("JE"));this.CE.ME(this.Fc("NE"));this.CE.OE(this.Fc("PE"));this.CE.qE(this.Fc("uE"));var Cc=this;this.CE.QE(function(){return"Your text here";});this.CE.RE(function(SE){if(SE.toLowerCase()=="bold"){var TE=Cc.CE.Bl("fontWeight").toString().toLowerCase();if(TE!="400"&&TE!="normal"){alert("You can't set bold here, because this entire text i styled bold\nIf you want normal-weighted text, you can either\n - Add a new question above and choose descriptive text.\n - Or click 'Styles' in the toolbar then click 'Edit CSS' and edit the .QuestionText style class.\n\nNOTE: You can still use the other formatting options here. It's just bold that's a problem.");return false;}}
return true;});}
this.CE.Hq("QuestionBody");this.hp(this.CE);});Uia.yE.b("NE",function(){if(this.DE){this.DE.UE(this.BE);}
if(this.BE.Qw()){this.BE.Qw().Rw().Yb(this.BE);Uia.hu("Text deleted<br />You can undo by pressing Ctrl+Z",20);}});Uia.yE.b("PE",function(){if(this.DE){this.DE.VE(this.BE);}
if(this.BE.Qw()){this.BE.Qw().Rw().Yb(this.BE);Uia.hu("Text deleted<br />You can undo by pressing Ctrl+Z",20);}});Uia.yE.b("HE",function(){if(this.DE){this.DE.VE(this.BE);}});Uia.yE.b("JE",function(){if(this.DE){this.DE.UE(this.BE);}});Uia.yE.sb("focus",function(WE){if(!this.Wp&&this.wq()){this.CE.focus(Uia.Zm,WE);}});Uia.yE.b("XE",function(WE){this.CE.focus(Uia.an,WE);});Uia.yE.b("YE",function(WE){this.CE.focus(Uia.Zm,WE);});Uia.yE.b("sq",function(){if(this.CE!=null&&this.CE.sq)this.CE.sq();});Uia.yE.b("ny",function(oy,ZE){var aF=this.BE.ny(oy);if(aF&&!this.vE()){this.wE(true);if(ZE){this.Js();}else{this.collapse();}}else if(!aF&&this.vE()){this.wE(false);this.ts();}});Uia.pb("bF",function(lx,AE){if(Uia.Bc(this,arguments)){return this;}
this.eE=lx
this.CE=null;Uia.dE.call(this,lx);this.DE=AE;this.cF=new Uia.ai(lx.zD()=="Website"?"http://":"");});Uia.bF.ub(Uia.dE);Uia.bF.sb("yp",function(){this.tc("yp");if(this.nE()){this.dF=new Uia.HtmlText(this.eE.uD(),false);this.CE=new Uia.HtmlText(this.eE.rC(),false);this.eF=new Uia.HtmlText(this.eE.yD(),false);}else{this.dF=new Uia.EE(this.eE.uD(),"Prefix");this.dF.qE(this.Fc("uE"));this.CE=new Uia.EE(this.eE.rC(),"Click <span class=here>here</span> to edit question")
this.CE.Rp("paddingRight","8px");this.CE.FE("Enter question here");this.eE.iD().Tc(this,this.Fc("fF"),false);this.cF.Xc("Respondent enters text here.");this.CE.GE(this.Fc("HE"));this.CE.gF(this.Fc("HE"));this.CE.IE(this.Fc("JE"));this.CE.KE(this.Fc("HE"));this.CE.LE(this.Fc("JE"));this.CE.ME(this.Fc("NE"));this.CE.qE(this.Fc("uE"));this.CE.OE(this.Fc("PE"));var Cc=this;this.CE.QE(function(){return"Question "+Cc.eE.iC();});this.CE.RE(function(SE){if(SE.toLowerCase()=="bold"){var TE=Cc.CE.Bl("fontWeight").toString().toLowerCase();if(TE!="400"&&TE!="normal"){alert("You can't set bold here, because this entire text i styled bold\nIf you want normal-weighted text, you can either\n - Add a new question above and choose descriptive text.\n - Or click 'Styles' in the toolbar then click 'Edit CSS' and edit the .QuestionText style class.\n\nNOTE: You can still use the other formatting options here. It's just bold that's a problem.");return false;}}
return true;});this.eF=new Uia.EE(this.eE.yD(),"Postfix");this.eF.qE(this.Fc("uE"));}
this.hF=new Uia.Pu(this.dF);this.iF=new Uia.Pu(this.eF);this.eE.mD().Tc(this,this.jF,true);this.eE.iD().Tc(this,this.Fc("jF"),false);this.eE.qD().Tc(this,this.kF,true);this.eE.iD().Tc(this,this.Fc("kF"),false);this.CE.Hq("QuestionText");this.dF.Hq("QuestionBody");this.eF.Hq("QuestionBody");this.dF.Hq("ShortTextInputPrefix");this.eF.Hq("ShortTextInputPostfix");this.lF=new Uia.lu(this.cF);this.lF.Hq("ShortTextInput");this.eE.CD().Tc(this,this.mF,true);if(!this.nE()){this.lF.zm().disabled=true;this.lF.Rp("fontSize","9px");}else{this.tq(this.lF,"keypress",this.nF);this.tq(this.lF,"blur",this.oF);this.tq(this.lF,"keyup",this.pF);}
if(this.eE.gD())this.lF.collapse();var qF=new Uia.cp([this.CE,this.lE()]);this.hp(qF);if(!this.nE()){this.rF=new Uia.gw(Uia.hm+"Survey/textbox.png");}else{this.rF=new Uia.Mt(this.cF);this.rF.zm().wrap="hard";}
this.rF.Hq("TextArea");if(!this.eE.gD())this.rF.collapse();var sF=new Uia.Pu(this.lF);this.jp(this.rF);this.hp(new Uia.cp([this.hF,sF,this.iF]));});Uia.bF.b("tF",function(){return new Uia.uF(this.eE);});Uia.bF.b("mF",function(){if(this.eE.zD()=="Number"){this.lF.Hq("NumberInput");}else{this.lF.Iq("NumberInput");}});Uia.bF.b("nF",function(ll){if(ll.keyCode==9){return;}
if(ll.keyCode==8){return;}
if(ll.keyCode>=37&&ll.keyCode<=40){return;}
switch(this.eE.zD()){case"Number":var vF="0123456789.,-";if(vF.indexOf(String.fromCharCode(ll.keyCode))==-1){ll.preventDefault();Uia.c("HtmlTextQuestion.checkKeypress Preventing: "+ll.keyCode);}
break;case"Email":var vF="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$%&'*+-/=?^_`{|}~.@";if(vF.indexOf(String.fromCharCode(ll.keyCode))==-1){ll.preventDefault();Uia.c("HtmlTextQuestion.checkKeypress Preventing: "+ll.keyCode);}
if(String.fromCharCode(ll.keyCode)=="@"&&this.cF.Zc().indexOf("@")!=-1){ll.preventDefault();Uia.c("HtmlTextQuestion.checkKeypress Preventing double @: "+ll.keyCode);}
break;case"TelephoneNumber":var vF="0123456789+()- #";if(vF.indexOf(String.fromCharCode(ll.keyCode))==-1){ll.preventDefault();Uia.c("HtmlTextQuestion.checkKeypress Preventing: "+ll.keyCode);}
if(String.fromCharCode(ll.keyCode)=="+"&&this.cF.Zc().indexOf("+")!=-1){ll.preventDefault();Uia.c("HtmlTextQuestion.checkKeypress Preventing double +: "+ll.keyCode);}
break;}});Uia.bF.b("jF",function(){if(this.eE.jD()&&!this.eE.gD()){this.hF.expand();}else{this.hF.collapse();}});Uia.bF.b("kF",function(){if(this.eE.nD()&&!this.eE.gD()){this.iF.expand();}else{this.iF.collapse();}});Uia.bF.b("NE",function(){if(this.DE){this.DE.UE(this.eE);}
if(this.eE.Qw()){this.eE.Qw().Rw().Yb(this.eE);Uia.hu("Question deleted<br />You can undo by pressing Ctrl+Z",20);}});Uia.bF.b("PE",function(){if(this.DE){this.DE.VE(this.eE);}
if(this.eE.Qw()){this.eE.Qw().Rw().Yb(this.eE);Uia.hu("Question deleted<br />You can undo by pressing Ctrl+Z",20);}});Uia.bF.b("HE",function(){if(this.DE){this.DE.VE(this.eE);}});Uia.bF.b("JE",function(){if(this.DE){this.DE.UE(this.eE);}});Uia.bF.b("wF",function(){if(this.vE()){return"";}
if(this.cF.length()===0)return"";return"<Tq qId=\""+this.eE.Ts()+"\"><![CDATA["+this.cF.Zc()+"]]></Tq>";});Uia.bF.b("fF",function(xF){if(xF){this.rF.expand();this.lF.collapse();}else{this.rF.collapse();this.lF.expand();}});Uia.bF.sb("focus",function(WE){if(!this.Wp&&this.wq()){if(this.nE()){if(this.eE.gD()){this.rF.focus();}else{this.lF.focus();}}else{this.CE.focus(Uia.Zm,WE);}}});Uia.bF.b("XE",function(WE){this.CE.focus(Uia.an,WE);});Uia.bF.b("YE",function(WE){this.CE.focus(Uia.Zm,WE);});Uia.bF.b("sq",function(){if(this.CE!=null&&this.CE.sq){this.CE.sq();this.dF.sq();this.eF.sq();}});Uia.bF.b("yF",function(oy){var zF=this.cF.Zc();var zq=this.eE.gy()
if(zF.length>0){oy[zq]=zF;}else{delete oy[zq];}});Uia.bF.b("AF",function(oy){var zq=this.eE.gy(),r;if(oy[zq]){r=oy[zq];}else{r="";}
if(r==""&&this.eE.zD()=="Website"){r="http://";}
this.cF.Xc(r);this.Qr();return this;});Uia.bF.b("pF",function(){setTimeout(this.Fc("BF"),1);});Uia.bF.b("BF",function(){if(this.CF&&this.DF()){this.CF=false;this.Qr();}});Uia.bF.b("oF",function(){if(!this.DF()){this.Sr();this.CF=true;this.scrollIntoView(this.Fc("focus"));}});Uia.bF.b("DF",function(){if(this.cF.Zc().length==0){return true;}
switch(this.eE.zD()){case"Number":var EF="((([0-9]{1,3}(\\,[0-9]{3})*?)|[0-9]*?)(\\.[0-9]+){0,1})"
var FF="((([0-9]{1,3}(\\.[0-9]{3})*?)|[0-9]*?)(\\,[0-9]+){0,1})"
var ni=new RegExp("^\\-{0,1}("+EF+"|"+FF+")$","g");return ni.test(this.cF.Zc());break;case"Email":var ni=new RegExp("^[a-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~\\.]+@[a-z0-9][a-z0-9\\-\\.]*?\\.[a-z0-9\\-\\.]+?[a-z0-9]$","gi");return ni.test(this.cF.Zc());break;case"TelephoneNumber":return true;break;case"Website":return true;break;}
return true;});Uia.bF.sb("sE",function(tE){if(this.vE()){return true;}
if(!this.DF()){this.Sr();this.CF=true;if(tE){this.scrollIntoView(this.Fc("focus"));}else{this.scrollIntoView();}
return false;}
if(!this.px().pC()){return true;}
if(this.cF.Zc()==""||(this.eE.zD()=="Website"&&this.cF.Zc()=="http://")){this.Sr();if(tE){this.scrollIntoView(this.Fc("focus"));}else{this.scrollIntoView();}
return false;}else{this.Qr();return true;}});Uia.bF.b("ny",function(oy,ZE){var aF=this.eE.ny(oy);if(aF&&!this.vE()){this.wE(true);if(ZE){this.Js();}else{this.collapse();}}else if(!aF&&this.vE()){this.yF(oy);this.wE(false);this.ts();}});Uia.GF=0;Uia.pb("HF",function(lx,AE){if(Uia.Bc(this,arguments)){return this;}
this.eE=lx;var wz=lx.Ts();if(wz===0)wz=Uia.GF++;this.Qs="obsurveychoice_"+wz;this.IF=false;this.JF=false;this.KF=null;Uia.dE.call(this,lx);this.DE=AE;});Uia.HF.ub(Uia.dE);Uia.HF.sb("yp",function(){this.tc("yp");if(this.nE()){this.KF=new Uia.HtmlText(this.eE.rC(),false).Rq(true);}else{this.KF=new Uia.EE(this.eE.rC(),"Click <span class=here>here</span> to edit question")
this.KF.Rp("paddingRight","8px");this.KF.gF(this.Fc("LF"));this.KF.GE(this.Fc("MF"));this.KF.KE(this.Fc("MF"));this.KF.IE(this.Fc("NF"));this.KF.LE(this.Fc("NF"));this.KF.ME(this.Fc("OF"));this.KF.OE(this.Fc("PF"));this.KF.FE("Enter your question here");this.KF.QF("Press return<br />to add choice");this.KF.qE(this.Fc("uE"));var Cc=this;this.KF.QE(function(){return"Question "+Cc.eE.iC();});this.KF.RE(function(SE){if(SE.toLowerCase()=="bold"){var TE=Cc.KF.Bl("fontWeight").toString().toLowerCase();if(TE!="400"&&TE!="normal"){alert("You can't set bold here, because this entire text i styled bold\nIf you want normal-weighted text, you can either\n - Add a new question above and choose descriptive text.\n - Or click 'Styles' in the toolbar then click 'Edit CSS' and edit the .QuestionText style class.\n\nNOTE: You can still use the other formatting options here. It's just bold that's a problem.");return false;}}
return true;});}
this.KF.Hq("QuestionText");var qF=new Uia.cp([this.KF,this.lE()]);qF.zm().cellSpacing=0;qF.zm().cellPadding=0;this.hp(qF);var RF=new Uia.cp();var Cc=this;this.SF=new Uia.zi(this.eE.xx(),function(hj){return new Uia.TF(hj,Cc);})
this.UF=RF.gv(this.SF);if(!this.nE()){this.VF=new Uia.WF(this,3);RF.hp([this.VF],Uia.av);if(this.JF)this.XF();}
this.hp(RF);});Uia.HF.b("tF",function(){return new Uia.YF(this.eE,this);});Uia.HF.b("ZF",function(){return this.DE;});Uia.HF.sb("sE",function(tE){if(this.vE()||!this.px().pC()){return true;}
var aG=false;for(var F=0;!aG&&F<this.SF.length();F++){aG=this.SF.ef(F).Us();}
if(!aG){this.Sr();if(tE){this.scrollIntoView(this.Fc("focus"));}else{this.scrollIntoView();}}else{this.Qr();}
return aG;});Uia.HF.b("Ts",function(){return this.Qs;});Uia.HF.b("bG",function(ay,Ws){if(!this.UF){this.zm();}
this.SF.Mi(ay).Vs(Ws);});Uia.HF.b("wF",function(){if(this.vE()){return"";}
var cG=false;var dG="<Cq qId=\""+this.eE.Ts()+"\">";for(var F=0;F<this.SF.length();F++){var eG=this.SF.ef(F).wF();if(eG!=""){cG=true;dG+=eG;}}
if(cG){dG+="</Cq>";return dG;}else{return"";}});Uia.HF.sb("focus",function(WE){if(!this.Wp&&this.wq()){if(this.nE()){if(this.SF.length()>0){this.SF.ef(0).focus();}}else{this.KF.focus(Uia.Zm,WE);}}});Uia.HF.b("AF",function(oy){for(var F=0;F<this.SF.length();F++){this.SF.ef(F).AF(oy);}
this.Qr();});Uia.HF.b("ny",function(oy,ZE){var aF=this.eE.ny(oy);if(aF){for(var F=0;F<this.SF.length();F++){this.SF.ef(F).fG(oy);}
if(!this.vE()){this.wE(true);if(ZE){this.Js();}else{this.collapse();}}}else{for(var F=0;F<this.SF.length();F++){this.SF.ef(F).yF(oy);}
if(this.vE()){this.wE(false);this.ts();}}});Uia.HF.b("gG",function(HC,hG){return this.SF.Mi(HC).gG(hG);});Uia.pb("TF",function(HC,iG){if(Uia.Bc(this,arguments)){return this;}
this.jG=HC;this.fr("TR");this.kG=null;this.lG=iG;this.mG=null;this.nG=new Uia.ai("");if(!this.lG.nE()&&!this.jG.EC()){this.vb(Uia.oG);this.vb(Uia.pG,Uia.ox);this.qG(true);}
this.DE=this.lG.ZF();});Uia.TF.ub(Uia.wm);Uia.TF.b("yp",function(){if(this.jG.px().Ie()=="SingleSelect"){this.mG=new Uia.Os().Ip(true).Rs(this.lG.Ts()).Xc("true");}else{this.mG=new Uia.it();}
var rG=new Uia.ep(this.mG,1,1,false,"top");this.sG=rG;if(this.Ux){this.jG.px().Sx().Tc(this,this.Ux,false);}
if(this.lG.nE()){this.kG=new Uia.HtmlText(this.jG.XC(),false).Uo("Choice").Rq(true);this.tq(this.kG,"anyclick",this.Fc("gt"));}else{this.kG=new Uia.EE(this.jG.XC(),"Click <span class=here>here</span> to edit choice");this.kG.Uo("Choice")
this.kG.Rp("paddingRight","8px");this.kG.gF(this.Fc("tG"));this.kG.ME(this.Fc("NE"));this.kG.OE(this.Fc("PE"));this.kG.GE(this.Fc("HE"));this.kG.KE(this.Fc("HE"));this.kG.IE(this.Fc("JE"));this.kG.LE(this.Fc("JE"));this.kG.qE(this.lG.Fc("uE"));var Cc=this;this.kG.QE(function(){return"Choice  "+Cc.jG.nx();});this.tq(this.kG,"click",this.uG);var vG="Enter question choice here";if(!this.jG.EC()){this.kG.QF("Press return<br />to add another choice");}
this.kG.FE(vG);this.nG.Xc("Respondent enters text here.");this.jG.px().nk().Tc(this,function(){if(this.wG){this.wG(this.jG.px().fj());}},true);}
this.kG.Hq("QuestionBody");var xG;this.yG=new Uia.wm();this.zG=new Uia.ep(this.yG,1,1,false,"top");var AG;if(this.jG.EC()){var BG=new Uia.lu(this.nG);if(!this.lG.nE()){BG.zm().disabled=true;BG.Rp("fontSize","9px");}
BG.Rp("width","175px");BG.Rp("height","16px");this.CG=BG;this.nG.Tc(this,this.Fc("DG"),false);var EG=new Uia.ep(this.kG,1,1,false,"top","left");var FG=new Uia.ep(new Uia.Pu(BG).Rp("marginTop","4px").Rq(true),1,1,false,"bottom","left");var hj=new Uia.cp([EG]);hj.hp([FG]);xG=new Uia.ep(hj);}
if(!xG){xG=new Uia.ep(this.kG,1,1,false,"top","left");}
this.jp(this.sG);this.jp(xG);this.jp(this.zG);if(!this.lG.nE()){if(this.lG.GG()){this.XF();}else{this.HG();}}});Uia.TF.b("IG",function(){var JG=Uia.qm(this.jG.BC())
if(JG.length>40){JG=JG.substring(0,38)+"...";}
this.KG.Dp("Add a follow-up text or question\nThat is only shown when the respondent\nselects this choice:\n"+JG);});Uia.TF.b("LG",function(lx){if(!lx["_￿HtmlWorkAreaPage_Id"]){lx["_￿HtmlWorkAreaPage_Id"]=(new Date()).getTime()+Math.random();}
var MG=lx["_￿HtmlWorkAreaPage_Id"];if(!Uia.NG[MG]){var gn;switch(lx.Ie()){case"ShortTextQuestionInserter":gn=new Uia.OG(lx,this.ZF());break;case"MatrixQuestionInserter":gn=new Uia.PG(lx,this.ZF());break;case"QuestionInserter":gn=new Uia.QG(lx,this.DE);break;case"LeadText":gn=new Uia.RG(new Uia.yE(lx,this.DE),lx,this.DE);break;case"Text":gn=new Uia.RG(new Uia.bF(lx,this.DE),lx,this.DE);break;case"SingleSelect":case"MultipleSelect":gn=new Uia.RG(new Uia.HF(lx,this.DE),lx,this.DE);break;case"Matrix":var hj=new Uia.SG(lx,this.DE);gn=new Uia.RG(hj,lx,this.DE);break;}
Uia.NG[MG]=gn;}else{gn=Uia.NG[MG];gn.Ri();}
return gn;});Uia.TF.b("gG",function(hG){return this.TG.Mi(hG);});Uia.TF.b("UG",function(){if(!this.VG){if(!this.jG.EC()){this.WG=new Uia.XG(Uia.hm+"Survey/up.gif",this.Fc("VC")).Dp("Move choice up\nClick and hold to drag");this.yG.jp(this.WG);this.YG=new Uia.XG(Uia.hm+"Survey/down.gif",this.Fc("WC")).Dp("Move choice down\nClick and hold to drag");this.yG.jp(this.YG);this.yG.Rp("whiteSpace","nowrap");}
this.ZG=new Uia.XG(Uia.im+"icons/deleteSmall.png",this.Fc("delete")).Dp("Delete choice");this.yG.jp(this.ZG);document.body.appendChild(this.yG.zm());var Vc=this.yG.mq();var gd=this.yG.kq();this.yG.Rp("marginBottom","-"+gd+"px");this.yG.Rp("marginRight","-"+Vc+"px");this.yG.Rp("float","right");this.yG.Rp("position","relative");this.yG.Rp("zIndex","15");this.zG.jp(this.yG);this.VG=true;}});Uia.TF.b("aH",function(){var lc=new Uia.bH(this.jG.Qw());lc.qB(this.jG);var iA=this.jG.px().Qw().Rw();iA.Zb(lc,this.jG.px());Uia.c("HtmlChoiceQuestionOption.addFollowUp: Inserted followup question inserter, index: "+iA.Jb(lc));});Uia.TF.sb("focus",function(){this.mG.focus();});Uia.TF.b("cH",function(oy,dH){var zq=this.jG.gy();if(this.mG.Us()&&!dH){Uia.c("HtmlChoiceQuestionOption._updateResponse: "+zq+"=1");oy[zq]=1;}else if(oy[zq]==1){Uia.c("HtmlChoiceQuestionOption._updateResponse: "+zq+"=undefined");delete oy[zq];}});Uia.TF.b("yF",function(oy){this.cH(oy,false)
});Uia.TF.b("AF",function(oy){var zq=this.jG.gy();this.Vs(oy[zq]==1);});Uia.TF.b("fG",function(oy){this.cH(oy,true)
});Uia.TF.b("Vs",function(Ws){this.mG.Vs(Ws);return this;});Uia.TF.b("Us",function(){return this.mG.Us();});Uia.TF.b("wF",function(){if(this.mG.Us()){var sA="<S oId=\""+this.jG.Ts()+"\"";if(!this.jG.EC()){return sA+"/>";}else{sA+=" o=\"true\"><![CDATA["+this.nG.Zc()+"]]></S>";return sA;}}else{return"";}});Uia.TF.b("gt",function(){if(this.jG.px().Ie()=="SingleSelect"){this.mG.Vs(true);}else{this.mG.Vs(!this.mG.Us());}
if(this.jG.EC()){this.CG.focus();}});Uia.TF.b("DG",function(eH){if(eH!==""){this.mG.Vs(true);}else{this.mG.Vs(false);}});Uia.pb("SG",function(aE,AE){if(Uia.Bc(this,arguments)){return this;}
this.fH=aE;Uia.dE.call(this,aE);this.IF=false;this.JF=false;this.DE=AE;});Uia.SG.ub(Uia.dE);Uia.SG.sb("yp",function(){this.tc("yp");this.gH=new Uia.hH(this.fH,this);this.hp(this.gH,Uia.Yu);var Cc=this;this.iH=new Uia.zi(this.fH.xx(),function(hj){return new Uia.jH(hj,Cc)});this.gv(this.iH,Uia.Zu).Iv("RatingQuestionStatementOddRow");if(!this.gE){this.kH=new Uia.lH(this.fH,this);this.hp(this.kH,Uia.av);if(this.JF)this.XF();}});Uia.SG.b("tF",function(){return new Uia.mH(this.fH,this);});Uia.SG.sb("ir",function(){if(this.iH){this.iH.Gi(null);this.gH.Gi(null);var nH=this.iH.Zc();for(var F=0;F<nH.length;F++){nH[F].Gi(null);}}
this.tc("ir");});Uia.SG.b("wF",function(){if(this.vE()){return"";}
var cG=false;var sA="<Mq qId=\""+this.fH.Ts()+"\">";for(var F=0;F<this.iH.length();F++){var oH=this.iH.ef(F).wF();if(oH!==""){cG=true;sA+=oH;}}
if(cG){sA+="</Mq>";return sA;}else{return"";}});Uia.SG.sb("focus",function(WE){if(!this.Wp&&this.wq()){if(this.nE()){if(this.iH.length()>0){this.iH.ef(0).focus();}}else{this.gH.focus(WE);}}});Uia.SG.b("pH",function(){this.gH.pH();});Uia.SG.b("ny",function(oy,ZE){var aF=this.fH.ny(oy);if(aF){for(var F=0;F<this.iH.length();F++){this.iH.ef(F).fG(oy);}
if(!this.vE()){this.wE(true);if(ZE){this.Js();}else{this.collapse();}}}else{for(var F=0;F<this.iH.length();F++){this.iH.ef(F).yF(oy);}
if(this.vE()){this.wE(false);this.ts(this.Fc("pH"));}}});Uia.SG.b("AF",function(oy){for(var F=0;F<this.iH.length();F++){this.iH.ef(F).AF(oy);}});Uia.SG.sb("sE",function(tE){if(this.vE()||!this.px().pC()){return true;}
var qH=true;for(var F=0;qH&&F<this.iH.length();F++){qH=qH&&this.iH.ef(F).sE(tE);}
return qH;});Uia.pb("rH",function(SD,sH){if(Uia.Bc(this,arguments)){return this;}
this.tH=SD;this.fr("TD");this.CE=null;this.gH=sH;});Uia.rH.ub(Uia.wm);Uia.rH.b("yp",function(){if(this.gH.nE()){this.CE=new Uia.HtmlText(this.tH.XC(),false).Rq(true);}else{this.CE=new Uia.EE(this.tH.XC(),"Click <span class=here>here</span><br />to edit rating");this.CE.gF(this.Fc("tG"));this.CE.GE(this.Fc("HE"));this.CE.IE(this.Fc("JE"));this.CE.LE(this.Fc("uH"));this.CE.KE(this.Fc("vH"));this.CE.ME(this.Fc("NE"));this.CE.OE(this.Fc("PE"));this.CE.qE(this.gH.wH().Fc("uE"));this.CE.FE("Enter rating here");this.CE.QF("Press return<br />to add another rating");var Cc=this;this.CE.QE(function(){return"Rating "+Cc.tH.nx();});this.tq(this,"anyclick",this.Fc("xH"));this.tH.XC().Tc(this,this.yH);}
this.Hq("RatingQuestionRating");this.jp(this.CE);});Uia.pb("hH",function(aE,zH){if(Uia.Bc(this,arguments)){return this;}
this.fH=aE;this.AH=zH;this.fr("TR");var Cc=this;Uia.mu.call(this,this.fH.Ax(),function(hj){return new Uia.rH(hj,Cc);});});Uia.hH.ub(Uia.mu);Uia.hH.sb("yp",function(){this.tc("yp");this.aq(new Uia.ep(" ").Uo("RatingQuestionStatementsHeader"));if(this.nE()){this.dq(new Uia.ep(" "));}else{this.BH=new Uia.XG(Uia.hm+"Survey/add2.gif",function(){}).Dp("Add rating");this.tq(this.BH,"mousedown",this.AH.Fc("CH"));this.dq(new Uia.ep(this.BH));if(this.AH.GG())this.XF();this.Tc(this,this.pH);var Cc=this;setTimeout(function(){Cc.fH.YD().Tc(Cc,Cc.DH,true);},1);}});Uia.hH.b("nE",function(){return this.AH.nE();});Uia.hH.b("pH",function(){if(!this.EH){this.EH=true;Uia.c("HtmlMatrixQuestionHeader.setEvenRatingWidth in queue");setTimeout(this.Fc("FH"),500);}});Uia.hH.b("FH",function(){this.EH=false;if(this.fH.OD()){GH=this.Fu();var F=0;for(var F=0;F<GH.length();F++){GH.ef(F).zm().style.width="";}
var HH=0;for(var F=0;F<GH.length();F++){HH=Math.max(GH.ef(F).mq(),HH);}
for(var F=0;F<GH.length();F++){GH.ef(F).zm().style.width=HH+"px";}
this.fH.XD(HH);}});Uia.hH.b("wH",function(){return this.AH;});Uia.pb("IH",function(zq,r){if(Uia.Bc(this,arguments)){return this;}
this.dt=new Uia.Os().Rs(zq).Xc(r);Uia.ep.call(this,this.dt,1,1,false,"top");this.Uo("RatingQuestionStatementRating");});Uia.IH.ub(Uia.ep);Uia.IH.b("Us",function(){return this.dt.Us();});Uia.IH.b("Vs",function(Ws){this.dt.Vs(Ws);return this;});Uia.IH.sb("focus",function(){this.dt.focus();});Uia.JH=1;Uia.pb("jH",function(HC,zH){if(Uia.Bc(this,arguments)){return this;}
this.jG=HC;var wz=HC.Ts();if(wz===0){wz=Uia.JH++;}
this.KH=new Uia.zi(this.jG.px().Ax(),function(hj){var zq="obsurveymatrix_"+wz;var r=hj.Ts()+"";return new Uia.IH(zq,r);});Uia.mu.call(this,this.KH);this.fr("TR");this.CE=null;this.AH=zH;if(!this.AH.nE()){this.vb(Uia.oG);this.vb(Uia.pG,Uia.ox);this.qG(true);}});Uia.jH.ub(Uia.mu);Uia.jH.sb("yp",function(){this.tc("yp");if(this.AH.nE()){this.CE=new Uia.HtmlText(this.jG.XC(),false).Rq(true);}else{this.CE=new Uia.EE(this.jG.XC(),"Click <span class=here>here</span> to edit statement");this.CE.Rp("paddingRight","8px");this.CE.gF(this.Fc("tG"));this.CE.IE(this.Fc("JE"));this.CE.GE(this.Fc("HE"));this.CE.LE(this.Fc("uH"));this.CE.KE(this.Fc("LH"));this.CE.ME(this.Fc("NE"));this.CE.OE(this.Fc("PE"));this.CE.qE(this.AH.Fc("uE"));this.CE.FE("Enter statement here");this.CE.QF("Press return<br />to add another statement");var Cc=this;this.CE.QE(function(){return"Statement "+Cc.jG.nx();});this.jG.px().nk().Tc(this,function(){this.wG(this.jG.px().fj());},true);}
this.CE.Hq("QuestionBody")
var qF=new Uia.cp([this.CE,this.AH.lE()]);qF.zm().cellSpacing=0;qF.zm().cellPadding=0;var MH=new Uia.ep(new Uia.Pu(qF).Uo("RatingQuestionStatement").Rq(true));if(!this.AH.nE()){this.tq(MH,"click",this.uG);}
this.aq(MH);if(!this.AH.nE()){this.NH=new Uia.OH(this.jG,this.AH);this.dq(this.NH);if(this.AH.GG())this.XF();}
this.hs(255,100,100);this.ls(255,255,255);});Uia.jH.sb("focus",function(){var PH=this.KH.Zc();if(PH.length>0){PH[0].focus();}});Uia.jH.b("cH",function(oy,dH){var GH=this.KH,pc;for(var F=0;F<GH.length();F++){pc=this.jG.gy()+"_"+this.jG.px().Ax().ef(F).gy();if(GH.ef(F).Us()&&!dH){oy[pc]=1;}else{delete oy[pc];}}});Uia.jH.b("AF",function(oy){var GH=this.KH,pc;for(var F=0;F<GH.length();F++){pc=this.jG.gy()+"_"+this.jG.px().Ax().ef(F).gy();GH.ef(F).Vs(oy[pc]==1);}
this.Qr();});Uia.jH.b("yF",function(oy){this.cH(oy,false)
});Uia.jH.b("fG",function(oy){this.cH(oy,true)
});Uia.jH.b("sE",function(tE){var aG=false;var GH=this.KH;for(var F=0;!aG&&F<GH.length();F++){aG=GH.ef(F).Us();}
if(!aG){this.Sr();if(tE){this.scrollIntoView(this.Fc("focus"));}else{this.scrollIntoView();}}else{this.Qr();}
return aG;});Uia.jH.b("wF",function(){var GH=this.KH;for(var F=0;F<GH.length();F++){if(GH.ef(F).Us()){return"<S oId=\""+this.jG.Ts()+"\""+" rId=\""+this.jG.px().Ax().ef(F).Ts()+"\"/>";}}
return"";});Uia.jH.vb(Uia.Pr);Uia.pb("QH",function(ux){if(Uia.Bc(this,arguments)){return this;}
this.lB=ux;});Uia.QH.ub(Uia.wm);Uia.QH.b("yp",function(){this.Uo("Survey").Rq(true);this.RH=new Uia.HtmlText(this.lB.Zz());var hj=new Uia.Pu(this.RH).Uo("SurveyHeader").Rq(true);if(Uia.pG){hj.SH=this.Fc("SH");hj.TH=function(){return hj};hj.vb(Uia.pG,Uia.YB);}
this.jp(hj);var Cc=this;setTimeout(function(){if(Uia.go(Cc.zm(),"SurveyPage")){Cc.Hq("NotEmbeddedSurvey");Uia.c("Adding NotEmbeddedSurvey");}},1);});Uia.QH.b("UH",function(VH){this.WH=VH;});Uia.QH.b("SH",function(ll){var lx=ll.XH;if(this.WH){this.WH(ll);}});Uia.QH.b("YH",function(){this.zm();return this.RH;});Uia.pb("ZH",function(ux,aI,bI,cI,dI){if(Uia.Bc(this,arguments)){return this;}
this.lB=ux;this.Rq(true);this.eI=new Uia.zi(this.lB.Rw(),this.Fc("LG"));this.fI=0;this.gI=null;this.hI=Uia.H(aI)?true:aI;this.iI=bI;this.jI="";this.kI=Uia.H(cI)?false:cI;this.lI=Uia.H(dI)?false:dI;this.mI={};Uia.QH.call(this,ux);});Uia.ZH.ub(Uia.QH);Uia.ZH.sb("yp",function(){this.tc("yp");this.nI=new Uia.wm().collapse();this.aq(this.nI);this.lB.Jz().Tc(this,this.oI,true);this.pI=new Uia.mu(this.eI);this.jp(this.pI);this.qI=new Uia.Tu(this.lB.Lz(),this.Fc("rI")).Uo("NextButton");this.lB.Mz().Tc(this,this.sI);this.tI=new Uia.Pu(this.qI).Rq(true).Uo("NextButtonContainer");;this.jp(this.tI);this.uI(1);if(this.lI&&document.location.href.toLowerCase().indexOf("obsurveytest=true")==-1){var uA=new Number(Uia.qo("ObsurveyPage"+this.iI));if(Uia.L(uA)&&uA>0){Uia.c("Cookie set page: "+uA);this.uI(uA);}}
this.tq(this,"anyclick",this.click);this.tq(this,"keyup",this.pF);});Uia.ZH.b("sI",function(){this.qI.xm(this.lB.Lz());});Uia.ZH.b("oI",function(){if(this.nI){this.nI.xm("Style<style type=\"text/css\">"+this.lB.Hz()+"</style>");}});Uia.ZH.b("vI",function(wI){this.hI=wI;});Uia.ZH.b("LG",function(lx){switch(lx.Ie()){case"LeadText":return new Uia.Pu(new Uia.yE(lx).oE(true)).Rq(true);break;case"Text":return new Uia.Pu(new Uia.bF(lx).oE(true)).Rq(true);break;case"SingleSelect":case"MultipleSelect":return new Uia.Pu(new Uia.HF(lx).oE(true)).Rq(true);break;case"Matrix":return new Uia.Pu(new Uia.SG(lx).oE(true)).Rq(true);break;default:return(new Uia.Pu(new Uia.ft(""))).collapse();break;}});Uia.ZH.b("sE",function(tE){var xI=true;for(var F=0;F<this.yI.length;F++){var zI=this.yI[F];if(zI.sE){xI=xI&&zI.sE(tE);}}
return xI;});Uia.ZH.b("rI",function(){var xI=this.sE(true);if(xI){if(!this.hI){var AI=this.BI();if(!Uia.J(AI)){this.CI(AI);if(!this.DI){Uia.c("starting geolocation submit");window["yqlgeo2"]["getGeoLocation"](this.Fc("EI"));this.DI=true;}}}
this.FI(this.fI+1);this.GI=false;}else{this.GI=true;}});Uia.ZH.b("EI",function(HI){if(!this.II){if(!HI["place"]){return;}
this.II=HI;}
if(this.jI==""){var Cc=this;setTimeout(this.Fc("EI"),100);}else{Uia.c("add geolocation: "+this.II["place"]["country"]["content"]+" to answer"+this.jI);var JI="";if(!Uia.J(this.II["place"]["locality2"])){JI=this.II["place"]["locality2"]["content"];}
var KI="<Geo aId=\""+this.jI+"\">"+"<la><![CDATA["+this.II["place"]["centroid"]["latitude"]+"]]></la> "+"<lo><![CDATA["+this.II["place"]["centroid"]["longitude"]+"]]></lo>"+"<c><![CDATA["+this.II["place"]["country"]["content"]+"]]></c>"+"<cc><![CDATA["+this.II["place"]["country"]["code"]+"]]></cc>"+"<l1><![CDATA["+this.II["place"]["locality1"]["content"]+"]]></l1>"+"<l2><![CDATA["+JI+"]]></l2>"+"</Geo>";if(this.kI){LI="e2.aspx";}else{LI="http://obsurvey.com/e2.aspx";}
Uia.Ui(LI,["a",KI]);}});Uia.ZH.b("CI",function(MI){if(!this.jI||this.jI==""){this.jI=Uia.f();}
var NI="<A aId=\""+this.jI+"\" lId=\""+this.iI+"\">"+MI+"</A>";var LI;if(this.kI){LI="e2.aspx";}else{LI="http://obsurvey.com/e2.aspx";}
Uia.Ui(LI,["a",NI]);});Uia.ZH.b("BI",function(){var OI=1;var cG=false;var MI="";var iA=this.lB.Rw();for(var F=0;F<iA.length();F++){var lx=iA.ef(F);if(OI===this.fI){switch(lx.Ie()){case"Text":case"SingleSelect":case"MultipleSelect":case"Matrix":var dG=this.eI.ef(F).Su().wF();if(dG!==""){MI+="<Q>"+dG+"</Q>";cG=true;}
break;}}
if(lx.Ie()==="PageBreak")OI++;}
if(cG){return MI;}else{return null;}});Uia.ZH.b("FI",function(uA){this.QI(true,false);if(uA==1){this.uI(uA);return;}
this.Ks=this.kq();this.ys=new Date().getTime();this.RI=uA;this.Rp("overflow","hidden");setTimeout(this.Fc("Ms"),1);});Uia.SI=150.0;Uia.ZH.b("Ms",function(){var Gs=new Date().getTime()-this.ys;if(Gs<Uia.SI){if(Gs>0){var gd=Math.round((1.0-(Gs/Uia.SI))*this.Ks)
this.fd(gd);}
setTimeout(this.Fc("Ms"),1);}else{this.uI(this.RI);this.Rp("overflow","visible");this.As=this.kq();this.Rp("overflow","hidden");this.ys=new Date().getTime();setTimeout(this.Fc("Bs"),1);}});Uia.ZH.b("Bs",function(){var Gs=new Date().getTime()-this.ys;if(Gs<Uia.SI){if(Gs>0){var gd=Math.round((Gs/Uia.SI)*this.As);this.fd(gd);}
setTimeout(this.Fc("Bs"),1);}else{this.Rp("overflow","visible");this.Rp("height","");}});Uia.ZH.b("uI",function(uA,TI){var tE=true;if(tE&&TI){tE=false;}
if(TI){this.GI=false;}
var UI=false;this.QI(tE,UI);this.VI=false;this.WI(uA,TI);});Uia.ZH.b("pF",function(){this.XI=(new Date()).getTime()+400;setTimeout(this.Fc("BF"),200);});Uia.ZH.b("BF",function(){this.QI(false,true);});Uia.ZH.b("click",function(){setTimeout(this.Fc("YI"),200);});Uia.ZH.b("YI",function(){if(!this.XI||(new Date()).getTime()>this.XI){this.QI(true,true);}});Uia.ZH.b("ZI",function(){this.mI={};this.GI=false;var aJ=this.eI.Zc();for(var F=0;F<aJ.length;F++){var zI=aJ[F].Su();if(zI.AF){zI.AF(this.mI);}}});Uia.ZH.b("QI",function(tE,ZE){var aJ=this.eI.Zc();for(var F=0;F<aJ.length;F++){var zI=aJ[F].Su();if(zI.ny){zI.ny(this.mI,ZE);}}
if(this.GI){this.sE(tE,ZE);}});Uia.ZH.b("WI",function(uA,TI){var bJ=false;this.fI=uA;var OI=1;var iA=this.lB.Rw();var cJ=false,tE=(uA==1);this.yI=[];for(var F=0;F<iA.length();F++){var lx=iA.ef(F);var zI=this.eI.ef(F).Su();var dJ=Uia.H(zI.vE)?false:zI.vE();if(OI==uA){this.yI.push(zI);this.pI.Fu().ef(F).expand();if(dJ&&TI){zI.expand();if(zI.wE){zI.wE(false);}}
switch(lx.Ie()){case"Text":case"SingleSelect":case"MultipleSelect":if(!dJ){bJ=true;cJ=true;if(!tE){tE=true;setTimeout(function(zI){return function(){zI.focus();}}(zI),1);}}
break;case"PageBreak":this.pI.Fu().ef(F).collapse();bJ=true;break;case"Matrix":var Cc=this;setTimeout(function(zI){return function(){zI.pH();}}(zI),1);if(!dJ){bJ=true;cJ=true;if(!tE&&uA!=1){tE=true;setTimeout(function(zI){return function(){zI.focus();}}(zI),1);}}
break;case"LeadText":if(!dJ){cJ=true;}
break;}}else{this.pI.Fu().ef(F).collapse();}
if(lx.Ie()==="PageBreak")OI++;}
if(!cJ){if(OI>uA&&!this.VI){this.WI(uA+1);return;}else{if(OI<=uA){this.VI=true;}
if(uA>1){this.WI(uA-1);return;}}}
if(bJ){this.tI.expand();this.qI.zm().value=this.lB.Lz();}else{this.tI.collapse();}
if(this.fI!=1&&this.lI&&document.location.href.toLowerCase().indexOf("obsurveytest=true")==-1){Uia.c("setting cookie page: "+this.fI);Uia.mo("ObsurveyPage"+this.iI,this.fI,1000);}
if(Uia.eJ){Uia.eJ();}});Uia.ZH.vb(Uia.Po);Uia.fJ=function(gJ,hJ,iJ){Uia.c("Insert survey");Uia.c("Guid: "+Uia.f());var jJ=document.scripts;if(!jJ)jJ=document.getElementsByTagName('script');for(var F=0;F<jJ.length;F++){if(jJ[F].src.toLowerCase().indexOf("obsurveyembed")!==-1){var src,id=jJ[F].id;if(!Uia.kJ){Uia.kJ={};}
if(!Uia.kJ[id]&&!iJ||(!Uia.H(iJ)&&iJ==id)){Uia.kJ[id]=true;var lJ=document.getElementsByTagName("head")[0];var mJ=document.createElement('script');mJ.type='text/javascript';var nJ=(jJ[F].src.indexOf("development=true")!==-1)||(document.location.href.indexOf("obsurveydevelopment=true")!==-1);var oJ="";if(!Uia.H(gJ)){oJ="&pwd="+encodeURIComponent(gJ);}
if(nJ){src='WebServices/GetSurvey4.aspx?id='+id+oJ+"&r="+Math.round(Math.random()*999999);}else{src='http://obsurvey.com/WebServices/GetSurvey4.aspx?id='+id+oJ+"&r="+Math.round(Math.random()*999999);}
Uia.c(src);mJ.src=src;lJ.appendChild(mJ);Uia.c("Uia.surveyLoaded waiting");delete Uia["g_strObsurveyXml"+id];setTimeout((function(pJ,qJ){return function(){Uia.rJ(pJ,qJ)
};})(id,hJ),100);return;}}}}
Uia.Aw=function(sJ,tJ,id){tJ.collapse();Uia.fJ(sJ,tJ,id);}
Uia.rJ=function(id,hJ){var eG=Uia["g_strObsurveyXml"+id];if(!eG){Uia.c("Checking for Survey xml, not loaded yet...");setTimeout(function(){Uia.rJ(id,hJ);},100);return;}
var uJ=document.getElementById(id);Uia.c("Survey: "+eG);if(eG.indexOf("<PasswordNeeded")==0){var DA=Uia.uk(eG);var KA=DA["aPasswordNeeded"][0].content;var tJ=new Uia.uw();tJ.Kw(function(sJ){Uia.Aw(sJ,tJ,id);});var vJ=new Uia.wm().collapse();vJ.xm("Style<style type=\"text/css\">"+".PasswordPrompt input {font-family: Verdana, Arial, sans-serif; font-size: 12pt; }\n.PasswordPrompt {		font-family: Verdana, Arial, sans-serif; font-size: 12pt; text-align: center; padding: 10px; margin: 10px; border: gray 1px solid; 	-moz-border-radius: 10px; 	-webkit-border-radius: 10px; 	border-radius: 10px; 	-webkit-box-shadow: rgba(0,0,0,.2) 0px 0px 6px; 	-moz-box-shadow: rgba(0,0,0,.2) 0px 0px 6px; 	box-shadow: rgba(0,0,0,.2) 0px 0px 6px; }"+"</style>");document.body.appendChild(vJ.zm());tJ.Lw(KA);tJ.vb(Uia.Pr)
tJ.hs(255,100,100);tJ.ls(255,245,245);tJ.Uo("PasswordPrompt");tJ.zm().align="center";tJ.Gw(false);var hj=new Uia.Pu(tJ).Rq(true).Rp("textAlign","center");uJ.parentNode.insertBefore(hj.zm(),uJ);}else if(eG.indexOf("<PasswordWrong")==0){hJ.expand();hJ.Sr();hJ.Tc(hJ,hJ.Qr);hJ.select();}else{if(hJ){hJ.collapse();}
var wJ=(uJ.src.indexOf("test=true")!==-1);var nJ=(uJ.src.indexOf("development=true")!==-1);var xJ=Uia["g_blnOneResponsePerComputer"+id];var yJ=new Uia.wy(0);yJ.GA(eG);var zJ=new Uia.ZH(yJ,wJ,id,nJ,xJ);uJ.parentNode.insertBefore(zJ.zm(),uJ);if(!window["jQuery"]){var lJ=document.getElementsByTagName("head")[0];var mJ=document.createElement('script');mJ.type='text/javascript';mJ.src="http://observey.appspot.com/static/javascript/jquery-1.5.2.min.js";lJ.appendChild(mJ);Uia.c("Loading JQuery");setTimeout(Uia.eJ,100);}else{Uia["sexyBookmarksReady"]();}
return;}};Uia.eJ=function(){if(!window["jQuery"]){Uia.c("waiting for JQuery- not loaded yet");setTimeout(Uia.eJ,100);}else{Uia.c("JQuery- Loaded");Uia["sexyBookmarksReady"]();}};setTimeout(function(){Uia.fJ()},1);Uia.fJ=function(gJ,hJ,iJ){Uia.c("Insert survey");Uia.c("Guid: "+Uia.f());var jJ=document.scripts;if(!jJ)jJ=document.getElementsByTagName('script');for(var F=0;F<jJ.length;F++){if(jJ[F].src.toLowerCase().indexOf("obsurveyembed")!==-1){var src,id=jJ[F].id;if(!Uia.kJ){Uia.kJ={};}
if(!Uia.kJ[id]&&!iJ||(!Uia.H(iJ)&&iJ==id)){Uia.kJ[id]=true;var lJ=document.getElementsByTagName("head")[0];var mJ=document.createElement('script');mJ.type='text/javascript';var nJ=(jJ[F].src.indexOf("development=true")!==-1)||(document.location.href.indexOf("obsurveydevelopment=true")!==-1);var oJ="";if(!Uia.H(gJ)){oJ="&pwd="+encodeURIComponent(gJ);}
if(nJ){src='WebServices/GetSurvey4.aspx?id='+id+oJ+"&r="+Math.round(Math.random()*999999);}else{src='http://obsurvey.com/WebServices/GetSurvey4.aspx?id='+id+oJ+"&r="+Math.round(Math.random()*999999);}
Uia.c(src);mJ.src=src;lJ.appendChild(mJ);Uia.c("Uia.surveyLoaded waiting");delete Uia["g_strObsurveyXml"+id];setTimeout((function(pJ,qJ){return function(){Uia.rJ(pJ,qJ)
};})(id,hJ),100);return;}}}}
Uia.Aw=function(sJ,tJ,id){tJ.collapse();Uia.fJ(sJ,tJ,id);}
Uia.rJ=function(id,hJ){var eG=Uia["g_strObsurveyXml"+id];if(!eG){Uia.c("Checking for Survey xml, not loaded yet...");setTimeout(function(){Uia.rJ(id,hJ);},100);return;}
var uJ=document.getElementById(id);Uia.c("Survey: "+eG);if(eG.indexOf("<PasswordNeeded")==0){var DA=Uia.uk(eG);var KA=DA["aPasswordNeeded"][0].content;var tJ=new Uia.uw();tJ.Kw(function(sJ){Uia.Aw(sJ,tJ,id);});var vJ=new Uia.wm().collapse();vJ.xm("Style<style type=\"text/css\">"+".PasswordPrompt input {font-family: Verdana, Arial, sans-serif; font-size: 12pt; }\n.PasswordPrompt {		font-family: Verdana, Arial, sans-serif; font-size: 12pt; text-align: center; padding: 10px; margin: 10px; border: gray 1px solid; 	-moz-border-radius: 10px; 	-webkit-border-radius: 10px; 	border-radius: 10px; 	-webkit-box-shadow: rgba(0,0,0,.2) 0px 0px 6px; 	-moz-box-shadow: rgba(0,0,0,.2) 0px 0px 6px; 	box-shadow: rgba(0,0,0,.2) 0px 0px 6px; }"+"</style>");document.body.appendChild(vJ.zm());tJ.Lw(KA);tJ.vb(Uia.Pr)
tJ.hs(255,100,100);tJ.ls(255,245,245);tJ.Uo("PasswordPrompt");tJ.zm().align="center";tJ.Gw(false);var hj=new Uia.Pu(tJ).Rq(true).Rp("textAlign","center");uJ.parentNode.insertBefore(hj.zm(),uJ);}else if(eG.indexOf("<PasswordWrong")==0){hJ.expand();hJ.Sr();hJ.Tc(hJ,hJ.Qr);hJ.select();}else{if(hJ){hJ.collapse();}
var wJ=(uJ.src.indexOf("test=true")!==-1);var nJ=(uJ.src.indexOf("development=true")!==-1);var xJ=Uia["g_blnOneResponsePerComputer"+id];var yJ=new Uia.wy(0);yJ.GA(eG);var zJ=new Uia.ZH(yJ,wJ,id,nJ,xJ);uJ.parentNode.insertBefore(zJ.zm(),uJ);if(!window["jQuery"]){var lJ=document.getElementsByTagName("head")[0];var mJ=document.createElement('script');mJ.type='text/javascript';mJ.src="http://observey.appspot.com/static/javascript/jquery-1.5.2.min.js";lJ.appendChild(mJ);Uia.c("Loading JQuery");setTimeout(Uia.eJ,100);}else{Uia["sexyBookmarksReady"]();}
return;}};Uia.eJ=function(){if(!window["jQuery"]){Uia.c("waiting for JQuery- not loaded yet");setTimeout(Uia.eJ,100);}else{Uia.c("JQuery- Loaded");Uia["sexyBookmarksReady"]();}};setTimeout(function(){Uia.fJ()},1);
