if(typeof CE2=="undefined"){CE2={}}CE2.unescape=function(a){try{return decodeURIComponent(a)}catch(b){return unescape(a)}};CE2.qs2obj=function(a){if(a==null||/^\s*$/.test(a)){return null}var f={},d=null,e=a.replace(/\+/g," ").split("&");for(var c=0,b=e.length;c<b;c++){d=e[c].split("=");f[CE2.unescape(d[0])]=d[1]?CE2.unescape(d[1]):null}return f};CE2.browser=(function(){var b=navigator.userAgent;CE2.opera=CE2.ie=CE2.chrome=CE2.safari=CE2.firefox=false;var a="unknown";if(window.opera){a="opera";CE2.opera=true}else{if(/msie/i.test(b)){a="ie";CE2.ie=true}else{if(/\biphone|ipad\b/.test(b)){a="iphone";CE2.iphone=true;CE2.webkit=true}else{if(/\bChrome\b/.test(b)){a="chrome";CE2.chrome=true;CE2.webkit=true}else{if(/AppleWebKit/.test(navigator.appVersion)){a="safari";CE2.safari=true;CE2.webkit=true}else{if(/mozilla/i.test(b)&&!/compatible|webkit/i.test(b)){a="firefox";CE2.firefox=true}}}}}}return a})();CE2.each=function(g,e,b){var f;if(typeof g.length=="number"&&typeof g.concat=="function"){for(var d=0,a=g.length;d<a;d++){f=g[d];if(e.call(b,f,d)===false){break}}}else{var c;for(c in g){f=g[c];if(f!==Object.prototype[c]){if(e.call(b,f,c)===false){break}}}}};CE2.getDomain=function(a){var b;if(b=/[a-z0-9-]+\.[a-z]{2,3}\.[a-z]{2}$/i.exec(a)){return b[0]}else{if(b=/[a-z0-9-]+\.[a-z]{2,}$/i.exec(a)){return b[0]}else{return a}}};CE2.listen=function(c,a,b){if(c.attachEvent){c.attachEvent("on"+a,b)}else{c.addEventListener(a,b,true)}};if(typeof CE2=="undefined"){CE2={}}CE2.domReady=false;CE2.onDOMReady=function(a){if(CE2.domReady){return setTimeout(a,0)}if(CE2.ie){return CE2.onDOMReadyIE(a)}else{if(CE2.webkit&&(!document.querySelector)){return CE2.onDOMReadySaf(a)}else{return CE2.onDOMReadyMoz(a)}}};CE2.onDOMReadyMoz=function(a){window.addEventListener("DOMContentLoaded",a,false)};CE2.onDOMReadyIE=function(a){var b=document.createElement("div");(function(){try{if(document.readyState!="complete"){return setTimeout(arguments.callee,50)}b.doScroll("left");a();b=null}catch(c){setTimeout(arguments.callee,50)}})()};CE2.onDOMReadySaf=function(b){var a=document.readyState;if(a=="loaded"||a=="complete"){b()}else{setTimeout(function(){CE2.onDOMReadySafari(b)},50)}};CE2.onDOMReady(function(){CE2.domReady=true});if(typeof CE2=="undefined"){CE2={}}CE2.matchURL=function(p,b){if(!p){return false}p.o=p.o||"";if(/[re]/.test(p.o)){return new RegExp(p.u,"i").test(b.href)}if(/h/.test(p.o)&&((p.u.protocol+":")!=b.protocol)){return false}var q=function(i){return i&&i.toLowerCase()};var t=q(CE2.getDomain(b.hostname)),k=q(b.hostname),e=p.u.domain,a=p.u.host;if(/w/.test(p.o)&&k!=a){return false}if(t!=e||k.replace(/^www\./,"")!=a.replace(/^www\./,"")){return false}var d;if(!p.u.path){d="/"}else{d=p.u.path}var m=q(CE2.unescape(b.pathname));if(d!=m){if(/\//.test(p.o)){return false}var c=d.split("/");var r=m.split("/");var j=/(home|default|index)($|\..*)/i;for(var o=0,n=Math.max(c.length,r.length);o<n;o++){if(!c[o]){c[o]=""}if(!r[o]){r[o]=""}if(o==n-1){c[o]=c[o].replace(j,"");r[o]=r[o].replace(j,"")}if(c[o]!=r[o]){return false}}}var f=b.search?CE2.qs2obj(q(b.search.substr(1))):"";var s=/\?/.test(p.o);var g=p.u.qs||"";if((s&&f&&!g)||(!f&&g)){return false}var h=false;CE2.each(g,function(l,i){if(f[i]!==l){h=true;return false}});if(h){return false}if(s){CE2.each(f,function(l,i){if(l!=g[i]){return(h=true)}});if(h){return false}}return true};CE2.TRACKING_SCRIPT="http://trk.cetrk.com/t.js";CE2.TRACKING_SCRIPT_SECURE="https://s3.amazonaws.com/trk.cetrk.com/t.js";CE2.TRACKING_DEST="http://trk.cetrk.com/";CE2.TRACKING_DEST_SECURE="https://s3.amazonaws.com/trk.cetrk.com/";CE2.uid=90388;CE2.snapshots={"69809":{u:{path:"/activities.aspx",host:"www.eriska-hotel.co.uk",protocol:"http",domain:"eriska-hotel.co.uk"}},"69807":{u:{path:"/contactus.aspx",host:"www.eriska-hotel.co.uk",protocol:"http",domain:"eriska-hotel.co.uk"}},"75935":{u:{path:"/",host:"www.eriska-hotel.co.uk",protocol:"http",domain:"eriska-hotel.co.uk"}},"69808":{u:{path:"/hotel.aspx",host:"www.eriska-hotel.co.uk",protocol:"http",domain:"eriska-hotel.co.uk"}},"69810":{u:{path:"/spa.aspx",host:"www.eriska-hotel.co.uk",protocol:"http",domain:"eriska-hotel.co.uk"}},"67663":{u:{qs:{regionid:"11",townid:"108",hometypeid:"0",bedrooms:"0",pricerange:"0",developmentid:"126",did:"126"},path:"/leathan-grange.aspx",host:"www.stewartmilnehomes.com",protocol:"http",domain:"stewartmilnehomes.com"}},"67665":{u:{qs:{regionid:"11",townid:"108",hometypeid:"0",bedrooms:"0",pricerange:"0",developmentid:"161",did:"161"},path:"/leathan-meadows.aspx",host:"www.stewartmilnehomes.com",protocol:"http",domain:"stewartmilnehomes.com"}},"67666":{u:{qs:{regionid:"11",townid:"108",hometypeid:"0",bedrooms:"0",pricerange:"0",developmentid:"132",did:"132"},path:"/leathan-mews.aspx",host:"www.stewartmilnehomes.com",protocol:"http",domain:"stewartmilnehomes.com"}},"50009":{u:{path:"/contact-us.aspx",host:"www.stewartmilnehomes.com",protocol:"http",domain:"stewartmilnehomes.com"}},"75982":{u:{path:"/",host:"www.stewartmilnehomes.com",protocol:"http",domain:"stewartmilnehomes.com"}},"4153":{u:{path:"/family.aspx",host:"www.stewartmilnehomes.com",protocol:"http",domain:"stewartmilnehomes.com"}},"44983":{u:{qs:{regionid:"10",townid:"83",hometypeid:"0",bedrooms:"0",pricerange:"0",developmentid:"108",did:"108"},path:"/wallace-gardens.aspx",host:"www.stewartmilnehomes.com",protocol:"http",domain:"stewartmilnehomes.com"}}};CE2.userMain=function(){CE2.each(CE2.snapshots,function(f,h){if(CE2.matchURL(f,window.location)){CE2.testID=h;var e=document.createElement("script");var g=window.location.protocol=="https:"?CE2.TRACKING_SCRIPT_SECURE:CE2.TRACKING_SCRIPT;e.src=g+"?s="+h+"&t="+(new Date().getTime());document.body.appendChild(e);return false}});if(window.location&&window.location.hash){var c=window.location.hash.match(/ce_(\d+)/);if(c){var a=c[1];var b=CE2.uid==a?1:0;var d=CE2.testID?1:0;if(top!=self){top.location.href="http://www.crazyegg.com/check_script#"+[1,b,d,CE2.testID||0].join(",")}}}};CE2.onDOMReady(CE2.userMain);