var FSR={version:"6.4.0",date:"1/12/2011",enabled:true,auto:true,encode:false,files:"/assets/js/p/foresee/",id:"osx9c1VdNNZplgpZpQtIYQ==",sites:[{path:/\w+\.(com|org|edu|gov)/,cookie:"session"}]};function fsr$setAlive(){var a=new Date().getTime();document.cookie="fsr.a"+(FSR.site.cookie?"."+FSR.site.cookie:"")+"="+a+";path=/"+((FSR.site.domain)?";domain="+FSR.site.domain+";":";")+(FSR.site.secure?"secure":"")}(function(){if(window!=window.top){return}function g(j){if(typeof j=="object"){var l=j.constructor.toString().match(/array/i);return(l!=null)}return false}var e=FSR.sites;for(var h=0,a=e.length;h<a;h++){var c;if(!g(e[h].path)){e[h].path=[e[h].path]}for(var i=0,b=e[h].path.length;i<b;i++){if(c=document.location.href.match(e[h].path[i])){FSR.siteid=h;FSR.site=FSR.sites[FSR.siteid];if(!FSR.site.domain){FSR.site.domain=c[0]}else{if(FSR.site.domain=="default"){FSR.site.domain=false}}if(!FSR.site.secure){FSR.site.secure=false}if(!FSR.site.name){FSR.site.name=c[0]}var d=["files","js_files","image_files","html_files","css_files"];for(var h=0,f=d.length;h<f;h++){if(FSR.site[d[h]]){FSR[d[h]]=FSR.site[d[h]]}}break}}if(c){break}}if(!window["fsr$timer"]){fsr$setAlive();window["fsr$timer"]=setInterval(fsr$setAlive,1000)}})();fsr$dbug={log:function(){}};FSR.Native=function(e){e=e||{};var i=e.afterImplement||function(){};var h=e.generics;h=(h!==false);var g=e.legacy;var j=e.initialize;var c=e.protect;var d=e.name;var b=j||g;b.xconstructor=FSR.Native;b.fsr$family={name:"native"};if(g&&j){b.prototype=g.prototype}b.prototype.xconstructor=b;if(d){var a=d.toLowerCase();b.prototype.fsr$family={name:a}}var f=function(o,m,n,l){if(!c||l||!o.prototype[m]){o.prototype[m]=n}if(h){FSR.Native.genericize(o,m,c)}i.call(o,m,n);return o};b.fsr$implement=function(l,m,n){if(typeof l=="string"){return f(this,l,m,n)}for(var o in l){f(this,o,l[o],m)}return this};b.fsr$alias=function(o,m,n){if(typeof o=="string"){o=this.prototype[o];if(o){f(this,m,o,n)}}else{for(var l in o){this.fsr$alias(l,o[l],m)}}return this};return b};FSR.Native.fsr$implement=function(b,c){for(var d=0,a=b.length;d<a;d++){b[d].fsr$implement(c)}};FSR.Native.genericize=function(c,b,a){if((!a||!c[b])&&typeof c.prototype[b]=="function"){c[b]=function(){var d=Array.prototype.slice.call(arguments);return c.prototype[b].apply(d.shift(),d)}}};FSR.Native.fsr$alias=function(c,f,a,b){for(var d=0,e=c.length;d<e;d++){c[d].fsr$alias(f,a,b)}};(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,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(b,a){for(var c in (a||{})){b[c]=a[c]}return b};FSR.$unlink=function(d){var e;switch(FSR.$type(d)){case"object":e={};for(var b in d){e[b]=FSR.$unlink(d[b])}break;case"hash":e=FSR.$unlink(d.getClean());break;case"array":e=[];for(var c=0,a=d.length;c<a;c++){e[c]=FSR.$unlink(d[c])}break;default:return d}return e};FSR.$merge=function(){var d={};for(var e=0,a=arguments.length;e<a;e++){var g=arguments[e];if(FSR.$type(g)!="object"){continue}for(var f in g){var b=g[f],c=d[f];d[f]=(c&&FSR.$type(b)=="object"&&FSR.$type(c)=="object")?FSR.$merge(c,b):FSR.$unlink(b)}}return d};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.$pause=function(b){var c=new Date();var a=null;do{a=new Date()}while(a-c<b)};FSR.$try=function(){for(var c=0,a=arguments.length;c<a;c++){try{return arguments[c]()}catch(b){}}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.getClean())}for(var b in a){this[b]=a[b]}return this}});FSR.Hash.fsr$implement({getLength:function(){var b=0;for(var a in this){if(this.hasOwnProperty(a)){b++}}return b},forEach:function(c,b){for(var a in this){if(this.hasOwnProperty(a)){c.call(b,this[a],a,this)}}},getClean:function(){var b={};for(var a in this){if(this.hasOwnProperty(a)){b[a]=this[a]}}return b},empty:function(){FSR.Hash.each(this,function(b,a){delete this[a]},this);return this}});FSR.Hash.fsr$alias("forEach","each");FSR.$H=function(a){return new FSR.Hash(a)};FSR.$each=function(c,d,b){var a=FSR.$type(c);(a=="arguments"||a=="collection"||a=="array")?FSR.Array.each(c,d,b):FSR.Hash.each(c,d,b)};FSR.Browser=new FSR.Hash({Type:{name:"unknown",version:""},Engine:{name:"unknown",version:""},Platform:{name:(navigator.platform.match(/mac|win32|linux/i)||["other"])[0].toLowerCase(),os:"unknown"},Features:{xpath:!!(document.evaluate),air:!!(window.runtime)},Plugins:{},searchString:function(b){for(var a=0;a<b.length;a++){var d=b[a].s;var c=b[a].p;this.versionSearchString=b[a].v||b[a].i;if(d){if(d.indexOf(b[a].b)!=-1){return b[a].i}}else{if(c){return b[a].i}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{s:navigator.userAgent,b:"Chrome",i:"Chrome"},{s:navigator.vendor,b:"Apple",i:"Safari",v:"Version"},{p:window.opera,i:"Opera"},{s:navigator.userAgent,b:"Firefox",i:"Firefox"},{s:navigator.userAgent,b:"Netscape",i:"Netscape"},{s:navigator.userAgent,b:"MSIE",i:"Explorer",v:"MSIE"},{s:navigator.userAgent,b:"Gecko",i:"Mozilla",v:"rv"}],dataOS:[{s:navigator.platform,b:"Win",i:"Windows"},{s:navigator.platform,b:"Mac",i:"Mac"},{s:navigator.platform,b:"Linux",i:"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.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);return FSR.$extend(a,FSR.Window.Prototype)},afterImplement:function(b,a){window[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]=a;FSR.Document.Prototype[b]=a}});FSR.Document.Prototype={fsr$family:{name:"document"}};new FSR.Document(document);FSR.Array={indexOf:function(e,c,b){var a=e.length;for(var d=(b<0)?Math.max(0,a+b):b||0;d<a;d++){if(e[d]===c){return d}}return -1},map:function(f,c,b){var d=[];for(var e=0,a=f.length;e<a;e++){d[e]=c.call(b,f[e],e,f)}return d},associate:function(a,c){var b={},d=Math.min(a.length,c.length);for(var e=0;e<d;e++){b[c[e]]=a[e]}return b},contains:function(a,c,b){return FSR.Array.indexOf(a,c,b)!=-1},extend:function(a,b){for(var c=0,d=b.length;c<d;c++){a.push(b[c])}return a},include:function(a,b){if(!FSR.Array.contains(a,b)){a.push(b)}return a},flatten:function(e){var b=[];for(var d=0,a=e.length;d<a;d++){var c=FSR.$type(e[d]);if(!c){continue}b=b.concat((c=="array"||c=="collection"||c=="arguments")?FSR.Array.flatten(e[d]):e[d])}return b},slice:function(){var a=Array.prototype.slice.call(arguments);return Array.prototype.slice.apply(a.shift(),a)},forEach:function(e,c,b){for(var d=0,a=e.length;d<a;d++){c.call(b,e[d],d,e)}},each:function(e,c,b){for(var d=0,a=e.length;d<a;d++){c.call(b,e[d],d,e)}},toJSON:function(a){return FSR.JSON.encode(a)}};FSR.$A=function(c){if(c.item){var b=[];for(var d=0,a=c.length;d<a;d++){b[d]=c[d]}return b}return Array.prototype.slice.call(c)};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 e=b.arguments;e=(e!=undefined)?FSR.$splat(e):FSR.Array.slice(arguments,(b.event)?1:0);if(b.event){e=FSR.Array([d||window.event],e)}var c=function(){return a.apply(b.bind||null,e)};if(b.delay){return setTimeout(c,b.delay)}if(b.periodical){return setInterval(c,b.periodical)}if(b.attempt){return FSR.$try(c)}return c()}},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(c,b,a){return this.fsr$create({delay:c,bind:b,arguments:a})()},fsr$periodical:function(a,b,c){return this.fsr$create({periodical:a,bind:b,arguments:c})()},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(c){var a="";var b=this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){a+=arguments[1]+"\n";return""});if(c===true){FSR.$exec(a)}else{if(FSR.$type(c)=="function"){c(a,b)}}return b},fsr$substitute:function(a,b){return this.replace(b||(/\\?\{([^}]+)\}/g),function(c,d){if(c.charAt(0)=="\\"){return c.slice(1)}return(a[d]!=undefined)?a[d]:""})}});FSR.Hash.fsr$implement({has:Object.prototype.hasOwnProperty,keyOf:function(b){for(var a in this){if(this.hasOwnProperty(a)&&this[a]===b){return a}}return null},extend:function(a){FSR.Hash.each(a,function(b,c){FSR.Hash.set(this,c,b)},this);return this},combine:function(a){FSR.Hash.each(a,function(b,c){FSR.Hash.include(this,c,b)},this);return this},erase:function(a){if(this.hasOwnProperty(a)){delete this[a]}return this},get:function(a){return(this.hasOwnProperty(a))?this[a]:null},set:function(a,b){if(!this[a]||this.hasOwnProperty(a)){this[a]=b}return this},include:function(c,b){var a=this[c];if(a==undefined){this[c]=b}return this},toQueryString:function(a){var b=[];FSR.Hash.each(this,function(c,d){if(a){d=a+"["+d+"]"}var e;switch(FSR.$type(c)){case"object":e=FSR.Hash.toQueryString(c,d);break;case"array":var f={};FSR.Array.each(c,function(g,h){f[h]=g});e=FSR.Hash.toQueryString(f,d);break;default:e=d+"="+encodeURIComponent(c)}if(c!=undefined){b.push(e)}});return b.join("&")}});FSR.Hash.fsr$alias({keyOf:"indexOf",hasValue:"contains"});FSR.Event=new FSR.Native({name:"Event",initialize:function(d,m){m=m||window;var g=m.document;d=d||m.event;if(d.fsr$extended){return d}this.fsr$extended=true;var h=d.type;var l=d.target||d.srcElement;while(l&&l.nodeType==3){l=l.parentNode}if(h.fsr$test(/key/)){var c=d.which||d.keyCode;var e=FSR.Event.Keys.keyOf(c);if(h=="keydown"){var a=c-111;if(a>0&&a<13){e="f"+a}}e=e||String.fromCharCode(c).toLowerCase()}else{if(h.match(/(click|mouse|menu)/i)){g=(!g.compatMode||g.compatMode=="CSS1Compat")?g.getElementsByTagName("html")[0]:g.body;var i={x:d.pageX||d.clientX+g.scrollLeft,y:d.pageY||d.clientY+g.scrollTop};var b={x:(d.pageX)?d.pageX-m.pageXOffset:d.clientX,y:(d.pageY)?d.pageY-m.pageYOffset:d.clientY};if(h.match(/DOMMouseScroll|mousewheel/)){var j=(d.wheelDelta)?d.wheelDelta/120:-(d.detail||0)/3}var n=(d.which==3)||(d.button==2);var f=null;if(h.match(/over|out/)){switch(h){case"mouseover":f=d.relatedTarget||d.fromElement;break;case"mouseout":f=d.relatedTarget||d.toElement}if(!(function(){while(f&&f.nodeType==3){f=f.parentNode}return true}).fsr$create({attempt:FSR.Browser.Engine.gecko})()){f=false}}}}return FSR.$extend(this,{event:d,type:h,page:i,client:b,rightClick:n,wheel:j,relatedTarget:f,target:l,code:c,key:e,shift:d.shiftKey,control:d.ctrlKey,alt:d.altKey,meta:d.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(d){for(var e in this){this[e]=FSR.$unlink(this[e])}for(var c in FSR.Class.Mutators){if(c=="extend"){continue}if(!this[c]){continue}FSR.Class.Mutators[c](this,this[c]);delete this[c]}this.constructor=a;if(d===FSR.$empty){return this}var f=(this.initialize)?this.initialize.apply(this,arguments):this;if(this.options&&this.options.initialize){this.options.initialize.call(this)}return f};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,FSR.Array.slice(arguments));return this}});FSR.Class.Mutators={Implements:function(a,b){FSR.Array.each(FSR.$splat(b),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,FSR.Array.slice(arguments,1))}}};FSR.Events=new FSR.Class({fsr$addEvent:function(b,c,a){b=FSR.Events.removeOn(b);if(c!=FSR.$empty){this.$events=this.$events||{};this.$events[b]=this.$events[b]||[];FSR.Array.include(this.$events[b],c);if(a){c.internal=true}}return this},fsr$addEvents:function(a){for(var b in a){this.fsr$addEvent(b,a[b])}return this},fsr$fireEvent:function(b,c,a){b=FSR.Events.removeOn(b);if(!this.$events||!this.$events[b]){return this}FSR.Array.each(this.$events[b],function(d){d.fsr$create({bind:this,delay:a,"arguments":c})()},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].erase(a)}return this},fsr$removeEvents:function(c){for(var b in this.$events){if(c&&c!=b){continue}var d=this.$events[b];for(var a=d.length;a--;a){this.fsr$removeEvent(b,d[a])}}return this}});FSR.Events.removeOn=function(a){return a.replace(/^on([A-Z])/,function(c,b){return b.toLowerCase()})};FSR.Options=new FSR.Class({setOptions:function(){this.options=FSR.$merge.fsr$run(FSR.Array.extend([this.options],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}});(function(){var b;try{var a=document.createElement("<input name=x>");b=(a.name=="x")}catch(d){}var c=function(e){return(""+e).replace(/&/g,"&amp;").replace(/"/g,"&quot;")};FSR.Document.fsr$implement({fsr$newElement:function(f,e){if(e&&e.checked!=null){e.defaultChecked=e.checked}if(b&&e){f="<"+f;if(e.name){f+=' name="'+c(e.name)+'"'}if(e.type){f+=' type="'+c(e.type)+'"'}f+=">";delete e.name;delete e.type}return $fsr.element(this.createElement(f)).fsr$set(e)},fsr$newTextNode:function(e){return this.createTextNode(e)},fsr$getDocument:function(){return this},fsr$getWindow:function(){return this.defaultView||this.parentWindow},fsr$purge:function(){var f=this.getElementsByTagName("*");for(var g=0,h=f.length;g<h;g++){FSR.Browser.freeMem(f[g])}for(var e in FSR.Document.Prototype){document[e]=null}document.fsr$uid=null;for(var e in FSR.Window.Prototype){window[e]=null}window.fsr$uid=null;document.fsr$head=null;document.fsr$html=null;document.fsr$window=null;FSR.Element.Storage=null}})})();FSR.Element=new FSR.Native({name:"Element",initialize:function(a,c){var b=FSR.Element.Constructors.get(a);if(b){return b(c)}if(typeof a=="string"){return document.fsr$newElement(a,c)}return $fsr(a).fsr$set(c)},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(c,g){g=FSR.$extend({ddup:true,cash:true},g);c=c||[];if(g.ddup||g.cash){var b={},d=[];for(var f=0,a=c.length;f<a;f++){var e=$fsr.element(c[f],!g.cash);if(g.ddup){if(b[e.fsr$uid]){continue}b[e.fsr$uid]=true}d.push(e)}c=d}return(g.cash)?FSR.$extend(c,this):c}});FSR.Elements.fsr$implement({fsr$filter:function(a,b){if(!a){return this}return new FSR.Elements(FSR.Array.filter(this,(typeof a=="string")?function(c){return c.match(a)}:a,b))}});FSR.Elements.fsr$multi=function(a){return function(){var f=[];var b=true;for(var d=0,e=this.length;d<e;d++){var c=this[d][a].apply(this[d],arguments);f.push(c);if(b){b=(FSR.$type(c)=="element")}}return(b)?new FSR.Elements(f):f}};FSR.Window.fsr$implement({$fsr:function(c,b){if(c&&c.fsr$family&&c.fsr$uid){return c}var a=FSR.$type(c);return($fsr[a])?$fsr[a](c,b,this.document):null},$$fsr:function(a){if(arguments.length==1&&typeof a=="string"){return this.document.fsr$getElements(a)}var b=[];var e=FSR.Array.flatten(arguments);for(var d=0,f=e.length;d<f;d++){var c=e[d];switch(FSR.$type(c)){case"element":c=[c];break;case"string":c=this.document.fsr$getElements(c,true);break;default:c=false}if(c){FSR.Array.extend(b,c)}}return new FSR.Elements(b)},fsr$getDocument:function(){return this.document},fsr$getWindow:function(){return this}});$fsr.string=function(b,c,a){b=a.getElementById(b);return(b)?$fsr.element(b,c):null};$fsr.element=function(a,b){FSR.$uid(a);if(!b&&!a.fsr$family&&!(/^object|embed$/i).test(a.tagName)){var d=FSR.Element.Prototype;for(var c in d){a[c]=d[c]}}return a};$fsr.object=function(c,b,a){if(c.toElement){return $fsr.element(c.toElement(a),b)}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,b){a=a.split(",");var c=[];var d=(a.length>1);FSR.Array.each(a,function(f){var e=this.getElementsByTagName(f.fsr$trim());(d)?FSR.Array.extend(c,e):c=e},this);return new FSR.Elements(c,{ddup:d,cash:!b})}});FSR.Element.Storage={get:function(a){return(this[a]||(this[a]={}))}};FSR.Element.Inserters=new FSR.Hash({after:function(c,a){if(!a.parentNode){return}var b=a.nextSibling;(b)?a.parentNode.insertBefore(c,b):a.parentNode.appendChild(c)},bottom:function(b,a){a.appendChild(b)},top:function(c,a){var b=a.firstChild;(b)?a.insertBefore(c,b):a.appendChild(c)}});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(b,d){switch(FSR.$type(b)){case"object":for(var c in b){this.fsr$set(c,b[c])}break;case"string":var a=FSR.Element.Properties.get(b);if(a&&a.set){a.set.apply(this,FSR.Array.slice(arguments,1))}else{this.fsr$setProperty(b,d)}}return this},fsr$inject:function(b,a){FSR.Element.Inserters.get(a||"bottom")(this,$fsr(b,true));return this},fsr$dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this},fsr$setProperty:function(c,b){var d=FSR.Element.Attributes,e=d.Props[c],a=FSR.$defined(b);if(e&&d.Bools[c]){b=(b||!a)?true:false}else{if(!a){return this.removeProperty(c)}}(e)?this[e]=b:this.setAttribute(c,b);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={set:function(){return this.innerHTML=FSR.Array.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(d,a){var b=FSR.Element.Storage.get(this.fsr$uid);var c=b[d];if(FSR.$defined(a)&&!FSR.$defined(c)){c=b[d]=a}return FSR.$pick(c)},fsr$store:function(c,a){var b=FSR.Element.Storage.get(this.fsr$uid);b[c]=a;return this},fsr$eliminate:function(a){var b=FSR.Element.Storage.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()}if(a.fsr$uid){a.fsr$uid=null}};(function(a){var b=a.Bools,c=a.Camels;a.Bools=b=FSR.Array.associate(b,b);FSR.Hash.extend(FSR.Hash.combine(a.Props,b),FSR.Array.associate(c,FSR.Array.map(c,function(d){return d.toLowerCase()})));a.erase("Camels")})(FSR.Element.Attributes);window.fsr$addListener("unload",function(){window.fsr$removeListener("unload",arguments.callee);window.fsr$fireEvent("unload");document.fsr$purge();if(window.CollectGarbage){CollectGarbage()}});FSR.Element.Properties.events={set:function(a){this.fsr$addEvents(a)}};FSR.Native.fsr$implement([FSR.Element,FSR.Window,FSR.Document],{fsr$addEvent:function(i,g){var f=this.fsr$retrieve("events",{});f[i]=f[i]||{keys:[],values:[]};if(FSR.Array.contains(f[i].keys,g)){return this}f[i].keys.push(g);var h=i,d=FSR.Element.Events.get(i),b=g,e=this;if(d){if(d.onAdd){d.onAdd.call(this,g)}if(d.condition){b=function(j){if(d.condition.call(this,j)){return g.call(this,j)}return false}}h=d.base||h}var a=function(){return g.call(e)};var c=FSR.Element.NativeEvents[h]||0;if(c){if(c==2){a=function(j){j=new FSR.Event(j,e.fsr$getWindow());if(b.call(e,j)===false){j.stop()}}}if(h!="unload"){this.fsr$addListener(h,a)}}f[i].values.push(a);return this},fsr$removeEvent:function(e,f){var g=this.fsr$retrieve("events");if(!g||!g[e]){return this}var b=FSR.Array.indexOf(g[e].keys,f);if(b==-1){return this}var a=g[e].keys.splice(b,1)[0];var c=g[e].values.splice(b,1)[0];var d=FSR.Element.Events.get(e);if(d){if(d.onRemove){d.onRemove.call(this,f)}e=d.base||e}return(FSR.Element.NativeEvents[e])?this.fsr$removeListener(e,c):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(c){var a=this.fsr$retrieve("events");if(!a){return this}if(!c){for(var b in a){if(a.hasOwnProperty(b)){this.fsr$removeEvents(b)}}a=null}else{if(a[c]){while(a[c].keys[0]){this.fsr$removeEvent(c,a[c].keys[0])}a[c]=null}}return this},fsr$fireEvent:function(b,d,a){var c=this.fsr$retrieve("events");if(!c||!c[b]){return this}FSR.Array.each(c[b].keys,function(e){e.fsr$create({bind:this,delay:a,"arguments":d})()},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.Array.contains(FSR.$A(this.getElementsByTagName(a.tagName)),a))}});(function(){FSR.Native.fsr$implement([FSR.Document,FSR.Window],{fsr$getSize:function(){var b=this.fsr$getWindow();if(FSR.Browser.Engine.presto||FSR.Browser.Engine.webkit){return{x:b.innerWidth,y:b.innerHeight}}var c=a(this);return{x:c.clientWidth,y:c.clientHeight}},fsr$getScroll:function(){var b=this.fsr$getWindow();var c=a(this);return{x:b.pageXOffset||c.scrollLeft,y:b.pageYOffset||c.scrollTop}},fsr$getScrollSize:function(){var b=a(this);var c=this.fsr$getSize();return{x:Math.max(b.scrollWidth,c.x),y:Math.max(b.scrollHeight,c.y)}}});function a(c){var b=c.fsr$getDocument();return(!b.compatMode||b.compatMode=="CSS1Compat")?b.getElementsByTagName("html")[0]:b.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(){(FSR.Array.contains(["loaded","complete"],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(FSR.Array.map(b,FSR.JSON.encode).fsr$filter(FSR.$defined))+"]";case"object":case"hash":var a=[];FSR.Hash.each(b,function(c,d){var e=FSR.JSON.encode(c);if(e){a.push(FSR.JSON.encode(d)+":"+e)}});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,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(FSR.encode){b=encodeURIComponent(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()+"=([^;]*)");var b=(a)?a[1]:null;if(FSR.encode){b=(b)?decodeURIComponent(b):null}return b},dispose:function(){new FSR.Cookie(this.key,FSR.$merge(this.options,{duration:-1})).write("");return this}});FSR.Cookie.write=function(c,b,a){return new FSR.Cookie(c,a).write(b)};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({get:function(a){return this.hash.get(a)},set:function(a,b){this.hash.set(a,b);this.save();return this},erase:function(a){this.hash.erase(a);this.save();return this},empty:function(){this.hash.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(c,e){e=FSR.$extend({onload:FSR.$empty,document:document,check:FSR.$lambda(true)},e);var g=new FSR.Element("script",{src:FSR.Asset.src(c),type:"text/javascript"});var d=e.onload.fsr$bind(g),a=e.check,b=e.document;delete e.onload;delete e.check;delete e.document;g.fsr$addEvents({load:function(){if(this.loaded){return}this.loaded=1;d()},readystatechange:function(){if(FSR.Browser.Engine.trident&&FSR.Array.contains(["loaded","complete"],this.readyState)){if(this.loaded){return}this.loaded=1;d()}}}).fsr$setProperties(e);if(FSR.Browser.Engine.webkit419){var f=(function(){if(!FSR.$try(a)){return}FSR.$clear(f);d()}).fsr$periodical(50)}return g.fsr$inject(document.getElementsByTagName("head")[0])},image:function(c,d){d=FSR.$merge({onload:FSR.$empty,onabort:FSR.$empty,onerror:FSR.$empty},d);var b=new Image();var a=$fsr(b)||new FSR.Element("img");FSR.Array.each(["load","abort","error"],function(g){var f="on"+g;var e=d[f];delete d[f];b[f]=function(){if(!b){return}if(!a.parentNode){a.width=b.width;a.height=b.height}b=b.onload=b.onabort=b.onerror=null;e.fsr$delay(1,a,a);a.fsr$fireEvent(g,a,1)}});b.src=FSR.Asset.src(c);if(a.src!=b.src){a.src=b.src}if(b&&b.complete){b.onload.fsr$delay(1)}return a.fsr$setProperties(d)},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.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.Events,FSR.Options],options:{host:"",path:"",url:""},initialize:function(b,a){this.setOptions(a);this.event=b;this.ver=0},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(){if(this.ver<3){this._send()}else{this.fsr$fireEvent("failure")}},send:function(a){this.values=a;this._send()},_send:function(){this.running=true;this.ver=this.ver+1;var a=this;var b=FSR.Hash.toQueryString(this.values);var c=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?event="+this.event+"&"+b+"&uid="+FSR.$time()+"&ver="+this.ver;new FSR.Asset.image(c,{onload:function(d){a.onStateChange(1)},onerror:function(){a.onStateChange(0)},onabort:function(){a.onStateChange(0)}});return this}});FSR.CPPS=new FSR.Hash({set:function(d,c,b){var b=(b||FSR.c());var a=b.get("cp")||{};a[d]=c;b.set("cp",a)},get:function(c,b){var b=(b||FSR.c());var a=b.get("cp")||{};return a[c]},erase:function(c,b){var b=(b||FSR.c());var a=b.get("cp")||{};delete a[c];b.set("cp",a)},append:function(d,c,b){var b=(b||FSR.c());var a=b.get("cp")||{};a[d]=a[d]?a[d]+","+c:c;b.set("cp",a)},toQueryString:function(e){var e=(e||FSR.c());var g=e.get("sd");var h=FSR.$defined(g)?FSR.surveydefs[g]:FSR.sd;var m=e.get("browser");var d={browser:FSR.Browser.Type.name+" "+FSR.Browser.Type.version,os:FSR.Browser.Platform.os,pv:e.get("pv"),url:e.get("c")||"",ref_url:e.get("ru")||"",locale:e.get("l")||"",site:FSR.site.name||"",section:h.section||"",referrer:e.get("r")||"",terms:e.get("st")||"",sessionid:e.get("rid")||"",replay_id:e.get("mid")||"",flash:FSR.Browser.Plugins.Flash.version};if(FSR.$P().analytics.google){var j=FSR.Cookie.read("__utma",{path:"/",domain:FSR.site.domain||false});var n=FSR.Cookie.read("__utmz",{path:"/",domain:FSR.site.domain||false});if(j&&j!=""){var b=j.split(".");d.first=b[2];d.last=b[3];d.current=b[4];d.visits=b[5]}if(n&&n!=""){var c;if(c=n.match(/utmgclid=([^\|]*)/)){d.source="Google";d.campaign="Google Adwords";d.medium="cpc"}else{if(c=n.match(/utmcsr=([^\|]*)/)){d.source=c[1]}if(c=n.match(/utmccn=([^\|]*)/)){d.campaign=c[1]}if(c=n.match(/utmcmd=([^\|]*)/)){d.medium=c[1]}}if(c=n.match(/utmctr=([^\|]*)/)){d.keyword=c[1]}}}var l=e.get("cp")||{};var a=new FSR.Hash(l);var i=d||{};for(k in i){a.set(k,i[k])}var f=a.toQueryString("cpp");return f}});FSR.Service=new FSR.Class({Implements:[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 d=this;var b=this.options.params||{};b.protocol=document.location.protocol;b.uid=FSR.$time();var a=FSR.Hash.toQueryString(b);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==d.options.success){d.onStateChange(1)}else{d.onStateChange(0)}},onerror:function(){d.onStateChange(-1)},onabort:function(){d.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.c().set("mid",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"},domain:{host:"survey.foreseeresults.com",path:"/survey",url:"/FSRImg",success:3}};FSR.UnsupportedBrowsers={Explorer:5.5,Safari:2,Firefox:1.4};FSR.SupportedPlatforms={win32:true,mac:true,linux:true,iphone:false,blackberry:false,wince:false,other:false};FSR.$P=function(){return FSR.properties};FSR.c=function(){return new FSR.Hash.Cookie(FSR.cookieName("fsr.s"),{path:"/",domain:FSR.site.domain||false,secure:FSR.site.secure||false})};FSR.cookieName=function(a){return a+(FSR.site.cookie?"."+FSR.site.cookie:"")};FSR.log=function(c,d){if(!FSR.$P().events.enabled){return}var b=FSR.c();var a=b.get("sd");var e=FSR.$defined(a)?FSR.surveydefs[a]:FSR.sd;new FSR.RemoteEvent("logit",{host:FSR.services.event.host,path:FSR.services.event.path,url:FSR.services.event.url}).send({cid:FSR.id,rid:b.get("rid")||"",cat:e.name,sec:e.section||"",type:b.get("q")||"",site:FSR.site.name||"",lang:b.get("l")||FSR.$S.locale||"",msg:c,param:d,tms:new Date().getTime(),tmz:new Date().getTimezoneOffset()*60000})};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.execute(FSR.controller.popFeedback)};FSR.run=function(){FSR.controller.execute(FSR.controller.run)};FSR.pop=function(b,a,c){FSR.controller.execute(FSR.controller.popAttach,{sp:b,when:a,qualifier:c,invite:false})};FSR.invite=function(b,a,c){FSR.controller.execute(FSR.controller.popAttach,{sp:b,when:a,qualifier:c,invite:true})};FSR.close=function(){FSR.controller.cancelTracker()};var ForeSee={CPPS:{fsr$set:function(a,b){FSR.CPPS.set(a,b)}}};FSR.generateid=function(){var a="";a=((new Date())-0)+"_"+Math.round(Math.random()*1000000);return a};FSR.$S={};FSR.$M={load:0,run:0};var fsr$ls=new Date().getTime();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.override=function(a){FSR.controller.override(a)};FSR.language=function(a){if(!a){return}FSR.$S.locale=a;FSR.c().set("l",a)};FSR.qualify=function(a){FSR.$S.canceled=false;if(a){FSR.$S.qid=a;FSR.c().set("q",a)}};FSR.cancel=function(){FSR.$S.canceled=true};FSR.$S.canceled=false;FSR.SurveyController=new FSR.Class({Implements:FSR.Options,options:{},initialize:function(a){this.setOptions(a);this.queue=new Array();FSR.controller=this},load:function(){if(!FSR.auto){return}this.execute(this.run,true)},execute:function(c,b){if(!FSR.enabled){return}if(window!=window.top){return}var e=this;if(this.isloaded){var a=new Date().getTime();if(FSR.$S.message){fsr$dbug.log(FSR.$S.message)}if(this.v!=0){(function(){c.call(e,b)}).fsr$delay(1)}var d=new Date().getTime();FSR.$M.run=FSR.$M.run+(d-a);return}var a=new Date().getTime();this.queue.push({fn:c,params:b});if(!this.loading){this.loading=true;new FSR.Asset.javascript((FSR.js_files||FSR.files)+"foresee-surveydef.js",{id:"foresee-surveydef",onload:function(){fsr$dbug.log("Survey Definitions Loaded");e.loaded()}})}var d=new Date().getTime();FSR.$M.run=FSR.$M.run+(d-a)},loaded:function(){var c=new Date().getTime();this.init();this.isloaded=true;var a=this;this.timer=(function(){a.check()}).fsr$periodical(100);var b=new Date().getTime();FSR.$M.run=FSR.$M.run+(b-c)},check:function(){var a=new Date().getTime();var b=this.queue.shift();if(b){this.execute(b.fn,b.params);return}FSR.$clear(this.timer);var c=new Date().getTime();FSR.$M.run=FSR.$M.run+(c-a)},run:function(b){var a=new Date().getTime();if(b){FSR.c().erase("pa")}this.setup();FSR.sd=this.sd=this.pd;FSR.sdi=this.sdi=this.pdi;var c=false;if(this.sd){c=this.process()}FSR.sd=this.sd=this.cd;FSR.sdi=this.sdi=this.cdi;if(this.sd){this.processBefore();if(!c){c=this.process()}this.processAfter();this.processCPPS()}this.processEvents();var d=new Date().getTime();FSR.$M.run=FSR.$M.run+(d-a)},process:function(){if(this.v<0){return false}if(this.processTracker()){return true}if(this.processInvite()){return true}return false},processBefore:function(){if(this.v<0){return false}var b=FSR.c();b.set("cd",this.sd.idx);if(!b.get("lk")){var a=b.get("pn");if(!FSR.$defined(a)||a>=this.sd.idx){b.set("sd",this.sd.idx)}}},processAfter:function(){if(this.v<0){return false}if(this.inviteAccepted()&&!this.surveyShown()){this.setupLinks("pop",this.popLink);this.setupLinks("cancel",this.cancelTracker)}if(!this.inviteShown()){this.setupLinks("attach",this.popAttach)}if(this.trackerRunning()){this.setupLinks("pause",this.pause)}},processTracker:function(){if(!this.shouldTrack()){return false}if(!this.trackerRunning()){return false}var a=this;(function(){a.launch("tracker")}).fsr$delay(1);return true},shouldTrack:function(){var a=this.sd;if(!a.ls){return false}if(a.type=="previous"){if(!(a.pop.when=="later")||!(a.pop.after=="leaving-section")){return false}}else{if(a.type=="current"){if(!(a.pop.when=="now")){return false}}}return true},trackerRunning:function(){if(FSR.$defined(FSR.c().get("t"))){return true}return false},processInvite:function(){var d=new Date().getTime();var c=true;if(this.inviteShown()){c=false}if(!this.shouldInvite()){c=false}if(c){var a=this;a.processAlt();(function(){a.launch("invite")}).fsr$delay(1)}var b=new Date().getTime();FSR.$M.run=FSR.$M.run+(b-d);return c},shouldInvite:function(){var b=this.sd;if(b.invite===false){return false}if(b.invite.include){var d=true;if(d){if(b.invite.include.local){d=this.matchList(b.invite.include.local,decodeURIComponent(document.location.href))}if(!d){this.updateExclude();return false}}}if(b.invite.exclude){var c=false;if(!c){c=this.matchList(b.invite.exclude.local||[],decodeURIComponent(document.location.href))}if(!c){c=this.matchList(b.invite.exclude.referrer||[],decodeURIComponent(document.referrer))}if(c){this.updateExclude();return false}}var a=(b.type=="previous")?"onexit":"onentry";if(b.invite&&b.invite.when!=a){return false}if(!b.ls){return false}if(!(b.sv>0&&b.sv<=b.criteria.sp)){return false}return true},processAlt:function(){var b=this.sd;if(b.alt){var c;var f=FSR.$random(0,100);var d=0;var g=b.alt;for(var e=0,a=g.length;e<a;e++){d+=g[e].sp;if(f<=d){if(g[e].url){b.pop.what="url";b.pop.url=g[e].url}else{if(g[e].script){b.pop.what="script";b.pop.script=g[e].script}}delete b.invite;break}}}},inviteShown:function(){if(FSR.$defined(FSR.c().get("i"))){return true}return false},inviteAccepted:function(){if(FSR.c().get("i")==1){return true}return false},surveyShown:function(){if(FSR.$defined(FSR.c().get("s"))){return true}return false},launch:function(a){if(a=="invite"){this.attemptInvite()}else{if(a=="tracker"){this.popImmediate()}}},matchList:function(c,d){for(var a=0,b=c.length;a<b;a++){if(d.match(c[a])){return true}}return false},updateExclude:function(){var c=this.sd;var b=FSR.c();var a=b.get("lc");c.ec=a["d"+c.idx].e=(a["d"+c.idx].e||0)+1;b.set("lc",a)},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(c,d){if(!this.sd.links){return}var b=0;var f=this.sd.links[c]||[];for(var e=0,g=f.length;e<g;e++){var a=this.link(f[e].tag,f[e].attribute,f[e].patterns||[],f[e].qualifier,d,{sp:f[e].sp,when:f[e].when,invite:f[e].invite,pu:f[e].pu});b=b+a}fsr$dbug.log("linked ("+c+"): "+b)},link:function(a,d,e,f,g,c){var h=this;var b=0;FSR.Array.each($$fsr(a),function(i){for(var j=0,l=e.length;j<l;j++){if(i[d]&&(i[d]+"").match(e[j])){b++;i.fsr$addEvents({click:function(){if(f){FSR.qualify(f)}g.call(h,c)}});break}}});return b},init:function(){fsr$dbug.log("======INIT=======");this.ralive=true;var e=FSR.Cookie.read(FSR.cookieName("fsr.a"),{path:"/",domain:FSR.site.domain||false,secure:FSR.site.secure||false});if(!this.trackerRunning()){this.cancelAlive()}if(!e){fsr$dbug.log("Exit: Cookies are not enabled");this.v=0;return}var c=FSR.c();var l=FSR.$P();var o=c.get("v");if(!FSR.$defined(o)){o=1;var a=FSR.Browser;fsr$dbug.log("browser: "+a.Type.name+" "+a.Type.version+" on "+a.Platform.os);if(!FSR.SupportedPlatforms[a.Platform.name]){FSR.$S.message="Exit: Platform not surpported";o=0}if(FSR.UnsupportedBrowsers[a.Type.name]){if(a.Type.version<=FSR.UnsupportedBrowsers[a.Type.name]){FSR.$S.message="Exit: Browser not surpported";o=0}}if(this.exclude()){FSR.$S.message="Exit: Met exclude criteria";o=0}var g=FSR.Cookie.read("fsr.o",{path:"/",domain:FSR.site.domain||false});if(g){FSR.$S.message="Exit: Optout Cookie Found";o=0}var f=new FSR.Hash.Cookie(FSR.cookieName("fsr.r"),{path:"/",domain:FSR.site.domain||false,secure:FSR.site.secure||false});var h;if(h=f.get("d")){FSR.$S.message="Persistent Cookie Found: "+h;o=-1}var b;if(l.altcookie&&l.altcookie.name){b=FSR.Cookie.read(l.altcookie.name,{path:l.altcookie.path||false,domain:l.altcookie.domain||false,secure:FSR.site.secure||false});if(b){if(!l.altcookie.value||l.altcookie.value==b){FSR.$S.message="Alt persistent Cookie Found: "+b;o=-1}}}var i=FSR.$random(0,100);if(o==1&&!(i>0&&i<=this.pool())){FSR.$S.message="Not in pool: "+i;o=-2}c.set("v",o);var j;if(j=f.get("i")){var n=new Date();if(n.getTime()<f.get("e")){FSR.rid=j}}if(!FSR.rid){if(l.events.enabled&&l.events.id){FSR.rid=FSR.generateid()}}if(FSR.rid){c.set("rid",FSR.rid)}var u;if(u=f.get("s")){c.set("sd",u);c.set("lk",1)}var m=this;this.dhtml_win=1;new FSR.Asset.javascript((FSR.js_files||FSR.files)+"foresee-dhtml-popup.js",{id:"foresee-dhtml-popup",onload:function(){m.dhtml_win=2}});this.dhtml_css=1;new FSR.Asset.css((FSR.css_files||FSR.files)+l.invite.css);if(l.qualifier.css&&(l.qualifier.css!=l.invite.css)){new FSR.Asset.css((FSR.css_files||FSR.files)+l.qualifier.css)}this.dhtml_css=2;if(document.referrer&&document.referrer!=""){if(l.meta.ref_url){c.set("ru",document.referrer)}var q=document.referrer.match(/^(\w+\:\/\/)?(((\w+-?\w+\.?))+)\//);var s="";if(q&&q.length>=3){s=q[2]}if(l.meta.referrer){c.set("r",s)}fsr$dbug.log("referrer: "+s);var r=this.decodeReferrer(document.referrer)||"";if(l.meta.terms){c.set("st",r)}fsr$dbug.log("search terms: "+r)}this.processCPPDefaults(c)}this.v=o;FSR.rid=c.get("rid");var p=l.tracker.timeout;if(l.tracker.adjust&&FSR.$defined(c.get("f"))){var d=c.get("to");var t=((FSR.$time()-c.get("f"))/1000);fsr$dbug.log("ptimeout: "+d);fsr$dbug.log("loadtime: "+t);p=(0.9*d)+(0.1*(t*2));p=Math.round(p*10)/10;if(p<2){p=2}else{if(p>5){p=5}}}if(l.tracker.adjust){c.set("to",p)}fsr$dbug.log("timeout: "+p);fsr$dbug.log("invite: "+(FSR.$pick(c.get("i"),"")));fsr$dbug.log("tracker: "+(FSR.$pick(c.get("t")||"")));if(this.v<1){FSR.RR.cancelRecord()}},setup:function(){fsr$dbug.log("======SETUP=======");var i=FSR.c();FSR.sv=FSR.$random(0,100);this.sp=new FSR.Hash.Cookie("fsr.sp",{path:"/",domain:FSR.site.domain||false});var h,q,d,o,e;if(FSR.$defined(i.get("cd"))){e=i.get("cd")}FSR.cs=decodeURIComponent(document.location.href);if(!FSR.$P().meta.url_params){FSR.cs=FSR.cs.replace(/(.*?)(\?.*)/g,"$1")}if(FSR.$P().meta.url){i.set("c",FSR.cs)}this.language();fsr$dbug.log("language: "+FSR.$S.locale||"");fsr$dbug.log("site: "+FSR.site.name||"");var f=i.get("pv")?i.get("pv")+1:1;i.set("pv",f);fsr$dbug.log("pv: "+f);var r=i.get("lc")||{};h=this.matchDef();if(h.length!=0){fsr$dbug.log("===CURRENT====");for(var m=0,n=h.length;m<n;m++){var j=FSR.surveydefs[h[m]];j.idx=h[m];fsr$dbug.log("section: "+(j.section||""));var b="d"+j.idx;this.criteria(j.criteria);if(!r[b]){r[b]={v:0,s:false}}j.lc=r[b].v=r[b].v+1;j.ec=r[b].e||0;j.type="current";this.configLoyalty(j);var c=this.loyaltyDef(j);var g=this.checkLoyalty(c,j.lc,j.ec);if(g>-1){j.ls=r[b].s=true;if(FSR.$type(j.criteria.lf)=="array"){j.criteria.lf=j.criteria.lf[g];j.criteria.sp=j.criteria.sp[g];j.pop.when=j.pop.when[g];if(FSR.$type(j.invite.content)=="array"){j.invite.content=j.invite.content[g];var p=j.invite.locales||[];for(var m=0,l=p.length;m<l;m++){p[m].content=p[m].content[g]}}}if(j.pin){var a=i.get("pn");if(!FSR.$defined(a)||a>=j.idx){i.set("pn",j.idx)}}}else{j.ls=r[b].s=false;if(FSR.$type(j.criteria.lf)=="array"){j.criteria.lf=j.criteria.lf[0];j.criteria.sp=j.criteria.sp[0];j.pop.when=j.pop.when[0];if(FSR.$type(j.invite.content)=="array"){j.invite.content=j.invite.content[0];var p=j.invite.locales||[];for(var m=0,l=p.length;m<l;m++){p[m].content=p[m].content[0]}}}}this.configure(j);this.cd=j;q=j.idx;break}i.set("lc",r)}if(FSR.$defined(e)&&(e!=q)){fsr$dbug.log("===PREVIOUS===");var j=FSR.surveydefs[e];j.idx=e;var b="d"+j.idx;this.criteria(j);j.lc=r[b].v||0;j.ls=r[b].s||false;j.type="previous";this.configLoyalty(j);this.configure(j);this.pd=j}},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(c,b,e){var f=-1;for(var d=0,a=c.length;d<a;d++){if(c[d].o==">="){if(b>=c[d].v){f=d}}else{if(c[d].o=="="){if((b-e)==c[d].v){f=d}}else{if(c[d].o==">"){if(b>c[d].v){f=d}}}}}return f},exclude:function(b){var a=FSR.$P().exclude;if(!a){return false}return this.match(a)},configure:function(c){var b=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 d=(!c.section)?c.name:c.name+"-"+c.section;var a=(!FSR.$S.locale)?d:d+"-"+FSR.$S.locale;c.criteria.sp=this.sp.get(d)||this.sp.get(a)||c.criteria.sp;fsr$dbug.log("sp: "+c.criteria.sp);if(!(c.invite===false)){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);if(FSR.$type(c.repeatdays)!="array"){c.repeatdays=[c.repeatdays,c.repeatdays]}},unload:function(){if(!FSR.enabled){return}if(!this.runload&&this.ralive){this.runload=true;this.uninit()}return},uninit:function(){var a=FSR.c();if(FSR.$S.invite==0){fsr$dbug.log("Invite Abandoned");FSR.log(103);FSR.$pause(1000)}if(FSR.$P().previous){a.set("p",FSR.cs)}if(FSR.$P().tracker.adjust){a.set("f",FSR.$time())}},matchDef:function(){var a=[];var b=FSR.surveydefs;for(var d=0,f=b.length,e=0;d<f;d++){if(b[d].site&&b[d].site!=FSR.site.name){continue}var c=e;if(this.match(b[d].include)){a[e++]=d}if(e!=c){break}}return a},match:function(d){function _match(m,v){if(FSR.$type(v)!="array"){v=[v]}for(var x=0,y=v.length;x<y;x++){if(m.match(v[x])){return true}}return false}var p;p=d.urls||[];for(var j=0,n=p.length;j<n;j++){if(decodeURIComponent(document.location.href).match(p[j])){return true}}p=d.referrers||[];for(var j=0,n=p.length;j<n;j++){if(decodeURIComponent(document.referrer).match(p[j])){return true}}p=d.userAgents||[];for(var j=0,n=p.length;j<n;j++){if(navigator.userAgent.match(p[j])){return true}}p=d.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||".")){return true}}}var ipo=FSR.Cookie.read("fsr.ipo",{path:"/",domain:FSR.site.domain||false});p=d.variables||[];for(var j=0,n=p.length;j<n;j++){var name=p[j].name;var value=p[j].value;if(name==FSR.$P().ipexclude&&ipo==1){continue}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(!_match(v,value[x])){z=false;break}}}if(z){return true}}return false},pool:function(){var d=new Date().getHours();var e=100;if(FSR.$defined(FSR.$P().pool)){e=FSR.$P().pool}var a=FSR.Cookie.read("fsr.pool",{path:"/",domain:FSR.site.domain||false});if(a&&a==1){e=100}if(FSR.$type(e)!="array"){e=[{h:0,p:e}]}var c=100;for(var f=0,b=e.length;f<b;f++){if(d>=e[f].h){c=e[f].p}}return c},invite:function(){var d=new Date().getTime();var b=this.sd;FSR.$S.invite=0;FSR.$S.repeatoverride=FSR.$P().repeatoverride||false;FSR.c().set("i",FSR.$S.invite);if(!FSR.$S.repeatoverride){this.setRepeatdays(1)}if(FSR.$S.locale){FSR.c().set("l",FSR.$S.locale)}var a=this;if(b.invite){(function(){FSR.log(100,FSR.cs);a.prepareDHTML("invite","accepted","declined","closed")}).fsr$delay((b.invite.delay||0)*1000);if(b.invite.timeout){(function(){FSR.idhtml.hide()}).fsr$delay(b.invite.timeout*1000)}}else{(function(){a.accepted();a.closed()}).fsr$delay(0)}var c=new Date().getTime();FSR.$M.run=FSR.$M.run+(c-d)},prepareDHTML:function(c,b,f,g){var h=new Date().getTime();var a=this;if(!FSR.$defined(this.dhtml_css)){this.dhtml_css=1;new FSR.Asset.css((FSR.css_files||FSR.files)+this.sd[c].css);this.dhtml_css=2}if(!FSR.$defined(this.dhtml_win)){this.dhtml_win=1;new FSR.Asset.javascript((FSR.js_files||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(c,b,f,g)}})}else{if(this.dhtml_win==1){var e=(function(){if(a.dhtml_win==1){return}FSR.$clear(e);a.showDHTML(c,b,f,g)}).fsr$periodical(50)}else{if(this.dhtml_win==2){(function(){a.showDHTML(c,b,f,g)}).fsr$delay(1)}}}var d=new Date().getTime();FSR.$M.run=FSR.$M.run+(d-h)},showDHTML:function(l,a,i,n){var d=new Date().getTime();var g=this;var j=this.sd[l];this.page(j);var m=[];if(j.buttons){var c=0;if(j.buttons.decline){m[c]={properties:{id:"decline"},style:"fsr_button fsr_decline",text:j.buttons.decline,onClick:function(){g[i]()},onMouseover:function(){this.className="fsr_closeSticky fsr_button fsr_mouseover_decline"},onMouseout:function(){this.className="fsr_closeSticky fsr_button fsr_decline"}};c++}if(j.buttons.accept){m[c]={properties:{id:"accept"},style:"fsr_button fsr_accept",text:j.buttons.accept,onClick:function(){g[a]()},onMouseover:function(){this.className="fsr_closeSticky fsr_button fsr_mouseover_accept"},onMouseout:function(){this.className="fsr_closeSticky fsr_button fsr_accept"}};c++}}var e={position:{x:j.x,y:j.y},wrapWithUi:true,uiOptions:{width:j.width+"px",baseHref:(FSR.image_files||FSR.files),buttons:m,close:function(){g[i]()}},modalOptions:{modalStyle:{"background-color":j.bgcolor,opacity:j.opacity},hideOnClick:j.hideOnClick},requestOptions:{evalScripts:true}};FSR.$S[l]=0;var f;if(j.content){e.content=j.content;f=new FSR.StickyWinModal(e)}else{e.url=(FSR.html_files||FSR.files)+(j.url.dhtml||j.url);f=new FSR.StickyWinModal.Ajax(e)}if(n){f.fsr$addEvent("onClose",function(){g[n]()})}if(FSR.Browser.Type.name!="Explorer"){var b=(this.sd.invite)?this.sd.invite.hide:[];for(var c=0,o=b.length;c<o;c++){if($fsr(b[c])){$fsr(b[c]).fsr$setStyle("visibility","hidden")}}}if(j.content){f.show()}else{f.update()}FSR.idhtml=f;var h=new Date().getTime();FSR.$M.run=FSR.$M.run+(h-d)},accepted:function(){FSR.$S.invite=1;FSR.log(101);var b=FSR.c();b.set("i",FSR.$S.invite);if(this.sd.lock){b.set("lk",1)}this.setRepeatdays(0);FSR.RR.setOKTransmit();var a=this;a.processAccept()},declined:function(){FSR.$S.invite=-1;FSR.log(102);FSR.c().set("i",FSR.$S.invite);this.setRepeatdays(1);FSR.RR.cancelRecord()},closed:function(){if(FSR.Browser.Type.name!="Explorer"){var b=(this.sd.invite)?this.sd.invite.hide:[];for(var c=0,a=b.length;c<a;c++){if($fsr(b[c])){$fsr(b[c]).fsr$setStyle("visibility","visible")}}}},qualified:function(){FSR.$S.qualifier=1;FSR.log(301);var a=this;a.processQualifier()},override:function(a){if(a==1){FSR.$S.repeatoverride=true}else{FSR.$S.repeatoverride=false}},processAccept:function(){var b=this.sd;if(b.pop.when=="later"){if(b.pop.tracker){this.popTracker()}this.setupLinks("pop",this.popLink);this.setupLinks("cancel",this.cancelTracker);this.setupLinks("pause",this.pause)}else{if(b.pop.when=="now"){FSR.c().set("s",1);var a=b.pop.what;if(a=="survey"){this.popSurvey()}else{if(a=="qualifier"){this.popQualifier()}else{if(a=="url"){this.popUrl()}else{if(a=="script"){this.popScript()}else{if(a=="movie"){}}}}}}else{if(b.pop.when=="both"){this.popTracker();this.popSurvey()}}}},processQualifier:function(){if(!FSR.$S.canceled){this.popSurvey()}else{this.popCancel()}},popImmediate:function(d){var c=this.sd;var e=this;var b=FSR.c();if(this.trackerRunning()){if(FSR.Browser.Type.name!="Firefox"||!c.qualifier.content){if(d&&d.pu){b.set("fo",2)}else{b.set("fo",1)}}else{this.cancelTracker();(function(){FSR.log(300,FSR.cs);e.prepareDHTML("qualifier","qualified")}).fsr$delay((c.qualifier.delay||0)*1000)}}else{FSR.c().set("s",1);var a=c.pop.what;if(a=="survey"){this.popSurvey()}else{if(a=="qualifier"){this.popQualifier()}else{if(a=="url"){this.popUrl()}else{if(a=="script"){this.popScript()}else{if(a=="movie"){}}}}}}},popSurvey:function(){var b=this.sd.survey;var a=this.sd.pop;this.popMain(this.sid(),b.width,b.height,a.pu,false,"400")},popFeedback:function(){var b=FSR.$P();var c="feedback";var a=FSR.$S.locale;if(a){c=c+"-"+a}this.popMain(c,b.survey.width,b.survey.height,false,false,"600")},popMain:function(a,b,f,e,o,h){var l=FSR.services.survey;var i=FSR.c();var c=i.get("rid")||FSR.generateid();var g=this.hash(c);var j=FSR.cs;var n=new FSR.Hash({sid:a,cid:FSR.id,pattern:j,a:c,b:g,c:24*60*60*1000,version:FSR.version}).toQueryString();var m=FSR.CPPS.toQueryString();var d=document.location.protocol+"//"+l.host+l.path+l.url+"?"+n+"&"+m;this.pop("fsr"+h,d,(window.screen.width-b)/2,(window.screen.height-f)/2,b,f,e);FSR.log(h,FSR.cs)},popTracker:function(){if(this.trackerRunning()){return}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",this.sd.pop.now)},popCancel:function(){this.popOther(this.sd.cancel,false,"500")},popLink:function(a){if(!this.surveyShown()){this.popImmediate(a)}},cancelTracker:function(){if(FSR.c().get("lk")){return}if(this.trackerRunning()){var a=window.open("","fsr200");if(a){a.close()}}},popOther:function(i,e,g,h){this.page(i);var b=(window.screen.width-i.width)/2;var f=(window.screen.height-i.height)/2;var d=(FSR.html_files||FSR.files)+(i.url.pop||i.url);var c={siteid:FSR.siteid,name:FSR.site.name,domain:FSR.site.domain};if(h){c.when=h}var a=new FSR.Hash(c).toQueryString();d=d+"?"+a;this.pop("fsr"+g,d,b,f,i.width,i.height,e);FSR.log(g,FSR.cs)},popAttach:function(c){if(this.inviteShown()){return}var b=this.sd;var a=this;if(c.sp){b.criteria.sp=c.sp}if(c.when){b.pop.when=c.when}if(c.qualifier){b.pop.when=c.when}if(!(b.sv>0&&b.sv<=b.criteria.sp)){return}if(FSR.$S.locale){FSR.c().set("l",FSR.$S.locale)}if(c.invite){this.processInvite()}else{(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.set("pa","1")},sid:function(){var c=this.sd;var b=FSR.c();var h=c.name;var g=c.site;if(g){h=h+"-"+g}var e=c.section;if(e){h=h+"-"+e}var a=c.pop.now;if(a){h=h+"-"+a}var f=b.get("q");if(f){h=h+"-"+f}var d=b.get("l");if(d){h=h+"-"+d}return h},pop:function(f,g,b,c,d,a,e,h){(function(){new FSR.Browser.Popup(g,{name:f,toolbar:0,location:0,directories:0,status:0,scrollbars:1,resizable:1,width:d,height:a,x:b,y:c,blur:e,menubar:0})}).fsr$delay(h||0)},language:function(){var f=FSR.$P().language;if(!f){return}FSR.$S.locale=f.locale;if(!f.src){return}var e=FSR.$S.locale;var d;if(f.src=="location"){d=decodeURIComponent(document.location.href)}else{if(f.src=="cookie"){if(f.type&&f.type=="client"){d=FSR.Cookie.read(f.name,{path:"/",domain:FSR.site.domain||false})}else{d=FSR.c().get("lang")}}else{if(f.src=="variable"){if(f.type&&f.type=="client"){d=window[f.name]}else{d=FSR[f.name]}}else{if(f.src=="meta"){if(document.getElementsByName(f.name).length!=0){d=document.getElementsByName(f.name)[0].content}}else{if(f.src=="navigator"){if(navigator.browserLanguage){d=navigator.browserLanguage||navigator.language}}}}}}d=d||"";var b=f.locales||[];for(var g=0,i=b.length;g<i;g++){if(FSR.$type(b[g].match)!="array"){b[g].match=[b[g].match]}var c;for(var h=0,a=b[g].match.length;h<a;h++){if(c=d.match(b[g].match[h])){e=b[g].locale;break}}if(c){break}}FSR.$S.locale=e},page:function(b){var e=FSR.c().get("l");if(!e){return}var c=b.locales||[];for(var d=0,a=c.length;d<a;d++){if(c[d].locale==e){if(c[d].url){b.url=c[d].url}if(c[d].content){b.content=c[d].content}if(c[d].buttons){b.buttons={accept:"",decline:""};if(c[d].buttons.accept){b.buttons.accept=c[d].buttons.accept}if(c[d].buttons.decline){b.buttons.decline=c[d].buttons.decline}}if(c[d].width){b.width=c[d].width}if(c[d].height){b.height=c[d].height}break}}},criteria:function(b){var e=FSR.$S.locale;if(!e){return}var c=b.locales||[];for(var d=0,a=c.length;d<a;d++){if(c[d].locale==e){b.sp=c[d].sp;b.lf=c[d].lf;break}}},decodeReferrer:function(a){a=decodeURIComponent(a);var b;var c=document.referrer.match(/[?&]q=([^&]*)/)||document.referrer.match(/[?&]p=([^&]*)/)||document.referrer.match(/[?&]query=([^&]*)/);if(!c){return b}var b=unescape(c[1]);if(b){b=b.replace(/\+/g," ")}return b},setRepeatdays:function(b){if(FSR.$S.repeatoverride){return}var c=FSR.$P();if(this.sd.repeatdays[b]){var e=new FSR.Hash.Cookie(FSR.cookieName("fsr.r"),{path:"/",domain:FSR.site.domain||false,secure:FSR.site.secure||false,duration:this.sd.repeatdays[b]});e.set("d",this.sd.repeatdays[b]);if(c.altcookie&&c.altcookie.name){FSR.Cookie.write(c.altcookie.name,c.altcookie.value,{path:c.altcookie.path||false,domain:c.altcookie.domain||false,secure:FSR.site.secure||false,duration:c.altcookie.persistent?this.sd.repeatdays[b]:false})}var d=c.events;if(d.pd){e.set("i",FSR.rid);var a=new Date();a.setDate(a.getDate()+d.pd);e.set("e",a.getTime());if(this.sd.lock){e.set("s",this.sd.idx)}}if(c.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[b]*24*60}}).ping()}}},hash:function(b){var a=b.split("_");return((a[0]*3)+1357)+""+((a[1]*9)+58)},processCPPS:function(){var cpps=FSR.$P().cpps;if(!cpps){return}for(var name in cpps){if(!cpps.hasOwnProperty(name)){continue}var cpp=cpps[name];var value="";if(cpp.source=="url"){var p=cpp.patterns||[];for(var j=0,n=p.length;j<n;j++){if(decodeURIComponent(document.location.href).match(p[j].regex)){value=p[j].value;break}}}else{if(cpp.source=="parameter"){value=this.parameter(cpp.name)}else{if(cpp.source=="cookie"){value=FSR.Cookie.read(cpp.name,{path:cpp.path||false,domain:cpp.domain||false})}else{if(cpp.source=="variable"){try{value=eval(cpp.name)}catch(err){value=false}}else{if(cpp.source=="meta"){if(document.getElementsByName(cpp.name).length!=0){value=document.getElementsByName(cpp.name)[0].content}}}}}}if(value&&value!=""){if(cpp.mode&&cpp.mode=="append"){FSR.CPPS.append(name,value)}else{FSR.CPPS.set(name,value)}}}},processCPPDefaults:function(b){var d=FSR.$P().cpps;if(!d){return}for(var c in d){if(!d.hasOwnProperty(c)){continue}var a=d[c];if(a.init){FSR.CPPS.set(c,a.init,b)}}},processEvents:function(){if(Math.abs(this.v)!=1){return}var events=FSR.$P().events;if(!events.custom){return}var c=FSR.c();var ev=c.get("ev")||{};var i=0;for(var name in events.custom){if(!events.custom.hasOwnProperty(name)){continue}var event=events.custom[name];if(!event.enabled){continue}var value="";if(event.source=="url"){var p=event.patterns||[];for(var j=0,n=p.length;j<n;j++){if(decodeURIComponent(document.location.href).match(p[j])){value=p[j];break}}}else{if(event.source=="parameter"){value=this.parameter(event.name)}else{if(event.source=="cookie"){value=FSR.Cookie.read(event.name,{path:event.path||false,domain:event.domain||false})}else{if(event.source=="variable"){try{value=eval(event.name)}catch(err){value=false}}}}}if(value&&value!=""){if(!ev["e"+i]||event.repeat){ev["e"+i]=(ev["e"+i]||0)+1;c.set("ev",ev);FSR.log(events.codes[name],value)}}i++}},parameter:function(d){d=d.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var a="[\\?&]"+d+"=([^&#]*)";var b=new RegExp(a);var c=b.exec(window.location.href);if(c==null){return false}else{return c[1]}},cancelAlive:function(){clearInterval(fsr$timer);FSR.Cookie.dispose(FSR.cookieName("fsr.a"),{path:"/",domain:FSR.site.domain||false,secure:FSR.site.secure||false})}});new FSR.SurveyController({});window.fsr$addEvent("domready",function(){(function(){FSR.controller.load()}).fsr$delay(1)});window.fsr$addEvent("unload",function(){FSR.controller.unload()});var fsr$le=new Date().getTime();FSR.$M.load=fsr$le-fsr$ls;
