/*Y*/if(typeof window.console==="undefined"){window.console={wrapper:true,clear:function(){},log:function(){var a=ClashMedia&&ClashMedia.RevenuePath&&ClashMedia.RevenuePath.queryString&&ClashMedia.RevenuePath.queryString.debug&&(ClashMedia.RevenuePath.queryString.debug==true);if(a){return}var c="",b=" * ";if(arguments.length>0){for(var d=0;d<arguments.length;d++){c+=d==0?"":b;switch(typeof arguments[d]){case"object":c+="[object]";break;case"function":c+="[function]";break;case"boolean":c+=arguments[d].toString();break;default:c+=arguments[d];break}c+=(d==arguments.length-1)?"":b}}alert(c)},info:function(a){this.log(a)},warn:function(a){this.log(a)},error:function(a){this.log(a)}}}var ClashMedia={$:null,Loader:{timer:[],jQuerifying:false,loadingConsole:false,firebugLite:"http://static.clash-media.com/js/libs/firebug-lite/1.2/core.js",getScript:function(b,d){if(b!=this.firebugLite&&this.loadingConsole==true){var c=this;setTimeout(function(){c.getScript(b,d)},10);return}var a=document.createElement("script");a.type="text/javascript";a.setAttribute("src",b);if(a.addEventListener){a.addEventListener("load",d,false)}else{if("onreadystatechange" in a){a.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){d();a.onreadystatechange=null}}}else{window.setTimeout(d,2500)}}document.getElementsByTagName("head")[0].appendChild(a)},jQuerify:function(c){var a=this,b=function(){if(typeof c==="function"){c()}};if(this.jQuerifying==true){setTimeout(function(){a.jQuerify(c)},10)}else{if(ClashMedia.$==null){this.jQuerifying=true;this.getScript("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js",function(){if(typeof jQuery=="undefined"){}else{ClashMedia.$=jQuery.noConflict();a.jQuerify(c);a.jQuerifying=false}})}else{if(ClashMedia.$.browser.safari){b()}else{ClashMedia.$(b)}}}},test:function(){window.testCalls=["a","b","c","d","e"];for(var a=0;a<5;a++){ClashMedia.onLoad(function(){console.info("call: "+window.testCalls.shift()+" - "+(typeof ClashMedia.$))})}},loadConsole:function(a){if(typeof console==="undefined"||console.wrapper==true){var b=this;if(b.loadingConsole==false){b.loadingConsole=true;b.getScript(b.firebugLite,function(){firebug.init();b.loadingConsole=false})}}}},onLoad:function(g,d){var e=this;if(this.Loader.loadingConsole==true){setTimeout(function(){e.onLoad(g,d)},10);return}var b=function(){if(typeof g==="function"){g()}};if(typeof jQuery!="undefined"){this.$==jQuery.noConflict();this.$(b)}else{if(d==false){var c=window.onload;window.onload=function(){if(typeof c==="function"){c()}b()}}else{var a=this;this.Loader.jQuerify(b)}}}};(function(j){var h=function(E){function O(x,F){return(x<<F)|(x>>>(32-F))}function s(al,I){var H,F,x,G,ak;x=(al&2147483648);G=(I&2147483648);H=(al&1073741824);F=(I&1073741824);ak=(al&1073741823)+(I&1073741823);if(H&F){return(ak^2147483648^x^G)}if(H|F){if(ak&1073741824){return(ak^3221225472^x^G)}else{return(ak^1073741824^x^G)}}else{return(ak^x^G)}}function J(F,G,H){return(F&G)|((~F)&H)}function K(F,G,H){return(F&H)|(G&(~H))}function af(F,G,H){return(F^G^H)}function A(F,G,H){return(G^(F|(~H)))}function t(H,I,ak,al,F,am,G){H=s(H,s(s(J(I,ak,al),F),G));return s(O(H,am),I)}function X(H,I,ak,al,F,am,G){H=s(H,s(s(K(I,ak,al),F),G));return s(O(H,am),I)}function ad(H,I,ak,al,F,am,G){H=s(H,s(s(af(I,ak,al),F),G));return s(O(H,am),I)}function ac(H,I,ak,al,F,am,G){H=s(H,s(s(A(I,ak,al),F),G));return s(O(H,am),I)}function M(an){var I;var al=an.length;var G=al+8;var x=(G-(G%64))/64;var F=(x+1)*16;var ak=Array(F-1);var am=0;var H=0;while(H<al){I=(H-(H%4))/4;am=(H%4)*8;ak[I]=(ak[I]|(an.charCodeAt(H)<<am));H++}I=(H-(H%4))/4;am=(H%4)*8;ak[I]=ak[I]|(128<<am);ak[F-2]=al<<3;ak[F-1]=al>>>29;return ak}function W(G){var F="",x="",H,I;for(I=0;I<=3;I++){H=(G>>>(I*8))&255;x="0"+H.toString(16);F=F+x.substr(x.length-2,2)}return F}function aj(F){F=F.replace(/\r\n/g,"\n");var G="";for(var x=0;x<F.length;x++){var H=F.charCodeAt(x);if(H<128){G+=String.fromCharCode(H)}else{if((H>127)&&(H<2048)){G+=String.fromCharCode((H>>6)|192);G+=String.fromCharCode((H&63)|128)}else{G+=String.fromCharCode((H>>12)|224);G+=String.fromCharCode(((H>>6)&63)|128);G+=String.fromCharCode((H&63)|128)}}}return G}var L=Array();var P,aa,v,Z,u,S,T,U,V;var ag=7,B=12,z=17,r=22;var D=5,w=9,ab=14,R=20;var ae=4,ah=11,Y=16,i=23;var C=6,y=10,N=15,Q=21;E=aj(E);L=M(E);S=1732584193;T=4023233417;U=2562383102;V=271733878;for(P=0;P<L.length;P+=16){aa=S;v=T;Z=U;u=V;S=t(S,T,U,V,L[P+0],ag,3614090360);V=t(V,S,T,U,L[P+1],B,3905402710);U=t(U,V,S,T,L[P+2],z,606105819);T=t(T,U,V,S,L[P+3],r,3250441966);S=t(S,T,U,V,L[P+4],ag,4118548399);V=t(V,S,T,U,L[P+5],B,1200080426);U=t(U,V,S,T,L[P+6],z,2821735955);T=t(T,U,V,S,L[P+7],r,4249261313);S=t(S,T,U,V,L[P+8],ag,1770035416);V=t(V,S,T,U,L[P+9],B,2336552879);U=t(U,V,S,T,L[P+10],z,4294925233);T=t(T,U,V,S,L[P+11],r,2304563134);S=t(S,T,U,V,L[P+12],ag,1804603682);V=t(V,S,T,U,L[P+13],B,4254626195);U=t(U,V,S,T,L[P+14],z,2792965006);T=t(T,U,V,S,L[P+15],r,1236535329);S=X(S,T,U,V,L[P+1],D,4129170786);V=X(V,S,T,U,L[P+6],w,3225465664);U=X(U,V,S,T,L[P+11],ab,643717713);T=X(T,U,V,S,L[P+0],R,3921069994);S=X(S,T,U,V,L[P+5],D,3593408605);V=X(V,S,T,U,L[P+10],w,38016083);U=X(U,V,S,T,L[P+15],ab,3634488961);T=X(T,U,V,S,L[P+4],R,3889429448);S=X(S,T,U,V,L[P+9],D,568446438);V=X(V,S,T,U,L[P+14],w,3275163606);U=X(U,V,S,T,L[P+3],ab,4107603335);T=X(T,U,V,S,L[P+8],R,1163531501);S=X(S,T,U,V,L[P+13],D,2850285829);V=X(V,S,T,U,L[P+2],w,4243563512);U=X(U,V,S,T,L[P+7],ab,1735328473);T=X(T,U,V,S,L[P+12],R,2368359562);S=ad(S,T,U,V,L[P+5],ae,4294588738);V=ad(V,S,T,U,L[P+8],ah,2272392833);U=ad(U,V,S,T,L[P+11],Y,1839030562);T=ad(T,U,V,S,L[P+14],i,4259657740);S=ad(S,T,U,V,L[P+1],ae,2763975236);V=ad(V,S,T,U,L[P+4],ah,1272893353);U=ad(U,V,S,T,L[P+7],Y,4139469664);T=ad(T,U,V,S,L[P+10],i,3200236656);S=ad(S,T,U,V,L[P+13],ae,681279174);V=ad(V,S,T,U,L[P+0],ah,3936430074);U=ad(U,V,S,T,L[P+3],Y,3572445317);T=ad(T,U,V,S,L[P+6],i,76029189);S=ad(S,T,U,V,L[P+9],ae,3654602809);V=ad(V,S,T,U,L[P+12],ah,3873151461);U=ad(U,V,S,T,L[P+15],Y,530742520);T=ad(T,U,V,S,L[P+2],i,3299628645);S=ac(S,T,U,V,L[P+0],C,4096336452);V=ac(V,S,T,U,L[P+7],y,1126891415);U=ac(U,V,S,T,L[P+14],N,2878612391);T=ac(T,U,V,S,L[P+5],Q,4237533241);S=ac(S,T,U,V,L[P+12],C,1700485571);V=ac(V,S,T,U,L[P+3],y,2399980690);U=ac(U,V,S,T,L[P+10],N,4293915773);T=ac(T,U,V,S,L[P+1],Q,2240044497);S=ac(S,T,U,V,L[P+8],C,1873313359);V=ac(V,S,T,U,L[P+15],y,4264355552);U=ac(U,V,S,T,L[P+6],N,2734768916);T=ac(T,U,V,S,L[P+13],Q,1309151649);S=ac(S,T,U,V,L[P+4],C,4149444226);V=ac(V,S,T,U,L[P+11],y,3174756917);U=ac(U,V,S,T,L[P+2],N,718787259);T=ac(T,U,V,S,L[P+9],Q,3951481745);S=s(S,aa);T=s(T,v);U=s(U,Z);V=s(V,u)}var ai=W(S)+W(T)+W(U)+W(V);return ai.toLowerCase()};var q=["5ff5dfa7e9cbff06df6cb50babce2f6d","34b57015a6bd7751bf6655b6212ab41b"],a=["27d31806006058c72432a54c2cc9144e","0dc689692f90cbe1e5507a8a961c51d3"],d=document.domain.toLowerCase(),c=false,b=false;for(var n=0;n<q.length;n++){if(h(d)==q[n]){c=true;break}}for(var n=0;n<a.length;n++){if(h(d)==a[n]){b=true;break}}var o=(location.href.split("//")[1].split(".")[0]).toLowerCase(),k=(o.length>=3)&&o.substring(0,3)=="dev"&&(d.indexOf(".clash-media.com")!=-1||c),e=(o=="labs"&&(d.indexOf(".clash-media.com")!=-1||b))||d.indexOf("vito.botta.name")!=-1,l=!(k||e);var g=(l?"":((k?"dev":o)+".")),p={shared:g+"shared.clash-media.com",staticFiles:(e?"labs.clash-media.com/static":(g+"static.clash-media.com")),apps:(document.domain=="revenuepath.local"||document.domain=="revenuepath.xss")?document.domain:(e?"labs.clash-media.com/revenuepath":(g+"revenuepath.clash-media.com"))},m={javascript:"//"+p.staticFiles+"/js/",jqueryPlugins:"//"+p.staticFiles+"/js/jquery/"};j.debug=false;j.hosts=p;j.locations=m;j.isLiveServer=l;j.isDevelopmentServer=k;j.isStagingServer=e;j.log=function(i){if(!j.debug){return}console.info(i)};j.logError=function(i){if(!j.debug){return}console.error(i)};j.logWarning=function(i){if(!j.debug){return}console.logWarning(i)};j.doNothing=function(){};j.setNamespace=function(r){var s=r.split(".");var t=window;for(var u=0;u<s.length;u++){if(typeof t[s[u]]=="undefined"){t[s[u]]=new Object()}t=t[s[u]]}};j.inherit=function(s,r){var t={},u=(s.prototype=new r());s.uber=function i(x){if(!(x in t)){t[x]=0}var A,w,y=t[x],z=r.prototype;if(y){while(y){z=z.constructor.prototype;y-=1}A=z[x]}else{A=u[x];if(A==s[x]){A=z[x]}}t[x]+=1;w=A.apply(s,Array.prototype.slice.apply(arguments,[1]));t[x]-=1;return w};return s}})(ClashMedia);ClashMedia.collection=function(){this.lsize=0;this.contains=function(b){if(this.lsize==0){return false}for(var a=0;a<this.lsize;a++){if(this[a]==b){return true}}};this.count=function(){return this.lsize};this.isEmpty=function(){return this.lsize==0};this.add=function(a){if(a==null){return}this.lsize++;this[(this.lsize-1)]=a;return this};this.remove=function(b){if(b<0||b>this.length-1){return}this[b]=null;for(var a=b;a<=this.lsize;a++){this[a]=this[a+1]}this.lsize--};this.clear=function(){for(var a=0;a<this.lsize;a++){this[a]=null}this.lsize=0};this.clone=function(){var a=new ClashMedia.collection();for(var b=0;b<this.lsize;b++){a.add(this[b])}return a};this.join=function(d,a){var b="";for(var c=0;c<this.lsize;c++){b+=d+((a)?encodeURIComponent(this[c]):this[c])}return(b.length==0)?"":b.substring(1)};this.toArray=function(){var b=new Array();for(var a=0;a<this.lsize;a++){b.push(this[a])}return b}};ClashMedia.nameValueCollection=function(){};ClashMedia.inherit(ClashMedia.nameValueCollection,ClashMedia.collection);ClashMedia.nameValueCollection.prototype.get=function(a){if(this.lsize==0){return null}for(var b=0;b<this.lsize;b++){if(this[b].key.toLowerCase()==a.toLowerCase()){return this[b]}}return null};ClashMedia.nameValueCollection.prototype.contains=function(a){if(this.lsize==0){return false}for(var b=0;b<this.lsize;b++){if(this[b].key.toLowerCase()==a.toLowerCase()){return true}}return false};ClashMedia.nameValueCollection.prototype.add=function(a,b){var c={key:a,value:b};this.lsize++;this[(this.lsize-1)]=c;return this};ClashMedia.nameValueCollection.prototype.serialize=function(a){if(this.count()==0){return""}var c="";for(var b=0;b<this.count();b++){if(typeof(a)=="undefined"||a==true){c+="&"+encodeURIComponent(this[b].key)+"="+encodeURIComponent(this[b].value)}else{c+="&"+this[b].key+"="+this[b].value}}return(c.length==0)?"":c.substring(1)};ClashMedia.nameValueCollection.prototype.join=function(){if(this.count()==0){return""}var a="";for(var b=0;b<this.count();b++){a+=","+encodeURIComponent(this[b].key)+"="+encodeURIComponent(this[b].value)}return(a.length==0)?"":a.substring(1)};ClashMedia.nameValueCollection.prototype.clone=function(){var a=new ClashMedia.nameValueCollection();for(var b=0;b<this.lsize;b++){a.add(this[b].key,this[b].value)}return a};ClashMedia.Encoding={Base64:{_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(h){var d="";var l,e,k,c,j,b,g;var a=0;h=this._utf8_encode(h);while(a<h.length){l=h.charCodeAt(a++);e=h.charCodeAt(a++);k=h.charCodeAt(a++);c=l>>2;j=((l&3)<<4)|(e>>4);b=((e&15)<<2)|(k>>6);g=k&63;if(isNaN(e)){b=g=64}else{if(isNaN(k)){g=64}}d=d+this._keyStr.charAt(c)+this._keyStr.charAt(j)+this._keyStr.charAt(b)+this._keyStr.charAt(g)}return d},decode:function(h){var d="";var l,e,k;var c,j,b,g;var a=0;h=h.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(a<h.length){c=this._keyStr.indexOf(h.charAt(a++));j=this._keyStr.indexOf(h.charAt(a++));b=this._keyStr.indexOf(h.charAt(a++));g=this._keyStr.indexOf(h.charAt(a++));l=(c<<2)|(j>>4);e=((j&15)<<4)|(b>>2);k=((b&3)<<6)|g;d=d+String.fromCharCode(l);if(b!=64){d=d+String.fromCharCode(e)}if(g!=64){d=d+String.fromCharCode(k)}}d=this._utf8_decode(d);return d},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var d="";for(var a=0;a<b.length;a++){var e=b.charCodeAt(a);if(e<128){d+=String.fromCharCode(e)}else{if((e>127)&&(e<2048)){d+=String.fromCharCode((e>>6)|192);d+=String.fromCharCode((e&63)|128)}else{d+=String.fromCharCode((e>>12)|224);d+=String.fromCharCode(((e>>6)&63)|128);d+=String.fromCharCode((e&63)|128)}}}return d},_utf8_decode:function(b){var a="";var e=0;var d=c1=c2=0;while(e<b.length){d=b.charCodeAt(e);if(d<128){a+=String.fromCharCode(d);e++}else{if((d>191)&&(d<224)){c2=b.charCodeAt(e+1);a+=String.fromCharCode(((d&31)<<6)|(c2&63));e+=2}else{c2=b.charCodeAt(e+1);c3=b.charCodeAt(e+2);a+=String.fromCharCode(((d&15)<<12)|((c2&63)<<6)|(c3&63));e+=3}}}return a}}};ClashMedia.messaging={domains:null,operations:new Array(),deserializeMessage:function(c){var b=new ClashMedia.messaging.message();var a=ClashMedia.queryString(c);ClashMedia.utils.copyObjectProperties(a,b);return b},send:function(message){if(!message.isValid()){return}else{if(!message.canSend()){return}}var targetDomain=ClashMedia.messaging.domains.get(message.targetDomain);var serialized_message=message.serialize();var deserialized=ClashMedia.queryString(serialized_message);serialized_message=ClashMedia.utils.serialize(deserialized,["senderDomain","targetDomain","targetWindow"],false);var renamed=new ClashMedia.nameValueCollection();with(renamed){add("c",message.callback);add("d",ClashMedia.utils.serialize(message.callbackData));if(message.targetWindow!="self"){add("w",message.targetWindow)}serialized_message=ClashMedia.Encoding.Base64.encode(serialize())}var messageUrl=targetDomain.exchangeChannel.url.split("#")[0];if(targetDomain.exchangeChannel.window==top||targetDomain.exchangeChannel.window=="top"){messageUrl+="#"+encodeURIComponent(serialized_message)}else{messageUrl+=(messageUrl.indexOf("?")==-1?"?":"&")+"isXssPage=true#"+encodeURIComponent(serialized_message)}switch(targetDomain.exchangeChannel.window){case"parent":targetDomain.exchangeChannel.window=parent;break;case"top":targetDomain.exchangeChannel.window=top;break;default:break}if(typeof(targetDomain.exchangeChannel.window)=="undefined"||targetDomain.exchangeChannel.window==null||targetDomain.exchangeChannel.window==""){var exchange_iframeName=document.domain+"__"+message.targetDomain+"___"+message.callback;var exchange_iframe=document.getElementById(exchange_iframeName);if(exchange_iframe==null){ClashMedia.$("body").append(ClashMedia.$("<iframe src='"+messageUrl+"' name='"+exchange_iframeName+"' id='"+exchange_iframeName+"' width='100%' height='00px' frameborder='0'></iframe>"))}else{exchange_iframe.contentWindow.location.replace(messageUrl)}targetDomain.exchangeChannel.window=exchange_iframe}else{if(targetDomain.exchangeChannel.window==top||targetDomain.exchangeChannel.window==parent){targetDomain.exchangeChannel.window.location.replace(messageUrl)}else{var w=targetDomain.exchangeChannel.window;if(w.contentWindow){w.contentWindow.location.replace(messageUrl)}else{if(w[0].contentWindow){w[0].contentWindow.location.replace(messageUrl)}else{if(w.location){w.location.replace(messageUrl)}}}}}},listenFunction:function(hideMessagesOnExecute){var m=ClashMedia.messaging;if(m.WAIT==true||location.href==m.locationHref){return}m.WAIT=true;m.locationHref=location.href;var m=ClashMedia.messaging;var messageString=ClashMedia.Encoding.Base64.decode(decodeURIComponent(location.href.split("#")[1]));var message=m.deserializeMessage(messageString);var _targetWindow=null;if(typeof message.w=="undefined"){message.w=self}else{switch(message.w){case"parent":_targetWindow=parent.parent;break;case"top":_targetWindow=top;break;case"":_targetWindow=self;break;default:_targetWindow=ClashMedia.utils.findWindow(message.w);break}if(_targetWindow!=null){try{var _parentDomain=_targetWindow.document.domain}catch(e){document.domain=document.domain.split(".").slice(1).join(".");switch(message.w){case"parent":_targetWindow=parent.parent;break;case"top":_targetWindow=top;break;case"":_targetWindow=self;break;default:_targetWindow=ClashMedia.utils.findWindow(message.w);break}}}message.w=_targetWindow}if(typeof(message.w)=="object"&&typeof(message.c)=="string"&&message.c.length!=0){var callbackData=ClashMedia.utils.deserialize(message.d);setTimeout(function(){try{eval("message.w."+message.c+"(callbackData);")}catch(e){}},0)}m.WAIT=false},listen:function(a,b){b=b?b:50;return setInterval(function(){ClashMedia.messaging.listenFunction(a)},b)}};ClashMedia.messaging.exchangeChannel=function(){this.url="",this.window=null};ClashMedia.messaging.domain=function(b,d,c,a){return{name:b?b:"",allowInbound:d?d:false,allowOutbound:c?c:false,exchangeChannel:a?a:new ClashMedia.messaging.exchangeChannel(),found:true}};ClashMedia.messaging.Domains=function(){};ClashMedia.inherit(ClashMedia.messaging.Domains,ClashMedia.collection);ClashMedia.messaging.Domains.prototype.add=function(){var domain=null;switch(arguments.length){case 0:return;break;case 1:if(typeof arguments[0]!="object"){return}domain=arguments[0];break;default:domain=new ClashMedia.messaging.domain();with(domain){name=arguments[0];allowInbound=arguments[1];allowOutbound=arguments[2];with(exchangeChannel){url=arguments[3];window=arguments[4]}}break}this.lsize++;this[(this.lsize-1)]=domain};ClashMedia.messaging.Domains.prototype.contains=function(a){if(this.lsize==0){return false}for(var b=0;b<this.lsize;b++){if(this[b].name.toLowerCase()==a.toLowerCase()){return true}}};ClashMedia.messaging.Domains.prototype.get=function(a){var c=new ClashMedia.messaging.domain();c.found=false;if(this.lsize>0){for(var b=0;b<this.lsize;b++){if(this[b].name.toLowerCase()==a.toLowerCase()){c=this[b]}}}return c};ClashMedia.setNamespace("ClashMedia.utils");ClashMedia.utils={contains:function(g,h,a){try{var c=g.length;for(var b=0;b<c;b++){if((typeof h=="string"&&(typeof a=="undefined"||a==false)&&typeof g[b]=="string"&&g[b].toLowerCase()==h.toLowerCase())||(g[b]===h)){return true}}}catch(d){}return false},stopLoading:function(){if(ClashMedia.$.browser.msie){document.execCommand("Stop")}else{window.stop()}},isArray:function(a){return(a.constructor.toString().split("{")[0].indexOf("Array")!=-1)},copyObjectProperties:function(a,c){for(var b in a){c[b]=a[b]}},serialize:function(e,c,g){var b="";var i=true;if(typeof(c)!="undefined"&&c!=null){if(!this.isArray(c)){c=c.split(",")}i=c.length==0}for(var a in e){if(i==true||!ClashMedia.utils.contains(c,a)){var d=typeof(e[a]),h=null;switch(d){case"boolean":h=(e[a]==true)?"true":null;break;case"string":case"number":h=e[a];break;case"function":case"undefined":h=null;break;default:break}if(a.length!=0&&h!=null&&((g&&h.length!=0)||!g)){b+="&"+encodeURIComponent(a)+"="+encodeURIComponent(h)}}}return(b.length==0)?"":b.substring(1)},deserialize:function(String){var obj={};var properties=String.split("&");for(var i=0;i<properties.length;i++){var property=properties[i].split("="),name=decodeURIComponent(property[0]),value=decodeURIComponent(property[1]);with(lc=value.toLowerCase()){if(lc=="true"||lc=="false"){value=(lc=="true")}}obj[name]=value}return obj},NoCache:function(){return String(Math.random()).substring(1,6)},randomString:function(e,h){var c=(e)?e:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var g=(h)?h:10;var d="";for(var b=0;b<g;b++){var a=Math.floor(Math.random()*c.length);d+=c.substring(a,a+1)}return d},findWindow:function(g,a){if(g=="parent"||g==parent){return parent}else{if(g=="top"||g==top){return top}}var c=null;a=a?a:top;if(a&&a.frames&&a.frames.length>0){try{c=a.frames[g];if(c){return c}}catch(b){}for(var d=0;d<a.frames.length;d++){c=ClashMedia.utils.findWindow(g,a.frames[d]);if(c){return c}}}return c},GetRootDomain:function(a){var b=a.split(".");while(b.length>2){b.splice(0,1)}return b.join(".")},isValidByType:function(c,b,a){var e=typeof(c)==(b=="array"?"object":b);if(e){switch(b){case"array":e=c.constructor.toString().split("{")[0].indexOf("Array")!=-1;if(e&&a==true){e=c.length>0}break;case"string":if(a==true){e=c.length>0}break;case"number":if(a==true){e=c!=0}break;default:if(a==true){e=false;for(var d in c){e=true;break}}break}}return e}};ClashMedia.messaging.message=function(targetDomain,targetWindow,callback,callbackData){return{senderDomain:document.domain,targetDomain:targetDomain?targetDomain:"",targetWindow:targetWindow?targetWindow:"",callback:callback?callback:"",callbackData:callbackData?callbackData:{},errors:"",isValid:function(){this.errors="";var stringProperties=[this.senderDomain,this.targetDomain,this.targetWindow,this.callback];for(var i=0;i<stringProperties.length;i++){var property=stringProperties[i];if(typeof(property)!="string"){this.errors+="\n '"+stringProperties[i]+"' must be of type STRING."}else{if(property.length==0){this.errors+="\n '"+stringProperties[i]+"' cannot be an empty string"}}}var ret=(this.errors.length==0);return ret},serialize:function(){var c=new ClashMedia.nameValueCollection();with(c){clear();add("senderDomain",this.senderDomain);add("targetDomain",this.targetDomain);add("targetWindow",this.targetWindow);add("callback",this.callback);add("callbackData",ClashMedia.utils.serialize(this.callbackData));return serialize()}},canSend:function(){var m=ClashMedia.messaging;return(m.domains.get(this.targetDomain).allowOutbound)},canReceive:function(){var m=ClashMedia.messaging;return(m.domains.get(this.senderDomain).allowInbound)}}};ClashMedia.messaging.domains=new ClashMedia.messaging.Domains();ClashMedia.setNamespace("ClashMedia.queryString");ClashMedia.queryString=function(a){var b=(a)?a:location.search.substring(1,location.search.length);return ClashMedia.utils.deserialize(b)};ClashMedia.BrowserSelector=function(){var j=navigator.userAgent.toLowerCase(),i=function(b){return j.indexOf(b)!=-1},g=document.getElementsByTagName("html")[0],e=(!(/opera|webtv/i.test(j))&&/msie (\d)/.test(j))?((i("mac")?"ieMac ":"")+"ie ie"+RegExp.$1):i("gecko/")?"gecko":i("opera")?"opera":i("konqueror")?"konqueror":i("applewebkit/")?"webkit safari":i("mozilla/")?"gecko":"",d=(i("x11")||i("linux"))?" linux":i("mac")?" mac":i("win")?" win":"";var a=e+d+" js";g.className+=g.className?" "+a:a}();ClashMedia.thisWebsite=function(){var a=document.domain.toLowerCase();return{hostName:function(){return a}(),domainName:function(){var b=a;var d=b.split(".");if(d.length>2){b="";for(var c=1;c<d.length;c++){b+=((c>1)?".":"")+d[c]}}return b}(),pageName:function(c){var b="";if(c!=null){b=c.split("?")[0].toLowerCase()}else{b=location.pathname.toLowerCase()}return b.substring(b.lastIndexOf("/")+1)}}}();if(typeof ClashMedia=="undefined"){var ClashMedia=function(){var o=["5ff5dfa7e9cbff06df6cb50babce2f6d","34b57015a6bd7751bf6655b6212ab41b"],b=["27d31806006058c72432a54c2cc9144e"],d=document.domain.toLowerCase(),c=false,l=false;for(var a=0;a<o.length;a++){if(MD5(d)==o[a]){c=true;break}}for(var a=0;a<b.length;a++){if(MD5(d)==b[a]){l=true;break}}var j=(location.href.split("//")[1].split(".")[0]).toLowerCase(),k=((j.length>=3)&&j.substring(0,3)=="dev"&&(d.indexOf(".clash-media.com")!=-1||c))||document.domain=="revenuepath.local"||document.domain=="txt-connect.local",e=j=="labs"&&(d.indexOf(".clash-media.com")!=-1||l),h=!(k||e);var g=(h?"":((k?"dev":j)+".")),n={shared:g+"shared.clash-media.com",staticFiles:(e?"labs.clash-media.com/static":(g+"static.clash-media.com")),apps:(document.domain=="revenuepath.local")?document.domain:g+"revenuepath.clash-media.com"},m={javascript:"//"+n.staticFiles+"/js/",jqueryPlugins:"//"+n.staticFiles+"/js/jquery/"};return{hosts:n,locations:m,isLiveServer:h,isDevelopmentServer:k,isStagingServer:e,doNothing:function(){},setNamespace:function(p){var q=p.split(".");var r=window;for(var s=0;s<q.length;s++){if(typeof r[q[s]]=="undefined"){r[q[s]]=new Object()}r=r[q[s]]}},inherit:function(r,q){var s={},t=(r.prototype=new q());r.uber=function i(u){if(!(u in s)){s[u]=0}var y,p,w=s[u],x=q.prototype;if(w){while(w){x=x.constructor.prototype;w-=1}y=x[u]}else{y=t[u];if(y==r[u]){y=x[u]}}s[u]+=1;p=y.apply(r,Array.prototype.slice.apply(arguments,[1]));s[u]-=1;return p};return r}}}();ClashMedia.$=null;if(typeof $!="undefined"&&$!=null){ClashMedia.$=$}ClashMedia.Loader={_fullLoaded:false,Queue:[],LoadNext:function(){if(ClashMedia.Loader.Queue.length==0){if(ClashMedia.Loader._fullLoaded){return false}}else{if(ClashMedia.$!=null){var a=ClashMedia.Loader.Queue[0];ClashMedia.Loader.Queue.splice(0,1);if(typeof a==="function"){a()}}}setTimeout(ClashMedia.Loader.LoadNext,1)},LoadScript:function(b,c){var a=document.createElement("script");a.type="text/javascript";a.setAttribute("src",b);if(a.addEventListener){a.addEventListener("load",c,false)}else{if("onreadystatechange" in a){a.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){c();a.onreadystatechange=null}}}else{window.setTimeout(c,2500)}}document.getElementsByTagName("head")[0].appendChild(a)}};ClashMedia.fireOnWindowLoad=function(b){var a=window.onload;if(typeof window.onload!="function"){window.onload=b}else{window.onload=function(){a();b()}}};ClashMedia.fireOnLoad=function(a){ClashMedia.Loader.Queue.push(a);if(arguments.callee._executed){return}arguments.callee._executed=true;var b=function(){if(typeof $=="undefined"){ClashMedia.$=jQuery.noConflict()}else{var c=$;ClashMedia.$=jQuery.noConflict();$=c}ClashMedia.$.getScript=function(e,g,d){ClashMedia.$.ajax({type:"GET",url:e,success:g,dataType:"script",cache:d?d:true})};if(ClashMedia.$.browser.msie){(function(){if(!document.uniqueID&&document.expando){return}var d=document.createElement("document:ready");(function(){try{if(document.readyState!="complete"){return setTimeout(arguments.callee,0)}d.doScroll("left");d=null;ClashMedia.Loader.LoadNext()}catch(e){setTimeout(arguments.callee,100)}})()})()}else{ClashMedia.$(document).ready(function(){ClashMedia.Loader.LoadNext()})}};if(typeof jQuery!="undefined"){b()}else{ClashMedia.Loader.LoadScript("//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js",b)}};ClashMedia.fireOnWindowLoad(function(){ClashMedia.Loader._fullLoaded=true});function sleep(b){var a=new Date().getTime();while(new Date().getTime()<a+b){}}ClashMedia.debugging={queue:[],showNext:function(){if(ClashMedia.debugging.queue.length!=0){if(ClashMedia.$!=null){var a=ClashMedia.debugging.queue[0];ClashMedia.debugging.queue.splice(0,1);if(navigator.userAgent.toLowerCase().indexOf("gecko/")!=-1){if(window.console){switch(a.type){case"WARN":console.warn(a.item);break;case"ERROR":console.error(a.item);break;default:console.info(a.item);break}}}else{alert("RevenuePath "+a.type+" \n\n"+a.item)}}}setTimeout(ClashMedia.debugging.showNext,100)},isEnabled:false,enable:function(){this.isEnabled=true},disable:function(){this.isEnabled=false}};ClashMedia.log=function(c,b){if(!ClashMedia.debugging.isEnabled){return}var a=(b?b:"INFO").toUpperCase();ClashMedia.debugging.queue.push({item:c,type:a});if(arguments.callee._executed){return}arguments.callee._executed=true;ClashMedia.$(document).ready(function(){ClashMedia.debugging.showNext()});ClashMedia.fireOnWindowLoad(function(){ClashMedia.debugging.showNext()})};ClashMedia.logError=function(a){ClashMedia.log(a,"ERROR")};ClashMedia.logWarning=function(a){ClashMedia.log(a,"WARN")}}ClashMedia.iframe={WAIT:false,documentHeight:0,minHeight:0,getDocumentHeight:function(){var b=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;var d=0;var a=document.getElementsByTagName("*");for(var g=0;g<a.length;g++){d=Math.max(a[g].offsetWidth,d)}var e=document.all?b.scrollHeight:b.offsetHeight;var c=window.opera?d:b.scrollWidth;return e},resize:function(b){var a=parent.document.getElementById(b.n);if(a!=null){if(ClashMedia.$.browser.safari){a.style.height="auto"}a.style.height=b.h.toString()+"px"}},resizingMessage:null,getBodyHeight:function(){var a;var b;var c;if(document.height){a=document.height}else{if(document.body){if(document.body.scrollHeight){a=b=document.body.scrollHeight}if(document.body.offsetHeight){a=c=document.body.offsetHeight}if(b&&c){a=Math.max(b,c)}}}return a},getViewPortHeight:function(){var a=0;if(window.innerHeight){a=window.innerHeight-18}else{if((document.documentElement)&&(document.documentElement.clientHeight)){a=document.documentElement.clientHeight}else{if((document.body)&&(document.body.clientHeight)){a=document.body.clientHeight}}}return a},getHeight:function(a){var b=ClashMedia.iframe.getDocumentHeight();if(b<ClashMedia.iframe.minHeight){b=ClashMedia.iframe.minHeight}return b},autoAdapt:function(h,d,b,a,c){if(self==top){return}var e=false;e=true;this.resizingMessage=new ClashMedia.messaging.message(h,d?d:"parent",b?b:"ClashMedia.iframe.resize");var g=null;if(e){g=function(j){var i=ClashMedia.iframe;if(i.WAIT){return}i.WAIT=true;var l=i.getHeight();if(typeof(l)=="number"&&l!=i.documentHeight){i.documentHeight=l;var k=i.resizingMessage.callbackData;if(typeof a=="undefined"||(a&&a==true)){k.n=window.name}k.h=l;ClashMedia.messaging.send(i.resizingMessage)}i.WAIT=false}}else{g=function(j){var i=ClashMedia.iframe;if(i.WAIT){return}i.WAIT=true;var k=i.getHeight();setTimeout(function(){var l=parent.document.getElementById(self.name);if(ClashMedia.$.browser.safari){l.style.height="auto"}l.style.height=k.toString()+"px"},0);i.WAIT=false}}setInterval(g,50)}};ClashMedia.bugTracker={qs:ClashMedia.queryString(),emailAlerts:true,trackerUrl:function(){var a=this.qs.bugTrackerUrl;if(typeof a=="undefined"){a="//"+ClashMedia.hosts.shared+"/JavaScriptExceptionTracking.aspx"}return a},trackException:function(_source,_exceptionDetails,_title,_emailAddresses){var exceptionDetails=(typeof(_exceptionDetails)=="string")?_exceptionDetails:(_exceptionDetails.name+" | "+_exceptionDetails.message);var url=this.trackerUrl();var isLiveServer=(url.split("//")[1].split(".")[0]!="dev");if(this.emailAlerts||isLiveServer||(typeof(this.qs.debug)!="undefined"&&this.qs.debug!=true)){var ClashMedia_bugTracker_iframe_ID="ClashMedia_bugTracker_iframe__"+ClashMedia.utils.randomString();var _data={appDomain:document.domain,source:_source,url:location.href,exception:exceptionDetails,title:(_title?_title:""),emailAddresses:(_emailAddresses?_emailAddresses:"")};ClashMedia.$("body").append("<iframe style='display:none' name='"+ClashMedia_bugTracker_iframe_ID+"' id='"+ClashMedia_bugTracker_iframe_ID+"'></iframe>");var form=document.createElement("form");document.body.appendChild(form);with(form){setAttribute("style","display:none");setAttribute("action",url);setAttribute("method","POST");setAttribute("target",ClashMedia_bugTracker_iframe_ID)}for(var x in _data){var field=document.createElement("input");with(field){setAttribute("name",x);setAttribute("value",_data[x])}form.appendChild(field)}form.submit();document.body.removeChild(form);ClashMedia.$("#"+ClashMedia_bugTracker_iframe_ID).remove()}else{alert("["+source+"] "+exceptionDetails)}}};ClashMedia.Strings={startsWith:function(a,b){return(a.indexOf(b)==0)},endsWith:function(a,b){var c=a.length-b.length;return c>=0&&a.lastIndexOf(b)===c},onlyDigits:function(a){var b=/[^0-9,]/gi;return a.replace(b,"")},noLeadingZeros:function(a){var b=a;while(b.substring(0,1)=="0"&&b.length>1){b=b.substring(1)}return b},toDate:function(i,g){var k=this.onlyDigits(i),e="",m="",a="",c=k.length,b,h,j,n,o=new Date();switch(c){case 6:if(g){j=parseInt(this.noLeadingZeros(k.substring(0,2)))-(g?1:0);h=parseInt(this.noLeadingZeros(k.substring(2,4)))}else{h=parseInt(this.noLeadingZeros(k.substring(0,2)));j=parseInt(this.noLeadingZeros(k.substring(2,4)))-(g?0:1)}n=parseInt(this.noLeadingZeros(k.substring(4,6)));b=new Date(n,j,h);break;case 8:if(g){j=parseInt(this.noLeadingZeros(k.substring(0,2)))-(g?1:0);h=parseInt(this.noLeadingZeros(k.substring(2,4)))}else{h=parseInt(this.noLeadingZeros(k.substring(0,2)));j=parseInt(this.noLeadingZeros(k.substring(2,4)))-(g?0:1)}n=parseInt(this.noLeadingZeros(k.substring(4,8)));b=new Date(n,j,h);break;default:b=new Date();break}return b},toMinLength:function(a,c,g,d){var b=a;if(b.length<c&&(c&&typeof(c)=="number"&&c>0)&&g){var e="";for(var h=1;h<c;h++){e+=g}if(d&&d==true){b+=e}else{b=e+b}}return b},toUSDate:function(a){var b=this.toDate(a,true);return this.toMinLength((b.getMonth()+1).toString(),2,"0")+"/"+this.toMinLength(b.getDate().toString(),2,"0")+"/"+b.getFullYear()},toEUDate:function(a){var b=this.toDate(a,false);return this.toMinLength(b.getDate().toString(),2,"0")+"/"+this.toMinLength((b.getMonth()+1).toString(),2,"0")+"/"+b.getFullYear()}};"use strict";if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());ClashMedia.RevenuePath=function(){var qs=ClashMedia.queryString();return{revenuePathScript:"",IframeName:"RevenuePath_iframe",RevenuePathIframe:null,surveyId:null,usedev:false,usestaging:false,uselive:false,useversion:"",showversion:false,showurllength:false,currentVersion:"1.7.7",ALREADY_LOADED:false,testParamString:"",clientLocation:null,queryString:qs,isPathPage:(qs.isPathPage==true),isXssPage:(qs.isXssPage==true),isHostPage:!(qs.isPathPage||qs.isXssPage),parentDomain:document.domain,disableCountryCodeSelection:false,enableGeoIpAddressLookup:true,detectedCountryCode:"",selectedCountryCode:"",defaultCountryCode:"UK",useCountryCode:"",selectedPath:null,placeHolder:"#placeHolder",stylesheets:new ClashMedia.collection(),removeInlineStyling:false,removeExistingStylesheets:false,iframePlaceHolder:null,iFrameMinHeight:500,continueButtonImageUrl:"",loaderImageUrl:"//"+ClashMedia.hosts.staticFiles+"/images/loaders/loadingbar-2.gif",loader:null,hideLoaderImage:false,hideProgressBar:true,adaptWidths:true,userDetailsToReturnUrl:false,userDetails:{fname:"",lname:"",email:"",phonecd:"",phonepx:"",phonesx:"",address:"",address1:"",address2:"",address3:"",city:"",state:"",zippost:"",county:"",town:"",zip:"",country:"",title:"",dobday:"",dobmonth:"",dobyear:"",mstatus:"",gender:"",telephone:"",dob:"",phone:"",anrede:"",vorname:"",nachname:"",strasse:"",nr:"",plz:"",ort:"",land:"",geburtsdatum:"",telepfx:"",telesfx:"",mobilepfx:"",handypfx:"",mobilepsfx:"",handysfx:""},mode:"",campid:"",subAffiliateId:"",sid:"",affiliateid:"1",messagingWindow:"",messagingUrl:"",hideMessagesOnExecute:false,scripts:new ClashMedia.collection(),customParameters:new ClashMedia.nameValueCollection(),trackEvents:new ClashMedia.nameValueCollection(),pixelTracking:new ClashMedia.collection(),openReturnUrlInTopWindow:true,returnUrl:"",pathURL:"",debug:false,paths:null,preopenids:"",enableSurveyModule:false,enableRegistrationForm:false,fixPathIds:function(_ids){var ids=_ids;if(!ClashMedia.utils.isArray(_ids)){if(typeof _ids=="string"){ids=ClashMedia.Strings.onlyDigits(_ids).split(",")}else{if(typeof _ids=="number"){ids=[_ids]}else{ids=_ids.toArray()}}}var temp=new Array();for(var i=0;i<ids.length;i++){if(isNaN(ids[i])){ids[i]=ClashMedia.Strings.onlyDigits(ids[i])}if(!isNaN(ids[i])&&ids[i].length!=0){temp.push(ids[i])}}return temp},selectCountryCode:function(){var ret=this.defaultCountryCode;ClashMedia.log("Default Country: "+ret);if(this.useCountryCode.length!=0){ret=this.useCountryCode;ClashMedia.log("Skipping GEO location, useCountryCode is set to '"+this.useCountryCode+"'")}else{try{this.clientLocation=google.loader.ClientLocation}catch(e){this.clientLocation=null;ClashMedia.logError("Google API for geo location failed. Details of the exception: "+e.message)}if(this.enableGeoIpAddressLookup){ClashMedia.log("GEO location is ENABLED");if(this.clientLocation==null){ClashMedia.logWarning("Geo location by ip address lookup has not returned a valid response.")}else{this.detectedCountryCode=this.clientLocation.address.country_code;if(typeof(this.detectedCountryCode)=="string"&&this.detectedCountryCode.length==2){ret=(this.detectedCountryCode=="GB")?"UK":this.detectedCountryCode;ClashMedia.log("Detected Country: "+this.detectedCountryCode);ClashMedia.$("#detectedCountryCode").text(this.detectedCountryCode)}}}else{ClashMedia.log("GEO location is DISABLED")}}return ret},checkPathURLLength:function(){var URL_length=this.pathURL.length;if(URL_length>2000){var emailAddresses="vito.botta@clash-media.com,ash@clash-media.com";switch(this.selectedCountryCode){case"US":emailAddresses+=",jack@clash-media.com";break;default:break}ClashMedia.bugTracker.trackException("Revenue Path","Path URL length exceeds IE limit ("+URL_length+")","Revenue Path URL length exceeds limit",emailAddresses)}if(this.showurllength){alert(URL_length)}ClashMedia.log("Path URL length: "+URL_length)},liveTrafficMonitoring:function(){try{var _city="",_country="",_country_code="",_region="",_latitude=0,_longitude=0;if(this.clientLocation!=null){with(this.clientLocation){if(latitude!=null){_latitude=latitude}if(longitude!=null){_longitude=longitude}with(address){if(city!=null){_city=city}if(country!=null){_country=country}if(country_code!=null){_country_code=country_code}if(region!=null){_region=region}}}}var _data={website:location.href.split("?")[0],fullURL:location.href.split("#")[0],path_country_code:this.selectedCountryCode,path_url:this.pathURL,city:_city,country:_country,country_code:_country_code,region:_region,latitude:_latitude,longitude:_longitude};ClashMedia.$("body").append("<iframe style='display:none' name='SaveUserLocation_iframe' id='SaveUserLocation_iframe'></iframe>");var form=document.createElement("form");document.body.appendChild(form);with(form){setAttribute("style","display:none");setAttribute("action","//"+ClashMedia.hosts.apps+"/live-traffic/SaveUserLocation.aspx");setAttribute("method","POST");setAttribute("target","SaveUserLocation_iframe")}for(var x in _data){var field=document.createElement("input");with(field){setAttribute("name",x);setAttribute("value",_data[x])}form.appendChild(field)}form.submit();document.body.removeChild(form);ClashMedia.$("#SaveUserLocation_iframe").remove()}catch(exception){ClashMedia.bugTracker.trackException("Revenue Path",exception,"Unable to save user location","vito.botta@clash-media.com")}},prepareIframe:function(){this.iframePlaceHolder=ClashMedia.$("<div id='"+ClashMedia.utils.randomString()+"'></div>").hide();this.placeHolder.append(this.iframePlaceHolder);this.iframePlaceHolder.append(this.RevenuePathIframe)},loadPath:function(surveyResults){var rp=ClashMedia.RevenuePath,skipSurvey=typeof surveyResults=="undefined";ClashMedia.log("Publisher's page domain:\n"+document.domain);for(var userDetail in this.userDetails){if(this.userDetails[userDetail].length!=0){ClashMedia.log("[USER DETAILS] "+userDetail+" = "+this.userDetails[userDetail])}}this.pathURL=this.buildPathURL();this.checkPathURLLength();var pathDomain=this.pathURL.split("//")[1].split("/")[0];ClashMedia.messaging.domains.add({name:pathDomain,allowInbound:true,allowOutbound:false});this.shrink();this.RevenuePathIframe.attr("src",this.pathURL)},shrink:function(){var rp=ClashMedia.RevenuePath;rp.showLoader();rp.iframePlaceHolder.hide()},showLoader:function(){var rp=ClashMedia.RevenuePath;if(!rp.hideLoaderImage){rp.loader=ClashMedia.$("<center><img style='display:none' id='RevenuePathLoaderImage' src='"+rp.loaderImageUrl+"'></center>");rp.placeHolder.append(rp.loader);rp.loader=ClashMedia.$("#RevenuePathLoaderImage").show()}},onRevenuePathLoaded:function(){var rp=ClashMedia.RevenuePath;if(!rp.hideLoaderImage&&rp.loader){rp.loader.FadeOut({speed:"slow",callback:function(){rp.loader.remove();rp.iframePlaceHolder.show()}})}else{rp.iframePlaceHolder.show()}},testMode:function(){var ret=false,paramSet=false;var testing_params=["usedev","usestaging","uselive","useversion","showversion"];var enabled_testing_params=new ClashMedia.nameValueCollection();var revenuePathScript_queryString=ClashMedia.queryString(this.revenuePathScript.split("?")[1]);var enabled_param_name="";for(var i=0;i<testing_params.length;i++){paramSet=false;enabled_param_name=testing_params[i];if(typeof revenuePathScript_queryString[enabled_param_name]!="undefined"){this[enabled_param_name]=revenuePathScript_queryString[enabled_param_name];paramSet=true}if(typeof this.queryString[enabled_param_name]!="undefined"){this[enabled_param_name]=this.queryString[enabled_param_name];paramSet=true}if(paramSet){ret=true}else{switch(enabled_param_name){case"usedev":this.usedev=ClashMedia.isDevelopmentServer;if(this.usedev){ClashMedia.log("Using DEVELOPMENT code")}break;case"usestaging":this.usestaging=ClashMedia.isStagingServer;if(this.usestaging){ClashMedia.log("Using STAGING code")}break;default:break}}}return ret},load:function(onBeforeStart){ClashMedia.log("Execution Mode: USER");if(arguments.callee._executed){return}arguments.callee._executed=true;with(ClashMedia.RevenuePath){ALREADY_LOADED=true;ClashMedia.onLoad(function(){if(typeof onBeforeStart=="function"){onBeforeStart()}start()})}},start:function(){var hasSettings=false;with(ClashMedia.RevenuePath){stylesheets.add("//"+ClashMedia.hosts.staticFiles+"/stylesheets/RevenuePath.css");revenuePathScript=(function(){var mainScript="";ClashMedia.$("script[src]").each(function(i){var src=ClashMedia.$(this).attr("src").toLowerCase();if((src.indexOf("apps.clash-media.com/revenuepath")!=-1||src.indexOf("revenuepath.local")!=-1||src.indexOf("revenuepath.xss")!=-1||src.indexOf("labs.clash-media.com/revenuepath")!=-1||src.indexOf("revenuepath.clash-media.com")!=-1)&&src.indexOf("lazy")==-1){mainScript=src}});if(ClashMedia.Strings.startsWith(mainScript,"//")){mainScript=location.protocol+mainScript}else{if(ClashMedia.Strings.startsWith(mainScript,"http")){mainScript=location.protocol+"//"+mainScript.split("//")[1]}}ClashMedia.log("RP core script: "+mainScript);return mainScript})();ClashMedia.RevenuePath.loadParametersFromQueryString();if(isHostPage){try{var hash=ClashMedia.queryString(decodeURIComponent(location.hash.substring(1)));var callbackData=ClashMedia.utils.deserialize(hash.callbackData);IframeName=callbackData.n}catch(e){}selectPath();if(selectedPath.ids.length||this.surveyModule.enabled==true||this.enableSurveyModule==true){hasSettings=true;if(messagingUrl.length){ClashMedia.log("Cross Site Messaging URL: "+messagingUrl)}else{messagingUrl=location.href}if(messagingWindow==top){messagingWindow="top"}if(testMode()&&messagingWindow!="top"){ClashMedia.log("TEST MODE: disabling browser cache for messaging URL");messagingUrl+=(messagingUrl.indexOf("?")==-1?"?":"&")+"nocache="+ClashMedia.utils.NoCache()}if(typeof queryString.showversion!=="undefined"&&queryString.showversion==true){alert(currentVersion)}}}if((isHostPage&&hasSettings)||(!isHostPage)){init();if(isXssPage){ClashMedia.messaging.listen();ClashMedia.utils.stopLoading()}}}},autoLoad:function(){with(ClashMedia.RevenuePath){if(ALREADY_LOADED){return}ClashMedia.log("Execution Mode: AUTO");start()}}}}();ClashMedia.RevenuePath.registrationForm={_registrationForm:null,_questionGroups:null,_questions:null,_submitButton:null,enabled:false,load:function(){ClashMedia.$.getJSON("//"+ClashMedia.hosts.apps+"/RegistrationForm.aspx?"+Math.random())},show:function(a){var b=ClashMedia.RevenuePath;this._registrationForm=ClashMedia.$("<div id='ClashMedia_RevenuePath_registrationForm' style='width:100%;border:0px;'/>").html(a);this._submitButton=ClashMedia.$("<a id='ClashMedia_RevenuePath_registrationForm_submitButton' href='javascript:void(0);'><img border='0' src='"+(b.continueButtonImageUrl.length==0?"//"+ClashMedia.hosts.staticFiles+"/images/buttons/continue.gif":b.continueButtonImageUrl)+"'></a>");this._submitButton.click(function(){ClashMedia.$("#ClashMedia_RevenuePath_registrationForm").remove();ClashMedia.RevenuePath.loadPath()});this._registrationForm.append(this._submitButton);b.placeHolder.append(this._registrationForm)}};ClashMedia.RevenuePath.surveyModule={enabled:false,loadSurvey:function(){var b=ClashMedia.RevenuePath;var c="//"+(document.domain=="revenuepath.clash-media.com"?"surveymodule.clash-media.com":"surveymodule.local")+"/displaysurvey.aspx";var a=b.buildPathURL(c);b.showLoader();b.RevenuePathIframe.attr("src",a)}};ClashMedia.setNamespace("ClashMedia.RevenuePath");ClashMedia.RevenuePath.paths_class=function(){};ClashMedia.inherit(ClashMedia.RevenuePath.paths_class,ClashMedia.collection);ClashMedia.RevenuePath.paths_class.prototype.get=function(b){if(this.lsize==0){return null}for(var a=0;a<this.lsize;a++){if(this[a].countryCode.toLowerCase()==b.toLowerCase()){return this[a]}}return null};ClashMedia.RevenuePath.paths_class.prototype.set=function(a){var b=this.get(a);if(b==null){b={countryCode:a,url:"",ids:new ClashMedia.collection(),campid:"",setAsDefault:function(){ClashMedia.RevenuePath.defaultCountryCode=this.countryCode;return this}}}this[a]=b;this.lsize++;this[(this.lsize-1)]=b;return b};ClashMedia.RevenuePath.paths_class.prototype.add=function(a){return this.set(a)};ClashMedia.RevenuePath.paths_class.prototype.addCountryCode=function(a){return this.set(a)};ClashMedia.RevenuePath.paths_class.prototype.getDefault=function(){return this.get(ClashMedia.RevenuePath.defaultCountryCode)};with(ClashMedia.RevenuePath){paths=new ClashMedia.RevenuePath.paths_class();paths.addCountryCode("UK").setAsDefault().url="//syncpath.clashdev.com/offers.aspx";paths.addCountryCode("US").url="//us2.synpath.com/offers.aspx";paths.addCountryCode("DE").url="//de2.synpath.com/offers.aspx";paths.addCountryCode("DK").url="//dk2.synpath.com/offers.aspx";paths.addCountryCode("FR").url="//fr2.synpath.com/offers.aspx"}ClashMedia.RevenuePath.loadParametersFromQueryString=function(){for(var a in this.queryString){var c=this.queryString[a];if(typeof this.userDetails[a]=="undefined"){if(a=="pathid"){this.paths.getDefault().ids=c;this.enableGeoIpAddressLookup=false}else{for(var b in this){if(b.toLowerCase()==a.toLowerCase()){this[b]=c;break}}}}else{this.userDetails[a]=c}}};ClashMedia.RevenuePath.onContinueButtonClicked=function(){var a=new ClashMedia.messaging.message(this.parentDomain,this.messagingWindow=="top"?"self":"parent","ClashMedia.RevenuePath.shrink");ClashMedia.messaging.send(a)};ClashMedia.RevenuePath.checkIframe_Timeout=null;ClashMedia.RevenuePath.__cmri=function(b){var a=document.getElementById(ClashMedia.RevenuePath.IframeName);if(a==null){a=parent.document.getElementById(ClashMedia.RevenuePath.IframeName)}if(a==null){setTimeout(function(){ClashMedia.RevenuePath.__cmri(b)},10)}else{a.style.height="auto";a.style.height=b.h.toString()+"px"}};ClashMedia.RevenuePath.init=function(){this.currentPathIdIndex=(typeof(this.queryString.currentPathIdIndex)=="string")?parseInt(this.queryString.currentPathIdIndex):0;if(this.isHostPage){location.hash="";ClashMedia.log("Publisher's page full URL:\n"+location.href);this.placeHolder=ClashMedia.$(this.placeHolder);if(this.placeHolder.size()==0){ClashMedia.logWarning("Place holder for iframe not defined. \nPlease either set the 'placeHolder' property to an existing element in the page, or add an element with id 'placeHolder' where, in the document, you want to place the iframe.")}else{if(this.messagingWindow=="top"){ClashMedia.log("Using the TOP window for cross site messaging");ClashMedia.messaging.listen(this.hideMessagesOnExecute)}this.RevenuePathIframe=ClashMedia.$("<iframe  width='100%' height='000px' onload='ClashMedia.RevenuePath.onRevenuePathLoaded();' allowtransparency='true' name='"+this.IframeName+"' id='"+this.IframeName+"' frameborder='0' scrolling='no'></iframe>");this.prepareIframe();if(this.surveyModule.enabled||this.enableSurveyModule){ClashMedia.log("Survey Module is ENABLED");this.surveyModule.loadSurvey()}else{ClashMedia.log("Survey Module is DISABLED");this.loadPath()}}}else{if(this.isPathPage){if(this.removeExistingStylesheets){ClashMedia.log("Removing the existing stylesheets from the path");var b=ClashMedia.$("link[rel='stylesheet'][type='text/css']");if(b.length>0){if(b==1){b.attr("href",this.queryString.appendCSS)}else{b.each(function(e){if(e==0){ClashMedia.$(this).attr("href",ClashMedia.RevenuePath.queryString.appendCSS)}else{ClashMedia.$(this).remove()}})}}}if(this.removeInlineStyling=="1"){ClashMedia.log("Removing inline styling");ClashMedia.$("style").remove()}ClashMedia.messaging.domains.add({name:this.parentDomain,allowInbound:false,allowOutbound:true,exchangeChannel:{url:this.messagingUrl,window:this.messagingWindow}});if((typeof this.trackEvents=="string")&&this.trackEvents.length!=0){this.trackEvents=ClashMedia.utils.deserialize(this.trackEvents)}else{this.trackEvents={}}var n=window.onload;window.onload=function(){if(typeof n==="function"){n()}setTimeout(function(){var e=ClashMedia.RevenuePath;if(document.getElementsByTagName("select").length==0){setTimeout(arguments.callee,100)}else{ClashMedia.$("[name^='dobday_Off'],[name^='dobmonth_Off'],[name^='dobyear_Off']").each(function(p){if(ClashMedia.$(this).attr("changed")!="true"){var o=ClashMedia.$(this).attr("name").split("_")[0].split("dob")[1];var q="";switch(o){case"day":q=e.userDetails.dobday;break;case"month":q=e.userDetails.dobmonth;break;case"year":q=e.userDetails.dobyear;break;default:break}if(q.length!=0){ClashMedia.$(this)[0].value=q}ClashMedia.$(this).change(function(){if(ClashMedia.$(this).attr("changed")!="true"){var i=ClashMedia.Strings.onlyDigits(ClashMedia.$(this).attr("name"));ClashMedia.$("[name='dobmonth_Off"+i+"'],[name='dobday_Off"+i+"'],[name='dobyear_Off"+i+"']").attr("changed","true")}})}});ClashMedia.$("select[name^='state_Off']").each(function(o){if(ClashMedia.$(this).attr("changed")!="true"){if(e.userDetails.state.length!=0){ClashMedia.$(this)[0].value=e.userDetails.state}ClashMedia.$(this).change(function(){ClashMedia.$(this).attr("changed","true")})}});e.autoSelectFields=false}},100)};if(typeof(this.queryString.scripts)!="undefined"&&this.queryString.scripts.length!=0){ClashMedia.$.getScript(this.scripts)}if(typeof(this.queryString.pixelTracking)!="undefined"&&this.queryString.pixelTracking.length!=0){var k=this.pixelTracking.split(",");for(var a=0;a<k.length;a++){k[a]=decodeURIComponent(k[a]);k[a]+=(k[a].indexOf("?")==-1?"?":"&")+"nocache="+ClashMedia.utils.NoCache()}for(var a=0;a<k.length;a++){$("body").append("<img style='display:none' width='0' height='0' src='"+k[a]+"'>")}}ClashMedia.$("#ImageButton1").attr("onclick","").click(function(){var e=checkFromPost();if((e!=false)){ClashMedia.RevenuePath.onContinueButtonClicked();submitButtonId=$(this).attr("id");__doPostBack(submitButtonId,"");e=false}return e});if(this.adaptWidths){ClashMedia.$("table").removeAttr("width");ClashMedia.$("table").css("width","100%");ClashMedia.$("table[id^='offerHolding'] tr").each(function(){ClashMedia.$(this).children("td:eq(1)").each(function(){ClashMedia.$(this).attr("width","100%");ClashMedia.$("td.offerHeading").each(function(){ClashMedia.$(this).parents("td:first").prev().css("width","20%")})})});ClashMedia.$("table[id='bottomImage']").css("width","")}if(this.hideProgressBar){ClashMedia.log("Hiding ProgressBar");ClashMedia.$("#topBar").hide();ClashMedia.$("#topMsg").hide()}else{ClashMedia.$("#topBar").css("display","block");ClashMedia.$("#topMsg").css("display","block")}if(this.continueButtonImageUrl.length==0){}else{ClashMedia.$("#ImageButton1").attr("src",this.continueButtonImageUrl);ClashMedia.log("Continue button image URL: "+this.continueButtonImageUrl)}ClashMedia.$("body,html").css("display","block");ClashMedia.iframe.autoAdapt(ClashMedia.RevenuePath.parentDomain,ClashMedia.RevenuePath.messagingWindow=="top"?"self":"parent","ClashMedia.RevenuePath.__cmri",false);for(var d in ClashMedia.RevenuePath.trackEvents){var l="",g="",c="",h=1;try{l=ClashMedia.JSON.parse(ClashMedia.RevenuePath.trackEvents[d]);if(typeof(l)=="string"){f=l}else{var m=ClashMedia.$.extend({c:"",p:{},d:1},l);g=m.c;if(typeof m.p=="object"){c=m.p}if(typeof m.d=="number"){h=m.d}}if(typeof g=="string"&&g.length!=0){switch(d.toLowerCase()){case"onload":setTimeout(function(){var i=new ClashMedia.messaging.message(ClashMedia.RevenuePath.parentDomain,ClashMedia.RevenuePath.messagingWindow=="top"?"self":"parent",g);for(var e in c){i.callbackData[e]=c[e]}ClashMedia.messaging.send(i)},h);break;default:break}}}catch(j){alert(j.description)}}}else{if(this.isXssPage){}}}};ClashMedia.RevenuePath.selectPath=function(){this.selectedCountryCode=this.selectCountryCode();var a=this.paths.get(this.selectedCountryCode);if(typeof(a)!="undefined"&&a!=null&&((typeof(a.ids)=="string"&&a.ids.length!=0)||typeof(a.ids)=="number"||(typeof(a.ids)=="object"&&(a.ids.count()>0)))){a.ids=this.fixPathIds(a.ids)}else{if(this.selectedCountryCode!=this.useCountryCode){ClashMedia.log("Invalid settings or no path ids defined for the selected country "+this.selectedCountryCode);ClashMedia.log("Loading default path ("+this.defaultCountryCode+") instead.");this.selectedCountryCode=this.defaultCountryCode;a=this.paths.get(this.defaultCountryCode);a.ids=this.fixPathIds(a.ids)}}if(typeof a.ids.count==="function"&&a.ids.count()==0){a.ids.add(0)}ClashMedia.log("Selected Country: "+this.selectedCountryCode);this.selectedPath=a;if(this.surveyModule.enabled==true||this.enableSurveyModule==true){}else{if(this.selectedPath.ids.length==0){ClashMedia.logWarning("NO PATH IDs DEFINED")}else{ClashMedia.log("Path IDs: "+this.selectedPath.ids)}}};ClashMedia.RevenuePath.localisationFixes=function(){if(this.selectedCountryCode=="US"){with(this.userDetails){if(phone.toString().length==0&&telephone.toString().length!=0){phone=telephone}phone=ClashMedia.Strings.onlyDigits(phone.toString());if(phone.length>0){telephone=phone;if(phone.length>=3){phonecd=phone.substring(0,3)}if(phone.length>=6){phonepx=phone.substring(3,6)}if(phone.length>=10){phonesx=phone.substring(6,10)}}phone="";telephone=""}}with(this.userDetails){dob=dob.toString();if(dob.length>0){if(this.selectedCountryCode=="US"){dob=ClashMedia.Strings.toUSDate(dob).split("/");dobmonth=dob[0];dobday=dob[1];dobyear=dob[2]}else{dob=ClashMedia.Strings.toEUDate(dob).split("/");dobday=dob[0];dobmonth=dob[1];dobyear=dob[2]}}dob=""}};ClashMedia.RevenuePath.buildPathURL=function(base){if(this.pathURL.length!=0){return this.pathURL}this.localisationFixes();if(this.returnUrl.length>0){if(!ClashMedia.Strings.startsWith(this.returnUrl.toLowerCase(),"http")){if(ClashMedia.Strings.startsWith(this.returnUrl.toLowerCase(),"//")){this.returnUrl=location.protocol+this.returnUrl}else{this.returnUrl=location.protocol+"//"+this.returnUrl}}var __customParameters_queryString=new ClashMedia.nameValueCollection();if(this.customParameters.count()>0){var __customParameters=this.customParameters.toArray();for(var i=0;i<__customParameters.length;i++){__customParameters_queryString.add(__customParameters[i].key,__customParameters[i].value)}this.returnUrl+=(this.returnUrl.indexOf("?")==-1?"?":"&")+__customParameters_queryString.serialize()}ClashMedia.log("Return URL (to be opened in the "+(this.openReturnUrlInTopWindow?"top window":"same iframe as RevenuePath")+"):\n"+this.returnUrl);this.returnUrl=location.protocol+"//"+ClashMedia.hosts.apps+"/redirect.htm?url="+encodeURIComponent(this.returnUrl)+"&target="+(this.openReturnUrlInTopWindow?"top":"")}var GET_parameters=new ClashMedia.nameValueCollection();var __userDetails_serialized=ClashMedia.utils.serialize(this.userDetails,null,true);var __userDetails_deserialized=ClashMedia.utils.deserialize(__userDetails_serialized);for(var userDetail in __userDetails_deserialized){GET_parameters.add(userDetail,__userDetails_deserialized[userDetail])}var excludeParametersFromPathUrl=["isHostPage","pathURL","defaultCountryCode","enableGeoIpAddressLookup","loaderImageUrl","isXssPage","currentVersion","selectedCountryCode","iFrameMinHeight","detectedCountryCode","ALREADY_LOADED","sid","subAffiliateId","showversion","showurllength","hideProgressBar","adaptWidths","openReturnUrlInTopWindow","enableSurveyModule","surveyModule","enableRegistrationForm","auth_token","fb_sig_in_iframe","fb_sig_locale","fb_sig_in_new_facebook","fb_sig_time","fb_sig_added","fb_sig_profile_update_time","fb_sig_expires","fb_sig_user","fb_sig_session_key","fb_sig_ss","fb_sig_ext_perms","fb_sig_api_key","fb_sig_app_id","fb_sig"];var __jsObjProperties_serialized=ClashMedia.utils.serialize(this,excludeParametersFromPathUrl,true);var __jsObjProperties_deserialized=ClashMedia.utils.deserialize(__jsObjProperties_serialized);for(var jsObjProperty in __jsObjProperties_deserialized){var value=__jsObjProperties_deserialized[jsObjProperty];switch(jsObjProperty){case"userDetailsToReturnUrl":jsObjProperty="prm";break;case"autoExpandOffers":jsObjProperty="preopen";break;case"revenuePathScript":jsObjProperty="injectJavaScript";break;default:break}GET_parameters.add(jsObjProperty,value)}var includeIfNotDefault=["hideProgressBar","adaptWidths","openReturnUrlInTopWindow"];for(var i=0;i<includeIfNotDefault.length;i++){if(this[includeIfNotDefault[i]]==false){GET_parameters.add(includeIfNotDefault[i],"false")}}switch(this.stylesheets.count()){case 0:break;case 1:var __stylesheet=this.stylesheets.join(",");__stylesheet+=(__stylesheet.indexOf("?")==-1?"?":"&")+"nocache="+ClashMedia.utils.NoCache();GET_parameters.add("appendCSS",__stylesheet);break;default:var __stylesheets=this.stylesheets.toArray();for(var i=0;i<__stylesheets.length;i++){ClashMedia.log("Attaching custom stylesheet:\n"+__stylesheets[i])}var __styleheets_params=new ClashMedia.nameValueCollection();with(__styleheets_params){add("nocache",ClashMedia.utils.NoCache());add("files",this.stylesheets.join(",",true))}GET_parameters.add("appendCSS","//"+ClashMedia.hosts.apps+"/css.merge?"+__styleheets_params.serialize(false));break}switch(this.scripts.count()){case 0:break;case 1:var __script=this.scripts.join(",");__script+=(__script.indexOf("?")==-1?"?":"&")+"nocache="+ClashMedia.utils.NoCache();GET_parameters.add("scripts",__script);break;default:var __scripts=this.scripts.toArray();for(var i=0;i<__scripts.length;i++){ClashMedia.log("Attaching user javascript:\n"+__scripts[i])}var __scripts_params=new ClashMedia.nameValueCollection();with(__scripts_params){add("nocache",ClashMedia.utils.NoCache());add("files",this.scripts.join(",",true))}GET_parameters.add("scripts","//"+ClashMedia.hosts.apps+"/javascript.merge?"+__scripts_params.serialize(false));break}if(this.pixelTracking.count()>0){var __pixelTracking=this.pixelTracking.toArray();for(var i=0;i<__pixelTracking.length;i++){ClashMedia.log("Attaching user pixel tracking:\n"+__pixelTracking[i])}GET_parameters.add("pixelTracking",this.pixelTracking.join(",",true))}if(this.customParameters.count()>0){var __customParameters=this.customParameters.toArray();for(var i=0;i<__customParameters.length;i++){GET_parameters.add(__customParameters[i].key,__customParameters[i].value)}}if(this.trackEvents.count()>0){var __trackEvents=this.trackEvents.toArray();for(var i=0;i<__trackEvents.length;i++){if(typeof __trackEvents[i].value!="string"){__trackEvents[i].value=ClashMedia.JSON.stringify(__trackEvents[i].value)}}GET_parameters.add("trackEvents",this.trackEvents.serialize())}with(GET_parameters){add("pathID",this.selectedPath.ids.join(","));add("isPathPage","true");add("parentDomain",document.domain);add("UrlReferrer",location.href);add("nocache",ClashMedia.utils.NoCache());add("countryCode",this.selectedCountryCode);add("prod",document.domain=="revenuepath.clash-media.com");add("np","xckmy");if(String(this.sid).length>0){add("sid",this.sid)}else{if(String(this.subAffiliateId).length>0){add("sid",this.subAffiliateId)}}}var selectedPathUrl=this.selectedPath.url;var pathUrl=location.protocol+"//"+selectedPathUrl.substring(selectedPathUrl.indexOf("//")+2);if(base){GET_parameters.add("pathUrl",pathUrl)}else{base=pathUrl}var ret=base+(base.indexOf("?")==-1?"?":"&")+GET_parameters.serialize();ClashMedia.log("Path page full URL:\n"+ret);return ret};ClashMedia.RevenuePath.startAll=function(){if(self==top){with(ClashMedia.RevenuePath){if(typeof queryString.debug!="undefined"){debug=queryString.debug}if(debug){ClashMedia.debug=true;ClashMedia.Loader.loadConsole();ClashMedia.log("Debug mode ACTIVE");ClashMedia.log("Revenue Path Core Version: "+ClashMedia.RevenuePath.currentVersion)}}}(function($){$.extend($.fn,{FadeTo:function(options){return $(this).show().fadeTo(options.speed,options.opacity,function(){if(jQuery.browser.msie){if(options.opacity==0||options.opacity==1){$(this).get(0).style.removeAttribute("filter")}}if(options.callback!=undefined){options.callback()}})},FadeIn:function(options){return $(this).css("opacity","0").FadeTo({speed:options.speed,opacity:1,callback:options.callback})},FadeOut:function(options){return $(this).css("opacity","1").FadeTo({speed:options.speed,opacity:0,callback:options.callback})},Show:function(speed,callback){if(typeof speed!="undefined"){return this.animate({opacity:"show"},speed,function(){if(jQuery.browser.msie){this.style.removeAttribute("filter")}if(typeof callback=="function"){callback()}})}else{return this.show(speed,callback)}}})})(ClashMedia.$);var autoLoad=function(){var rp=ClashMedia.RevenuePath;ClashMedia.$("body").append("<img style='display:none' src='"+rp.loaderImageUrl+"' border='0'>").append("<img style='display:none' src='"+(rp.continueButtonImageUrl.length==0?"http://www.ukprizedraw.co.uk/images/click_synpath.jpg":rp.continueButtonImageUrl)+"' border='0'>");rp.autoLoad("normal")};if((self==parent)&&(window.google===undefined||window.google.loader===undefined||window.google.ClientLocation===undefined)){ClashMedia.Loader.getScript("http://www.google.com/jsapi",autoLoad)}else{autoLoad()}};if(typeof ClashMedia.RevenuePath_lazyLoad=="undefined"||self!=top){ClashMedia.onLoad(function(){ClashMedia.RevenuePath.startAll()})}else{};