var FSR = {
    'version': '4.0.0',
    'Date:': '5/07/2009',
    'enabled': true,
    'files': '/wcsstore/MenswearhouseStorefrontAssetStore/media/foresee/',
    //'files': 'http://<hostname>/foresee/',
    'id': 'd808x05FV8Rol0lZdUIYMw==',
    'sites': [{
        path: 'menswearhouse.com',
        cookie: 'session',
        domain: 'menswearhouse.com'
    },{
        path: 'wcdvlp01.tmw.com',
        cookie: 'session',
        domain: 'wcdvlp01.tmw.com'
    },{
        path: 'wctest.tmw.com',
        cookie: 'session',
        domain: 'wctest.tmw.com'
    },{
        path: 'wcstag01.tmw.com',
        cookie: 'session',
        domain: 'wcstag01.tmw.com'
    }]
};
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
function fsr$setAlive(){var A=new Date().getTime();document.cookie="foresee.alive="+A+";path=/;domain="+FSR.site.domain+";"
}(function(){var C=FSR.sites;for(var B=0,A=C.length;B<A;B++){if(document.location.href.match(C[B].path)){FSR.siteid=B;
FSR.site=FSR.sites[FSR.siteid];if(FSR.site.files){FSR.files=FSR.site.files}break}}if(!window["fsr$timer"]){fsr$setAlive();
window["fsr$timer"]=setInterval(fsr$setAlive,1000)}})();fsr$dbug={log:function(){}};FSR.Native=function(J){J=J||{};
var F=J.afterImplement||function(){};var G=J.generics;G=(G!==false);var H=J.legacy;var E=J.initialize;
var B=J.protect;var A=J.name;var C=E||H;C.xconstructor=FSR.Native;C.fsr$family={name:"native"};if(H&&E){C.prototype=H.prototype
}C.prototype.xconstructor=C;if(A&&A!="Array"){var D=A.toLowerCase();C.prototype.fsr$family={name:D}
}var I=function(M,K,N,L){if(!B||L||!M.prototype[K]){M.prototype[K]=N}if(G){FSR.Native.genericize(M,K,B)
}F.call(M,K,N);return M};C.fsr$implement=function(L,K,N){if(typeof L=="string"){return I(this,L,K,N)
}for(var M in L){I(this,M,L[M],K)}return this};C.fsr$alias=function(M,K,N){if(typeof M=="string"){M=this.prototype[M];
if(M){I(this,K,M,N)}}else{for(var L in M){this.fsr$alias(L,M[L],K)}}return this};return C};FSR.Native.fsr$implement=function(D,C){for(var B=0,A=D.length;
B<A;B++){D[B].fsr$implement(C)}};FSR.Native.genericize=function(B,C,A){if((!A||!B[C])&&typeof B.prototype[C]=="function"){B[C]=function(){var D=Array.prototype.slice.call(arguments);
return B.prototype[C].apply(D.shift(),D)}}};FSR.Native.fsr$alias=function(E,B,A,F){for(var D=0,C=E.length;
D<C;D++){E[D].fsr$alias(B,A,F)}};(function(B){for(var A in B){new FSR.Native({name:A,initialize:B[A],protect:true,generics:true})
}})({String:String,Function:Function,Number:Number,Array:Array,RegExp:RegExp,Date:Date});FSR.$chk=function(A){return !!(A||A===0)
};FSR.$clear=function(A){clearTimeout(A);clearInterval(A);return null};FSR.$defined=function(A){return(A!=undefined)
};FSR.$empty=function(){};FSR.$arguments=function(A){return function(){return arguments[A]}};FSR.$lambda=function(A){return(typeof A=="function")?A:function(){return A
}};FSR.$extend=function(C,A){for(var B in (A||{})){C[B]=A[B]}return C};FSR.$unlink=function(C){var B;
switch(FSR.$type(C)){case"object":B={};for(var E in C){B[E]=FSR.$unlink(C[E])}break;case"hash":B=FSR.$unlink(C.fsr$getClean());
break;case"array":B=[];for(var D=0,A=C.length;D<A;D++){B[D]=FSR.$unlink(C[D])}break;default:return C
}return B};FSR.$merge=function(){var E={};for(var D=0,A=arguments.length;D<A;D++){var B=arguments[D];
if(FSR.$type(B)!="object"){continue}for(var C in B){var G=B[C],F=E[C];E[C]=(F&&FSR.$type(G)=="object"&&FSR.$type(F)=="object")?FSR.$merge(F,G):FSR.$unlink(G)
}}return E};FSR.$pick=function(){for(var B=0,A=arguments.length;B<A;B++){if(arguments[B]!=undefined){return arguments[B]
}}return null};FSR.$random=function(B,A){return(Math.random()*(A-B))+B};FSR.$splat=function(B){var A=FSR.$type(B);
return(A)?((A!="array"&&A!="arguments")?[B]:B):[]};FSR.$time=Date.now||function(){return new Date().getTime()
};FSR.$try=function(){for(var B=0,A=arguments.length;B<A;B++){try{return arguments[B]()}catch(C){}}return null
};FSR.$type=function(A){if(A==undefined){return false}if(A.fsr$family){return(A.fsr$family.name=="number"&&!isFinite(A))?false:A.fsr$family.name
}if(A.nodeName){switch(A.nodeType){case 1:return"element";case 3:return(/\S/).test(A.nodeValue)?"textnode":"whitespace"
}}else{if(typeof A.length=="number"){if(A.callee){return"arguments"}else{if(A.item){return"collection"
}}}}if(FSR.isArray(A)){return"array"}return typeof A};FSR.isArray=function(B){if(typeof B=="object"){var A=B.constructor.toString().match(/array/i);
return(A!=null)}return false};FSR.Hash=new FSR.Native({name:"Hash",initialize:function(A){if(FSR.$type(A)=="hash"){A=FSR.$unlink(A.fsr$getClean())
}for(var B in A){this[B]=A[B]}return this}});FSR.Hash.fsr$implement({fsr$getLength:function(){var B=0;
for(var A in this){if(this.hasOwnProperty(A)){B++}}return B},fsr$forEach:function(B,C){for(var A in this){if(this.hasOwnProperty(A)){B.call(C,this[A],A,this)
}}},fsr$getClean:function(){var B={};for(var A in this){if(this.hasOwnProperty(A)){B[A]=this[A]}}return B
},fsr$empty:function(){FSR.Hash.fsr$each(this,function(B,A){delete this[A]},this);return this}});
FSR.Hash.fsr$alias("fsr$forEach","fsr$each");FSR.$H=function(A){return new FSR.Hash(A)};Array.fsr$implement({fsr$forEach:function(C,D){for(var B=0,A=this.length;
B<A;B++){C.call(D,this[B],B,this)}}});Array.fsr$alias("fsr$forEach","fsr$each");FSR.$A=function(C){if(C.item){var D=[];
for(var B=0,A=C.length;B<A;B++){D[B]=C[B]}return D}return Array.prototype.slice.call(C)};FSR.$each=function(C,B,D){var A=FSR.$type(C);
((A=="arguments"||A=="collection"||A=="array")?Array:FSR.Hash).fsr$each(C,B,D)};FSR.Browser=new FSR.Hash({Type:{name:"unknown",version:""},Engine:{name:"unknown",version:""},Platform:{name:(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),os:"unknown"},Features:{xpath:!!(document.evaluate),air:!!(window.runtime)},Plugins:{},searchString:function(D){for(var A=0;
A<D.length;A++){var B=D[A].string;var C=D[A].prop;this.versionSearchString=D[A].versionSearch||D[A].identity;
if(B){if(B.indexOf(D[A].subString)!=-1){return D[A].identity}}else{if(C){return D[A].identity}}}},searchVersion:function(B){var A=B.indexOf(this.versionSearchString);
if(A==-1){return }return parseFloat(B.substring(A+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]});
if(window.opera){FSR.Browser.Engine={name:"presto",version:(document.getElementsByClassName)?950:925}
}else{if(window.ActiveXObject){FSR.Browser.Engine={name:"trident",version:(window.XMLHttpRequest)?5:4}
}else{if(!navigator.taintEnabled){FSR.Browser.Engine={name:"webkit",version:(FSR.Browser.Features.xpath)?420:419}
}else{if(document.getBoxObjectFor!=null){FSR.Browser.Engine={name:"gecko",version:(document.getElementsByClassName)?19:18}
}}}}FSR.Browser.Engine[FSR.Browser.Engine.name]=FSR.Browser.Engine[FSR.Browser.Engine.name+FSR.Browser.Engine.version]=true;
if(window.orientation!=undefined){FSR.Browser.Platform.name="ipod"}FSR.Browser.Platform[FSR.Browser.Platform.name]=true;
FSR.Browser.Request=function(){return FSR.$try(function(){return new XMLHttpRequest()},function(){return new ActiveXObject("MSXML2.XMLHTTP")
})};FSR.Browser.Features.xhr=!!(FSR.Browser.Request());FSR.Browser.Plugins.Flash=(function(){var A=(FSR.$try(function(){return navigator.plugins["Shockwave Flash"].description
},function(){return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")})||"0 r0").match(/\d+/g);
return{version:parseInt(A[0]||0+"."+A[1]||0),build:parseInt(A[2]||0)}})();FSR.Browser.Type.name=FSR.Browser.searchString(FSR.Browser.dataBrowser)||"unknown";
FSR.Browser.Type.version=FSR.Browser.searchVersion(navigator.userAgent)||FSR.Browser.searchVersion(navigator.appVersion)||"unknown";
FSR.Browser.Platform.os=FSR.Browser.searchString(FSR.Browser.dataOS)||"unknown";FSR.$exec=function(B){if(!B){return B
}if(window.execScript){window.execScript(B)}else{var A=document.createElement("script");A.setAttribute("type","text/javascript");
A.text=B;document.fsr$head.appendChild(A);document.fsr$head.removeChild(A)}return B};FSR.Native.UID=1;
FSR.$uid=(FSR.Browser.Engine.trident)?function(A){return(A.fsr$uid||(A.fsr$uid=[FSR.Native.UID++]))[0]
}:function(A){return A.fsr$uid||(A.fsr$uid=FSR.Native.UID++)};FSR.Window=new FSR.Native({name:"Window",initialize:function(A){FSR.$uid(A);
if(!A.Element){A.Element=FSR.$empty;if(FSR.Browser.Engine.webkit){A.document.createElement("iframe")
}A.Element.prototype=(FSR.Browser.Engine.webkit)?window["[[DOMElement.prototype]]"]:{}}return FSR.$extend(A,FSR.Window.Prototype)
},afterImplement:function(B,A){window[B]=FSR.Window.Prototype[B]=A;FSR.Window.Prototype[B]=A}});FSR.Window.Prototype={fsr$family:{name:"window"}};
new FSR.Window(window);FSR.Document=new FSR.Native({name:"Document",initialize:function(A){FSR.$uid(A);
A.fsr$head=A.getElementsByTagName("head")[0];A.fsr$html=A.getElementsByTagName("html")[0];A.fsr$window=A.defaultView||A.parentWindow;
if(FSR.Browser.Engine.trident4){FSR.$try(function(){A.execCommand("BackgroundImageCache",false,true)
})}return FSR.$extend(A,FSR.Document.Prototype)},afterImplement:function(B,A){document[B]=FSR.Document.Prototype[B]=A;
FSR.Document.Prototype[B]=A}});FSR.Document.Prototype={fsr$family:{name:"document"}};new FSR.Document(document);
Array.fsr$implement({fsr$indexOf:function(C,D){var A=this.length;for(var B=(D<0)?Math.max(0,A+D):D||0;
B<A;B++){if(this[B]===C){return B}}return -1},fsr$map:function(D,E){var C=[];for(var B=0,A=this.length;
B<A;B++){C[B]=D.call(E,this[B],B,this)}return C},fsr$associate:function(C){var D={},B=Math.min(this.length,C.length);
for(var A=0;A<B;A++){D[C[A]]=this[A]}return D},fsr$contains:function(A,B){return this.fsr$indexOf(A,B)!=-1
},fsr$extend:function(C){for(var B=0,A=C.length;B<A;B++){this.push(C[B])}return this},fsr$include:function(A){if(!this.fsr$contains(A)){this.push(A)
}return this},fsr$flatten:function(){var D=[];for(var B=0,A=this.length;B<A;B++){var C=FSR.$type(this[B]);
if(!C){continue}D=D.concat((C=="array"||C=="collection"||C=="arguments")?Array.fsr$flatten(this[B]):this[B])
}return D},fsr$slice:function(){return Array.prototype.slice.apply(this,arguments)}});Function.fsr$implement({fsr$extend:function(A){for(var B in A){this[B]=A[B]
}return this},fsr$create:function(B){var A=this;B=B||{};return function(D){var C=B.arguments;C=(C!=undefined)?FSR.$splat(C):Array.fsr$slice(arguments,(B.event)?1:0);
if(B.event){C=[D||window.event].fsr$extend(C)}var E=function(){return A.apply(B.bind||null,C)};if(B.delay){return setTimeout(E,B.delay)
}if(B.periodical){return setInterval(E,B.periodical)}if(B.attempt){return FSR.$try(E)}return E()}
},fsr$pass:function(A,B){return this.fsr$create({arguments:A,bind:B})},fsr$attempt:function(A,B){return this.fsr$create({arguments:A,bind:B,attempt:true})()
},fsr$bind:function(B,A){return this.fsr$create({bind:B,arguments:A})},fsr$bindWithEvent:function(B,A){return this.fsr$create({bind:B,event:true,arguments:A})
},fsr$delay:function(B,C,A){return this.fsr$create({delay:B,bind:C,arguments:A})()},fsr$periodical:function(A,C,B){return this.fsr$create({periodical:A,bind:C,arguments:B})()
},fsr$run:function(A,B){return this.apply(B,FSR.$splat(A))}});Number.fsr$implement({fsr$toInt:function(A){return parseInt(this,A||10)
}});String.fsr$implement({fsr$test:function(A,B){return((typeof A=="string")?new RegExp(A,B):A).test(this)
},fsr$contains:function(A,B){return(B)?(B+this+B).indexOf(B+A+B)>-1:this.indexOf(A)>-1},fsr$trim:function(){return this.replace(/^\s+|\s+$/g,"")
},fsr$clean:function(){return this.replace(/\s+/g," ").fsr$trim()},fsr$camelCase:function(){return this.replace(/-\D/g,function(A){return A.charAt(1).toUpperCase()
})},fsr$hyphenate:function(){return this.replace(/[A-Z]/g,function(A){return("-"+A.charAt(0).toLowerCase())
})},fsr$capitalize:function(){return this.replace(/\b[a-z]/g,function(A){return A.toUpperCase()})
},fsr$escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},fsr$toInt:function(A){return parseInt(this,A||10)
},fsr$stripScripts:function(B){var A="";var C=this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){A+=arguments[1]+"\n";
return""});if(B===true){FSR.$exec(A)}else{if(FSR.$type(B)=="function"){B(A,C)}}return C},fsr$substitute:function(A,B){return this.replace(B||(/\\?\{([^}]+)\}/g),function(D,C){if(D.charAt(0)=="\\"){return D.slice(1)
}return(A[C]!=undefined)?A[C]:""})}});FSR.Hash.fsr$implement({fsr$has:Object.prototype.hasOwnProperty,fsr$keyOf:function(B){for(var A in this){if(this.hasOwnProperty(A)&&this[A]===B){return A
}}return null},fsr$extend:function(A){FSR.Hash.fsr$each(A,function(C,B){FSR.Hash.fsr$set(this,B,C)
},this);return this},fsr$combine:function(A){FSR.Hash.fsr$each(A,function(C,B){FSR.Hash.fsr$include(this,B,C)
},this);return this},fsr$erase:function(A){if(this.hasOwnProperty(A)){delete this[A]}return this},fsr$get:function(A){return(this.hasOwnProperty(A))?this[A]:null
},fsr$set:function(A,B){if(!this[A]||this.hasOwnProperty(A)){this[A]=B}return this},fsr$include:function(B,C){var A=this[B];
if(A==undefined){this[B]=C}return this},fsr$toQueryString:function(A){var B=[];FSR.Hash.fsr$each(this,function(F,E){if(A){E=A+"["+E+"]"
}var D;switch(FSR.$type(F)){case"object":D=FSR.Hash.fsr$toQueryString(F,E);break;case"array":var C={};
F.fsr$each(function(H,G){C[G]=H});D=FSR.Hash.fsr$toQueryString(C,E);break;default:D=E+"="+encodeURIComponent(F)
}if(F!=undefined){B.push(D)}});return B.join("&")}});FSR.Hash.fsr$alias({fsr$keyOf:"fsr$indexOf",fsr$hasValue:"fsr$contains"});
FSR.Event=new FSR.Native({name:"Event",initialize:function(A,F){F=F||window;var K=F.document;A=A||F.event;
if(A.fsr$extended){return A}this.fsr$extended=true;var J=A.type;var G=A.target||A.srcElement;while(G&&G.nodeType==3){G=G.parentNode
}if(J.fsr$test(/key/)){var B=A.which||A.keyCode;var M=FSR.Event.Keys.fsr$keyOf(B);if(J=="keydown"){var D=B-111;
if(D>0&&D<13){M="f"+D}}M=M||String.fromCharCode(B).toLowerCase()}else{if(J.match(/(click|mouse|menu)/i)){K=(!K.compatMode||K.compatMode=="CSS1Compat")?K.getElementsByTagName("html")[0]:K.body;
var I={x:A.pageX||A.clientX+K.scrollLeft,y:A.pageY||A.clientY+K.scrollTop};var C={x:(A.pageX)?A.pageX-F.pageXOffset:A.clientX,y:(A.pageY)?A.pageY-F.pageYOffset:A.clientY};
if(J.match(/DOMMouseScroll|mousewheel/)){var H=(A.wheelDelta)?A.wheelDelta/120:-(A.detail||0)/3}var E=(A.which==3)||(A.button==2);
var L=null;if(J.match(/over|out/)){switch(J){case"mouseover":L=A.relatedTarget||A.fromElement;break;
case"mouseout":L=A.relatedTarget||A.toElement}if(!(function(){while(L&&L.nodeType==3){L=L.parentNode
}return true}).fsr$create({attempt:FSR.Browser.Engine.gecko})()){L=false}}}}return FSR.$extend(this,{event:A,type:J,page:I,client:C,rightClick:E,wheel:H,relatedTarget:L,target:G,code:B,key:M,shift:A.shiftKey,control:A.ctrlKey,alt:A.altKey,meta:A.metaKey})
}});FSR.Event.Keys=new FSR.Hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});
FSR.Class=new FSR.Native({name:"Class",initialize:function(B){B=B||{};var A=function(E){for(var D in this){this[D]=FSR.$unlink(this[D])
}for(var F in FSR.Class.Mutators){if(F=="extend"){continue}if(!this[F]){continue}FSR.Class.Mutators[F](this,this[F]);
delete this[F]}this.constructor=A;if(E===FSR.$empty){return this}var C=(this.initialize)?this.initialize.apply(this,arguments):this;
if(this.options&&this.options.initialize){this.options.initialize.call(this)}return C};FSR.$extend(A,this);
A.constructor=FSR.Class;A.prototype=B;return A}});FSR.Class.fsr$implement({fsr$implement:function(){FSR.Class.Mutators.Implements(this.prototype,Array.fsr$slice(arguments));
return this}});FSR.Class.Mutators={Implements:function(A,B){FSR.$splat(B).fsr$each(function(C){FSR.$extend(A,(FSR.$type(C)=="class")?new C(FSR.$empty):C)
})},Extends:function(self,klass){var instance=new klass(FSR.$empty);delete instance.parent;delete instance.parentOf;
for(var key in instance){var current=self[key],previous=instance[key];if(current==undefined){self[key]=previous;
continue}var ctype=FSR.$type(current),ptype=FSR.$type(previous);if(ctype!=ptype){continue}switch(ctype){case"function":if(!arguments.callee.caller){self[key]=eval("("+String(current).replace(/\bthis\.parent\(\s*(\))?/g,function(full,close){return"arguments.callee._parent_.call(this"+(close||", ")
})+")")}self[key]._parent_=previous;break;case"object":self[key]=FSR.$merge(previous,current)}}self.parent=function(){return arguments.callee.caller._parent_.apply(this,arguments)
};self.parentOf=function(descendant){return descendant._parent_.apply(this,Array.fsr$slice(arguments,1))
}}};FSR.Chain=new FSR.Class({chain:function(){this.$chain=(this.$chain||[]).fsr$extend(arguments);
return this},callChain:function(){return(this.$chain&&this.$chain.length)?this.$chain.shift().apply(this,arguments):false
},clearChain:function(){if(this.$chain){this.$chain.fsr$empty()}return this}});FSR.Events=new FSR.Class({fsr$addEvent:function(C,B,A){C=FSR.Events.removeOn(C);
if(B!=FSR.$empty){this.$events=this.$events||{};this.$events[C]=this.$events[C]||[];this.$events[C].fsr$include(B);
if(A){B.internal=true}}return this},fsr$addEvents:function(A){for(var B in A){this.fsr$addEvent(B,A[B])
}return this},fsr$fireEvent:function(C,B,A){C=FSR.Events.removeOn(C);if(!this.$events||!this.$events[C]){return this
}this.$events[C].fsr$each(function(D){D.fsr$create({bind:this,delay:A,"arguments":B})()},this);return this
},fsr$removeEvent:function(B,A){B=FSR.Events.removeOn(B);if(!this.$events||!this.$events[B]){return this
}if(!A.internal){this.$events[B].fsr$erase(A)}return this},fsr$removeEvents:function(C){for(var D in this.$events){if(C&&C!=D){continue
}var B=this.$events[D];for(var A=B.length;A--;A){this.fsr$removeEvent(D,B[A])}}return this}});FSR.Events.removeOn=function(A){return A.replace(/^on([A-Z])/,function(B,C){return C.toLowerCase()
})};FSR.Options=new FSR.Class({setOptions:function(){this.options=FSR.$merge.fsr$run([this.options].fsr$extend(arguments));
if(!this.fsr$addEvent){return this}for(var A in this.options){if(FSR.$type(this.options[A])!="function"||!(/^on[A-Z]/).test(A)){continue
}this.fsr$addEvent(A,this.options[A]);delete this.options[A]}return this}});FSR.Document.fsr$implement({fsr$newElement:function(A,B){if(FSR.Browser.Engine.trident&&B){["name","type","checked"].fsr$each(function(C){if(!B[C]){return 
}A+=" "+C+'="'+B[C]+'"';if(C!="checked"){delete B[C]}});A="<"+A+">"}return $fsr.element(this.createElement(A)).fsr$set(B)
},fsr$newTextNode:function(A){return this.createTextNode(A)},fsr$getDocument:function(){return this
},fsr$getWindow:function(){return this.defaultView||this.parentWindow},fsr$purge:function(){var C=this.getElementsByTagName("*");
for(var B=0,A=C.length;B<A;B++){FSR.Browser.freeMem(C[B])}}});FSR.Element=new FSR.Native({name:"Element",initialize:function(A,B){var C=FSR.Element.Constructors.fsr$get(A);
if(C){return C(B)}if(typeof A=="string"){return document.fsr$newElement(A,B)}return $fsr(A).fsr$set(B)
},afterImplement:function(A,B){if(!Array[A]){FSR.Elements.fsr$implement(A,FSR.Elements.fsr$multi(A))
}FSR.Element.Prototype[A]=B}});FSR.Element.Prototype={fsr$family:{name:"element"}};FSR.Element.Constructors=new FSR.Hash;
FSR.Elements=new FSR.Native({initialize:function(F,B){B=FSR.$extend({ddup:true,cash:true},B);F=F||[];
if(B.ddup||B.cash){var G={},E=[];for(var C=0,A=F.length;C<A;C++){var D=$fsr.element(F[C],!B.cash);
if(B.ddup){if(G[D.fsr$uid]){continue}G[D.fsr$uid]=true}E.push(D)}F=E}return(B.cash)?FSR.$extend(F,this):F
}});FSR.Elements.fsr$implement({fsr$filter:function(A,B){if(!A){return this}return new FSR.Elements(Array.fsr$filter(this,(typeof A=="string")?function(C){return C.match(A)
}:A,B))}});FSR.Elements.fsr$multi=function(A){return function(){var B=[];var F=true;for(var D=0,C=this.length;
D<C;D++){var E=this[D][A].apply(this[D],arguments);B.push(E);if(F){F=(FSR.$type(E)=="element")}}return(F)?new FSR.Elements(B):B
}};FSR.Window.fsr$implement({$fsr:function(B,C){if(B&&B.fsr$family&&B.fsr$uid){return B}var A=FSR.$type(B);
return($fsr[A])?$fsr[A](B,C,this.document):null},$$fsr:function(A){if(arguments.length==1&&typeof A=="string"){return this.document.fsr$getElements(A)
}var F=[];var C=Array.fsr$flatten(arguments);for(var D=0,B=C.length;D<B;D++){var E=C[D];switch(FSR.$type(E)){case"element":E=[E];
break;case"string":E=this.document.fsr$getElements(E,true);break;default:E=false}if(E){F.fsr$extend(E)
}}return new FSR.Elements(F)},fsr$getDocument:function(){return this.document},fsr$getWindow:function(){return this
}});$fsr.string=function(C,B,A){C=A.getElementById(C);return(C)?$fsr.element(C,B):null};$fsr.element=function(A,D){FSR.$uid(A);
if(!D&&!A.fsr$family&&!(/^object|embed$/i).test(A.tagName)){var B=FSR.Element.Prototype;for(var C in B){A[C]=B[C]
}}return A};$fsr.object=function(B,C,A){if(B.toElement){return $fsr.element(B.toElement(A),C)}return null
};$fsr.textnode=$fsr.whitespace=$fsr.window=$fsr.document=FSR.$arguments(0);FSR.Native.fsr$implement([FSR.Element,FSR.Document],{fsr$getElement:function(A,B){return $fsr(this.fsr$getElements(A,true)[0]||null,B)
},fsr$getElements:function(A,D){A=A.split(",");var C=[];var B=(A.length>1);A.fsr$each(function(E){var F=this.getElementsByTagName(E.fsr$trim());
(B)?C.fsr$extend(F):C=F},this);return new FSR.Elements(C,{ddup:B,cash:!D})}});FSR.Element.Storage={fsr$get:function(A){return(this[A]||(this[A]={}))
}};FSR.Element.Inserters=new FSR.Hash({after:function(B,A){if(!A.parentNode){return }var C=A.nextSibling;
(C)?A.parentNode.insertBefore(B,C):A.parentNode.appendChild(B)},bottom:function(B,A){A.appendChild(B)
}});FSR.Element.Inserters.inside=FSR.Element.Inserters.bottom;FSR.Element.fsr$implement({fsr$getDocument:function(){return this.ownerDocument
},fsr$getWindow:function(){return this.ownerDocument.fsr$getWindow()},fsr$set:function(D,B){switch(FSR.$type(D)){case"object":for(var C in D){this.fsr$set(C,D[C])
}break;case"string":var A=FSR.Element.Properties.fsr$get(D);(A&&A.fsr$set)?A.fsr$set.apply(this,Array.fsr$slice(arguments,1)):this.fsr$setProperty(D,B)
}return this},fsr$inject:function(B,A){FSR.Element.Inserters.fsr$get(A||"bottom")(this,$fsr(B,true));
return this},fsr$dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this
},fsr$setProperty:function(D,E){var C=FSR.Element.Attributes,B=C.Props[D],A=FSR.$defined(E);if(B&&C.Bools[D]){E=(E||!A)?true:false
}else{if(!A){return this.removeProperty(D)}}(B)?this[B]=E:this.setAttribute(D,E);return this},fsr$setProperties:function(A){for(var B in A){this.fsr$setProperty(B,A[B])
}return this}});FSR.Element.Properties=new FSR.Hash;FSR.Element.Properties.html={fsr$set:function(){return this.innerHTML=Array.fsr$flatten(arguments).join("")
}};FSR.Native.fsr$implement([FSR.Element,FSR.Window,FSR.Document],{fsr$addListener:function(B,A){if(this.addEventListener){this.addEventListener(B,A,false)
}else{this.attachEvent("on"+B,A)}return this},fsr$removeListener:function(B,A){if(this.removeEventListener){this.removeEventListener(B,A,false)
}else{this.detachEvent("on"+B,A)}return this},fsr$retrieve:function(B,A){var D=FSR.Element.Storage.fsr$get(this.fsr$uid);
var C=D[B];if(FSR.$defined(A)&&!FSR.$defined(C)){C=D[B]=A}return FSR.$pick(C)},fsr$store:function(B,A){var C=FSR.Element.Storage.fsr$get(this.fsr$uid);
C[B]=A;return this},fsr$eliminate:function(A){var B=FSR.Element.Storage.fsr$get(this.fsr$uid);delete B[A];
return this}});FSR.Element.Attributes=new FSR.Hash({Props:{html:"innerHTML","class":"className","for":"htmlFor",text:(FSR.Browser.Engine.trident)?"innerText":"textContent"},Bools:["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"],Camels:["value","accessKey","cellPadding","cellSpacing","colSpan","frameBorder","maxLength","readOnly","rowSpan","tabIndex","useMap"]});
FSR.Browser.freeMem=function(A){if(!A){return }if(FSR.Browser.Engine.trident&&(/object/i).test(A.tagName)){for(var B in A){if(typeof A[B]=="function"){A[B]=FSR.$empty
}}FSR.Element.fsr$dispose(A)}if(A.fsr$uid&&A.fsr$removeEvents){A.fsr$removeEvents()}};(function(A){var C=A.Bools,B=A.Camels;
A.Bools=C=C.fsr$associate(C);FSR.Hash.fsr$extend(FSR.Hash.fsr$combine(A.Props,C),B.fsr$associate(B.fsr$map(function(D){return D.toLowerCase()
})));A.fsr$erase("Camels")})(FSR.Element.Attributes);window.fsr$addListener("unload",function(){window.fsr$removeListener("unload",arguments.callee);
document.fsr$purge();if(FSR.Browser.Engine.trident){CollectGarbage()}});FSR.Element.Properties.events={fsr$set:function(A){this.fsr$addEvents(A)
}};FSR.Native.fsr$implement([FSR.Element,FSR.Window,FSR.Document],{fsr$addEvent:function(E,G){var H=this.fsr$retrieve("events",{});
H[E]=H[E]||{keys:[],values:[]};if(H[E].keys.fsr$contains(G)){return this}H[E].keys.push(G);var F=E,A=FSR.Element.Events.fsr$get(E),C=G,I=this;
if(A){if(A.onAdd){A.onAdd.call(this,G)}if(A.condition){C=function(J){if(A.condition.call(this,J)){return G.call(this,J)
}return false}}F=A.base||F}var D=function(){return G.call(I)};var B=FSR.Element.NativeEvents[F]||0;
if(B){if(B==2){D=function(J){J=new FSR.Event(J,I.fsr$getWindow());if(C.call(I,J)===false){J.stop()
}}}this.fsr$addListener(F,D)}H[E].values.push(D);return this},fsr$removeEvent:function(D,C){var B=this.fsr$retrieve("events");
if(!B||!B[D]){return this}var G=B[D].keys.fsr$indexOf(C);if(G==-1){return this}var A=B[D].keys.splice(G,1)[0];
var F=B[D].values.splice(G,1)[0];var E=FSR.Element.Events.fsr$get(D);if(E){if(E.onRemove){E.onRemove.call(this,C)
}D=E.base||D}return(FSR.Element.NativeEvents[D])?this.fsr$removeListener(D,F):this},fsr$addEvents:function(A){for(var B in A){if(A.hasOwnProperty(B)){this.fsr$addEvent(B,A[B])
}}return this},fsr$removeEvents:function(B){var A=this.fsr$retrieve("events");if(!A){return this}if(!B){for(var C in A){if(A.hasOwnProperty(C)){this.fsr$removeEvents(C)
}}A=null}else{if(A[B]){while(A[B].keys[0]){this.fsr$removeEvent(B,A[B].keys[0])}A[B]=null}}return this
},fsr$fireEvent:function(D,B,A){var C=this.fsr$retrieve("events");if(!C||!C[D]){return this}C[D].keys.fsr$each(function(E){E.fsr$create({bind:this,delay:A,"arguments":B})()
},this);return this}});FSR.Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:1,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1};
(function(){FSR.$check=function(A){var B=A.relatedTarget;if(B==undefined){return true}if(B===false){return false
}return(FSR.$type(this)!="document"&&B!=this&&B.prefix!="xul"&&!this.fsr$hasChild(B))};FSR.Element.Events=new FSR.Hash({mouseenter:{base:"mouseover",condition:FSR.$check},mouseleave:{base:"mouseout",condition:FSR.$check},mousewheel:{base:(FSR.Browser.Engine.gecko)?"DOMMouseScroll":"mousewheel"}})
})();FSR.Element.fsr$implement({fsr$hasChild:function(A){A=$fsr(A,true);return(!!A&&FSR.$A(this.getElementsByTagName(A.tagName)).fsr$contains(A))
}});(function(){FSR.Native.fsr$implement([FSR.Document,FSR.Window],{fsr$getSize:function(){var C=this.fsr$getWindow();
if(FSR.Browser.Engine.presto||FSR.Browser.Engine.webkit){return{x:C.innerWidth,y:C.innerHeight}}var B=A(this);
return{x:B.clientWidth,y:B.clientHeight}},fsr$getScroll:function(){var C=this.fsr$getWindow();var B=A(this);
return{x:C.pageXOffset||B.scrollLeft,y:C.pageYOffset||B.scrollTop}},fsr$getScrollSize:function(){var C=A(this);
var B=this.fsr$getSize();return{x:Math.max(C.scrollWidth,B.x),y:Math.max(C.scrollHeight,B.y)}}});
function A(B){var C=B.fsr$getDocument();return(!C.compatMode||C.compatMode=="CSS1Compat")?C.getElementsByTagName("html")[0]:C.body
}})();FSR.Element.Events.domready={onAdd:function(A){if(FSR.Browser.loaded){A.call(this)}}};(function(){var A=function(){if(FSR.Browser.loaded){return 
}FSR.Browser.loaded=true;window.fsr$fireEvent("domready");document.fsr$fireEvent("domready")};switch(FSR.Browser.Engine.name){case"webkit":(function(){(["loaded","complete"].fsr$contains(document.readyState))?A():arguments.callee.fsr$delay(50)
})();break;case"trident":var B=document.createElement("div");(function(){(FSR.$try(function(){B.doScroll("left");
return $fsr(B).fsr$inject(document.body).fsr$set("html","temp").fsr$dispose()}))?A():arguments.callee.fsr$delay(50)
})();break;default:window.fsr$addEvent("load",A);document.fsr$addEvent("DOMContentLoaded",A)}})();
FSR.JSON=new FSR.Hash({encode:function(B){switch(FSR.$type(B)){case"string":return'"'+B.replace(/[\x00-\x1f\\"]/g,FSR.JSON.$replaceChars)+'"';
case"array":return"["+String(B.fsr$map(FSR.JSON.encode).fsr$filter(FSR.$defined))+"]";case"object":case"hash":var A=[];
FSR.Hash.fsr$each(B,function(E,D){var C=FSR.JSON.encode(E);if(C){A.push(FSR.JSON.encode(D)+":"+C)
}});return"{"+A+"}";case"number":case"boolean":return String(B);case false:return"null"}return null
},$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(A){return FSR.JSON.$specialChars[A]||"\\u00"+Math.floor(A.charCodeAt()/16).toString(16)+(A.charCodeAt()%16).toString(16)
},decode:function(string,secure){if(FSR.$type(string)!="string"||!string.length){return null}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null
}return eval("("+string+")")}});FSR.Native.fsr$implement([FSR.Hash,Array,String,Number],{fsr$toJSON:function(){return FSR.JSON.encode(this)
}});FSR.Cookie=new FSR.Class({Implements:FSR.Options,options:{path:false,domain:false,duration:false,secure:false,document:document},initialize:function(B,A){this.key=B;
this.setOptions(A)},write:function(B){if(this.options.domain){B+="; domain="+this.options.domain}if(this.options.path){B+="; path="+this.options.path
}if(this.options.duration){var A=new Date();A.setTime(A.getTime()+this.options.duration*24*60*60*1000);
B+="; expires="+A.toGMTString()}if(this.options.secure){B+="; secure"}this.options.document.cookie=this.key+"="+B;
return this},read:function(){var A=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.fsr$escapeRegExp()+"=([^;]*)");
return(A)?decodeURIComponent(A[1]):null},dispose:function(){new FSR.Cookie(this.key,FSR.$merge(this.options,{duration:-1})).write("");
return this}});FSR.Cookie.write=function(B,C,A){return new FSR.Cookie(B,A).write(C)};FSR.Cookie.read=function(A){return new FSR.Cookie(A).read()
};FSR.Cookie.dispose=function(B,A){return new FSR.Cookie(B,A).dispose()};FSR.Hash.Cookie=new FSR.Class({Extends:FSR.Cookie,options:{autoSave:true},initialize:function(B,A){this.parent(B,A);
this.load()},save:function(){var A=FSR.JSON.encode(this.hash);if(!A||A.length>4096){return false}if(A=="{}"){this.dispose()
}else{this.write(A)}return true},load:function(){this.hash=new FSR.Hash(FSR.JSON.decode(this.read(),true));
return this}});FSR.Hash.Cookie.fsr$implement({fsr$get:function(A){return this.hash.fsr$get(A)},fsr$set:function(A,B){this.hash.fsr$set(A,B);
this.save();return this},fsr$erase:function(A){this.hash.fsr$erase(A);this.save();return this},fsr$empty:function(){this.hash.fsr$empty();
this.save();return this}});FSR.Asset=new FSR.Hash({src:function(A){var B=A;if(A.substring(0,2)=="//"){B=document.location.protocol+B
}return B},javascript:function(F,D){D=FSR.$extend({onload:FSR.$empty,document:document,check:FSR.$lambda(true)},D);
var B=new FSR.Element("script",{src:FSR.Asset.src(F),type:"text/javascript"});var E=D.onload.fsr$bind(B),A=D.check,G=D.document;
delete D.onload;delete D.check;delete D.document;B.fsr$addEvents({load:E,readystatechange:function(){if(FSR.Browser.Engine.trident&&["loaded","complete"].fsr$contains(this.readyState)){E()
}}}).fsr$setProperties(D);if(FSR.Browser.Engine.webkit419){var C=(function(){if(!FSR.$try(A)){return 
}FSR.$clear(C);E()}).fsr$periodical(50)}return B.fsr$inject(document.getElementsByTagName("head")[0])
},image:function(C,B){B=FSR.$merge({onload:FSR.$empty,onabort:FSR.$empty,onerror:FSR.$empty},B);var D=new Image();
var A=$fsr(D)||new FSR.Element("img");["load","abort","error"].fsr$each(function(E){var F="on"+E;
var G=B[F];delete B[F];D[F]=function(){if(!D){return }if(!A.parentNode){A.width=D.width;A.height=D.height
}D=D.onload=D.onabort=D.onerror=null;G.fsr$delay(1,A,A);A.fsr$fireEvent(E,A,1)}});D.src=FSR.Asset.src(C);
if(A.src!=D.src){A.src=D.src}if(D&&D.complete){D.onload.fsr$delay(1)}return A.fsr$setProperties(B)
},css:function(B,A){return new FSR.Element("link",FSR.$merge({rel:"stylesheet",media:"screen",type:"text/css",href:FSR.Asset.src(B)},A)).fsr$inject(document.getElementsByTagName("head")[0])
}});FSR.Browser.fsr$set("Popup",new FSR.Class({Implements:[FSR.Options,FSR.Events],options:{width:500,height:300,x:50,y:50,toolbar:0,location:0,directories:0,status:0,scrollbars:"auto",resizable:1,name:"popup",blur:false,menubar:1},initialize:function(B,A){this.url=B||false;
this.setOptions(A);if(this.url){this.openWin()}},openWin:function(B){B=B||this.url;var A="toolbar="+this.options.toolbar+",location="+this.options.location+",directories="+this.options.directories+",status="+this.options.status+",scrollbars="+this.options.scrollbars+",resizable="+this.options.resizable+",width="+this.options.width+",height="+this.options.height+",top="+this.options.y+",left="+this.options.x+",menubar="+this.options.menubar;
this.window=window.open(B,this.options.name,A);if(!this.window){this.window=window.open("",this.options.name,A);
this.window.location.href=B}if(!this.options.blur){this.focus.fsr$delay(100,this)}else{this.window.blur()
}return this},focus:function(){if(this.window){this.window.focus()}else{if(this.focusTries<10){this.focus.delay(100,this)
}else{this.blocked=true;this.fsr$fireEvent("onBlock")}}return this},focusTries:0,blocked:null,close:function(){this.window.close();
return this}}));FSR.RemoteEvent=new FSR.Class({Implements:[FSR.Chain,FSR.Events,FSR.Options],options:{host:"",path:"",url:""},initialize:function(B,A){this.setOptions(A);
this.event=B},onStateChange:function(A){if(!this.running){return }this.running=false;this.status=0;
FSR.$try(function(){this.status=A}.fsr$bind(this));if(this.isSuccess()){this.success()}else{this.failure()
}},isSuccess:function(){return(this.status==1)},success:function(){this.onSuccess()},onSuccess:function(){this.fsr$fireEvent("success")
},failure:function(){this.onFailure()},onFailure:function(){this.fsr$fireEvent("failure")},send:function(B){this.running=true;
var A=this;var D=FSR.Hash.fsr$toQueryString(B);var C=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?event="+this.event+"&"+D+"&uid="+FSR.$time();
new FSR.Asset.image(C,{onload:function(E){A.onStateChange(1)},onerror:function(){A.onStateChange(0)
},onabort:function(){A.onStateChange(0)}});return this}});FSR.CPPS=new FSR.Hash({fsr$set:function(B,C){var A=FSR.c().fsr$get("cpps")||{};
A[B]=C;FSR.c().fsr$set("cpps",A)},fsr$get:function(B){var A=FSR.c().fsr$get("cpps")||{};return A[B]
},fsr$erase:function(B){var A=FSR.c().fsr$get("cpps")||{};delete A[B];FSR.c().fsr$set("cpps",A)},fsr$toQueryString:function(){var G=FSR.c();
var D=G.fsr$get("browser");var F={browser:D.name+" "+D.version,os:D.platform,pv:G.fsr$get("pv"),url:G.fsr$get("current"),ref_url:G.fsr$get("ref_url"),locale:G.fsr$get("locale")||"",site:G.fsr$get("site")||"",referrer:G.fsr$get("referrer")||"",terms:G.fsr$get("terms")||"",sessionid:G.fsr$get("fsrid")||""};
var C=G.fsr$get("cpps")||{};var E=new FSR.Hash(C);var B=F||{};for(k in B){E.fsr$set(k,B[k])}var A=E.fsr$toQueryString("cpp");
return A}});FSR.Service=new FSR.Class({Implements:[FSR.Chain,FSR.Events,FSR.Options],options:{},initialize:function(A){this.setOptions(A)
},onStateChange:function(A){if(!this.running){return }this.running=false;this.status=0;FSR.$try(function(){this.status=A
}.fsr$bind(this));if(this.status==1){this.success()}else{if(this.status==0){this.failure()}else{if(this.status==-1){this.error()
}}}},success:function(){this.onSuccess()},onSuccess:function(){this.fsr$fireEvent("complete").fsr$fireEvent("success")
},failure:function(){this.onFailure()},onFailure:function(){this.fsr$fireEvent("complete").fsr$fireEvent("failure")
},error:function(){this.onError()},onError:function(){this.fsr$fireEvent("complete").fsr$fireEvent("error")
},ping:function(){this.running=true;var B=this;var D=this.options.params||{};D.protocol=document.location.protocol;
D.uid=FSR.$time();var A=FSR.Hash.fsr$toQueryString(D);var C=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?"+A;
new FSR.Asset.image(C,{onload:function(E){if(E.width==B.options.success){B.onStateChange(1)}else{B.onStateChange(0)
}},onerror:function(){B.onStateChange(-1)},onabort:function(){B.onStateChange(0)}});return this},cancel:function(){if(!this.running){return this
}this.running=false;this.fsr$fireEvent("cancel");return this}});FSR.RR=new FSR.Hash({hasRR:function(){if(typeof robotreplay!="undefined"){return true
}return false},setOKTransmit:function(){if(this.hasRR()){var A=robotreplay.Session.rr_group_session_id;
robotreplay.Log.setOKTransmit();FSR.CPPS.fsr$set("replay_id",A)}},recordEvent:function(A,B){if(this.hasRR()){robotreplay.Log.push(A,B)
}},cancelRecord:function(){if(this.hasRR()){robotreplay.Log.cancelRecord()}},getPosition:function(A){if(this.hasRR()){return robotreplay.Dom.getAbsoluteCoords(document.getElementById(A))
}else{return{position:false}}}});FSR.services={survey:{host:"survey.foreseeresults.com",path:"/survey",url:"/display"},check:{host:"controller2.foreseeresults.com",path:"/fsrSurvey",url:"/OTCImg",success:3},event:{host:"events.foreseeresults.com",path:"/rec",url:"/process",enabled:true,id:true},domain:{host:"survey.foreseeresults.com",path:"/survey",url:"/FSRImg",success:3}};
FSR.UnsupportedBrowsers={Explorer:5.5,Safari:2,Firefox:1.4};FSR.$P=function(){return FSR.properties
};FSR.c=function(){return new FSR.Hash.Cookie("foresee."+FSR.site.cookie,{path:"/",domain:FSR.site.domain||false})
};FSR.log=function(B,A){if(!FSR.services.event.enabled){return }var C=FSR.c();new FSR.RemoteEvent("logit",{host:FSR.services.event.host,path:FSR.services.event.path,url:FSR.services.event.url}).send({cid:FSR.id,fsrid:C.fsr$get("fsrid"),name:C.fsr$get("sd").name,msg:B,param:A,tmz:new Date().getTimezoneOffset()})
};FSR.popNow=function(A){FSR.pop(A,"now")};FSR.popLater=function(A){FSR.pop(A,"later")};FSR.popImmediate=function(){FSR.pop(100,"now")
};FSR.popFeedback=function(){FSR.controller.popFeedback()};FSR.pop=function(D,A){var C=D;if(!C){C=FSR.controller.sd.criteria.sp
}var B=A;if(!B){B=FSR.controller.sd.pop.when}var E=FSR.controller.sd.sv;if(!(E<=C)){return }if(B=="now"){if(!(FSR.controller.surveyShown()&&C<100)){FSR.controller.popImmediate()
}}else{if(B=="later"){if(!FSR.controller.trackerRunning()){FSR.controller.popTracker()}}}};FSR.close=function(){FSR.controller.cancelTracker()
};FSR.run=function(){FSR.controller.run(false)};FSR.accepted=function(A){FSR.language(A);FSR.controller.accepted();
FSR.idhtml.hide()};FSR.declined=function(A){FSR.language(A);FSR.controller.declined();FSR.idhtml.hide()
};FSR.qualified=function(){FSR.controller.qualified();FSR.idhtml.hide()};FSR.language=function(A){if(!A){return 
}FSR.locale=A;FSR.c().fsr$set("locale",A)};FSR.qualify=function(A){FSR.canceled=false;FSR.qid=A};
FSR.cancel=function(){FSR.canceled=true};FSR.canceled=false;FSR.SurveyController=new FSR.Class({Implements:FSR.Options,options:{},initialize:function(A){this.setOptions(A);
FSR.controller=this},load:function(){if(!FSR.enabled){return }if(window.parent!=window.top){return 
}var A=this;new FSR.Asset.javascript(FSR.files+"foresee-surveydef.js",{id:"foresee-surveydef",onload:function(){fsr$dbug.log("Survey Definitions Loaded.");
A.def_loaded=true;A.run(true)}})},run:function(B){if(!this.def_loaded){return }if(B){if(!this.init()){return 
}}if(!this.setup()){return }var A;this.sd=this.pd;this.sdi=this.pdi;A=this.process();if(A){return 
}this.sd=this.cd;this.sdi=this.cdi;A=this.process()},process:function(){if(!this.sd){return false
}if(this.sd.type=="current"){FSR.c().fsr$set("sd",{name:this.sd.name,idx:this.sd.idx})}if(this.processTracker()){var A=this;
(function(){A.launch("tracker")}).fsr$delay(1);return true}if(this.processInvite()){var A=this;A.processAlt();
(function(){A.launch("invite")}).fsr$delay(1);return true}if(this.sd.type=="current"){if(this.inviteAccepted()&&!this.surveyShown()){this.setupLinks("pop",this.popLink);
this.setupLinks("cancel",this.cancelTracker)}if(!this.inviteAccepted()){this.setupLinks("attach",this.popAttach)
}if(this.trackerRunning()){this.setupLinks("pause",this.pause)}}return false},processTracker:function(){if(!this.shouldTrack()){return false
}if(!this.trackerRunning()){return false}return true},shouldTrack:function(){if(!this.sd.ls){return false
}if(this.sd.type=="previous"){if(!(this.sd.pop.when=="later")||!(this.sd.pop.after=="leaving-section")){return false
}}else{if(this.sd.type=="current"){if(!(this.sd.pop.when=="now")){return false}}}return true},trackerRunning:function(){if(FSR.$defined(FSR.c().fsr$get("tracker"))){return true
}return false},processInvite:function(){if(this.inviteShown()){return false}if(!this.shouldInvite()){return false
}return true},shouldInvite:function(){if(this.sd.invite===false){return false}if(this.sd.exclude){var C=false;
if(!C){C=this.checkExclude(this.sd.exclude.local||[],document.location.href)}if(!C){C=this.checkExclude(this.sd.exclude.referer||[],document.referrer)
}if(C){var D=FSR.c();var B=D.fsr$get("ec");this.sd.ec=B[this.sd.name]=B[this.sd.name]+1;D.fsr$set("ec",B);
return false}}var A=(this.sd.type=="previous")?"onexit":"onentry";if(this.sd.invite&&this.sd.invite.when!=A){return false
}if(!this.sd.ls){return false}if(!(this.sd.sv>0&&this.sd.sv<=this.sd.criteria.sp)){return false}return true
},processAlt:function(){if(this.sd.alt){var F;var C=FSR.$random(0,100);var E=0;var B=this.sd.alt;
for(var D=0,A=B.length;D<A;D++){E+=B[D].sp;if(C<=E){if(B[D].url){this.sd.pop.what="url";this.sd.pop.url=B[D].url
}else{if(B[D].script){this.sd.pop.what="script";this.sd.pop.script=B[D].script}}delete this.sd.invite;
break}}}},inviteShown:function(){if(FSR.$defined(FSR.c().fsr$get("invite"))){return true}return false
},inviteAccepted:function(){if(FSR.c().fsr$get("invite")==1){return true}return false},surveyShown:function(){if(FSR.$defined(FSR.c().fsr$get("survey"))){return true
}return false},launch:function(A){if(A=="invite"){this.attemptInvite()}else{if(A=="tracker"){this.popImmediate()
}}},checkExclude:function(C,B){for(var A=0,D=C.length;A<D;A++){if(B.match(C[A])){return true}}return false
},attemptInvite:function(){var A=this;var B="invite";if(FSR.$P().mode=="hybrid"){B="checkDomain"}new FSR.Service({host:FSR.services.check.host,path:FSR.services.check.path,url:FSR.services.check.url,success:FSR.services.check.success,onSuccess:function(){A[B]()
},onFailure:function(){},onError:function(){A[B]()}}).ping()},checkDomain:function(){var A=this;var B="invite";
new FSR.Service({host:FSR.services.domain.host,path:FSR.services.domain.path,url:FSR.services.domain.url,params:{"do":0},success:FSR.services.check.success,onSuccess:function(){A[B]()
},onFailure:function(){}}).ping()},setupLinks:function(F,E){if(!this.sd.links){return }var G=0;var C=this.sd.links[F]||[];
for(var D=0,B=C.length;D<B;D++){var A=this.link(C[D].tag,C[D].attribute,C[D].patterns||[],C[D].qualifier,E);
G=G+A}fsr$dbug.log("linked ("+F+"): "+G)},link:function(A,F,E,D,C){var B=this;var G=0;$$fsr(A).fsr$each(function(J){for(var I=0,H=E.length;
I<H;I++){if(J[F].match(E[I])){G++;J.fsr$addEvents({click:function(){if(D){FSR.qualify(D)}C.call(B)
}});break}}});return G},init:function(){fsr$dbug.log("======INIT=======");var G=FSR.c();var J=G.fsr$get("alive")||0;
J=J+1;G.fsr$set("alive",J);G.fsr$set("paused","0");this.ralive=true;G=FSR.c();J=G.fsr$get("alive");
if(!J){fsr$dbug.log("Exit...cookies are not enabled.");return false}fsr$dbug.log("alive: "+J);if(!this.trackerRunning()){clearInterval(fsr$timer);
FSR.Cookie.dispose("foresee.alive",{path:"/",domain:FSR.site.domain||false})}var E=FSR.Browser;G.fsr$set("browser",{name:FSR.Browser.Type.name,version:FSR.Browser.Type.version,platform:FSR.Browser.Platform.os});
fsr$dbug.log("browser: "+E.Type.name+" "+E.Type.version+" on "+E.Platform.os);if(FSR.UnsupportedBrowsers[E.Type.name]){if(E.Type.version<=FSR.UnsupportedBrowsers[E.Type.name]){fsr$dbug.log("Browser not surpported.");
return false}}if(this.validateIP()==0){fsr$dbug.log("Invalid IP Address.");return false}var I;if(FSR.$defined(G.fsr$get("finish"))){var F=G.fsr$get("timeout");
var A=((FSR.$time()-G.fsr$get("finish"))/1000);fsr$dbug.log("ptimeout: "+F);fsr$dbug.log("loadtime: "+A);
I=(0.9*F)+(0.1*(A*2));if(I<2){I=2}else{if(I>5){I=5}}}else{I=FSR.$P().tracker.timeout}G.fsr$set("timeout",I);
fsr$dbug.log("timeout: "+I);if(!G.fsr$get("start")){var L;if(L=FSR.Cookie.read("foresee.repeatdays",{path:"/",domain:FSR.site.domain||false})){fsr$dbug.log("Persistent Cookie Found: "+L);
return false}G.fsr$set("start",FSR.$time());var K=this;this.dhtml_win=1;new FSR.Asset.javascript(FSR.files+"foresee-dhtml-popup.js",{id:"foresee-dhtml-popup",onload:function(){fsr$dbug.log("DHTML popup script loaded (1).");
K.dhtml_win=2}});this.dhtml_css=1;new FSR.Asset.css(FSR.files+FSR.$P().invite.css);if(FSR.$P().invite.css!=FSR.$P().qualifier.css){new FSR.Asset.css(FSR.files+FSR.$P().qualifier.css)
}this.dhtml_css=2;var B=this.generateid();G.fsr$set("fsrid",B);if(document.referrer&&document.referrer!=""){G.fsr$set("ref_url",document.referrer);
var D=document.referrer.match(/^(\w+\:\/\/)?(((\w+\.?))+)\//);var H="";if(D&&D.length>=3){H=D[2]}G.fsr$set("referrer",H);
fsr$dbug.log("referrer: "+H);var C=this.decodeReferrer(document.referrer);G.fsr$set("terms",C);fsr$dbug.log("search terms: "+C)
}}fsr$dbug.log("invite: "+(FSR.$pick(G.fsr$get("invite"),"")));fsr$dbug.log("tracker: "+(FSR.$pick(G.fsr$get("tracker")||"")));
return true},setup:function(){fsr$dbug.log("======SETUP=======");var M=FSR.c();var P=M.fsr$get("pv")?M.fsr$get("pv")+1:1;
M.fsr$set("pv",P);fsr$dbug.log("pv: "+P);FSR.sv=FSR.$random(0,100);this.sp=new FSR.Hash.Cookie("foresee.sp",{path:"/",domain:FSR.site.domain||false});
var K,N,E,A,F,Q;A=M.fsr$get("current");Q=M.fsr$get("cdi");K=document.location.href;K=K.replace(/(.*?)(\?.*)/g,"$1");
M.fsr$set("current",K);this.language();if(FSR.locale){fsr$dbug.log("language: "+FSR.locale||"")}this.subsite();
if(FSR.subsite){M.fsr$set("site",FSR.subsite||"");fsr$dbug.log("site: "+FSR.subsite||"")}var D=M.fsr$get("lc")||{};
var I=M.fsr$get("ls")||{};var J=M.fsr$get("ec")||{};N=this.match(K);if(N.length!=0){fsr$dbug.log("===CURRENT====");
for(var H=0,G=N.length;H<G;H++){var L=FSR.surveydefs[N[H]];L.idx=N[H];this.criteria(L.criteria);L.lc=D[L.name]=D[L.name]?D[L.name]+1:1;
L.ec=J[L.name]=J[L.name]?J[L.name]:0;L.type="current";this.configLoyalty(L);var B=this.loyaltyDef(L);
var O=this.checkLoyalty(B,L.lc,L.ec);if(O>-1){L.ls=I[L.name]=true;if(FSR.$type(L.criteria.lf)=="array"){L.criteria.lf=L.criteria.lf[O];
L.criteria.sp=L.criteria.sp[O];L.pop.when=L.pop.when[O]}if(L.pin){var C=M.fsr$get("p")||{};C[L.name]=1;
M.fsr$set("p",C)}}else{L.ls=I[L.name]=false;if(FSR.$type(L.criteria.lf)=="array"){L.criteria.lf=L.criteria.lf[0];
L.criteria.sp=L.criteria.sp[0];L.pop.when=L.pop.when[0]}}this.configure(L);E=L.idx;M.fsr$set("cdi",L.idx);
this.cd=L;break}M.fsr$set("lc",D);M.fsr$set("ls",I);M.fsr$set("ec",J)}if(FSR.$defined(Q)&&(Q!=E)){fsr$dbug.log("===PREVIOUS===");
var L=FSR.surveydefs[Q];L.idx=Q;this.criteria(L);L.lc=D[L.name];L.ls=I[L.name]||false;L.type="previous";
this.configLoyalty(L);this.configure(L);this.pd=L}if(!this.cd&&!this.pd){return false}return true
},configLoyalty:function(A){if(FSR.$type(A.criteria.lf)=="number"){A.criteria.lf={v:A.criteria.lf,o:">="}
}},loyaltyDef:function(B){var A=B.criteria.lf;if(FSR.$type(B.criteria.lf)=="object"){A=[B.criteria.lf]
}return A},checkLoyalty:function(E,F,C){var B=-1;for(var D=0,A=E.length;D<A;D++){if(E[D].o==">="){if(F>=E[D].v){B=D
}}else{if(E[D].o=="="){if((F-C)==E[D].v){B=D}}else{if(E[D].o==">"){if(F>E[D].v){B=D}}}}}return B},validateIP:function(D){var A=1;
var C=FSR.$P().ipexclude;if(!C){return A}var D;if(C.src=="cookie"){if(C.type&&C.type=="client"){D=FSR.Cookie.read(C.name,{path:"/",domain:FSR.site.domain||false})
}else{D=FSR.c().fsr$get("ip")}}else{if(C.src=="variable"){if(C.type&&C.type=="client"){D=window[C.name]
}else{D=FSR[C.name]}}}D=D||"";for(var B=0;B<C.ips.length;B++){if(D.match(C.ips[B])){A=0;break}}return A
},configure:function(C){var E=FSR.c();fsr$dbug.log("sid: "+C.name);fsr$dbug.log("lc: "+C.lc);fsr$dbug.log("lf: "+C.criteria.lf.v+" ("+C.criteria.lf.o+") ");
C.sv=FSR.sv;fsr$dbug.log("sv: "+C.sv);if(FSR.$type(C.criteria.sp)=="array"){C.criteria.sp=C.criteria.sp[(new Date()).getDay()]
}var A=(!FSR.locale)?C.name:C.name+"-"+FSR.locale;C.criteria.sp=this.sp.fsr$get(A)||this.sp.fsr$get(C.name)||C.criteria.sp;
fsr$dbug.log("sp: "+C.criteria.sp);if(C.invite){C.invite=FSR.$merge(FSR.$P().invite,C.invite)}C.tracker=FSR.$merge(FSR.$P().tracker,C.tracker);
C.survey=FSR.$merge(FSR.$P().survey,C.survey);C.qualifier=FSR.$merge(FSR.$P().qualifier,C.qualifier);
C.cancel=FSR.$merge(FSR.$P().cancel,C.cancel);C.pop=FSR.$merge(FSR.$P().pop,C.pop);C.repeatdays=FSR.$pick(FSR.$P().repeatdays,C.repeatdays);
var B=[].fsr$extend(FSR.$P().exclude.local);if(C.exclude&&C.exclude.local){C.exclude.local=B.fsr$extend(C.exclude.local)
}else{if(C.exclude){C.exclude.local=B}else{C.exclude={local:B}}}var D=[].fsr$extend(FSR.$P().exclude.referer);
if(C.exclude&&C.exclude.referer){C.exclude.referer=D.fsr$extend(C.exclude.referer)}else{if(C.exclude){C.exclude.referer=D
}else{C.exclude={referer:D}}}},unload:function(){if(!FSR.enabled){return }if(!this.runload&&this.ralive){this.runload=true;
this.uninit()}return },uninit:function(){var B=FSR.c();var A=B.fsr$get("alive")||0;B.fsr$set("alive",(A-1)>0?A-1:0);
B.fsr$set("previous",B.fsr$get("current"));B.fsr$set("finish",FSR.$time())},match:function(source){if(!source){return 
}var m=[];var d=FSR.surveydefs;var pin=FSR.c().fsr$get("p")||{};for(var i=0,p,l=d.length,k=0;i<l;
i++){var pk=k;p=d[i].include.urls||[];for(var j=0,n=p.length;j<n;j++){if(source.match(p[j])){m[k++]=i;
break}}if(k!=pk){break}p=d[i].include.cookies||[];for(var j=0,n=p.length;j<n;j++){var value;if(value=FSR.Cookie.read(p[j].name,{path:p[j].path||false,domain:p[j].domain||false})){if(value.match(p[j].value||".")){m[k++]=i;
break}}}if(k!=pk){break}p=d[i].include.variables||[];for(var j=0,n=p.length;j<n;j++){var name=p[j].name;
var value=p[j].value;if(FSR.$type(name)!="array"){name=[name];value=[value]}var v,z=true;for(var x=0,y=name.length;
x<y;x++){try{v=eval(name[x])}catch(err){v=""}if(v||v===""){if(!v.match(value[x])){z=false;break}}}if(z){m[k++]=i;
break}}if(k!=pk){break}if(pin[d[i].name]){m[k++]=i}if(k!=pk){break}}return m},invite:function(){FSR.invite=0;
if(FSR.locale){FSR.c().fsr$set("locale",FSR.locale)}var A=this;if(this.sd.invite){(function(){FSR.log(100,FSR.c().fsr$get("current"));
A.prepareDHTML("invite","accepted","declined","closed")}).fsr$delay((this.sd.invite.delay||0)*1000);
if(this.sd.invite.timeout){(function(){FSR.idhtml.hide()}).fsr$delay(this.sd.invite.timeout*1000)
}}else{(function(){A.accepted();A.closed()}).fsr$delay(0)}},prepareDHTML:function(E,F,C,B){var A=this;
if(!FSR.$defined(this.dhtml_css)){this.dhtml_css=1;new FSR.Asset.css(FSR.files+this.sd[E].css);this.dhtml_css=2
}if(!FSR.$defined(this.dhtml_win)){this.dhtml_win=1;new FSR.Asset.javascript(FSR.files+"foresee-dhtml-popup.js",{id:"foresee-dhtml-popup",onload:function(){fsr$dbug.log("DHTML popup script loaded (2).");
A.dhtml_win=2;A.showDHTML(E,F,C,B)}})}else{if(this.dhtml_win==1){var D=(function(){if(A.dhtml_win==1){return 
}FSR.$clear(D);A.showDHTML(E,F,C,B)}).fsr$periodical(50)}else{if(this.dhtml_win==2){(function(){A.showDHTML(E,F,C,B)
}).fsr$delay(1)}}}},showDHTML:function(E,B,G,C){var H=this;var F=this.sd[E].dhtml||this.sd[E];this.page(F);
var D=[];if(F.buttons){var A=0;if(F.buttons.accept){D[A]={properties:{id:"accept"},style:"fsr_button fsr_accept",text:F.buttons.accept,onClick:function(){H[B]()
},onMouseover:function(){this.className="fsr_closeSticky fsr_button fsr_mouseover_accept"},onMouseout:function(){this.className="fsr_closeSticky fsr_button fsr_accept"
}};A++}if(F.buttons.decline){D[A]={properties:{id:"decline"},style:"fsr_button fsr_decline",text:F.buttons.decline,onClick:function(){H[G]()
},onMouseover:function(){this.className="fsr_closeSticky fsr_button fsr_mouseover_decline"},onMouseout:function(){this.className="fsr_closeSticky fsr_button fsr_decline"
}};A++}}var J={position:{x:F.x,y:F.y},wrapWithUi:true,uiOptions:{width:F.width+"px",baseHref:FSR.files,buttons:D},modalOptions:{modalStyle:{"background-color":F.bgcolor,opacity:F.opacity},hideOnClick:F.hideOnClick},requestOptions:{evalScripts:true}};
FSR[E]=0;var I;if(F.content){J.content=F.content;I=new FSR.StickyWinModal(J)}else{J.url=FSR.files+(F.url.dhtml||F.url);
I=new FSR.StickyWinModal.Ajax(J)}if(C){I.fsr$addEvent("onClose",function(){H[C]()})}if(F.content){I.show()
}else{I.update()}FSR.idhtml=I},accepted:function(){FSR.invite=1;FSR.log(101);FSR.c().fsr$set("invite",FSR.invite);
if(FSR.$P().mode=="hybrid"){new FSR.Service({host:FSR.services.domain.host,path:FSR.services.domain.path,url:FSR.services.domain.url,params:{"do":1,rw:this.sd.repeatdays*24*60}}).ping()
}FSR.RR.setOKTransmit();var A=this;A.processAccept()},declined:function(){FSR.invite=-1;FSR.log(102);
FSR.c().fsr$set("invite",FSR.invite);FSR.RR.cancelRecord()},closed:function(){FSR.c().fsr$set("invite",FSR.invite);
if(this.sd.repeatdays){FSR.Cookie.write("foresee.repeatdays",this.sd.repeatdays,{path:"/",domain:FSR.site.domain||false,duration:this.sd.repeatdays})
}},qualified:function(){FSR.qualifier=1;FSR.log(301);FSR.c().fsr$set("qualifier",FSR.qualifier);var A=this;
A.processQualifier()},processAccept:function(){if(this.sd.pop.when=="later"){if(this.sd.pop.tracker){this.popTracker()
}this.setupLinks("pop",this.popLink);this.setupLinks("cancel",this.cancelTracker);this.setupLinks("pause",this.pause)
}else{if(this.sd.pop.when=="now"){FSR.c().fsr$set("survey",1);if(this.sd.pop.what=="survey"){this.popSurvey()
}else{if(this.sd.pop.what=="qualifier"){this.popQualifier()}else{if(this.sd.pop.what=="url"){this.popUrl()
}else{if(this.sd.pop.what=="script"){this.popScript()}}}}}else{if(this.sd.pop.when=="both"){this.popTracker();
this.popSurvey()}}}},processQualifier:function(){if(!FSR.canceled){this.popSurvey()}else{this.popCancel()
}},popImmediate:function(){var A=this;var B=FSR.c();if(this.trackerRunning()){if(FSR.Browser.Type.name!="Firefox"||!this.sd.qualifier.dhtml){B.fsr$set("force",1)
}else{this.cancelTracker();(function(){FSR.log(300,FSR.c().fsr$get("current"));A.prepareDHTML("qualifier","qualified")
}).fsr$delay((this.sd.qualifier.delay||0)*1000)}}else{FSR.c().fsr$set("survey",1);if(this.sd.pop.what=="survey"){this.popSurvey()
}else{if(this.sd.pop.what=="qualifier"){this.popQualifier()}else{if(this.sd.pop.what=="url"){this.popUrl()
}else{if(this.sd.pop.what=="script"){this.popScript()}}}}}},popSurvey:function(){var B=this.sd.survey;
var A=this.sd.pop;this.popMain(this.sid(),B.width,B.height,A.pu,B.loading,"400")},popFeedback:function(){var C=FSR.$P();
var B="feedback";var A=FSR.locale;if(A){B=B+"-"+A}this.popMain(B,C.survey.width,C.survey.height,false,C.survey.loading,"600")
},popMain:function(C,B,I,J,D,H){var G=FSR.services.survey;var E=new FSR.Hash({sid:C,cid:FSR.id,version:FSR.version}).fsr$toQueryString();
var F=FSR.CPPS.fsr$toQueryString();var A=document.location.protocol+"//"+G.host+G.path+G.url+"?"+E+"&"+F;
if(D){this.page(FSR.$P().loading);A=FSR.files+FSR.$P().loading.url+"?url="+A}this.pop("fsr"+H,A,(window.screen.width-B)/2,(window.screen.height-I)/2,B,I,J);
FSR.log(H,FSR.c().fsr$get("current"))},popTracker:function(){fsr$timer=setInterval(fsr$setAlive,1000);
this.popOther(this.sd.tracker,true,"200")},popQualifier:function(){this.popOther(this.sd.qualifier,this.sd.pop.pu,"300")
},popCancel:function(){this.popOther(this.sd.cancel,false,"500")},popLink:function(){if(!this.surveyShown()){this.popImmediate()
}},cancelTracker:function(){if(this.trackerRunning()){var A=window.open("","fsr200");if(A){A.close()
}}},popOther:function(F,C,B){this.page(F);var E=(window.screen.width-F.width)/2;var D=(window.screen.height-F.height)/2;
var A=FSR.files+(F.url.pop||F.url)+"?siteid="+FSR.siteid+"&sdidx="+this.sd.idx;this.pop("fsr"+B,A,E,D,F.width,F.height,C);
FSR.log(B,FSR.c().fsr$get("current"))},popAttach:function(){var A=this;if(!(this.sd.sv>0&&this.sd.sv<=this.sd.criteria.sp)){return 
}if(FSR.locale){FSR.c().fsr$set("locale",FSR.locale)}(function(){A.accepted();A.closed()}).fsr$delay(0)
},popUrl:function(){var B=FSR.$P().survey.width;var A=FSR.$P().survey.height;this.pop("fsrOther",this.sd.pop.url,(window.screen.width-B)/2,(window.screen.height-A)/2,B,A)
},popScript:function(){new FSR.Asset.javascript(this.sd.pop.script)},pause:function(){var A=FSR.c();
A.fsr$set("paused","1")},sid:function(D){var F=FSR.c();var C=!D?this.sd.name:D;var A=this.sd.pop.now;
if(A){C=C+"-"+A}var E=FSR.qid;if(E){C=C+"-"+E}var B=F.fsr$get("locale");if(B){C=C+"-"+B}return C},pop:function(D,C,H,G,F,A,E,B){(function(){new FSR.Browser.Popup(C,{name:D,toolbar:0,location:0,directories:0,status:0,scrollbars:1,resizable:1,width:F,height:A,x:H,y:G,blur:E,menubar:0})
}).fsr$delay(B||0)},language:function(){var F=FSR.$P().language;if(!F){return }var B=F.locale;var E;
if(F.src=="location"){E=document.location.href}else{if(F.src=="cookie"){if(F.type&&F.type=="client"){E=FSR.Cookie.read(F.name,{path:"/",domain:FSR.site.domain||false})
}else{E=FSR.c().fsr$get("lang")}}else{if(F.src=="variable"){if(F.type&&F.type=="client"){E=window[F.name]
}else{E=FSR[F.name]}}}}E=E||"";var C=F.locales||[];for(var D=0,A=C.length;D<A;D++){if(E.match(C[D].match)){B=C[D].locale;
break}}FSR.locale=B},page:function(E){var B=FSR.c().fsr$get("locale");if(!B){return }var D=E.locales||[];
for(var C=0,A=D.length;C<A;C++){if(D[C].locale==B){if(D[C].url){E.url=D[C].url}if(D[C].content){E.content=D[C].content
}if(D[C].buttons){E.buttons={accept:"",decline:""};if(D[C].buttons.accept){E.buttons.accept=D[C].buttons.accept
}if(D[C].buttons.decline){E.buttons.decline=D[C].buttons.decline}}if(D[C].width){E.width=D[C].width
}if(D[C].height){E.height=D[C].height}break}}},criteria:function(E){var B=FSR.locale;if(!B){return 
}var D=E.locales||[];for(var C=0,A=D.length;C<A;C++){if(D[C].locale==B){E.sp=D[C].sp;E.lf=D[C].lf;
break}}},subsite:function(){var D=FSR.$P().subsites;if(!D){return }var C=document.location.href;var A=-1;
for(var B=0,E=D.length;B<E;B++){if(C.match(D[B])){A=B;FSR.subsite=D[B];break}}if(A==-1){FSR.subsite="other"
}},generateid:function(){var A="";if(!FSR.services.event.enabled){return A}if(!FSR.services.event.id){return A
}A=((new Date())-0)+"_"+Math.round(Math.random()*100000000);return A},decodeReferrer:function(A){A=decodeURIComponent(A);
var C=null;var B=document.referrer.match(/[?&]q=([^&]*)/)||document.referrer.match(/[?&]p=([^&]*)/)||document.referrer.match(/[?&]query=([^&]*)/);
if(!B){return }var C=unescape(B[1]);if(C){C=C.replace(/\+/g," ")}return C}});new FSR.SurveyController({});
window.fsr$addEvent("domready",function(){(function(){FSR.controller.load()}).fsr$delay(1)});window.fsr$addEvent("unload",function(){FSR.controller.unload()
});