var FSR={version:"4.6.2",date:"7/27/2009",enabled:true,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="foresee.alive="+a+";path=/;domain="+FSR.site.domain+";"}(function(){if(window!=window.top){return}var b=FSR.sites;for(var d=0,e=b.length;d<e;d++){var f;if(f=document.location.href.match(b[d].path)){FSR.siteid=d;FSR.site=FSR.sites[FSR.siteid];if(!FSR.site.domain){FSR.site.domain=f[0]}if(!FSR.site.name){FSR.site.name=FSR.site.domain}var c=["files","js_files","image_files","html_files"];for(var d=0,a=c.length;d<a;d++){if(FSR.site[c[d]]){FSR[c[d]]=FSR.site[c[d]]}}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.$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);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]=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}});FSR.Document.fsr$implement({fsr$newElement:function(a,b){if(FSR.Browser.Engine.trident&&b){FSR.Array.each(["name","type","checked"],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 d=0,a=c.length;d<a;d++){FSR.Browser.freeMem(c[d])}for(var b in FSR.Document.Prototype){document[b]=null}document.fsr$uid=null;for(var b in FSR.Window.Prototype){window[b]=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)}});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(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)?a[1]:null},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:d,readystatechange:function(){if(FSR.Browser.Engine.trident&&FSR.Array.contains(["loaded","complete"],this.readyState)){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},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(d){this.running=true;var a=this;var b=FSR.Hash.toQueryString(d);var c=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?event="+this.event+"&"+b+"&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({set:function(c,b){var a=FSR.c().get("cpps")||{};a[c]=b;FSR.c().set("cpps",a)},get:function(b){var a=FSR.c().get("cpps")||{};return a[b]},erase:function(b){var a=FSR.c().get("cpps")||{};delete a[b];FSR.c().set("cpps",a)},append:function(c,b){var a=FSR.c().get("cpps")||{};a[c]=a[c]?a[c]+b:b;FSR.c().set("cpps",a)},toQueryString:function(){var b=FSR.c();var e=b.get("browser");var c={browser:FSR.Browser.Type.name+" "+FSR.Browser.Type.version,os:FSR.Browser.Platform.os,pv:b.get("pv"),url:b.get("current"),ref_url:b.get("ref_url"),locale:b.get("locale")||"",site:b.get("site")||"",referrer:b.get("referrer")||"",terms:b.get("terms")||"",sessionid:b.get("rid")||"",flash:FSR.Browser.Plugins.Flash.version};var f=b.get("cpps")||{};var d=new FSR.Hash(f);var g=c||{};for(k in g){d.set(k,g[k])}var a=d.toQueryString("cpp");return a}});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.CPPS.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},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("foresee."+FSR.site.cookie,{path:"/",domain:FSR.site.domain||false})};FSR.log=function(c,a){if(!FSR.services.event.enabled){return}var b=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,rid:b.get("rid"),cat:b.get("sd").name,sec:b.get("sd").section||"",type:b.get("qual")||"",site:b.get("site")||"",lang:b.get("locale")||FSR.locale||"",msg:c,param:a,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.popFeedback()};FSR.pop=function(c,a){var d=c;if(!d){d=FSR.controller.sd.criteria.sp}var e=a;if(!e){e=FSR.controller.sd.pop.when}var b=FSR.controller.sd.sv;if(!(b<=d)){return}if(e=="now"){if(!(FSR.controller.surveyShown()&&d<100)){FSR.controller.popImmediate()}}else{if(e=="later"){if(!FSR.controller.trackerRunning()){FSR.controller.popTracker()}}}};FSR.close=function(){FSR.controller.cancelTracker()};FSR.run=function(){FSR.controller.run(false)};var ForeSee={CPPS:{fsr$set:function(a,b){FSR.CPPS.set(a,b)}}};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().set("locale",a)};FSR.qualify=function(a){FSR.canceled=false;FSR.qid=a;FSR.c().set("qual",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!=window.top){return}var a=this;new FSR.Asset.javascript((FSR.js_files||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}this.cpp();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().set("sd",{idx:this.sd.idx,name:this.sd.name,section:this.sd.section||""})}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().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 b=FSR.c();var d=b.get("ec");this.sd.ec=d[this.sd.name]=d[this.sd.name]+1;b.set("ec",d);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 b;var e=FSR.$random(0,100);var c=0;var f=this.sd.alt;for(var d=0,a=f.length;d<a;d++){c+=f[d].sp;if(e<=c){if(f[d].url){this.sd.pop.what="url";this.sd.pop.url=f[d].url}else{if(f[d].script){this.sd.pop.what="script";this.sd.pop.script=f[d].script}}delete this.sd.invite;break}}}},inviteShown:function(){if(FSR.$defined(FSR.c().get("invite"))){return true}return false},inviteAccepted:function(){if(FSR.c().get("invite")==1){return true}return false},surveyShown:function(){if(FSR.$defined(FSR.c().get("survey"))){return true}return false},launch:function(a){if(a=="invite"){this.attemptInvite()}else{if(a=="tracker"){this.popImmediate()}}},checkExclude:function(c,d){for(var a=0,b=c.length;a<b;a++){if(d.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(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});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=======");var j=FSR.c();var g=j.get("pv")?j.get("pv")+1:1;j.set("pv",g);fsr$dbug.log("pv: "+g);j.set("paused","0");this.ralive=true;j=FSR.c();g=j.get("pv");if(!g){fsr$dbug.log("Exit...cookies are not enabled.");return false}if(!this.trackerRunning()){clearInterval(fsr$timer);FSR.Cookie.dispose("foresee.alive",{path:"/",domain:FSR.site.domain||false})}var m=FSR.Browser;fsr$dbug.log("browser: "+m.Type.name+" "+m.Type.version+" on "+m.Platform.os);if(!FSR.SupportedPlatforms[m.Platform.name]){fsr$dbug.log("Platform not surpported.");return false}if(FSR.UnsupportedBrowsers[m.Type.name]){if(m.Type.version<=FSR.UnsupportedBrowsers[m.Type.name]){fsr$dbug.log("Browser not surpported.");return false}}if(this.validateIP()==0){fsr$dbug.log("Invalid IP Address.");return false}var h;if(FSR.$defined(j.get("finish"))){var l=j.get("timeout");var d=((FSR.$time()-j.get("finish"))/1000);fsr$dbug.log("ptimeout: "+l);fsr$dbug.log("loadtime: "+d);h=(0.9*l)+(0.1*(d*2));if(h<2){h=2}else{if(h>5){h=5}}}else{h=FSR.$P().tracker.timeout}j.set("timeout",h);fsr$dbug.log("timeout: "+h);if(!j.get("start")){var e;if(e=FSR.Cookie.read("foresee.repeatdays",{path:"/",domain:FSR.site.domain||false})){fsr$dbug.log("Persistent Cookie Found: "+e);return false}j.set("start",FSR.$time());var f=this;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 (1).");f.dhtml_win=2}});this.dhtml_css=1;new FSR.Asset.css((FSR.image_files||FSR.files)+FSR.$P().invite.css);if(FSR.$P().qualifier.css&&(FSR.$P().qualifier.css!=FSR.$P().invite.css)){new FSR.Asset.css((FSR.image_files||FSR.files)+FSR.$P().qualifier.css)}this.dhtml_css=2;var c=this.generateid();j.set("rid",c);if(document.referrer&&document.referrer!=""){if(FSR.$P().meta.ref_url){j.set("ref_url",document.referrer)}var a=document.referrer.match(/^(\w+\:\/\/)?(((\w+-?\w+\.?))+)\//);var i="";if(a&&a.length>=3){i=a[2]}if(FSR.$P().meta.referer){j.set("referrer",i)}fsr$dbug.log("referrer: "+i);var b=this.decodeReferrer(document.referrer)||"";if(FSR.$P().meta.terms){j.set("terms",b)}fsr$dbug.log("search terms: "+b)}}fsr$dbug.log("invite: "+(FSR.$pick(j.get("invite"),"")));fsr$dbug.log("tracker: "+(FSR.$pick(j.get("tracker")||"")));return true},setup:function(){fsr$dbug.log("======SETUP=======");var h=FSR.c();FSR.sv=FSR.$random(0,100);this.sp=new FSR.Hash.Cookie("foresee.sp",{path:"/",domain:FSR.site.domain||false});var j,g,q,d,p,e;if(h.get("sd")){e=h.get("sd").idx}j=document.location.href;if(!FSR.$P().meta.url_params){j=j.replace(/(.*?)(\?.*)/g,"$1")}h.set("current",j);this.language();if(FSR.locale){fsr$dbug.log("language: "+FSR.locale||"")}var b=FSR.site.name;if(b){h.set("site",b||"");fsr$dbug.log("site: "+b||"")}var r=h.get("lc")||{};var m=h.get("ls")||{};var l=h.get("ec")||{};g=this.match(document.location.href);if(g.length!=0){fsr$dbug.log("===CURRENT====");for(var n=0,o=g.length;n<o;n++){var i=FSR.surveydefs[g[n]];i.idx=g[n];this.criteria(i.criteria);i.lc=r[i.name]=r[i.name]?r[i.name]+1:1;i.ec=l[i.name]=l[i.name]?l[i.name]:0;i.type="current";this.configLoyalty(i);var c=this.loyaltyDef(i);var f=this.checkLoyalty(c,i.lc,i.ec);if(f>-1){i.ls=m[i.name]=true;if(FSR.$type(i.criteria.lf)=="array"){i.criteria.lf=i.criteria.lf[f];i.criteria.sp=i.criteria.sp[f];i.pop.when=i.pop.when[f];if(FSR.$type(i.invite.content)=="array"){i.invite.content=i.invite.content[f]}}if(i.pin){var a=h.get("p")||{};a[i.name]=1;h.set("p",a)}}else{i.ls=m[i.name]=false;if(FSR.$type(i.criteria.lf)=="array"){i.criteria.lf=i.criteria.lf[0];i.criteria.sp=i.criteria.sp[0];i.pop.when=i.pop.when[0];if(FSR.$type(i.invite.content)=="array"){i.invite.content=i.invite.content[0]}}}this.configure(i);this.cd=i;q=i.idx;break}h.set("lc",r);h.set("ls",m);h.set("ec",l)}if(FSR.$defined(e)&&(e!=q)){fsr$dbug.log("===PREVIOUS===");var i=FSR.surveydefs[e];i.idx=e;this.criteria(i);i.lc=r[i.name];i.ls=m[i.name]||false;i.type="previous";this.configLoyalty(i);this.configure(i);this.pd=i}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(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},validateIP:function(b){var a=1;var c=FSR.$P().ipexclude;if(!c){return a}var b;if(c.src=="cookie"){if(c.type&&c.type=="client"){b=FSR.Cookie.read(c.name,{path:"/",domain:FSR.site.domain||false})}else{b=FSR.c().get("ip")}}else{if(c.src=="variable"){if(c.type&&c.type=="client"){b=window[c.name]}else{b=FSR[c.name]}}}b=b||"";for(var d=0;d<c.ips.length;d++){if(b.match(c.ips[d])){a=0;break}}return a},configure:function(d){var b=FSR.c();fsr$dbug.log("sid: "+d.name);fsr$dbug.log("lc: "+d.lc);fsr$dbug.log("lf: "+d.criteria.lf.v+" ("+d.criteria.lf.o+") ");d.sv=FSR.sv;fsr$dbug.log("sv: "+d.sv);if(FSR.$type(d.criteria.sp)=="array"){d.criteria.sp=d.criteria.sp[(new Date()).getDay()]}var f=(!d.section)?d.name:d.name+"-"+d.section;var a=(!FSR.locale)?f:f+"-"+FSR.locale;d.criteria.sp=this.sp.get(f)||this.sp.get(a)||d.criteria.sp;fsr$dbug.log("sp: "+d.criteria.sp);if(d.invite){d.invite=FSR.$merge(FSR.$P().invite,d.invite)}d.tracker=FSR.$merge(FSR.$P().tracker,d.tracker);d.survey=FSR.$merge(FSR.$P().survey,d.survey);d.qualifier=FSR.$merge(FSR.$P().qualifier,d.qualifier);d.cancel=FSR.$merge(FSR.$P().cancel,d.cancel);d.pop=FSR.$merge(FSR.$P().pop,d.pop);d.repeatdays=FSR.$pick(FSR.$P().repeatdays,d.repeatdays);if(FSR.$type(d.repeatdays)!="array"){d.repeatdays=[d.repeatdays,d.repeatdays]}var e=FSR.Array.extend([],FSR.$P().exclude.local);if(d.exclude&&d.exclude.local){d.exclude.local=FSR.Array.extend(e,d.exclude.local)}else{if(d.exclude){d.exclude.local=e}else{d.exclude={local:e}}}var c=FSR.Array.extend([],FSR.$P().exclude.referer);if(d.exclude&&d.exclude.referer){d.exclude.referer=FSR.Array.extend(c,d.exclude.referer)}else{if(d.exclude){d.exclude.referer=c}else{d.exclude={referer:c}}}},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.$P().previous){a.set("previous",a.get("current"))}a.set("finish",FSR.$time())},match:function(source){if(!source){return}var m=[];var d=FSR.surveydefs;var pin=FSR.c().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().set("locale",FSR.locale)}var a=this;if(this.sd.invite){(function(){FSR.log(100,FSR.c().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(c,b,e,f){var a=this;if(!FSR.$defined(this.dhtml_css)){this.dhtml_css=1;new FSR.Asset.css((FSR.image_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,e,f)}})}else{if(this.dhtml_win==1){var d=(function(){if(a.dhtml_win==1){return}FSR.$clear(d);a.showDHTML(c,b,e,f)}).fsr$periodical(50)}else{if(this.dhtml_win==2){(function(){a.showDHTML(c,b,e,f)}).fsr$delay(1)}}}},showDHTML:function(j,b,h,m){var g=this;var i=this.sd[j];this.page(i);var l=[];if(i.buttons){var d=0;if(i.buttons.accept){l[d]={properties:{id:"accept"},style:"fsr_button fsr_accept",text:i.buttons.accept,onClick:function(){g[b]()},onMouseover:function(){this.className="fsr_closeSticky fsr_button fsr_mouseover_accept"},onMouseout:function(){this.className="fsr_closeSticky fsr_button fsr_accept"}};d++}if(i.buttons.decline){l[d]={properties:{id:"decline"},style:"fsr_button fsr_decline",text:i.buttons.decline,onClick:function(){g[h]()},onMouseover:function(){this.className="fsr_closeSticky fsr_button fsr_mouseover_decline"},onMouseout:function(){this.className="fsr_closeSticky fsr_button fsr_decline"}};d++}}var e={position:{x:i.x,y:i.y},wrapWithUi:true,uiOptions:{width:i.width+"px",baseHref:(FSR.image_files||FSR.files),buttons:l},modalOptions:{modalStyle:{"background-color":i.bgcolor,opacity:i.opacity},hideOnClick:i.hideOnClick},requestOptions:{evalScripts:true}};FSR[j]=0;var f;if(i.content){e.content=i.content;f=new FSR.StickyWinModal(e)}else{e.url=(FSR.html_files||FSR.files)+(i.url.dhtml||i.url);f=new FSR.StickyWinModal.Ajax(e)}if(m){f.fsr$addEvent("onClose",function(){g[m]()})}if(FSR.Browser.Type.name!="Explorer"){var c=this.sd.invite.hide;for(var d=0,a=c.length;d<a;d++){if($fsr(c[d])){$fsr(c[d]).fsr$setStyle("visibility","hidden")}}}if(i.content){f.show()}else{f.update()}FSR.idhtml=f},accepted:function(){FSR.invite=1;FSR.log(101);FSR.c().set("invite",FSR.invite);this.setRepeatdays(0);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[0]*24*60}}).ping()}FSR.RR.setOKTransmit();var a=this;a.processAccept()},declined:function(){FSR.invite=-1;FSR.log(102);FSR.c().set("invite",FSR.invite);this.setRepeatdays(1);FSR.RR.cancelRecord()},closed:function(){if(FSR.Browser.Type.name!="Explorer"){var b=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.qualifier=1;FSR.log(301);FSR.c().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().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.what=="movie"){}}}}}}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.content){b.set("force",1)}else{this.cancelTracker();(function(){FSR.log(300,FSR.c().get("current"));a.prepareDHTML("qualifier","qualified")}).fsr$delay((this.sd.qualifier.delay||0)*1000)}}else{FSR.c().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.what=="movie"){}}}}}}},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 b=FSR.$P();var c="feedback";var a=FSR.locale;if(a){c=c+"-"+a}this.popMain(c,b.survey.width,b.survey.height,false,b.survey.loading,"600")},popMain:function(a,b,f,e,o,h){var l=FSR.services.survey;var i=FSR.c();var c=i.get("rid");var g=this.hash(c);var j=i.get("current");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;if(o){this.page(FSR.$P().loading);d=(FSR.html_files||FSR.files)+FSR.$P().loading.url+"?url="+d}this.pop("fsr"+h,d,(window.screen.width-b)/2,(window.screen.height-f)/2,b,f,e);FSR.log(h,FSR.c().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(b,f,g){this.page(b);var d=(window.screen.width-b.width)/2;var e=(window.screen.height-b.height)/2;var a=(FSR.html_files||FSR.files)+(b.url.pop||b.url);var c=new FSR.Hash({siteid:FSR.siteid,domain:FSR.site.domain,sdidx:this.sd.idx}).toQueryString();a=a+"?"+c;this.pop("fsr"+g,a,d,e,b.width,b.height,f);FSR.log(g,FSR.c().get("current"))},popAttach:function(b){var a=this;if(b.sp){this.sd.criteria.sp=b.sp}if(b.when){this.sd.pop.when=b.when}if(!(this.sd.sv>0&&this.sd.sv<=this.sd.criteria.sp)){return}if(FSR.locale){FSR.c().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.set("paused","1")},sid:function(){var b=FSR.c();var g=this.sd.name;var f=this.sd.site;if(f){g=g+"-"+f}var d=this.sd.section;if(d){g=g+"-"+d}var a=this.sd.pop.now;if(a){g=g+"-"+a}var e=b.get("qual");if(e){g=g+"-"+e}var c=b.get("locale");if(c){g=g+"-"+c}return g},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 b=FSR.$P().language;if(!b){return}var f=b.locale;var c;if(b.src=="location"){c=document.location.href}else{if(b.src=="cookie"){if(b.type&&b.type=="client"){c=FSR.Cookie.read(b.name,{path:"/",domain:FSR.site.domain||false})}else{c=FSR.c().get("lang")}}else{if(b.src=="variable"){if(b.type&&b.type=="client"){c=window[b.name]}else{c=FSR[b.name]}}}}c=c||"";var e=b.locales||[];for(var d=0,a=e.length;d<a;d++){if(c.match(e[d].match)){f=e[d].locale;break}}FSR.locale=f},page:function(b){var e=FSR.c().get("locale");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.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}}},generateid:function(){var a="";a=((new Date())-0)+"_"+Math.round(Math.random()*1000000);return a},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(a){if(this.sd.repeatdays[a]){FSR.Cookie.write("foresee.repeatdays",this.sd.repeatdays[a],{path:"/",domain:FSR.site.domain||false,duration:this.sd.repeatdays[a]})}},hash:function(b){var a=b.split("_");return((a[0]*3)+1357)+""+((a[1]*9)+58)},cpp: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(document.location.href.match(p[j].regex)){value=p[j].value;break}}}if(cpp.source=="parameter"){value=this.parameter(cpp.name)}if(cpp.source=="cookie"){value=FSR.Cookie.read(cpp.name,{path:cpp.path||false,domain:cpp.domain||false})}if(cpp.source=="varialble"){try{value=eval(cpp.name)}catch(err){value=false}}if(value){FSR.CPPS.set(name,value)}}},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]}}});new FSR.SurveyController({});window.fsr$addEvent("domready",function(){(function(){FSR.controller.load()}).fsr$delay(1)});window.fsr$addEvent("unload",function(){FSR.controller.unload()});