var LOTCC=LOTCC||{};LOTCC.pvdone=false;LOTCC.userAgent=navigator.userAgent.toLowerCase(); _proxy_jslib_assign('', LOTCC, 'domain', '=', ( _proxy_jslib_handle(document, 'domain', '', 0, 0)));LOTCC.test=false;LOTCC.bcpDomain='';LOTCC.client='';LOTCC.loaded=false;LOTCC.te=new (Array)();LOTCC.mnpct=50;LOTCC.mxidle=20;LOTCC.mxstart=0;LOTCC.lstact=new (Date)();LOTCC.isFocused=true;LOTCC.expinited=false;LOTCC.maxPolls=5;LOTCC.icnt=0;LOTCC.numPolls=0;LOTCC.stepIncrement=0;LOTCC.pollInterval=0;LOTCC.pollIncrement=3;LOTCC.forcePing=3;LOTCC.sw="_SW["+(new (Date)()).getTime()+"]";LOTCC.swSize=0;LOTCC.lastStr="";LOTCC.ichks=0;LOTCC.pvdone=false;LOTCC.behaviors=new (Object)();LOTCC.urls=new (Object)();LOTCC.sep="/";LOTCC.version="4";LOTCC.delim="|";LOTCC.bcpd_callback=null;LOTCC.pv="pv=y";LOTCC.dobcp=false;function bcp() {if(typeof(lotbcp)!="undefined"){LOTCC.bhv=lotbcp}if(typeof( _proxy_jslib_handle(null, 'domain', domain, 0, 0))!="undefined"){ _proxy_jslib_assign('', LOTCC, 'domain', '=', ( _proxy_jslib_handle(null, 'domain', domain, 0, 0)))}if(typeof(lotclient)!="undefined"){LOTCC.client=lotclient}LOTCC.bcp()}LOTCC.flash=function(msg) {if(div= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)('LOTCC.status')) _proxy_jslib_assign('', div, 'innerHTML', '=', (msg))};LOTCC.isArray=function(v) {return v&&typeof v==='object'&&typeof v.length==='number'&&!(v.propertyIsEnumerable('length'))};LOTCC.add=function(name,id) {if( _proxy_jslib_handle(LOTCC.behaviors, (name), '', 0, 0)==null){ _proxy_jslib_assign('', LOTCC.behaviors, (name), '=', (new (Array)()))}var entry= _proxy_jslib_handle(LOTCC.behaviors, (name), '', 0, 0);var encodedId=encodeURIComponent(id); _proxy_jslib_assign('', entry, (entry.length), '=', ( _proxy_jslib_handle(encodedId, 'replace', '', 1, 0)(/%2F/g,"/")))};LOTCC.addBehavior=function(id) {LOTCC.add("b",id)};LOTCC.addAction=function(id) {LOTCC.add("act",id)};LOTCC.addInterest=function(id) {LOTCC.add("int",id)};LOTCC.addMedia=function(id) {LOTCC.add("med",id)};LOTCC.addMemberId=function(id) {};LOTCC.addContentId=function(id) {};LOTCC.appendInternal=function(url,vals,vr) {if((typeof(vals)!="undefined")&&(vals.length>0)){var vn=LOTCC.delim+vr+"=";for(var i=0;i<vals.length;i++){url+=vn+ _proxy_jslib_handle(vals, (i), '', 0, 0)}}return url};LOTCC.append=function(url,val,vr) {if((typeof(val)!="undefined")&&(val.length>0)){var vals;if(LOTCC.isArray(val)){vals=val}else{vals=val.split(",")}var vn=LOTCC.delim+vr+"=";for(var i=0;i<vals.length;i++){url+=vn+ _proxy_jslib_handle(vals, (i), '', 0, 0)}}return url};LOTCC.appendAll=function(url) {for(var type in LOTCC.behaviors){url=LOTCC.appendInternal(url, _proxy_jslib_handle(LOTCC.behaviors, (type), '', 0, 0),type)}return url};LOTCC.baseURL=function(pv) {pv=!LOTCC.pvdone;var min=100000000;var max=999999999;var randomnumber=Math.floor(min+(max-min)*Math.random());var prefix=(( _proxy_jslib_handle( _proxy_jslib_handle(document, 'location', '', 0, 0), 'protocol', '', 0, 0)=='https:')?'https:':'http:')+'//';var url=prefix+LOTCC.getDomain()+"/"+LOTCC.version+LOTCC.sep+"c="+LOTCC.client+LOTCC.delim+"rand="+randomnumber;if(pv){url+=LOTCC.delim+LOTCC.pv}if(typeof(LOTCC.group)!="undefined"){url+=LOTCC.delim+"brg="+LOTCC.group}return url};LOTCC.getDomain=function() {return(LOTCC.test)?'bcp.test.lotame.com':'bcp.crwdcntrl.net'};LOTCC.bcp=function() {if(LOTCC.client=="15"||/fotolog/i.test( _proxy_jslib_handle(LOTCC, 'domain', '', 0, 0))){var foundUS=false;var ints= _proxy_jslib_handle(LOTCC.behaviors, ("int"), '', 0, 0)||[];for(var i=0;i<ints.length;i++){if(decodeURIComponent( _proxy_jslib_handle(ints, (i), '', 0, 0)).toLowerCase()=="country:us"||decodeURIComponent( _proxy_jslib_handle(ints, (i), '', 0, 0)).toLowerCase()=="country:ca"){foundUS=true}}if(!foundUS){return}}LOTCC.bcpinternal()};LOTCC.bcpinternal=function() {if(LOTCC.loaded){LOTCC.firebcp()}else{LOTCC.dobcp=true}};LOTCC.enableDiv=function() {};LOTCC.enableNamedDiv=function(name) {};LOTCC.fillDiv=function(content) {};LOTCC.bcpd=function(cb) {var url=LOTCC.appendAll(LOTCC.baseURL(false));LOTCC.pixel(url,cb)};LOTCC.bcpw=function() {var len=LOTCC.bcpw.arguments.length;if(len>0){for(var i=0;i<len;i+=2){if(i+1<len){LOTCC.add( _proxy_jslib_handle(LOTCC.bcpw.arguments, (i), '', 0, 0), _proxy_jslib_handle(LOTCC.bcpw.arguments, (i+1), '', 0, 0))}}}LOTCC.bcpd()};LOTCC.pixel=function(url,cb) {var pi=new (Image)();pi.onload=LOTCC.img_done;pi.onerror=LOTCC.img_done;pi.onabort=LOTCC.img_done;LOTCC.bcpd_callback=cb;LOTCC.reset(url); _proxy_jslib_assign('', pi, 'src', '=', (url))};LOTCC.img_done=function(url) {if(LOTCC.bcpd_callback){LOTCC.bcpd_callback()}};LOTCC.reset=function(url) {LOTCC.behaviors=new (Object)();if(typeof(lotbcp)!="undefined"){lotbcp=""}if(typeof(lotact)!="undefined"){lotact=""}if(typeof(lotint)!="undefined"){lotint=""}if(typeof(lotmed)!="undefined"){lotmed=""}if(url&&url.indexOf(LOTCC.pv)>0){LOTCC.pvdone=true}};LOTCC.browser={version:(LOTCC.userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(LOTCC.userAgent),opera:/opera/.test(LOTCC.userAgent),msie:/msie/.test(LOTCC.userAgent)&&!/opera/.test(LOTCC.userAgent),mozilla:/mozilla/.test(LOTCC.userAgent)&&!/(compatible|webkit)/.test(LOTCC.userAgent)};LOTCC.addEvent=(function() {if(document.addEventListener){return function(obj,sEvent,func) {obj.addEventListener(sEvent,func,false);return true}}else{if(document.attachEvent){return function(obj,sEvent,func) {obj.attachEvent("on"+sEvent,func);return true}}else{return function(obj,sEvent,func) {return false}}}})();LOTCC.expinit=function() {if(LOTCC.expinited==true){return}LOTCC.flash("initializing");var f=function() {LOTCC.activity();LOTCC.isFocused=true};var b=function() {LOTCC.activity();LOTCC.isFocused=false};LOTCC.addEvent((LOTCC.browser.mozilla||LOTCC.browser.opera)?document:window,"focus",f);LOTCC.addEvent((LOTCC.browser.mozilla||LOTCC.browser.opera)?document:window,"blur",b);LOTCC.addEvent(window,"scroll",LOTCC.activity);LOTCC.addEvent(window,"resize",LOTCC.activity);LOTCC.addEvent(window,"load",LOTCC.activity);LOTCC.addEvent(window,"mousemove",LOTCC.activity);LOTCC.addEvent(document,"mousemove",LOTCC.activity);LOTCC.addEvent(document,"keyup",LOTCC.activity);LOTCC.addEvent(document,"click",LOTCC.activity);LOTCC.addEvent(window,"unload",LOTCC.record); _proxy_jslib_handle(null, 'setInterval', setInterval, 1, 0)("LOTCC.track()",1000);LOTCC.expinited=true;LOTCC.flash("Initialized")};LOTCC.firebcp=function() {var url=LOTCC.appendAll(LOTCC.baseURL(true));if(typeof(lotbcp)!="undefined"){url=LOTCC.append(url,lotbcp,"b")}if(typeof(lotact)!="undefined"){url=LOTCC.append(url,lotact,"act")}if(typeof(lotint)!="undefined"){url=LOTCC.append(url,lotint,"int")}if(typeof(lotmed)!="undefined"){url=LOTCC.append(url,lotmed,"med")}try{var tempIFrame=document.createElement('iframe'); _proxy_jslib_handle(tempIFrame, 'setAttribute', '', 1, 0)('id','LOTCCFrame'+new (Date)());url=LOTCC.append(url,"ifr","rt"); _proxy_jslib_handle(tempIFrame, 'setAttribute', '', 1, 0)('src', _proxy_jslib_handle(url, 'replace', '', 1, 0)(/'/g,"%27"));tempIFrame.style.border='0px';tempIFrame.style.width='0px';tempIFrame.style.height='0px';tempIFrame.style.display='block'; _proxy_jslib_handle(document, 'body', '', 0, 0).appendChild(tempIFrame)}catch(exception){var pixel=new (Image)(1,1); _proxy_jslib_assign('', pixel, 'src', '=', ( _proxy_jslib_handle(url, 'replace', '', 1, 0)(/'/g,"%27")))}LOTCC.reset(url)};LOTCC.doneload=function() {if(LOTCC.dobcp){LOTCC.firebcp();LOTCC.dobcp=false}LOTCC.loaded=true};LOTCC.activity=function() {LOTCC.lstact=new (Date)()};LOTCC.record=function() {var ad_exp=new (Array)();var camp_exp=new (Array)();var swArray=new (Array)();var swElements=new (Array)();for(var i=0;i<LOTCC.te.length;i++){var eInf= _proxy_jslib_handle(LOTCC.te, (i), '', 0, 0);if(eInf==undefined)continue;if( _proxy_jslib_handle(eInf, ('last_seen'), '', 0, 0)==null&& _proxy_jslib_handle(eInf, ('impSent'), '', 0, 0))continue;var last_seen=( _proxy_jslib_handle(eInf, ('last_seen'), '', 0, 0)!=null)?Math.floor( _proxy_jslib_handle(eInf, ('last_seen'), '', 0, 0).getTime()/1000):null;var d=Math.round(LOTCC.getTime( _proxy_jslib_handle(eInf, ('element'), '', 0, 0).elm)/1000);var start_time= _proxy_jslib_handle(eInf, ('max_start'), '', 0, 0);if(d<start_time){if((start_time<LOTCC.forcePing)||(LOTCC.icnt!=LOTCC.forcePing)|| _proxy_jslib_handle(eInf, ('impSent'), '', 0, 0)){continue}}var aInf= _proxy_jslib_handle(ad_exp, ('a'+ _proxy_jslib_handle(eInf, ("adId"), '', 0, 0)), '', 0, 0);var cInf= _proxy_jslib_handle(camp_exp, ('c'+ _proxy_jslib_handle(eInf, ("campaignId"), '', 0, 0)), '', 0, 0);if(aInf==undefined){aInf=new (Array)(); _proxy_jslib_assign('', aInf, ('id'), '=', ( _proxy_jslib_handle(eInf, ("adId"), '', 0, 0))); _proxy_jslib_assign('', ad_exp, ('a'+ _proxy_jslib_handle(eInf, ("adId"), '', 0, 0)), '=', (aInf));ad_exp.push(aInf)}if(cInf==undefined){cInf=new (Array)(); _proxy_jslib_assign('', cInf, ('id'), '=', ( _proxy_jslib_handle(eInf, ("campaignId"), '', 0, 0))); _proxy_jslib_assign('', camp_exp, ('c'+ _proxy_jslib_handle(eInf, ("campaignId"), '', 0, 0)), '=', (cInf));camp_exp.push(cInf)}var adj_adDuration=((d- _proxy_jslib_handle(eInf, ('max_start'), '', 0, 0))<=0)?0:(d- _proxy_jslib_handle(eInf, ('max_start'), '', 0, 0)); _proxy_jslib_assign('', aInf, ("duration"), '=', (( _proxy_jslib_handle(aInf, ("duration"), '', 0, 0)==undefined)?adj_adDuration: _proxy_jslib_handle(aInf, ("duration"), '', 0, 0)+adj_adDuration)); _proxy_jslib_assign('', cInf, ("duration"), '=', (( _proxy_jslib_handle(cInf, ("duration"), '', 0, 0)==undefined)?adj_adDuration: _proxy_jslib_handle(cInf, ("duration"), '', 0, 0)+adj_adDuration)); _proxy_jslib_assign('', aInf, ("last_seen"), '=', (last_seen));if( _proxy_jslib_handle(cInf, ("last_seen"), '', 0, 0)==undefined||last_seen> _proxy_jslib_handle(cInf, ("last_seen"), '', 0, 0)) _proxy_jslib_assign('', cInf, ("last_seen"), '=', (last_seen));swArray.push( _proxy_jslib_handle(eInf, ("txId"), '', 0, 0)+"."+ _proxy_jslib_handle(eInf, ("adId"), '', 0, 0)+"."+ _proxy_jslib_handle(eInf, ("zoneId"), '', 0, 0)+"."+ _proxy_jslib_handle(aInf, ("duration"), '', 0, 0));swElements.push(eInf)}if(swArray.length>0&&LOTCC.icnt>0){var cks=new (Array)();cks.push(LOTCC.sw+"="+swArray.join("_"));for(var i=0;i<ad_exp.length;i++){var aInf= _proxy_jslib_handle(ad_exp, (i), '', 0, 0);if( _proxy_jslib_handle(aInf, ('last_seen'), '', 0, 0)==null)continue;var ab_name='_OAAEBLOCK['+ _proxy_jslib_handle(aInf, ('id'), '', 0, 0)+']';var ac_name='_OAAECAP['+ _proxy_jslib_handle(aInf, ('id'), '', 0, 0)+']';cks.push(ac_name+"="+ _proxy_jslib_handle(aInf, ("duration"), '', 0, 0));cks.push(ab_name+"="+ _proxy_jslib_handle(aInf, ("last_seen"), '', 0, 0))}for(var i=0;i<camp_exp.length;i++){var cInf= _proxy_jslib_handle(camp_exp, (i), '', 0, 0);var cb_name='_OACEBLOCK['+ _proxy_jslib_handle(cInf, ('id'), '', 0, 0)+']';var cc_name='_OACECAP['+ _proxy_jslib_handle(cInf, ('id'), '', 0, 0)+']';cks.push(cc_name+"="+ _proxy_jslib_handle(cInf, ("duration"), '', 0, 0));cks.push(cb_name+"="+ _proxy_jslib_handle(cInf, ("last_seen"), '', 0, 0))}if(swArray.length!=LOTCC.swSize){LOTCC.pollInterval=0;LOTCC.stepIncrement=0;LOTCC.numPolls=0;LOTCC.maxPolls=5}LOTCC.swSize=swArray.length;if(LOTCC.stepIncrement==LOTCC.pollInterval){var str=cks.join("&");if(str!=null&&str.length>0&&str!=LOTCC.lastStr){var min=100000000;var max=999999999;var rand=Math.floor(min+(max-min)*Math.random());var tracker=new (Image)(1,1);var prefix= _proxy_jslib_handle( _proxy_jslib_handle(document, 'location', '', 0, 0), 'protocol', '', 0, 0)+'//';var poll=prefix+LOTCC.getDomain()+"/exp?"+str+"&rand="+rand; _proxy_jslib_assign('', tracker, 'src', '=', (poll));LOTCC.flash("Poll "+poll);LOTCC.lastStr=str;for(var i=0;i<swElements.length;i++){ _proxy_jslib_assign('',  _proxy_jslib_handle(swElements, (i), '', 0, 0), ("impSent"), '=', (true))}LOTCC.stepIncrement=0;LOTCC.numPolls++}else{LOTCC.flash("no changes to poll")}if(LOTCC.numPolls==LOTCC.maxPolls){LOTCC.numPolls=0;LOTCC.maxPolls=Math.ceil(LOTCC.maxPolls/2);LOTCC.pollInterval+=LOTCC.pollIncrement}}else{LOTCC.stepIncrement++}}LOTCC.icnt++};LOTCC.track=function() {var msg="";for(var i=0;i<LOTCC.te.length;i++){var eInf= _proxy_jslib_handle(LOTCC.te, (i), '', 0, 0);var e= _proxy_jslib_handle(eInf, ('element'), '', 0, 0);if(e==undefined)continue;e=e.elm;var pct=LOTCC.getPctVisible(e);var activityInterval=Math.round((new (Date)().getTime()-LOTCC.lstact.getTime())/1000);var exposure_time=Math.round(LOTCC.getTime(e)/1000);if(pct>= _proxy_jslib_handle(eInf, ('min_visible'), '', 0, 0)&&activityInterval< _proxy_jslib_handle(eInf, ('max_idle'), '', 0, 0)&&LOTCC.isFocused){msg+=LOTCC.startTimer(e)}else{msg+=LOTCC.stopTimer(e)}msg+=": "+pct+" visible, "+activityInterval+" seconds idle. exposure timer @ "+exposure_time+" seconds for tx "+ _proxy_jslib_handle(eInf, ('txId'), '', 0, 0)+"<br \>"}LOTCC.flash(msg);LOTCC.record()};LOTCC.stopTimer=function(e) {if(e==undefined)return;var eInf=LOTCC.getElementInfo(e);var msg='';if( _proxy_jslib_handle(eInf, ('start'), '', 0, 0)!=undefined){ _proxy_jslib_assign('', eInf, ('totaltime'), '=', (LOTCC.getTime(e))); _proxy_jslib_assign('delete', (eInf), ('start'), '');msg='Stop Timer'}else{msg='Timer Stopped'}return msg};LOTCC.startTimer=function(e) {if(e==undefined)return;var eInf=LOTCC.getElementInfo(e);var msg=''; _proxy_jslib_assign('', eInf, ('last_seen'), '=', (new (Date)()));if( _proxy_jslib_handle(eInf, ('start'), '', 0, 0)==undefined){ _proxy_jslib_assign('', eInf, ('start'), '=', (new (Date)()));msg='Start Timer'}else{msg='Timer Running'}return msg};LOTCC.getTime=function(e) {if(e==undefined)return;var eInf=LOTCC.getElementInfo(e);var duration=0;if( _proxy_jslib_handle(eInf, ('start'), '', 0, 0)!=undefined){duration=new (Date)().getTime()- _proxy_jslib_handle(eInf, ('start'), '', 0, 0).getTime();duration= _proxy_jslib_handle(eInf, ('totaltime'), '', 0, 0)+duration}else{duration= _proxy_jslib_handle(eInf, ('totaltime'), '', 0, 0)}return duration};LOTCC.getElementInfo=function(e) {var len=LOTCC.te.length;for(var i=0;i<len;i++){if( _proxy_jslib_handle( _proxy_jslib_handle(LOTCC.te, (i), '', 0, 0), ('element'), '', 0, 0).elm==e)return  _proxy_jslib_handle(LOTCC.te, (i), '', 0, 0)}return null};LOTCC.addExpTracker=function(txId,elementId,zoneId,adId,campaignId,expInfo) {var e= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(elementId);if(e==undefined||adId==undefined){LOTEXP.flash(elementId+" not found");return}LOTCC.addExpTrackerElm(txId,e,zoneId,adId,campaignId,expInfo)};LOTCC.addExpTrackerElm=function(txId,e,zoneId,adId,campaignId,expInfo) {if(e==undefined||adId==undefined)return;LOTCC.expinit();if(!(e.offsetHeight>0||e.offsetWidth>0))return;for(var i=0;i<LOTCC.te.length;i++){if( _proxy_jslib_handle( _proxy_jslib_handle(LOTCC.te, (i), '', 0, 0), ('element'), '', 0, 0).elm==e)return}LOTCC.flash("adding tracker for tx "+txId);var eInf=new (Array)(); _proxy_jslib_assign('', eInf, ('element'), '=', ({elm:e})); _proxy_jslib_assign('', eInf, ('adId'), '=', (adId)); _proxy_jslib_assign('', eInf, ('zoneId'), '=', (zoneId)); _proxy_jslib_assign('', eInf, ('txId'), '=', (txId)); _proxy_jslib_assign('', eInf, ('campaignId'), '=', (campaignId)); _proxy_jslib_assign('', eInf, ('min_visible'), '=', (expInfo.pct_visible||LOTCC.mnpct)); _proxy_jslib_assign('', eInf, ('max_idle'), '=', (expInfo.max_idle||LOTCC.mxidle)); _proxy_jslib_assign('', eInf, ('max_start'), '=', (expInfo.max_start||LOTCC.mxstart)); _proxy_jslib_assign('', eInf, ('rand'), '=', (Math.floor(100000000+(999999999-100000000)*Math.random()))); _proxy_jslib_assign('', eInf, ('last_seen'), '=', (null)); _proxy_jslib_assign('', eInf, ('impSent'), '=', (false)); _proxy_jslib_assign('', eInf, ('totaltime'), '=', (0));LOTCC.te.push(eInf)};LOTCC.getPctVisible=function(e) {if(e==null)return 0;var elementX1=elementY1=0;var workingElement=e;if(workingElement.offsetParent){do{elementX1+=workingElement.offsetLeft;elementY1+=workingElement.offsetTop}while(workingElement=workingElement.offsetParent)}var elementX2=elementX1+e.offsetWidth;var elementY2=elementY1+e.offsetHeight;if(elementX2==elementX1)elementX2=elementX1+1;if(elementY2==elementY1)elementY2=elementY1+1;LOTCC.flash(elementX1+","+elementX2+","+elementY1+","+elementY2);var viewX1=window.pageXOffset?window.pageXOffset: _proxy_jslib_handle(document, 'body', '', 0, 0).scrollLeft;var viewY1=window.pageYOffset?window.pageYOffset: _proxy_jslib_handle(document, 'body', '', 0, 0).scrollTop;var viewX2=viewX1+(window.innerWidth?window.innerWidth: _proxy_jslib_handle(document, 'body', '', 0, 0).clientWidth);var viewY2=viewY1+(window.innerHeight?window.innerHeight: _proxy_jslib_handle(document, 'body', '', 0, 0).clientHeight);var overlap;var x_overlap;var y_overlap;if(elementX1>viewX2){overlap=0}else if(elementX2<viewX1){overlap=0}else if(elementY1>viewY2){overlap=0}else if(elementY2<viewY1){overlap=0}else{x_overlap=Math.min(viewX2,elementX2)-Math.max(viewX1,elementX1);y_overlap=Math.min(viewY2,elementY2)-Math.max(viewY1,elementY1)}var areaOriginal=(elementX2-elementX1)*(elementY2-elementY1);overlap=x_overlap*y_overlap;var overlapPct=overlap/areaOriginal*100.0;return overlapPct>=0?overlapPct:0};LOTCC.checkForAds=function() {var fs= _proxy_jslib_handle(document, 'getElementsByTagName', '', 1, 0)("IFRAME");var len=fs.length;for(var i=0;i<len;i++){var f= _proxy_jslib_handle(fs, (i), '', 0, 0).contentWindow;try{var h= _proxy_jslib_handle( _proxy_jslib_handle(f, 'location', '', 0, 0), 'href', '', 0, 0);}catch(e){for(var j=0;j< _proxy_jslib_handle( _proxy_jslib_handle(fs, (i), '', 0, 0).contentWindow, 'frames', '', 0, 0).length;j++){try{var loc= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(fs, (i), '', 0, 0).contentWindow, 'frames', '', 0, 0), (j), '', 0, 0), 'location', '', 0, 0), 'toString', '', 1, 0)();var index=loc.indexOf("#LOTEXP.");if(index>0){var ps=loc.substring(index+8).split("_");if(ps.length>=6)LOTCC.addExpTrackerElm(ps[0], _proxy_jslib_handle(fs, (i), '', 0, 0),ps[1],ps[2],ps[3],{max_idle:ps[4],pct_visible:ps[5]})}}catch(e){}}}}};LOTCC.adChk=function() {if(!LOTCC.loaded){LOTCC.checkForAds();if(LOTCC.ichks<10){ _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(LOTCC.adChk,1000)}LOTCC.ichks++}};LOTCC.listenForInViewTrackers=function(e) {var ps=e.data.split("_");if(ps.length>7&&ps[0]=="LOTCCREG"){var f=document.getElementsByName(ps[1]);if(f.length>0){LOTCC.addExpTrackerElm(ps[2],f[0],ps[3],ps[4],ps[5],{max_idle:ps[6],pct_visible:ps[7]})}else{f= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(ps[1]);if(f){LOTCC.addExpTrackerElm(ps[2],f,ps[3],ps[4],ps[5],{max_idle:ps[6],pct_visible:ps[7]})}}}};LOTCC.loadAsync=function() {if(LOTCC.async){try{for(type in LOTCC.asyncBehaviors){for(var i=0,b;b= _proxy_jslib_handle( _proxy_jslib_handle(LOTCC.asyncBehaviors, (type), '', 0, 0), (i++), '', 0, 0);){LOTCC.add(type,b)}}LOTCC.bcp()}catch(e){}}};LOTCC.addEvent(window,"message",LOTCC.listenForInViewTrackers);LOTCC.addEvent(window,"load",LOTCC.checkForAds);LOTCC.addEvent(window,"load",LOTCC.doneload);LOTCC.addEvent(window,"load",LOTCC.loadAsync); _proxy_jslib_handle(null, 'setTimeout', setTimeout, 1, 0)(LOTCC.adChk,1000);if(typeof LOTCC=="undefined")exit;LOTCC.rule_document=document;LOTCC.current_href= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'href', '', 0, 0);LOTCC.reg_selector=/\{\{([^}}]*)\}\}(\.(\w+))?/g;LOTCC.opt_rules=[];LOTCC.hpx_rules=[];LOTCC.bustIframe=true;LOTCC.filterSpecial=true;LOTCC.filterQuotes=true;LOTCC.liveEvents=[];LOTCC.addOptimusRule=function(rule) {LOTCC.addRule(rule,LOTCC.opt_rules)};LOTCC.addHapaxRule=function(rule) {LOTCC.addRule(rule,LOTCC.hpx_rules)};LOTCC.addRule=function(rule,basket) {if("element"in rule&&!LOTCC.isSelector( _proxy_jslib_handle(rule, ("element"), '', 0, 0))){ _proxy_jslib_assign('', rule, ("element"), '=', ('{{#'+ _proxy_jslib_handle(rule, ("element"), '', 0, 0)+'}}'))}basket.push(rule)};LOTCC.bindTriggers=function() {for(var i=0;opt= _proxy_jslib_handle(LOTCC.opt_rules, (i++), '', 0, 0);){if(!LOTCC.isValidOptRule(opt))continue;var loc_matches=LOTCC.getLocationMatches( _proxy_jslib_handle(opt, 'location', '', 0, 0));if(loc_matches==false)continue;if("element"in opt){var elements=LOTCC.getElements(opt.element);if(elements.length>0){if("event"in opt){for(var j=0;j<elements.length;j++){e= _proxy_jslib_handle(elements, (j), '', 0, 0);LOTCC.addEvent(e,opt.event,LOTCC.getOptimusEventCallback(opt,loc_matches))}}else{LOTCC.populateBehaviors(opt,loc_matches);continue}}}else{LOTCC.populateBehaviors(opt,loc_matches);continue}if("element"in opt&&"event"in opt&&opt.event=='click'){LOTCC.liveEvents.push({selector:opt.element,callback:LOTCC.getOptimusEventCallback(opt,loc_matches)})}}for(var i=0,hpx;hpx= _proxy_jslib_handle(LOTCC.hpx_rules, (i++), '', 0, 0);){if(!LOTCC.isValidHpxRule(hpx))continue;var loc_matches=LOTCC.getLocationMatches( _proxy_jslib_handle(hpx, 'location', '', 0, 0));if(loc_matches==false)continue;var elements=LOTCC.getElements(hpx.element);if(elements.length>0){for(var j=0,e;e= _proxy_jslib_handle(elements, (j++), '', 0, 0);){LOTCC.addEvent(e,hpx.event,LOTCC.getHapaxEventCallback(hpx))}}if("element"in hpx&&"event"in hpx&&hpx.event=='click'){LOTCC.liveEvents.push({selector:hpx.element,callback:LOTCC.getHapaxEventCallback(hpx,loc_matches)})}}};LOTCC.getOptimusEventCallback=function(o,loc) {return function() {LOTCC.populateBehaviors(o,loc);LOTCC.bcpw()}};LOTCC.getHapaxEventCallback=function(h) {return function() {var ugc_behaviors=[];for(var i=0,behavior;behavior= _proxy_jslib_handle(h.ug, (i++), '', 0, 0);){var matched_element=LOTCC.getElements(behavior);ugc_behaviors.push( _proxy_jslib_handle(matched_element[0], 'value', '', 0, 0))}var ugc_behavior_string=ugc_behaviors.join(' ');if(ugc_behavior_string!=''){LOTCC.add("ugc",ugc_behavior_string);LOTCC.bcpw()}}};LOTCC.getLocationMatches=function(loc) {var currUrl= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'href', '', 0, 0);if( _proxy_jslib_handle(window, 'top', '', 0, 0)!==window){try{var currUrl= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(window, 'top', '', 0, 0), 'location', '', 0, 0), 'href', '', 0, 0)}catch(err){}}var matches,re;try{re=new (RegExp)(loc);matches=re.exec(LOTCC.current_href)}catch(e){LOTCC.add("opterr","location-match");matches=null}return(matches!=null)?matches:false};LOTCC.getElements=function(el) {var domelements;if(LOTCC.isSelector(el)){var expr_els=LOTCC.getElementsBySelector(el);domelements=(expr_els.length>0)?expr_els[0][1]:[]}else{domelements=( _proxy_jslib_handle(LOTCC.rule_document, 'getElementById', '', 1, 0)(el))?[ _proxy_jslib_handle(LOTCC.rule_document, 'getElementById', '', 1, 0)(el)]:[]}return domelements};LOTCC.getElementsBySelector=function(expression) {var matches=[],results,expr,selector,property,els;if(!LOTCC.isSelector(expression))return[];try{while((results=LOTCC.reg_selector.exec(expression))!=null){expr=results[0];selector=results[1];property=results[3]||'value';els=LOTCC.query(selector,LOTCC.rule_document);if(els.length>0)matches.push([expr,els,property])}}catch(e){LOTCC.add("opterr","get-elements-by-selector");matches=[]}return matches};LOTCC.isSelector=function(expression) {var result;try{result=LOTCC.reg_selector.test(expression);LOTCC.reg_selector.lastIndex=0}catch(e){LOTCC.add("opterr","selector-match");result=false}return result};LOTCC.isValidOptRule=function(rule) {var valid=true;if(!("location"in rule)||(( _proxy_jslib_handle(rule, 'location', '', 0, 0)=='')||( _proxy_jslib_handle(rule, 'location', '', 0, 0)==null)))valid=false;if(("element"in rule)&&(rule.element==''||rule.element==null))valid=false;if(("event"in rule)&&(!("element"in rule)||(rule.event==''||rule.event==null)))valid=false;return valid};LOTCC.populateBehaviors=function(behaviors,loc_matches) {var available_types=["act","int","med","gen","age","prov","cntry","geo","dem","srch","adv","ug"];for(var bt in behaviors){if(LOTCC.searchArray(available_types,bt)){if(!LOTCC.isArray( _proxy_jslib_handle(behaviors, (bt), '', 0, 0)))continue;for(var i=0,b;b= _proxy_jslib_handle( _proxy_jslib_handle(behaviors, (bt), '', 0, 0), (i++), '', 0, 0);){b=LOTCC.replaceSelectors(b);b=LOTCC.replacePlaceholders(b,loc_matches);LOTCC.add(bt,b);}}}};LOTCC.replaceSelectors=function(b) {if(!LOTCC.isSelector(b))return b;var matches=LOTCC.getElementsBySelector(b);if(matches.length>0){for(var i=0,m;m= _proxy_jslib_handle(matches, (i++), '', 0, 0);){var el_vals=[],selector=m[0],els=m[1],property=m[2];for(var j=0,el;el= _proxy_jslib_handle(els, (j++), '', 0, 0);){el_vals.push(( _proxy_jslib_handle(el, (property), '', 0, 0)!==undefined)?LOTCC.filterContent( _proxy_jslib_handle(el, (property), '', 0, 0)):'')}b= _proxy_jslib_handle(b, 'replace', '', 1, 0)(selector,el_vals.join(' '));if(LOTCC.isSelector(b))b= _proxy_jslib_handle(b, 'replace', '', 1, 0)(LOTCC.reg_selector,'')}}else{b= _proxy_jslib_handle(b, 'replace', '', 1, 0)(LOTCC.reg_selector,'')}return b};LOTCC.filterContent=function(c) {if(LOTCC.filterSpecial){c= _proxy_jslib_handle(c, 'replace', '', 1, 0)(/\<\/?[^>]+\/?\>/gi,'');c= _proxy_jslib_handle(c, 'replace', '', 1, 0)(/\n|\t|\r/gi,' ');c= _proxy_jslib_handle(c, 'replace', '', 1, 0)(/\s{2,}/g,' ');}if(LOTCC.filterQuotes)c= _proxy_jslib_handle(c, 'replace', '', 1, 0)(/\[quote\][\s\S]*\[\/quote\]/gi,'');return c};LOTCC.replacePlaceholders=function(b,loc_matches) {if(loc_matches.length<2)return b;for(var i=0;i<loc_matches.length;i++){var sub_regex=new (RegExp)("\\$"+ _proxy_jslib_handle(i, 'toString', '', 1, 0)()+"\\b");b= _proxy_jslib_handle(b, 'replace', '', 1, 0)(sub_regex, _proxy_jslib_handle(loc_matches, (i), '', 0, 0))}return b};LOTCC.addTrigger=LOTCC.addOptimusRule;LOTCC.isValidHpxRule=function(rule) {var valid=true;if(!("location"in rule)||(( _proxy_jslib_handle(rule, 'location', '', 0, 0)=='')||( _proxy_jslib_handle(rule, 'location', '', 0, 0)==null)))valid=false;if(!("element"in rule)||(rule.element==''||rule.element==null))valid=false;if(!("event"in rule)||(rule.event==''||rule.event==null))valid=false;if(!("ug"in rule)||(rule.ug==''||rule.ug==null))valid=false;return valid};LOTCC.addEvent=(function() {if(LOTCC.rule_document.addEventListener){return function(obj,sEvent,func) {obj.addEventListener(sEvent,func,false);return true}}else{if(LOTCC.rule_document.attachEvent){return function(obj,sEvent,func) {obj.attachEvent("on"+sEvent,func);return true}}else{return function(obj,sEvent,func) {return false}}}})();LOTCC.searchArray=function(arr,str) {if(!LOTCC.isArray(arr))return false;if(!Array.prototype.indexOf){for(var i=0;i<arr.length;i++){if( _proxy_jslib_handle(arr, (i), '', 0, 0)==str)return true}}else{if(arr.indexOf(str)>=0)return true}return false};LOTCC.query=function() {};LOTCC.addEvent(document,"click",function(ev) {var sel,callback,els;for(var i=0;i<LOTCC.liveEvents.length;i++){sel= _proxy_jslib_handle(LOTCC.liveEvents, (i), '', 0, 0).selector;callback= _proxy_jslib_handle(LOTCC.liveEvents, (i), '', 0, 0).callback;els=LOTCC.getElements(sel);for(var j=0,el;el= _proxy_jslib_handle(els, (j++), '', 0, 0);){if(el==ev.target)callback()}}});if(LOTCC.bustIframe){(function() {if( _proxy_jslib_handle(window, 'top', '', 0, 0)!=window){try{LOTCC.current_href= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(window, 'top', '', 0, 0), 'location', '', 0, 0), 'href', '', 0, 0);LOTCC.rule_document= _proxy_jslib_handle(window, 'top', '', 0, 0).document;}catch(err){LOTCC.current_href= _proxy_jslib_handle(document, 'referrer', '', 0, 0)}}})()}(function() {var doc=LOTCC.rule_document;var isIE=/(?!.*?opera.*?)msie(?!.*?opera.*?)/i.test(navigator.userAgent);var isWebKit=/webkit/i.test(navigator.userAgent);var cache={};var cacheOn=!isIE&&!isWebKit;var persistCache={};var _uid=0;var reg={trim:/^\s+|\s+$/g,quickTest:/^[^:\[>+~ ,]+$/,typeSelector:/(^[^\[:]+?)(?:\[|\:|$)/,tag:/^(\w+|\*)/,id:/^(\w*|\*)#/,classRE:/^(\w*|\*)\./,attributeName:/(\w+)(?:[!+~*\^$|=])|\w+/,attributeValue:/(?:[!+~*\^$|=]=*)(.+)(?:\])/,pseudoName:/(\:[^\(]+)/,pseudoArgs:/(?:\()(.+)(?:\))/,nthParts:/([+-]?\d)*(n)([+-]\d+)*/i,combinatorTest:/[+>~ ](?![^\(]+\)|[^\[]+\])/,combinator:/\s*[>~]\s*(?![=])|\s*\+\s*(?![0-9)])|\s+/g,recursive:/:(not|has)\((\w+|\*)?([#.](\w|\d)+)*(\:(\w|-)+(\([^\)]+\))?|\[[^\}]+\])*(\s*,\s*(\w+|\*)?([#.](\w|\d)+)*(\:(\w|-)+(\([^\)]+\))?|\[[^\}]+\])*)*\)/gi};var arrayIt=function(a) {if(!!(window.attachEvent&&!window.opera)){return function(a) {if(a instanceof Array)return a;for(var i=0,result=[],m;m= _proxy_jslib_handle(a, (i++), '', 0, 0);) _proxy_jslib_assign('', result, (result.length), '=', (m));return result}}else{return function(a) {return Array.prototype.slice.call(a)}}}();function filter(a,tag) {var r=[],uids={};if(tag)tag=new (RegExp)("^"+tag+"$","i");for(var i=0,ae;ae= _proxy_jslib_handle(a, (i++), '', 0, 0);){ae.uid=ae.uid||_uid++;if(! _proxy_jslib_handle(uids, (ae.uid), '', 0, 0)&&(!tag|| _proxy_jslib_handle(ae.nodeName, 'search', '', 1, 0)(tag)!==-1)){ _proxy_jslib_assign('', r, (r.length), '=', ( _proxy_jslib_assign('', uids, (ae.uid), '=', (ae))))}}return r}function getAttribute(e,a) {if(!e)return null;if(a==="class"||a==="className")return e.className;if(a==="for")return e.htmlFor;return e.getAttribute(a)|| _proxy_jslib_handle(e, (a), '', 0, 0)}function getByClass(selector,selectorRE,root,includeRoot,cacheKey,tag,flat) {var result=[];if(!!flat){return selectorRE.test(root.className)?[root]:[]}if(root.getElementsByClassName){result=arrayIt(root.getElementsByClassName(selector));if(!!includeRoot){if(selectorRE.test(root.className)) _proxy_jslib_assign('', result, (result.length), '=', (root))}if(tag!="*")result=filter(result,tag); _proxy_jslib_assign('', cache, (cacheKey), '=', (result.slice(0)));return result}else if(doc.getElementsByClassName){result=arrayIt(doc.getElementsByClassName(selector));if(tag!="*")result=filter(result,tag); _proxy_jslib_assign('', cache, (cacheKey), '=', (result.slice(0)));return result}var es=(tag=="*"&&root.all)?root.all: _proxy_jslib_handle(root, 'getElementsByTagName', '', 1, 0)(tag);if(!!includeRoot) _proxy_jslib_assign('', es, (es.length), '=', (root));for(var index=0,e;e= _proxy_jslib_handle(es, (index++), '', 0, 0);){if(selectorRE.test(e.className)){ _proxy_jslib_assign('', result, (result.length), '=', (e))}}return result}function getById(selector,root,includeRoot,cacheKey,tag,flat) {var rs,result=[];if(!!flat){return getAttribute(root,"id")===selector?[root]:[]}if( _proxy_jslib_handle(root, 'getElementById', '', 0, 0)){rs= _proxy_jslib_handle(root, 'getElementById', '', 1, 0)(selector)}else{rs= _proxy_jslib_handle(doc, 'getElementById', '', 1, 0)(selector)}if(rs&&getAttribute(rs,"id")===selector){ _proxy_jslib_assign('', result, (result.length), '=', (rs)); _proxy_jslib_assign('', cache, (cacheKey), '=', (result.slice(0)));return result}var es= _proxy_jslib_handle(root, 'getElementsByTagName', '', 1, 0)(tag);if(!!includeRoot) _proxy_jslib_assign('', es, (es.length), '=', (root));for(var index=0,e;e= _proxy_jslib_handle(es, (index++), '', 0, 0);){if(getAttribute(e,"id")===selector){ _proxy_jslib_assign('', result, (result.length), '=', (e));break}}return result}function getContextFromSequenceSelector(selector,roots,includeRoot,flat) {var context,tag,contextType="",result=[],tResult=[],root,rootCount,rootsLength;reg.id.lastIndex=reg.typeSelector.lastIndex=reg.classRE.lastIndex=0;if(!reg.tag.test(selector))selector="*"+selector;context=reg.typeSelector.exec(selector)[1];roots=roots instanceof Array?roots.slice(0):[roots];rootsLength=roots.length;rootCount=rootsLength-1;if(reg.id.test(context)){contextType="id";tag=(tag=context.match(/^\w+/))?tag[0]:"*";context= _proxy_jslib_handle(context, 'replace', '', 1, 0)(reg.id,"")}else if(reg.classRE.test(context)){contextType="class";tag=(tag=context.match(reg.tag))?tag[0]:"*";context= _proxy_jslib_handle(context, 'replace', '', 1, 0)(reg.tag,"");contextRE= _proxy_jslib_handle(persistCache, (context+"RegExp"), '', 0, 0)||( _proxy_jslib_assign('', persistCache, (context+"RegExp"), '=', (new (RegExp)("(?:^|\\s)"+ _proxy_jslib_handle(context, 'replace', '', 1, 0)(/\./g,"\\s*")+"(?:\\s|$)"))));context= _proxy_jslib_handle(context, 'replace', '', 1, 0)(/\./g," ")}while(rootCount>-1){root= _proxy_jslib_handle(roots, (rootCount--), '', 0, 0);root.uid=root.uid||_uid++;var cacheKey=selector+root.uid;if(cacheOn&& _proxy_jslib_handle(cache, (cacheKey), '', 0, 0)){result=result.concat( _proxy_jslib_handle(cache, (cacheKey), '', 0, 0));continue}if(contextType==="id"){tResult=getById(context,root,includeRoot,cacheKey,tag,flat)}else if(contextType==="class"){tResult=getByClass(context,contextRE,root,includeRoot,cacheKey,tag,flat)}else{tResult=arrayIt( _proxy_jslib_handle(root, 'getElementsByTagName', '', 1, 0)(context));if(!!includeRoot&&(root.nodeName.toUpperCase()===context.toUpperCase()||context==="*")) _proxy_jslib_assign('', tResult, (tResult.length), '=', (root))}result=rootsLength>1?result.concat(tResult):tResult; _proxy_jslib_assign('', cache, (cacheKey), '=', (result.slice(0)))}return result}peppy={query:function(selectorGroups,root,includeRoot,recursed,flat) {var elements=[];if(!recursed){selectorGroups= _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(selectorGroups, 'replace', '', 1, 0)(reg.trim,""), 'replace', '', 1, 0)(/(\[)\s+/g,"$1"), 'replace', '', 1, 0)(/\s+(\])/g,"$1"), 'replace', '', 1, 0)(/(\[[^\] ]+)\s+/g,"$1"), 'replace', '', 1, 0)(/\s+([^ \[]+\])/g,"$1"), 'replace', '', 1, 0)(/(\()\s+/g,"$1"), 'replace', '', 1, 0)(/(\+)([^0-9])/g,"$1 $2"), 'replace', '', 1, 0)(/['"]/g,""), 'replace', '', 1, 0)(/\(\s*even\s*\)/gi,"(2n)"), 'replace', '', 1, 0)(/\(\s*odd\s*\)/gi,"(2n+1)");}if(typeof root==="string"){root=(root=getContextFromSequenceSelector(root,doc)).length>0?root:undefined}root=root||doc;root.uid=root.uid||_uid++;var cacheKey=selectorGroups+root.uid;if(cacheOn&& _proxy_jslib_handle(cache, (cacheKey), '', 0, 0))return  _proxy_jslib_handle(cache, (cacheKey), '', 0, 0);reg.quickTest.lastIndex=0;if(reg.quickTest.test(selectorGroups)){elements=getContextFromSequenceSelector(selectorGroups,root,includeRoot,flat);return( _proxy_jslib_assign('', cache, (cacheKey), '=', (elements.slice(0))))}var groupsWorker,groups,selector,parts=[],part;groupsWorker=selectorGroups.split(/\s*,\s*/g);groups=groupsWorker.length>1?[""]:groupsWorker;for(var gwi=0,tc=0,gi=0,g;groupsWorker.length>1&&(g= _proxy_jslib_handle(groupsWorker, (gwi++), '', 0, 0))!==undefined;){tc+=(((l=g.match(/\(/g))?l.length:0)-((r=g.match(/\)/g))?r.length:0)); _proxy_jslib_assign('', groups, (gi), '=', ( _proxy_jslib_handle(groups, (gi), '', 0, 0)||"")); _proxy_jslib_assign('', groups, (gi), '+=', (( _proxy_jslib_handle(groups, (gi), '', 0, 0)===""?g:","+g)));if(tc===0)gi++}var gCount=0;while((selector= _proxy_jslib_handle(groups, (gCount++), '', 0, 0))!==undefined){reg.quickTest.lastIndex=0;if(reg.quickTest.test(selector)){result=getContextFromSequenceSelector(selector,root,includeRoot,flat);elements=groups.length>1?elements.concat(result):result;continue}reg.combinatorTest.lastIndex=0;if(reg.combinatorTest.test(selector)){var parts,pLength,pCount=0,combinators,cLength,cCount=0,result;parts=selector.split(reg.combinator);pLength=parts.length;combinators=selector.match(reg.combinator)||[""];cLength=combinators.length;while(pCount<pLength){var c,part1,part2;c= _proxy_jslib_handle( _proxy_jslib_handle(combinators, (cCount++), '', 0, 0), 'replace', '', 1, 0)(reg.trim,"");part1=result||peppy.query( _proxy_jslib_handle(parts, (pCount++), '', 0, 0),root,includeRoot,true,flat);part2=peppy.query( _proxy_jslib_handle(parts, (pCount++), '', 0, 0),c==""||c==">"?part1:root,c==""||c==">",true,flat);result=peppy.queryCombinator(part1,part2,c)}elements=groups.length>1?elements.concat(result):result;result=undefined}else{result=peppy.querySelector(selector,root,includeRoot,flat);elements=groups.length>1?elements.concat(result):result}}if(groups.length>1)elements=filter(elements);return( _proxy_jslib_assign('', cache, (cacheKey), '=', (elements.slice(0))))},queryCombinator:function(l,r,c) {var result=[],uids={},proc={},succ={},fail={},combinatorCheck= _proxy_jslib_handle(peppy.simpleSelector.combinator, (c), '', 0, 0);for(var li=0,le;le= _proxy_jslib_handle(l, (li++), '', 0, 0);){le.uid=le.uid||_uid++; _proxy_jslib_assign('', uids, (le.uid), '=', (le))}for(var ri=0,re;re= _proxy_jslib_handle(r, (ri++), '', 0, 0);){re.uid=re.uid||_uid++;if(! _proxy_jslib_handle(proc, (re.uid), '', 0, 0)&&combinatorCheck(re,uids,fail,succ)){ _proxy_jslib_assign('', result, (result.length), '=', (re))} _proxy_jslib_assign('', proc, (re.uid), '=', (re))}return result},querySelector:function(selector,root,includeRoot,flat) {var context,passed=[],count,totalCount,e,first=true,localCache={};context=getContextFromSequenceSelector(selector,root,includeRoot,flat);count=context.length;totalCount=count-1;var tests,recursive;if(/:(not|has)/i.test(selector)){recursive=selector.match(reg.recursive);selector= _proxy_jslib_handle(selector, 'replace', '', 1, 0)(reg.recursive,"")}if(!(tests=selector.match(/:(\w|-)+(\([^\(]+\))*|\[[^\[]+\]/g)))tests=[];if(recursive)tests=tests.concat(recursive);var aTest;while((aTest=tests.pop())!==undefined){var pc= _proxy_jslib_handle(persistCache, (aTest), '', 0, 0),testFuncScope,testFunc,testFuncKey,testFuncArgs=[],isTypeTest=false,isCountTest=false;passed=[];if(pc){testFuncKey=pc[0];testFuncScope=pc[1];testFuncArgs=pc.slice(2);testFunc= _proxy_jslib_handle(testFuncScope, (testFuncKey), '', 0, 0)}else if(!/^:/.test(aTest)){var n=aTest.match(reg.attributeName);var v=aTest.match(reg.attributeValue);testFuncArgs[1]=n[1]||n[0];testFuncArgs[2]=v?v[1]:"";testFuncKey=""+aTest.match(/[~!+*\^$|=]/);testFuncScope=peppy.simpleSelector.attribute;testFunc= _proxy_jslib_handle(testFuncScope, (testFuncKey), '', 0, 0); _proxy_jslib_assign('', persistCache, (aTest), '=', ([testFuncKey,testFuncScope].concat(testFuncArgs)))}else{var pa=aTest.match(reg.pseudoArgs);testFuncArgs[1]=pa?pa[1]:"";testFuncKey=aTest.match(reg.pseudoName)[1];testFuncScope=peppy.simpleSelector.pseudos;if(/nth-(?!.+only)/i.test(aTest)){var a,b,nArg=testFuncArgs[1],nArgPC= _proxy_jslib_handle(persistCache, (nArg), '', 0, 0);if(nArgPC){a=nArgPC[0];b=nArgPC[1]}else{var nParts=nArg.match(reg.nthParts);if(nParts){a=parseInt(nParts[1],10)||0;b=parseInt(nParts[3],10)||0;if(/^\+n|^n/i.test(nArg)){a=1}else if(/^-n/i.test(nArg)){a=-1}testFuncArgs[2]=a;testFuncArgs[3]=b; _proxy_jslib_assign('', persistCache, (nArg), '=', ([a,b]))}}}else if(/^:contains/.test(aTest)){var cArg=testFuncArgs[1];var cArgPC= _proxy_jslib_handle(persistCache, (cArg), '', 0, 0);if(cArgPC){testFuncArgs[1]=cArgPC}else{testFuncArgs[1]= _proxy_jslib_assign('', persistCache, (cArg), '=', (new (RegExp)(cArg)))}}testFunc= _proxy_jslib_handle(testFuncScope, (testFuncKey), '', 0, 0); _proxy_jslib_assign('', persistCache, (aTest), '=', ([testFuncKey,testFuncScope].concat(testFuncArgs)))}isTypeTest=/:(\w|-)+type/i.test(aTest);isCountTest=/^:(nth[^-]|eq|gt|lt|first|last)/i.test(aTest);if(isCountTest)testFuncArgs[3]=totalCount;var cLength=context.length,cCount=cLength-1;while(cCount>-1){e= _proxy_jslib_handle(context, (cCount--), '', 0, 0);if(first){e.peppyCount=cCount+1}var pass=true;testFuncArgs[0]=e;if(isCountTest)testFuncArgs[2]=e.peppyCount;if(!testFunc.apply(testFuncScope,testFuncArgs)){pass=false}if(pass){passed.push(e)}}context=passed;first=false}return passed},simpleSelector:{attribute:{"null":function(e,a,v) {return!!getAttribute(e,a)},"=":function(e,a,v) {return getAttribute(e,a)==v},"~":function(e,a,v) {return getAttribute(e,a).match(new (RegExp)('\\b'+v+'\\b'))},"^":function(e,a,v) {return getAttribute(e,a).indexOf(v)===0},"$":function(e,a,v) {var attr=getAttribute(e,a);return attr.lastIndexOf(v)===attr.length-v.length},"*":function(e,a,v) {return getAttribute(e,a).indexOf(v)!=-1},"|":function(e,a,v) {return getAttribute(e,a).match('^'+v+'-?(('+v+'-)*('+v+'$))*')},"!":function(e,a,v) {return getAttribute(e,a)!==v}},pseudos:{":root":function(e) {return e=== _proxy_jslib_handle(doc, 'getElementsByTagName', '', 1, 0)("html")[0]?true:false},":nth-child":function(e,n,a,b,t) {if(!e.nodeIndex){var node=e.parentNode.firstChild,count=0,last;for(;node;node=node.nextSibling){if(node.nodeType==1){last=node;node.nodeIndex=(count= _proxy_jslib_assign_rval('++', 'count', '', '', (typeof count=='undefined' ? void 0 : count)))}}last.IsLastNode=true;if(count==1)last.IsOnlyChild=true}var position=e.nodeIndex;if(n=="first")return position==1;if(n=="last")return!!e.IsLastNode;if(n=="only")return!!e.IsOnlyChild;return(!a&&!b&&position==n)||((a==0?position==b:a>0?position>=b&&(position-b)%a==0:position<=b&&(position+b)%a==0))},":nth-last-child":function(e,n) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,n,a,b)},":nth-of-type":function(e,n,t) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,n,a,b,t)},":nth-last-of-type":function(e,n,t) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,n,a,b,t)},":first-child":function(e) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,"first")},":last-child":function(e) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,"last")},":first-of-type":function(e,n,t) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,"first",null,null,t)},":last-of-type":function(e,n,t) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,"last",null,null,t)},":only-child":function(e) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,"only")},":only-of-type":function(e,n,t) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,"only",null,null,t)},":empty":function(e) {for(var node=e.firstChild,count=0;node!==null;node=node.nextSibling){if(node.nodeType===1||node.nodeType===3)return false}return true},":not":function(e,s) {return peppy.query(s,e,true,true,true).length===0},":has":function(e,s) {return peppy.query(s,e,true,true,true).length>0},":selected":function(e) {return e.selected},":hidden":function(e) {return e.type==="hidden"||e.style.display==="none"},":visible":function(e) {return e.type!=="hidden"&&e.style.display!=="none"},":input":function(e) {return  _proxy_jslib_handle(e.nodeName, 'search', '', 1, 0)(/input|select|textarea|button/i)!==-1},":radio":function(e) {return e.type==="radio"},":checkbox":function(e) {return e.type==="checkbox"},":text":function(e) {return e.type==="text"},":header":function(e) {return  _proxy_jslib_handle(e.nodeName, 'search', '', 1, 0)(/h\d/i)!==-1},":enabled":function(e) {return!e.disabled&&e.type!=="hidden"},":disabled":function(e) {return e.disabled},":checked":function(e) {return e.checked},":contains":function(e,s) {return s.test((e.textContent||e.innerText||""))},":parent":function(e) {return!!e.firstChild},":odd":function(e) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,"2n+2",2,2)},":even":function(e) {return  _proxy_jslib_handle(this, (":nth-child"), '', 1, 0)(e,"2n+1",2,1)},":nth":function(e,s,i) {return s==i},":eq":function(e,s,i) {return s==i},":gt":function(e,s,i) {return i>s},":lt":function(e,s,i) {return i<s},":first":function(e,s,i) {return i==0},":last":function(e,s,i,end) {return i==end}},combinator:{"":function(r,u,f,s) {var rUID=r.uid;while((r=r.parentNode)!==null&&! _proxy_jslib_handle(f, (r.uid), '', 0, 0)){if(!! _proxy_jslib_handle(u, (r.uid), '', 0, 0)||!! _proxy_jslib_handle(s, (r.uid), '', 0, 0)){return( _proxy_jslib_assign('', s, (rUID), '=', (true)))}}return( _proxy_jslib_assign('', f, (rUID), '=', (false)))},">":function(r,u,f,s) {return r.parentNode&& _proxy_jslib_handle(u, (r.parentNode.uid), '', 0, 0)},"+":function(r,u,f,s) {while((r=r.previousSibling)!==null&&! _proxy_jslib_handle(f, (r.uid), '', 0, 0)){if(r.nodeType===1)return r.uid in u}return false},"~":function(r,u,f,s) {var rUID=r.uid;while((r=r.previousSibling)!==null&&! _proxy_jslib_handle(f, (r.uid), '', 0, 0)){if(!! _proxy_jslib_handle(u, (r.uid), '', 0, 0)||!! _proxy_jslib_handle(s, (r.uid), '', 0, 0)){return( _proxy_jslib_assign('', s, (rUID), '=', (true)))}}return( _proxy_jslib_assign('', f, (rUID), '=', (false)))}}}};if(doc.querySelectorAll){(function() {var oldpeppy=peppy.query;peppy.query=function(sel,context) {context=context||doc;if(context===doc){try{return context.querySelectorAll(sel)}catch(e){}}return oldpeppy.apply(oldpeppy,arrayIt(arguments))}})()}else{var aEvent=doc.addEventListener||doc.attachEvent;function clearCache() {cache={}}aEvent("DOMAttrModified",clearCache,false);aEvent("DOMNodeInserted",clearCache,false);aEvent("DOMNodeRemoved",clearCache,false)}LOTCC.query=peppy.query})();LOTCC.addTrigger({act: ["Sign In"], location: "ebuddy\.com/index\.php", element: "{{input[name$=submit]}}", event: "click"});LOTCC.addTrigger({int: ["download-iphone"], location: "ebuddy\.com/iphone/index\.php", element: "{{a.downloadLink}}", event: "click"});LOTCC.bindTriggers();LOTCC.client=187;
 ;
_proxy_jslib_flush_write_buffers() ;