(function(){function e(a,c){var d;d=typeof c==="undefined"?a:{left:a,top:c};if(typeof d!=="undefined"){this.left=typeof d.x!=="undefined"?d.x:d.left;this.top=typeof d.y!=="undefined"?d.y:d.top;this.right=d.right;this.bottom=d.bottom;this.position=d.position}}function b(a){this.width=320;this.height=240;this.start=new e({left:0,top:0});this.end=new e;this.after=new e({left:0,top:0});this.delay=0;this.duration=600;this.n="";this.g=this.m=12;this.w=true;this.h="surveyInterstitialSeen";this.p=false;this.k= this.l=0;this.d=null;this.a="survey_interstitial";this.b="survey_interstitial_close";this.s=true;this.o=0.4;this.animate=false;this.i=true;this.q(a)}e.copy=function(a,c){c.left=a.left;c.top=a.top;c.right=a.right;c.bottom=a.bottom;c.position=a.position};window.Point=e;e.copy=e.copy;b.prototype.q=function(a){if(typeof a!=="undefined"){if(typeof a.width!=="undefined")this.width=a.width;if(typeof a.width!=="undefined")this.height=a.height;if(typeof a.content!=="undefined")this.n=a.content;if(typeof a.start!== "undefined"&&a.start.constructor===e){e.copy(a.start,this.start);e.copy(this.start,this.after)}typeof a.end!=="undefined"&&a.end.constructor===e&&e.copy(a.end,this.end);typeof a.after!=="undefined"&&a.after.constructor===e&&e.copy(a.after,this.after);if(typeof a.animate!=="undefined")this.animate=a.animate;if(typeof a.keepCentered!=="undefined")this.i=a.keepCentered;if(typeof a.delay!=="undefined")this.delay=a.delay;if(typeof a.duration!=="undefined")this.duration=a.duration;if(typeof a.closeBtnWidth!== "undefined")this.m=a.closeBtnWidth;if(typeof a.closeBtnHeight!=="undefined")this.g=a.closeBtnHeight;if(typeof a.closeBtnRight!=="undefined")this.k=a.closeBtnRight;if(typeof a.closeBtnTop!=="undefined")this.l=a.closeBtnTop;if(typeof a.useLightbox!=="undefined")this.s=a.useLightbox;if(typeof a.lightboxOpacity!=="undefined")this.o=a.lightboxOpacity;if(typeof a.trackSeen!=="undefined")this.w=a.trackSeen;if(typeof a.cookieName!=="undefined")this.h=a.cookieName;if(typeof a.parentSelector!=="undefined")this.d= a.parentSelector;if(typeof a.divId!=="undefined")this.a=a.divId;if(typeof a.closeBtnId!=="undefined")this.b=a.closeBtnId}};b.prototype.setStart=function(a,c){this.start=new e({left:a,top:c});this.after=new e({left:a,top:c})};b.prototype.setEnd=function(a,c){this.end=new e({left:a,top:c})};b.prototype.u=function(a,c){this.after=new e({left:a,top:c})};b.prototype.v=function(a){this.d=a};b.prototype.j=function(a){this.e(a);this.f(a)};b.prototype.e=function(a){a.left=Math.max(0,$(window).width()/2-this.width/ 2)};b.prototype.f=function(a){a.top=Math.max(0,$(window).height()/2-this.height/2)};b.prototype.t=function(){return Cookie.isSet(this.h)};b.prototype.r=function(){Cookie.set(this.h,"true",1E3,"/")};b.prototype.close=function(a){$("#"+this.a+" #"+this.b).fadeOut(this.duration);var c=$("#"+this.a),d=(c.outerWidth()-c.innerWidth())/2;this.animate&&$("#"+this.a).animate(this.c(this.after,d),this.duration,undefined,function(f){return function(){$(this).css(f.c(f.start,d))}}(this));$("#"+this.a).fadeOut(this.duration); $("#"+this.a+"_lightbox").fadeOut();a&&a.preventDefault()};b.prototype.load=function(){if($("#"+this.a).size()===0){var a;(this.d?$(this.d):$("body")).append('');a=function(c){return function(d){c.close(d)}}(this);$("#"+this.a+" #"+this.b).click(a)}$("#"+this.a+"_lightbox").size()===0&&$("body").append('')}; b.prototype.show=function(){if(!(this.p&&this.t())){this.p&&this.r();$(document).ready(function(a){return function(){var c,d;a.load();c=$("#"+a.a);c.css({width:a.width,height:a.height,"z-index":999});d=(c.outerWidth()-c.innerWidth())/2;if(a.s){$("#"+a.a+"_lightbox").fadeTo(a.duration,a.o);$("#"+a.a+"_lightbox").click(function(){a.close()})}c.css(a.c(a.start,d));if(a.i){a.end=new e;a.j(a.end)}else{typeof a.end.left==="undefined"&&typeof a.end.right==="undefined"&&a.e(a.end);typeof a.end.top==="undefined"&& typeof a.end.bottom==="undefined"&&a.f(a.end)}if(a.animate){c.fadeIn();window.setTimeout(function(){c.animate(a.c(a.end,d),a.duration)},a.delay)}else{c.css(a.c(a.end,d));c.fadeIn(a.duration)}$("#"+a.a+" #"+a.b).css({position:"absolute",top:a.l,right:a.k,"z-index":1E3,width:a.m,height:a.g,"line-height":a.g+"px","text-align":"center"}).hide();$("#"+a.a+" #"+a.b).fadeIn(a.duration)}}(this))}};b.prototype.c=function(a,c){var d=new e;if(typeof a.left!=="undefined")d.left=a.left-c;else if(typeof a.right!== "undefined")d.right=a.right-c;if(typeof a.top!=="undefined")d.top=a.top-c;else d.bottom=a.bottom-c;if(typeof a.position!=="undefined")d.position=a.position;return d};window.Interstitial=b;b.prototype.setStart=b.prototype.setStart;b.prototype.setEnd=b.prototype.setEnd;b.prototype.setAfter=b.prototype.u;b.prototype.center=b.prototype.j;b.prototype.centerX=b.prototype.e;b.prototype.centerY=b.prototype.f;b.prototype.wasSeen=b.prototype.t;b.prototype.setSeen=b.prototype.r;b.prototype.close=b.prototype.close; b.prototype.show=b.prototype.show;b.prototype.set=b.prototype.q;b.prototype.setParent=b.prototype.v;b.prototype.keepCentered=b.prototype.i;b.prototype.start=b.prototype.start;b.prototype.end=b.prototype.end;b.prototype.after=b.prototype.after})();