if(typeof CE2=="undefined"){CE2={}}CE2.innerText=function(e){var f=CE2.ie?"innerText":"textContent";var b=e[f];var a=e.getElementsByTagName("SCRIPT");if(a.length>0){for(var d=0,c=a.length;d<c;d++){b=b.replace(a[d][f],"")}}return b};CE2.innerTextName=function(a,b){return CE2.strip(CE2.strip(CE2.innerText(a),true).substr(0,b||100))};CE2.formatClass=function(b){var a=b.className;if(a&&typeof(a)=="string"){a=CE2.strip(a.replace(/(\s|^)-ce-capture\b/g,"")).split(/\s+/);a.sort();return a.join(" ")}};CE2.href=function(b){if(CE2.ie){var a=b.outerHTML.match(/\bhref="(.*?)"/i);if(a){return CE2.strip(a[1])}}else{return b.getAttribute("href")}};CE2.strip=function(b,c){var a=b.replace(/^[\s\u00a0]+|[\s\u00a0]+$/gm,"");if(c){return a.replace(/\s+/gm," ")}else{return a}};CE2.map=function(f,e,c){var a=[];for(var d=0,b=f.length;d<b;d++){a.push(e.call(c,f[d]))}return a};CE2.spansLines=function(a){return a.getClientRects&&(a.getClientRects().length>1)};CE2.scroll=function(){if(CE2.ie){var a=document.compatMode=="BackCompat"?document.body:document.documentElement;return{left:a.scrollLeft,top:a.scrollTop}}else{return{left:window.pageXOffset,top:window.pageYOffset}}};CE2.eventCoords=function(b){if(b.pageX==null){var a=CE2.scroll();return[b.clientX+a.left,b.clientY+a.top]}else{return[b.pageX,b.pageY]}};CE2.contains=function(b,a){if(b==a){return true}if(typeof b.contains=="function"){return b.contains(a)}var c=a;do{c=c.parentNode}while(c&&c!=document.body&&c!=b);return(c==b)};if(typeof CE2=="undefined"){CE2={}}CE2.Package=function(){var k=[];var f={},c=0,e=arguments;var h,a,g,j;for(var d=0,b=e.length;d<b;d++){h=e[d];a=h[0];g=h[1];j=h[2];k.push(a);f[a]={t:g,s:j}}this.props=f;this.propList=k;this.overBudget=[];this.surplus=0};CE2.Package.prototype={set:function(b,c){var d=this.props[b],a=0;if(!d){return}if(d.t=="s"){d.ov=c;d.v=c?this.utf8Trim(c,255):"";a=d.s-d.v.length;this.surplus+=a;if(a<0){this.overBudget.push(d)}}else{d.ov=c;d.v=Math.floor(c)}},utf8Trim:function(c,d){var a=CE2.utf8(c);if(a==c){return c.substr(0,d)}for(var b=c.length-1;a.length>d;b--){a=CE2.utf8(c.substr(0,b))}return a},trimStrings:function(){var b=this.surplus,e=this.overBudget;if(b>=0){return}var f=Math.abs(b)/e.length;var d=Math.floor(f)==f?0:1;f=Math.floor(f);for(var c=0,a=e.length,g=null;c<a;c++){g=e[c];g.v=this.utf8Trim(g.v,g.v.length-f-d);if(d){d=0}}},toString:function(){this.trimStrings();var e=this.props,b=this.propList,a=[];var g,f;for(var d=0,c=b.length;d<c;d++){g=e[b[d]];f=g.v;if(g.t=="s"){if(f==null){a.push("\x00")}else{a.push(CE2.pack(1,f.length));a.push(f)}}else{if(f==null){a.push(CE2.pack(g.s,0))}else{a.push(CE2.pack(g.s,f))}}}return a.join("")}};CE2.pack=function(c,d){var a=[];for(var b=0;b<c;b++){a.push(String.fromCharCode((d>>(8*b))&255))}return a.join("")};CE2.utf8=function(d){d=d.replace(/\r\n/g,"\n");var a=[];var f;for(var e=0,b=d.length;e<b;e++){f=d.charCodeAt(e);if(f<128){a.push(String.fromCharCode(f))}else{if((f>127)&&(f<2048)){a.push(String.fromCharCode((f>>6)|192));a.push(String.fromCharCode((f&63)|128))}else{a.push(String.fromCharCode((f>>12)|224));a.push(String.fromCharCode(((f>>6)&63)|128));a.push(String.fromCharCode((f&63)|128))}}}return a.join("")};CE2.base64Alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=";CE2.base64=function(e){var b=CE2.base64Alphabet;var n,k,h,m,j,g,f;var a=[],d=0,c=e.length;while(d<c){n=e.charCodeAt(d++);k=e.charCodeAt(d++);h=e.charCodeAt(d++);m=n>>2;j=((n&3)<<4)|(k>>4);g=((k&15)<<2)|(h>>6);f=h&63;if(isNaN(k)){g=f=64}else{if(isNaN(h)){f=64}}a.push(b.charAt(m)+b.charAt(j));if(g!=64){a.push(b.charAt(g));if(f!=64){a.push(b.charAt(f))}}}return a.join("")};if(typeof CE2=="undefined"){CE2={}}CE2.getBox=function(a,b,j){b=b||{};if(a.nodeName=="AREA"){var g=CE2.boxForArea(a);if(g){b.left=g.left;b.top=g.top;b.width=g.width;b.height=g.height}}else{if(a.getBoundingClientRect){var g=a.getBoundingClientRect();var h=CE2.scroll();b.left=Math.floor(g.left+h.left);b.top=Math.floor(g.top+h.top);if(CE2.ie){b.left-=2;b.top-=2}else{if(CE2.safari&&/^4\./.test(navigator.appVersion)&&a.style.position=="relative"){b.left+=Math.floor(Number(a.style.left.replace(/[^\d\.]/g,"")));b.top+=Math.floor(Number(a.style.top.replace(/[^\d\.]/g,"")))}}b.width=Math.floor(g.width||(g.right-g.left));b.height=Math.floor(g.height||(g.bottom-g.top))}else{b.width=a.offsetWidth;b.height=a.offsetHeight;var d=a;var i=0,f=0;do{i+=d.offsetLeft||0;f+=d.offsetTop||0;d=d.offsetParent}while(d);b.left=Math.floor(i);b.top=Math.floor(f)}}b.pageX=b.left;b.pageY=b.top;if(j){var c=CE2.getBox(j);b.left-=c.pageX;b.top-=c.pageY}return b};CE2.boxForArea=function(c){var d=CE2.imageForArea(c);if(!d){return}var b=CE2.getBox(d);var a=CE2.areaBounds(c,b);if(a){return{left:b.left+a.left,top:b.top+a.top,width:a.width,height:a.height}}};CE2.imageForArea=function(d){var f=new RegExp("(^|#)"+d.parentNode.name);var a=d.ownerDocument.getElementsByTagName("IMG");for(var c=0,b=a.length,e=null;c<b;c++){e=a.item(c);if(f.test(e.useMap)){return e}}};CE2.areaBounds=function(c,f){var e=CE2.areaLength;var d=Math.min(f.width,f.height);var o=CE2.map(CE2.strip(c.coords,true).split(/[^\d\.%]+/),function(i){return e(i,d)});var p,n,m;if(/circle/i.test(c.shape)){if(o.length>=3){p=o[0];n=o[1];m=o[2];return{left:p-m,top:n-m,width:m*2,height:m*2}}}else{p=[];n=[];for(var k=0,j=o.length;k<j;k++){if(k%2){n.push(o[k])}else{p.push(o[k])}}var h=Math.min.apply(null,p);var b=Math.max.apply(null,p);var g=Math.min.apply(null,n);var a=Math.max.apply(null,n);return{left:h,top:g,width:b-h,height:a-g}}};CE2.areaLength=function(b,a){var c=Number(b.replace(/[^\d\.]/g,""));if(b.indexOf("%")!=-1){c*=0.01*a}if(isNaN(c)){return null}return c};CE2.getPageCoords=function(c){c.pageX=c.left;c.pageY=c.top;var a,b;if(c.parentID&&(a=document.getElementById(String(c.parentID)))){b=CE2.getBox(a);c.pageX+=b.pageX;c.pageY+=b.pageY}};if(typeof CE2=="undefined"){CE2={}}if(typeof(CE2.URI)=="undefined"){CE2.URI=function(b){this.src=b;this.protocol=this.host=this.port=this.path=this.qs=this.hash=null;if(b){var a=typeof(b);if(a=="string"){this.initWithString(b)}else{if(a=="object"){this.initWithURI(b)}}}};CE2.URI.pattern=/^\s*([\S]+?:\/\/)?(\S+?@)?([a-z0-9\.-]+)?(\:\d+)?(\/?[^#\?\s]*)?([\?][^#\s]*)?([#]\S+)?/i;CE2.URI.prototype={initWithString:function(h){var g,b,f,a,e,d;var c=CE2.URI.pattern.exec(h);if(!c[1]&&h.charAt(0)!="/"){this.path=CE2.unescape((c[3]||"")+(c[5]||""))}else{if(g=c[1]){this.protocol=g.substr(0,g.indexOf(":"))}if(this.host=c[3]||null){this.domain=CE2.getDomain(this.host)}if(b=c[4]){this.port=Number(b.substr(1))}if(f=c[5]){this.path=CE2.unescape(f)}else{if(this.host){this.path="/"}}}if(a=c[6]){this.qs=CE2.qs2obj(a.substr(1))}if(e=c[7]){this.hash=CE2.unescape(e.substr(1))}},initWithURI:function(a){CE2.each(a,function(c,b){this[b]=c},this)},isAbsolute:function(){return this.isURL()||(this.path&&this.path.charAt(0)=="/")},isURL:function(){return this.protocol&&this.host},join:function(a){var c=new CE2.URI(this);var b=this.path;if(typeof(a)=="string"){a=new CE2.URI(a)}if(a.isURL()){return new CE2.URI(a)}if(a.isAbsolute()){b=a.path}else{if(b){b=b.split("/");b.pop();b=a.path?b.concat(a.path.split("/")):b;b=b.join("/")}else{if(this.isURL()){b="/"+a.path}else{b=a.path}}}c.path=b;c.qs=a.qs;c.hash=a.hash;return c},normalize:function(){if(!this.path){return}var c;if(CE2.ie){c=[];if(this.path.charAt(0)=="/"){c.push("")}c=c.concat(this.path.split(/\/+/g));if(this.path.charAt(this.path.length-1)=="/"){c.push("")}}else{c=this.path.split(/\/+/g)}var b=0,a;do{a=c.length-1;if(c[b+1]==".."){if(c[b]==""&&b==0){c.splice(b+1,1)}else{c.splice(b,2);b-=1}}else{if(c[b]=="."){if(a==0){break}else{c.splice(b,1)}}else{b++}}}while(b<=a);this.path=c.join("/")},simplify:function(c){var b;var d=[];if(CE2.ie){b=c?c.join(this):this}else{c=c||new CE2.URI(document.baseURI);b=c.join(this)}b.normalize();if(b.host){d.push(b.host.replace(/^www\./i,""))}if(b.port!=null){d.push(":"+b.port)}if(/^\/(default|home|index|$)/i.test(b.path)){if(b.qs||b.hash){d.push("/")}}else{d.push(b.path)}if(b.qs){var a=[];CE2.each(b.qs,function(f,e){if(!/(^sess|^sid$|^phpsessid$|^jsessionid$|^__VIEWSTATE$)/i.test(e)){a.push(encodeURIComponent(e)+"="+encodeURIComponent(f))}});if(a.length){d.push("?"+a.join("&"))}}if(b.hash){d.push("#"+b.hash)}return d.join("")}}}if(typeof CE2=="undefined"){CE2={}}CE2.fingerprint=function(c){var g={type:CE2.tagTypes[c.nodeName.toLowerCase()]||0};var b,d,f,a,e;if(b=CE2.getName(c)){g.name=b}if(d=CE2.getData(c)){g.data=d}if(f=(typeof c.id=="string"?c.id:null)){g.id=f}if(a=c.getAttribute("ceid")){g.ceid=a}if(e=CE2.getParentID(c)){g.parentID=e}CE2.getBox(c,g,e?c.parentNode:null);return g};CE2.getParentID=function(b){var a=b.parentNode,c=null;if(a&&a.getAttribute&&(a!=b.ownerDocument.body)){if((c=a.id)&&(a.ownerDocument.getElementById(c)==a)){return c}return a.getAttribute("ceid")||null}};CE2.getName=function(a){var b;if(b=a.getAttribute("cename")){return b}if(b=a.getAttribute("ceid")){return b}if(b=(a.nodeName!="SELECT"&&a.getAttribute("value"))){return b}if(b=a.getAttribute("title")){return b}if(b=a.getAttribute("alt")){return b}if(b=a.getAttribute("name")){return b}if(a.nodeName=="A"){if(b=CE2.innerTextName(a)){return b}}if(b=CE2.href(a)){return new CE2.URI(b).simplify()}if(b=a.src){return new CE2.URI(b).simplify()}if(b=CE2.innerTextName(a)){return b}if(b=a.getAttribute("id")){return b}if(b=CE2.formatClass(a)){return b}return""};CE2.getData=function(b){switch(b.nodeName){case"A":var a=CE2.href(b);if(a&&(!/javascript:\s*void|^#$/.test(a))){return new CE2.URI(b.href).simplify()}else{if(b.className){return"@#"+CE2.formatClass(b)}else{break}}case"IMG":case"IFRAME":case"EMBED":return new CE2.URI(b.src).simplify();case"OBJECT":return new CE2.URI(b.data).simplify();case"INPUT":case"SELECT":case"TEXTAREA":return b.name;default:return CE2.formatClass(b)}};CE2.tagTypes={a:3,abbr:4,acronym:5,address:6,applet:7,area:8,b:9,base:10,basefont:11,bdo:12,big:13,blockquote:14,body:15,br:16,button:17,caption:18,center:19,cite:20,code:21,col:22,colgroup:23,dd:24,del:25,dfn:26,dir:27,div:28,dl:29,dt:30,em:31,fieldset:32,font:33,form:34,frame:35,frameset:36,head:37,h1:38,h2:38,h3:38,h4:38,h5:38,h6:38,hr:38,html:39,i:40,iframe:41,img:42,input:43,ins:44,kbd:45,label:46,legend:47,li:48,link:49,map:50,menu:51,meta:52,noframes:53,noscript:54,object:55,ol:56,optgroup:57,option:58,p:59,param:60,pre:61,q:62,s:63,samp:64,script:65,select:66,small:67,span:68,strike:69,strong:70,style:71,sub:72,sup:73,table:74,tbody:75,td:76,textarea:77,tfoot:78,th:79,thead:80,title:81,tr:82,tt:83,u:84,ul:85,"var":86,embed:87,"(custom)":255};CE2.IS_RETURNING_AGE=60*60*1000;CE2.TIME_RANGES=[500,1000,1500,2000,3000,4000,5000,6000,8000,10000,15000,20000,30000,35000,40000,60000,1.5*60*1000,2*60*1000,3*60*1000,4*60*1000,5*60*1000,7*60*1000,10*60*1000,15*60*1000,20*60*1000,25*60*1000,30*60*1000,40*60*1000,50*60*1000,60*60*1000,2*60*60*1000,3*60*60*1000,Number.MAX_VALUE];CE2.location=new CE2.URI(window.location.href);CE2.startTime=new Date().getTime();CE2.isReturning=(function(){var a=CE2.qs2obj(document.cookie.replace(/;\s*/g,"&"));if(a){return Number(a.is_returning)||0}return 0})();CE2.opaqueElement=null;CE2.click=function(f,p,n){var d=new Date().getTime();if(f==document||f==document.body||f==document.documentElement){return}var q;if(p&&(p.srcElement||p.target)){q=p}var k=new CE2.Package(["type","i",1],["left","i",2],["top","i",2],["width","i",2],["height","i",2],["id","s",40],["ceid","s",40],["name","s",100],["data","s",180],["parentID","s",40],["x","i",1],["y","i",1],["windowWidth","i",1],["timeToClick","i",1],["isReturning","i",1],["referrer","s",100],["googleCampaignSource","s",100],["googleCampaignMedium","s",100],["googleCampaignTerm","s",100],["googleCampaignContent","s",100],["googleCampaignName","s",100],["user1","s",100],["user2","s",100],["user3","s",100],["user4","s",100],["user5","s",100],["flags","i",1]);var h;if(f.nodeType===1){h=CE2.fingerprint(f)}else{k.set("type",CE2.tagTypes["(custom)"]);k.set("flags",1);CE2.getPageCoords(f);h=f}CE2.each(h,function(l,i){k.set(i,l)});if(q){var o=CE2.eventCoords(q,h);p=o[0]-h.pageX;n=o[1]-h.pageY}else{if(p==null){p=h.width/2;n=h.height/2}}k.set("x",Math.floor((255*p)/h.width));k.set("y",Math.floor((255*n)/h.height));var e;if(window.innerWidth){e=window.innerWidth}else{e=document.documentElement.clientWidth}if(e==0){k.set("windowWidth",0)}else{k.set("windowWidth",Math.floor(e/100)+1)}var b=d-CE2.startTime;var a=CE2.TIME_RANGES;for(var j=0,g=a.length;j<g;j++){if(b<a[j]&&b>a[j-1]){k.set("timeToClick",j+1);break}}k.set("isReturning",CE2.isReturning);k.set("referrer",new CE2.URI(document.referrer).simplify());var m;if(m=CE2.location.qs){k.set("googleCampaignSource",m.utm_source||"");k.set("googleCampaignMedium",m.utm_medium||"");k.set("googleCampaignTerm",m.utm_term||"");k.set("googleCampaignContent",m.utm_content||"");k.set("googleCampaignName",m.utm_campaign||"")}var c;for(j=1;j<=5;j++){c=CE2.userData[j];if(c){k.set("user"+j,c)}}CE2.send(k)};CE2.send=function(d){var a;var c=window.location.protocol=="https:"?CE2.TRACKING_DEST_SECURE:CE2.TRACKING_DEST;var b=c+"c?"+CE2.testID+"&"+CE2.base64(d.toString());a=document.createElement("img");a.style.display="none";a.src=b};CE2.onClick=function(c){if(arguments.callee&&arguments.callee.caller){return}if(CE2.ie){if(c.button!=1){return}}else{if(c.button!=0){return}}var h=c.srcElement||c.target;var g,b;if(CE2.ignoredElements.length){var d=CE2.ignoredElements;for(var g=0,b=d.length;g<b;g++){if(CE2.contains(d[g],h)){return}}}if(CE2.clickCaptors.length){var a=CE2.clickCaptors;for(var g=0,b=a.length;g<b;g++){if(CE2.contains(a[g],h)){h=a[g];break}}}if(h.nodeName=="OPTION"){h=h.parentNode}var f,e;if(f=h.getAttribute("cealias")){if(e=document.getElementById(f)){if(CE2.contains(e,h)){h=e}}}CE2.click(h,c)};CE2.onOver=function(a){var b=a.srcElement||a.target;if((b.nodeName=="IFRAME")||(CE2.ie&&b.nodeName=="OBJECT")){CE2.opaqueElement=b}};CE2.onOut=function(a){var b=CE2.opaqueElement;if(b){var c=a.toElement||a.relatedTarget;if(c==null){if(b.nodeName=="IFRAME"){CE2.click(b)}}CE2.opaqueElement=null}};CE2.onUnload=function(a){var b=CE2.opaqueElement;if(b){CE2.click(b)}};CE2.main=function(){CE2.ignoredElements=CE2.ignoredElements.concat(CE2.findByClass("-ce-ignore"));CE2.clickCaptors=CE2.clickCaptors.concat(CE2.findByClass("-ce-capture"));CE2.listen(document,"mousedown",CE2.onClick);var h=document.body.getElementsByTagName("IFRAME"),e=false,g=0,f=0;if(h.length){for(var d=0,b=h.length;d<b;d++){f=h[d];g=CE2.getBox(f);if(g.width>1&&g.height>1){CE2.listen(document.body,"mouseover",CE2.onOver);CE2.listen(document.body,"mouseout",CE2.onOut)}}CE2.listen(window,CE2.opera?"unload":"beforeunload",CE2.onUnload)}var c=new Date();var a=new Date(c.getTime()+CE2.IS_RETURNING_AGE).toUTCString();if((typeof CE_NO_COOKIES=="undefined")||!CE_NO_COOKIES){document.cookie="is_returning=1;domain=."+CE2.location.domain+";expires="+a}};CE2.onDOMReady(CE2.main);
