(function(s){var m="",n="",t=false;function p(){var a=[cm_JSFCoreCookieName,"cmRS","cmTPSet","CoreAt","CMAVID","CoreM_State","CoreM_Ses"],c=cm_ClientID.split(";"),b;for(b=0;b<c.length;b++){a.push(cmJSFCreateCombinedSessionCookieName(c[b]))}for(b=0;b<a.length;b++){CC(a[b],cm_JSFPCookieDomain);CC(a[b])}}function q(b,a){var c=cI(b);return c&&c.toUpperCase()==a}function o(d){var b=0,a=0,c=d.length;for(;b<c;b++){a=~~(31*a+d.charCodeAt(b))}return Math.abs(a)}function u(a,b){return a?a:b?b:""}function r(){var e,c,g,b=screen,h=navigator,a=h.mimeTypes,f=h.plugins,d=""+b.width+b.height+b.availWidth+b.availHeight+b.colorDepth+b.pixelDepth+u(h.language,u(h.browserLanguage));if(a){for(g=0,c=a.length;g<c;g++){d+=u(a[g].type)}}if(f){for(g=0,c=f.length;g<c;g++){e=f[g];d+=u(e.name)+u(e.version)+u(e.description)+u(e.filename)}}return d}function l(){return n=="D"}s.cmSetCookieSetting=function(a){n=a;if(l()){p()}};s.cmCookiesDisabled=l;s.cmSessionCookiesOnly=function(){return n=="S"};s.cmSetOptOut=function(a){m=a};s.cmOptedOut=function(){return((m=="Y")||cI("CMDisabled")||q("CMOptout","OPT_OUT")||q("CMOptOut","OPT_OUT")||q("ID","OPT_OUT"))};s.cmAnonymous=function(){return((m=="A")||q("CMOptout","ANONYMOUS")||q("CMOptOut","ANONYMOUS"))};s.cmAutoAddTP=function(){return Math.random()<u(s.cm_TPThreshold,0.2)};s.cmSetIT=function(a){t=a};s.cmIT=function(){if(t){return"it"+o(r())}else{return null}}}(window));var cmUtils=(function(){return{console:{log:function(b){if(typeof console!=="undefined"){console.log(b)}},error:function(b){if(typeof console!=="undefined"){console.error(b)}}},string:{trim:function(b){if(typeof b==="string"){if(String.prototype.trim){return b.trim()}else{return b.replace(/^\s+|\s+$/g,"")}}return b}}}}());function cmForEach(f,h){if(f){var e,g=f.length;for(e=0;e<g;e++){if(h(f[e])){return true}}}return false}function cmAppendQueryParameters(f,k){var i=f.split("#"),g=[],h;cmForEach(k,function(a){g.push(a.join("="))});h=g.join("&");if(h){i[0]+=((i[0].indexOf("?")>-1)?"&":"?")+h}return i.join("#")}function cmAppendQueryParameter(e,f,h){var g=[f];if(h){g.push(h)}return cmAppendQueryParameters(e,[g])}if(typeof CM_DDX==="undefined"){CM_DDX={domReadyFired:false,headScripts:true,dispatcherLoadRequested:false,firstPassFunctionBinding:false,BAD_PAGE_ID_ELAPSED_TIMEOUT:5000,version:-1,standalone:false,test:{syndicate:true,testCounter:"",doTest:false,newWin:false,process:function(){var g=CM_DDX.gup("tms.test");CM_DDX.test.newWin=CM_DDX.gup("tms.mWin")==="y";CM_DDX.test.doTest=CM_DDX.gup("tms.doTest")==="y";if(CM_DDX.test.doTest){var h=CM_DDX.gup("tms.syndicate");if(h===null){h="n"}if(g===null){g=""}h=h.toLowerCase();h=(h==="n"||h==="no"||h==="false")?"N":"Y";CM_DDX.test.testCounter=(g==="")?g:((g*1)+"");CM_DDX.test.syndicate=(h==="Y");CB("ddx.test.info",g+"-"+h+"-"+CM_DDX.test.doTest+"-"+CM_DDX.test.newWin)}else{var e=cI("ddx.test.info");if(e){var f=e.split("-");CM_DDX.test.testCounter=f[0];CM_DDX.test.syndicate=(f[1]==="Y");CM_DDX.test.doTest=(f[2]==="true");CM_DDX.test.newWin=(f.length===4&&f[3]==="true")}}}},partner:{},invokeFunctionWhenAvailable:function(b){if(CM_DDX.firstPassFunctionBinding===false){setTimeout(function(){CM_DDX.invokeFunctionWhenAvailable(b)},5)}else{if(CM_DDX.version!==0&&typeof(__$dispatcher)==="undefined"){setTimeout(function(){CM_DDX.invokeFunctionWhenAvailable(b)},CM_DDX.BAD_PAGE_ID_ELAPSED_TIMEOUT);return}if(CM_DDX.version!==0){b()}}},gup:function(g){g=g.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var h="[\\?&]"+g+"=([^&#]*)";var e=new RegExp(h);var f=e.exec(window.location.href);return(f===null)?null:decodeURIComponent(f[1].replace(/\+/g," "))},privacy:{isDoNotTrackEnabled:function(c){var d=CM_DDX.privacy.getDoNotTrack(c);if(d==false){d=(cI("CM_DDX","pdnt0","false")=="true")?true:false}return d},setDoNotTrack:function(c,d){CM_DDX.setSubCookie("CM_DDX","pdnt"+c,d,365)},getDoNotTrack:function(b){return(cI("CM_DDX","pdnt"+b,"false")=="true")?true:false}},setSubCookie:function(f,g,h,k,i){cmSetSubCookie(f,g,h,new Date(new Date().getTime()+(k*86400000)).toGMTString(),i)}};if(!cm_ClientID){var cm_ClientID="99999999"}if(!cm_HOST){var cm_HOST="testdata.cn.coremetrics.com/cm?"}if(!cmMarketing){var cmMarketing={}}cmMarketing.COOKIE_NAME="CoreMc";cmMarketing.INSTANCE=null;if(!cm_McClientID){var cm_McClientID=cm_ClientID}if(!cm_MC_LIB_HOST){var cm_MC_LIB_HOST="libs.cn.coremetrics.com"}if(!cm_MC_RULES_HOST){var cm_MC_RULES_HOST="mktgcdn.cn.coremetrics.com"}if(!cm_MC_USER_DETAILS_HOST){var cm_MC_USER_DETAILS_HOST="mcdata.cn.coremetrics.com"}if(!cm_MC_APP_SERVER_HOST){var cm_MC_APP_SERVER_HOST="mc.cn.coremetrics.com"}if(!cm_DDX_CDN_BASE_URL){var cm_DDX_CDN_BASE_URL="tmscdn.cn.coremetrics.com/tms"}if(!cm_CLIENT_CONFIG_HOST){var cm_CLIENT_CONFIG_HOST="libs.cn.coremetrics.com/configs"}if(!cm_ClientTS){var cm_ClientTS=new Date().getTime()}if(!cm_TrackLink){var cm_TrackLink="A"}if(!cm_NewLinkTracker){var cm_NewLinkTracker=false}if(!cm_LinkClickDelay){var cm_LinkClickDelay=false}if(!cm_LinkClickDelayInterval){var cm_LinkClickDelayInterval=500}if(!cm_DelayHandlerReg){var cm_DelayHandlerReg=""}if(!cm_SkipHandlerReg){var cm_SkipHandlerReg=""}if(!cm_TrackImpressions){var cm_TrackImpressions="RSCM"}if(!cm_SecureTags||cm_SecureTags==null){var cm_SecureTags="|2|3|"}if(!cm_DownloadExtensions){var cm_DownloadExtensions=null}if(!cm_UseUTF8){var cm_UseUTF8=true}if(!cm_FormPageID){var cm_FormPageID=false}if(cm_UseCookie==null){var cm_UseCookie=false}if(!cm_TimeoutSecs){var cm_TimeoutSecs=15}if(!cm_UseDOMScriptLoad){var cm_UseDOMScriptLoad=true}if(!cm_OffsiteImpressionsEnabled){var cm_OffsiteImpressionsEnabled=false}if(!cm_AvidHost){var cm_AvidHost="data.cmcore.com/cookie-id.js?fn=cmSetAvid"}var cm_AvidLoadTimedOut=false;if(!cm_JSFEnabled){var cm_JSFEnabled=false}if(!cm_JSFPCookieDomain){var cm_JSFPCookieDomain=null}if(!cm_JSFTrackClients){var cm_JSFTrackClients=true}if(!cm_JSFPCookieMigrate){var cm_JSFPCookieMigrate=false}if(!cm_JSFPForceMigrateCookies){var cm_JSFPForceMigrateCookies=false}if(!cm_JSFPCookieMigrateVisitorID){var cm_JSFPCookieMigrateVisitorID="cm_mc_uid"}if(!cm_JSFPCookieMigrateSessionID){var cm_JSFPCookieMigrateSessionID="cm_mc_sid"}if(!cm_JSFPMigrationDomainWhitelist){var cm_JSFPMigrationDomainWhitelist=null}if(!cm_JSFPMigrationDomainBlacklist){var cm_JSFPMigrationDomainBlacklist=null}if(!cm_JSFPMigrationPathWhitelist){var cm_JSFPMigrationPathWhitelist=null}if(!cm_JSFPMigrationOtherCookies){var cm_JSFPMigrationOtherCookies=null}if(!cm_JSFPMigrationOtherCookiesExpireTimes){var cm_JSFPMigrationOtherCookiesExpireTimes={}}if(!cm_JSFSessionType){var cm_JSFSessionType="I"}if(!cm_JSFSessionTimeout){var cm_JSFSessionTimeout=1800}if(!cm_JSFCoreCookieName){var cm_JSFCoreCookieName="CoreID6"}if(!cm_JSFCoreCookieExpireSeconds){var cm_JSFCoreCookieExpireSeconds=473040000}if(!cm_JSFEAMasterIDSessionCookie){var cm_JSFEAMasterIDSessionCookie=false}if(!cm_AttributeDelimiter){var cm_AttributeDelimiter="-_-"}if(!cm_TealeafTagAttempts){var cm_TealeafTagAttempts=3}if(!cmUA){var cmUA={MSIE:2083}}if(!cmDefaultLimit){var cmDefaultLimit=8197}if(cGQ==null){var cGQ=true}if(!cGO){var cGO=1024}if(!cGR){var cGR=600000}if(!encodeURIComponent){var encodeURIComponent=null}var _$cV1=null;var cG8;var cG9;var cG6=document;var cGT;var cG7=new _cmt();cG6.cmTagCtl=cG7;var CI=cmStartTagSet;var CJ=cmSendTagSet;var cmIndex=0;var cG0=["vn1","vn2","st","pi","rs","ec","rf","ul"];var cGA=null;var cmValidFlag_SessionContinue=1;var cmValidFlag_NewSession=2;var cmValidFlag_NewVisitor=4;var cmValidFlag_SessionReset=32;var cmCore_JSFParamEnabled="cjen";var cmCore_JSFParamUserID="cjuid";var cmCore_JSFParamSessionID="cjsid";var cmCore_JSFParamValidFlag="cjvf";if(!cG4){var cG4=5000}if(!cG5){var cG5=200}var cG2={};var cG3={};var cGM=navigator.appVersion;var cGN=navigator.userAgent;var cGS=cGN.indexOf("Opera")>=0;var cGU=cGN.indexOf("Safari")>=0;var cmT3=-1;var cGC="";var cGD="";var cGE="";var cGF="";var cGG="";var cGH="";var cmSubmitFlag=false;var cmFormC1="submitbuttonreset";var cmFormC2="textpasswordtextarea";var cmFormC3="select-oneselect-multiple";var cGI="";var cGJ="";var cGK="";var chost=null;var cci=null;var _cm_CMRules={};var _cm_isNew=true,_cm_NRSet=false;if(!cm_PartnerDataClientIDs){var cm_PartnerDataClientIDs=""}var cm_Avid;var cmCookieExpDate;var cm_AvidLoadTimer;var cm_IOEnabled=false;var cm_ATEnabled=false;var cm_MCEnabled=false;(function(){CI();var A=new Date();var w=0;if(A.getFullYear){w=A.getFullYear()}else{w=A.getYear();if(w<1900){w+=1900}}A.setYear(w+15);cmCookieExpDate=A.toGMTString();if(cm_UseCookie){var v=cI("cmRS","pi","");chost=cm_HOST;cm_HOST=cI("cmRS","ho",chost);cci=cm_ClientID;cm_ClientID=cI("cmRS","ci",cci);var D=cI("cmRS","t3","");if(D!=""){cGA=D}var y=cI("cmRS","cjen","");if(y!=""){cm_JSFEnabled=true}var B=cI("cmRS","t1","");if(B!=""&&(!cGA||cm_ClientTS-cGA<cGR)){cmAddShared("st",B);var t=cI("cmRS","ul","");var r=cI("cmRS","rf","");var s=cI("cmRS","hr","");if(s!=""){var E=cI("cmRS","lti","");if(cm_ClientTS-E<cGR){var q=cI("cmRS","ln","");cM(B,E,q,s,true,v,t,r)}}var x=cI("cmRS","ac","");var z=cI("cmRS","fd","");if((x!="")||(z!="")){var E=cI("cmRS","fti","");if(cm_ClientTS-E<cGR){var C=cI("cmRS","fn","");var u=cI("cmRS","fu","");cL(B,E,C,x,u,z,true,v,t,r)}}}CC("cmRS")}if(cmIsBrowserCertified()){cmAddNewEvent(document,"DOMContentLoaded",cmOnDomReady,"readystatechange",cmCheckIEReady);cmAddNewEvent(window,"load",cY);cmAddNewEvent(window,"unload",cZ);if(cm_DelayHandlerReg.indexOf("L")==-1){window.cX("main")}if(cm_DelayHandlerReg.indexOf("F")==-1){cU()}}CJ(1)}());var _cmPartnerUtils={AT_TagQueue:[],AT_PartnerCallQueue:[],AT_RulesSet:false};var _cmMc={readyToCall:{},mcTagQueue:[],callPending:{}};CM_DDX.test.process()}function cmIsBrowserCertified(){return(cF(4)||CD(5)||cGS||cGU)}function cmRetrieveUserID(d){if(_$cV1!=null){d(_$cV1)}else{if(cm_JSFEnabled){_$cV1=cmJSFGetUserId();d(_$cV1)}else{var c="eluminate"+Math.floor((Math.random()*10000)+1);window[c]=function(a){if(typeof a==="string"){var b=a.indexOf("&ci=");if(b>=0){a=a.substring(0,b)}}_$cV1=a;d(_$cV1)};_cmPartnerUtils.loadScript(C8()+"//"+cm_Production_HOST+"/cookie-id.js?fn="+c)}}}function cmLoad(){var t,l=C8()+"//",u,q,r,m,p,o,s=_cmPartnerUtils.loadScript;if(cm_OffsiteImpressionsEnabled){cm_Avid=cI("CMAVID");if(cm_Avid==null){s(l+cm_AvidHost);cm_AvidLoadTimer=setTimeout(function(){cm_AvidLoadTimedOut=true},2000)}}if(cm_ATEnabled&&!cmOptedOut()&&!cmAnonymous()&&typeof(cG6._cm_CMRulesLoaded)=="undefined"){u=cm_ClientID.split(";");m=l+cm_Production_HOST+"/at/rules_";p=((cI("CorePartnerMode")=="TEST")?"test":"")+".js";for(r=0;r<u.length;r++){q=u[r].split("|")[0];if(cm_PartnerDataClientIDs.indexOf(q)!=-1){s(m+q+p)}}cG6._cm_CMRulesLoaded=1}if(cm_MCEnabled){s(l+cm_MC_LIB_HOST+"/mc.js");try{if((_cmMc.getIframeMaxDepth("IMODGUIDIDENTIFIER",5)!=null)&&(window.name!=null)&&(window.name.length>0)){t=l+cm_MC_APP_SERVER_HOST+"/mcwebapp/js/";s(t+"easyXDM.js");s(t+"imodWebDesigner.js");s(t+"json2.js")}}catch(n){}}if(typeof($f126)==="undefined"&&!CM_DDX.dispatcherLoadRequested){CM_DDX.dispatcherLoadRequested=true;$cm_client_id=CM_DDX.cVA;o=(CM_DDX.version>0)?"-v"+CM_DDX.version:"";if(CM_DDX.version>=2){s(l+cm_DDX_CDN_BASE_URL+"/dispatcher"+o+".js")}if(CM_DDX.version>=3&&!cm_ATEnabled){_cmPartnerUtils.AT_RulesSet=true}}}_cmMc.getWebDesignerDependentScriptUrl=function(){var b=unica_imod.getWebDesignerScriptBaseUrl();if(b!=null){return b+"easyXDM.js"}else{return null}};_cmMc.getIframeMaxDepth=function(g,i){var k=parent;var h=null;var l=1;while(h==null&&k!=null&&(i==null||l<=i)){h=k.frames[g];var m=k;k=k.parent;if(k==m){k=null}l++}return h};var cI=cI;var cE=cE;function cmStartTagSet(){if(cG8){return false}cG8=[];cG8[0]=new _cm();cG9=1;return true}function cmAddShared(d,c){if(cG8){cG8[0][d]=c}}function cmSendTagSet(){var f;var h=cG8;var e=null,g=0;for(g=0;g<h.length;g++){if(typeof h[g]._$cmlch==="function"){e=h[g];break}}while((f=C7(arguments[0]))!=null){if(e){c9.call(e,f,h[0].ci)}else{c9(f,h[0].ci)}}cG8=null}function _cmCQ(d,f,e){this.pl=d;this.hosts=f.split(",");if(e){this.qs=e}this.cM5=CR}function CR(){var a=arguments;var d=a[0]?a[0]:this.hosts[0];return this.pl+"//"+d+(this.qs?this.qs:"")}function _cmt(){this.cM0={};this.uls={};this.rfs={};this.cTI=[];this.cPE=0;this.normalizeURL=c2;this.getPageID=c1;this.getPluginPageID=cmGetPluginPageID}function cmGetPluginPageID(l){var m="",o=cm_ClientID.split(";"),n=l.split("|")[0],h=l.split("|")[1];for(var k=0;k<o.length;k++){if(n==o[k].split("|")[0]){if(h){h=h.split(":");for(var i=0;i<h.length;i++){if(o[k].split("|")[1]&&(o[k].split("|")[1].toUpperCase().indexOf(h[i].toUpperCase())>-1)){m=cm_ClientID;break}}break}else{m=cm_ClientID;break}}}return this.getPageID(m)}function c1(d){var c=cG7.cM0[d];return c?c:""}function CS(c){var d=cG7.uls[c];if(!d){d=window.location.href}return d?d:""}function CT(c){var d=cG7.rfs[c];if(!d){d=cG6.referrer}return d?d:""}function CP(g){var f=cGT;if(!f){f=cGT=cG7.normalizeURL(window.location.href,false)}var h=g.indexOf("#");if(h>=0&&h<=f.length){var a=f.indexOf("#");if(a<0){a=f.length}if(g.substring(0,h)==f.substring(0,a)){return g.substring(h)}}return g}function c2(d,e){if(e){d=CP(d);var f=window.location.protocol+"//"+window.location.host;if(d.indexOf(f)==0){d=d.substring(f.length)}}return cD(d)}function c4(){for(var b in cmUA){if(cGM.indexOf(b)!=-1){return cmUA[b]}}return cmDefaultLimit}function C0(b){if(cG7){if(cG7.cTI&&cG7.cTI[b]){cG7.cTI[b].cmLD=true;if(cG7.cTI[b].ci){cmJSFSetValidFlagValue(cmValidFlag_SessionContinue,false,cG7.cTI[b].ci);cmJSFSetSessionCookies(false,cG7.cTI[b].ci)}}cG7.cPE--;if(cG7.onResponse){cG7.onResponse(b)}}window.dontExit=false}function CN(c){if(cG7){cG7.cPE--;var d=null;if(cG7.cTI&&cG7.cTI[c]){d=cG7.cTI[c];d.cmLD=true}if(cG7.onError&&(!d||!d.cmTO)){cG7.onError(3,d)}}}function c6(d,c){if(cG3){cG3[d]=true}C0(c)}function CO(c){if(cG7&&cG7.cTI&&cG7.cTI[c]&&!(cG7.cTI[c].cmLD)){var d=cG7.cTI[c];d.cmTO=d.src;if(cG7.onError){cG7.onError(4,d.cmTO)}}}function c8(c){if(!cG3||cG3[c]){return true}var d=new Date();return(d.getTime()-cG2[c])>cG4}function CV(l,o,i){if((CM_DDX.version>=3)&&CM_DDX.standalone){return}i=i||cm_ClientID;var p=function(b){var a=false;return function(){if(!a){if(typeof b==="function"){b()}a=true}}}(this._$cmlch);if((!cG2[l]||c8(l))&&(cm_OffsiteImpressionsEnabled==false||cm_Avid!=null||cm_AvidLoadTimedOut)){var q=new Image();var n=cmIndex;cG7.cTI[cmIndex++]=q;if(!cG2[l]){var m=new Date();cG2[l]=m.getTime();q.onload=function(){c6(l,n);p()}}else{q.onload=function(){C0(n);p()}}q.onerror=function(){CN(n);p()};if(cm_OffsiteImpressionsEnabled&&(cm_Avid!=null)&&(cm_Avid!="none")){o+="&avid="+cm_Avid}var k=c4();if(o.length>k){o=o.substring(0,k-6)+"&err=O"}if(cG7.onTagSent){cG7.onTagSent(o,n)}q.src=o;q.ci=i;setTimeout(function(){CO(n);p()},cm_TimeoutSecs*1000)}else{setTimeout(function(){CV(l,o,i)},cG5)}}function c9(f,h){if(cmOptedOut()){return}for(var g=0;g<f.hosts.length;g++){var e=f.cM5(f.hosts[g]);cG7.cPE++;CV.call(this,f.hosts[g],e,h)}}function cC(){var d=null;if(!this.ul){if(this.tid=="8"||(this.tid=="9"||this.tid=="10")){this.ul=window.location.protocol+"//"+window.location.hostname}else{this.ul=window.location.href}}if(cG8){cG8[cG9++]=this}else{var c=this.getImgSrc(arguments[0],1);c9.call(this,c,this.ci);d=c}return d}function cmLogError(b){}function C4(i,h,k){if(!k){if(!i.rf){if(!document.referrer){h.rf=""}else{h.rf=document.referrer}}else{if(i!=h){h.rf=i.rf}}if(!i.ul||i.ul==""||i.ul=="(none)"){h.ul=window.location.href}else{if(i!=h){h.ul=i.ul}}var f=cG7.normalizeURL(h.ul,false);var g=cG7.normalizeURL(h.rf,false);if(f!=""){h.ul=f}if(g!=""){h.rf=g}}}function C6(e,x,u){var t="";if(e.tid){t+="tid="+e.tid}var A=(e.tid==1||(e.pc&&e.pc.charAt(0)=="Y"));for(var s in e){if(s=="qs"||s=="tid"||s=="topline"){continue}if(e[s]!==0&&(!e[s]||e[s]==""||typeof(e[s])==="function")){continue}if(x&&x[s]&&x[s]==e[s]){continue}if(t!=""){t+="&"}t+=cD(s)+"="+cE(cD(e[s]))}if(!e.rs&&e.ci){if(e.pi&&A){cG7.cM0[e.ci]=e.pi}if(e.ul){cG7.uls[e.ci]=e.ul}if(e.rf){cG7.rfs[e.ci]=e.rf}}if(x&&cm_SecureTags.indexOf("|"+e.tid+"|")!=-1){x.protocol="https:"}if(cm_JSFEnabled&&!u){cmJSFSetSessionCookies(false,e.ci);t+=(t!=""?"&":"")+cmCore_JSFParamEnabled+"=1";var q=cmJSFGetUserId();t+="&"+cmCore_JSFParamUserID+"="+(q!=null?q:"");t+="&"+cmCore_JSFParamSessionID+"="+cmJSFGetSessionValue(e.ci);t+="&"+cmCore_JSFParamValidFlag+"="+cmJSFGetValidFlagValue(e.ci)}if(cm_PartnerDataClientIDs&&e.tid){try{var p={};for(var r in e){var z=e[r];if(typeof(z)!="function"&&typeof(z)!="undefined"){if(r=="ci"){z=z.split(";");for(var v=0;v<z.length;v++){z[v]=z[v].split("|")[0]}z=z.join(";")}}p[r]=z}if(x){for(var r in x){var z=x[r];if(typeof(z)!="function"&&typeof(z)!="undefined"){if(r=="ci"){z=z.split(";");for(var v=0;v<z.length;v++){z[v]=z[v].split("|")[0]}z=z.join(";")}}p[r]=z}}p.calculateTopLineAndReturnSegments=e.calculateTopLineAndReturnSegments;if(((cm_ATEnabled&&_cmPartnerUtils.AT_RulesSet)||CM_DDX.version>=3)&&_cm_NRSet){_cmPartnerUtils.calculateAndSendATData(p)}else{_cmPartnerUtils.AT_TagQueue.push(p)}}catch(w){}}var y=_cmPartnerUtils.copyTag(e,x);if(y.tid){_cmMc.mcTagQueue.push(y);if(cmMarketing.INSTANCE!==null){cmMarketing.INSTANCE.tagCallTriggered()}else{_cmMc.callPending.tagCallTriggered=true}}return t}_cmPartnerUtils.copyTag=function(g,h){var k={};for(var f in g){var i=g[f];if(typeof(i)!="function"&&typeof(i)!="undefined"){k[f]=i}}if(h){for(var f in h){var i=h[f];if(typeof(i)!="function"&&typeof(i)!="undefined"){k[f]=i}}}k.calculateTopLineAndReturnSegments=g.calculateTopLineAndReturnSegments;return k};function C8(c){var d=location.protocol;if(c&&c.protocol){d=c.protocol}if(d!="http:"&&d!="https:"){d="http:"}return d}function c0(){var h=arguments;C4(this,this,h[0]);var f={};var a=C6(this,f);var g=new _cmCQ(C8(f),cm_HOST,a);return h[1]?g:g.cM5()}function C7(){var u,l,y,a,v,x,i,w,s,h,t;if(!cG8||cG8.length<2){return null}u=cG8[0];l=cG8[1];u.ci=l.ci;for(s=1;s<cG8.length;s++){if(u.ci.indexOf(cG8[s].ci)==-1){u.ci+=";"+cG8[s].ci}if(cm_SecureTags.indexOf("|"+cG8[s].tid+"|")!=-1){u.protocol="https:"}}for(s=0;s<cG0.length;s++){y=cG0[s];if(!u[y]){u[y]=l[y]}}a=arguments;C4(l,u,a[0]);v=C8(u);t=new _cmCQ(v,cm_HOST);t.qs=C6(u);x=c4();i=0;for(var p=0;p<t.hosts.length;p++){w=v.length+t.hosts[p].length+t.qs.length;if(w>i){i=w}}for(s=1;s<cG8.length;s++){h=C6(cG8[s],u,true);if(s>1&&i+h.length+1>x){for(j=1;j<cG8.length-s+1;j++){cG8[j]=cG8[j+s-1]}cG8.length=cG8.length-s+1;break}i+=h.length+1;t.qs+="&"+h}if(s==cG8.length){cG8=null}return t}function _cm(){var e,a=arguments;this.ci=cm_ClientID;for(e=0;e<a.length;e++){this[a[e]]=a[++e]}this.write=cC;this.getImgSrc=c0;this.writeImg=cC;this.st=cm_ClientTS;this.vn1="4.18.106";if(cF(5.5)||!cF(0)){var f=(cm_UseUTF8&&encodeURIComponent)||cGU?"utf-8":cG6.charset;if(!f){f=cG6.defaultCharset}if(!f){f=cG6.characterSet}this.ec=f}this.topline=[]}function cD(d){var c="";d=c+(!d&&d!==0?"":d);return d.split("'").join(c).split('"').join(c).split("\r").join(c).split("\n").join(c)}function cE(g){var h=0,e;while(g.charAt(h)==" "&&h!=g.length){h++}e=g.length-1;while(g.charAt(e)==" "&&e!=0){e--}g=g.substring(h,e+1);if(cm_UseUTF8&&encodeURIComponent){g=encodeURIComponent(g)}else{g=preEscape(g);g=escape(g);var f=new RegExp("%25u00","g");g=g.replace(f,"%u00")}g=g.split("+").join("%2B");return g}function preEscape(f){for(var d=160;d<256;d++){var e=new RegExp(String.fromCharCode(d),"g");f=f.replace(e,"%u00"+d.toString(16))}return f}function cF(d){var c=cGM.indexOf("MSIE");if(c!=-1){return(parseFloat(cGM.substring(c+5))>=d)}return false}function CD(b){return(cGN.indexOf("Gecko")!=-1&&parseInt(cGM)>=b)}function cI(e,f,h){var g=cJ(e,cG6.cookie,";");if(f&&g){g=cJ(f,g,"&")}if(g){g=unescape(g)}else{if(h){g=h}}return g}function CL(){var i,g,c,k,h=0;g=cG6.cookie;if(g){i=g.split(";");h=i.length;for(k=0;k<i.length;k++){c=i[k].split("=");if(c.length<2||c[1]==null||c[1]==""){h--}}}return h}function CB(i,l,p,m){if(cmCookiesDisabled()){return true}var n,k,o,q=cG6.cookie;n=null;k=l.length+1;if(!cI(i)){k+=i.length}if(k>4096){n=1}else{if(q){if(CL()>=50){n=2}}}if(n){if(cG7.onError){cG7.onError(n,name)}return false}o=i+"="+l+"; path=/";if(m){o+="; domain="+m}if(p&&!cmSessionCookiesOnly()){o+="; expires="+p}cG6.cookie=o;return true}function cmSetSubCookie(n,p,q,x,t){var u=cI(n);var r;if(!u){r=p+"="+q}else{var o="&";var s=p+"=";var w=u.indexOf(s);if(w>=0){if(w>0&&u.charAt(w-1)!=o){w=u.indexOf(o+s);if(w>=0){w++}}}if(w>=0){var y=w+p.length+1;var v=u.indexOf(o,y);if(v<0){v=u.length}r=u.substring(0,y)+q+u.substring(v)}else{r=u+o+p+"="+q}}CB(n,r,x,t)}function CC(f,g){var e=cI(f);if(e!=null){var h=new Date();h.setYear(1973);var e=f+"=; path=/; expires="+h.toGMTString();if(g){e+="; domain="+g}cG6.cookie=e}return e}function cJ(k,l,q){var m,o,p,i,n=null;m=k+"=";o=q+" ";p=l.indexOf(o+m);if(p==-1){o=q;p=l.indexOf(o+m)}if(p==-1){p=l.indexOf(m);if(p!=0){return null}}else{p+=o.length}i=l.indexOf(o,p);if(i==-1){i=l.length}return l.substring(p+m.length,i)}function CG(f){if(!f){f=window.event}var e=[f.currentTarget,f.target,f.srcElement];for(var d=0;d<e.length;d++){if(e[d]){return e[d]}}}function CU(i,h,k,o,l){var m,n;i.pi=k?k:c1(h);if(cGQ){if(o||l){i.ul=o?o:"";i.rf=l?l:""}else{m=CS(h);n=CT(h);if(i.pi==""||m.indexOf("cm_")>0||(n!=""&&n.indexOf(window.location.protocol+"//"+window.location.host)!=0)){i.ul=m;i.rf=n}}}}function cL(s,u,w,r,y,q,n,t,o,x,v){var p=new _cm("tid","10");CU(p,p.ci,t,o,x);p.st=s;p.ti=u;p.fo=w;p.ac=r;p.hr=y;p.fi=q;p._$cmlch=v;if(n){p.rs="Y"}p.write(1)}function cM(t,A,z,y,o,u,p,w,v){var q=new _cm("tid","8");if(typeof(encodeURI)==="function"){y=encodeURI(y).replace(/%25/g,"%")}CU(q,q.ci,u,p,w);q.st=t;q.ti=A;q.nm=z;q.hr=y;q._$cmlch=v;var s=y.indexOf("cm_cr=");var x=y.indexOf("cm_me=");if(s>-1){var r=y.indexOf("&",s);if(r==-1){q.cm_cr=y.substring(s+6)}else{q.cm_cr=y.substring(s+6,r)}}if(x>-1){var r=y.indexOf("&",x);if(r==-1){q.cm_me=y.substring(x+6)}else{q.cm_me=y.substring(x+6,r)}}if(o){q.rs="Y"}q.write(1)}function CM(i){var g,a,k,h;if((g=i.indexOf("?"))==-1){g=i.lastIndexOf("/")}if(g!=-1){a=i.indexOf("#",g);if(a==-1){a=i.length}while(g!=-1&&g<a){g=i.indexOf("cm_",g);if(g!=-1){k=i.indexOf("&",g);if(k==-1){k=a}h=i.indexOf("=",g);if(h!=-1&&h<k){this[i.substring(g,h)]=i.substring(h+1,k)}g=k}}}}function CK(v,r,s,w,t){var n,o,u,m,q,p;if((r||s||w||t)&&v){n=new _cm("tid","9");o=new CM(CP(v));if(r){u=n.cm_sp_o=o.cm_sp_o;if(!u){u=n.cm_sp=o.cm_sp}}if(s){m=n.cm_re_o=o.cm_re_o;if(!m){m=n.cm_re=o.cm_re}}if(w){if(v.indexOf("#")==-1){q=n.cm_cr=o.cm_cr}}if(t){p=n.cm_me=o.cm_me}if(u||m||q||p){n.pi=c1(n.ci);n.st=cm_ClientTS;if(typeof cmCheckIgnoreImpression=="function"){if(cmCheckIgnoreImpression(u,m,q,p)){n.write(1)}}else{n.write(1)}}}}function cmFormBlurRecord(b){if(b.cmFormEleMemValue!=cmFormElementValue(b)&&b.cmFormEleMemValue!=null){cmFormReportInteraction(b)}b.form.cmEleValue=-1}function cmFormElementOnclickEvent(){try{var d;var e=cmFormElementValue(this);if((cmFormC1.indexOf(this.type)>=0)||(this.cmFormEleMemValue!=e)){if(this.type=="radio"){for(d=0;d<this.form.elements.length;d++){if(this.form.elements[d].cM2==this.cM2){this.form.elements[d].cmFormEleMemValue=null}}}this.cmFormEleMemValue=e;cmFormReportInteraction(this)}}catch(f){cmLogError(f)}}function cmFormElementOnfocusEvent(){try{this.form.cmEleValue=this.cM2;this.cmFormEleMemValue=cmFormElementValue(this)}catch(b){cmLogError(b)}}function cmFormElementOnblurEvent(){try{cmFormBlurRecord(this)}catch(b){cmLogError(b)}}function cmFormElementOnchangeEvent(){try{cmFormReportInteraction(this)}catch(b){cmLogError(b)}}function cmFormElementValue(f){var e;if(f.type=="checkbox"){return f.checked}else{if((cmFormC3.indexOf(f.type)>=0)&&f.options){var d="";for(e=0;e<f.options.length;e++){if(f.options[e].selected==true){d=d+f.options[e].index}}return d}else{if(cmFormC2.indexOf(f.type)>=0||f.type=="file"||f.type=="radio"){return f.value}else{return null}}}}function cO(q,p,t,u){var v,w,o,m="";var r=null;p=q+":"+p;if(q!=-1){if(cG6.forms[q]){r=cG6.forms[q];var m=r.attributes;w=r.action?r.action:m.action.nodeValue?m.action.nodeValue:m.getNamedItem("action").value?m.getNamedItem("action").value:""}}cGD=cG6.cmTagCtl.normalizeFORM(cGD);var n=c1(cm_ClientID);if(cm_FormPageID&&n!=""){var s=cGD.split(";");cGD="";for(o=0;o<s.length-1;o++){cGD+=n.split(":").join("").split(";").join("")+"_"+s[o]+";"}cm_FormPageID=false}if(cV(w)&&(q!="-1"||(q=="-1"&&cmSubmitFlag==false))){v=new Date();cGH=v.getTime();cGF=p;cGE=cG7.normalizeURL(w,true);cL(cm_ClientTS,cGH,cGD,cGF,cGE,cGC,false,u,u,u,t);cGG=cGC;cGC="";if((r)&&(typeof cmCustomFormSubmitHandler=="function")){cmCustomFormSubmitHandler(r,p)}}else{cGF=""}}function cmFormOnresetEvent(){var d;try{cO(this.cM1,"R")}catch(c){cmLogError(c)}try{for(d=0;d<cG6.forms[this.cM1].elements.length;d++){cG6.forms[this.cM1].elements[d].cmFormEleMemValue=false}}catch(c){cmLogError(c)}try{if(this.cQ){return this.cQ()}}catch(c){cmLogError(c)}}function cmFormOnsubmitEvent(h,f,g){try{if(this.cmEleValue>-1){cmFormBlurRecord(this.elements[this.cmEleValue])}}catch(e){cmLogError(e)}try{if(this.cM1>=0&&this.cmSubmitIndex==false){cmSubmitFlag=true;this.cmSubmitIndex=true;cO(this?this.cM1:-1,"S",f);CE()}else{if(typeof f==="function"){f()}}}catch(e){cmLogError(e)}cmJSFPMigrateLink(this,"action")}function cmFormReportInteraction(f){var d=cG6.cmTagCtl.normalizeFIELDS(f.name?f.name:f.id?f.id:"");var e=cGC+f.form.cM1+":"+f.cM2+":"+d.split(":").join("|").split(";").join("|")+";";if(e.length<1000){cGC=e}}function cmFormSubmit(){cmJSFPMigrateLink(this,"action");try{if(this.cmEleValue>-1){cmFormBlurRecord(this.elements[this.cmEleValue])}}catch(c){cmLogError(c)}try{if(this.cM1>=0&&this.cmSubmitIndex==false){cmSubmitFlag=true;this.cmSubmitIndex=true;cO(this?this.cM1:-1,"S");CE()}}catch(c){cmLogError(c)}try{if(cm_LinkClickDelay){setTimeout((function d(a){return function(){a.cmSubmit()}}(this)),cm_LinkClickDelayInterval);return false}else{this.cmSubmit()}}catch(c){cmLogError(c)}}cG6.cmTagCtl.normalizeFORM=function(b){return b};cG6.cmTagCtl.normalizeFIELDS=function(b){return b};function cU(){if(cm_SkipHandlerReg.indexOf("F")==-1){_$cF1();var q,o,e,i,l,n,m;for(q=0;q<cG6.forms.length;q++){o=cG6.forms[q];m=0;if(!o.cM1&&!o.cmEleValue&&!o.cmSubmitIndex){o.cM1=q;o.cmEleValue=-1;o.cmSubmitIndex=false;o.radiogroup={key:"value"};try{if(cF(5)&&!cF(8)){var p=o.attributes;e=p.name?p.name.nodeValue:p.id?p.id.nodeValue:p.action?p.action.nodeValue:"UNDEFINED"}else{if(o.attributes.getNamedItem){e=((o.attributes.getNamedItem("name"))&&(o.attributes.getNamedItem("name").value!==""))?o.attributes.getNamedItem("name").value:((o.attributes.getNamedItem("id"))&&(o.attributes.getNamedItem("id").value!==""))?o.attributes.getNamedItem("id").value:((o.attributes.getNamedItem("action"))&&(o.attributes.getNamedItem("action").value!==""))?o.attributes.getNamedItem("action").value:"UNDEFINED"}else{e=o.name?o.name:o.id?o.id:o.action?o.action:"UNDEFINED"}}}catch(l){e="ERROR";cmLogError(l)}cGD+=e+":"+q+";";try{if(o.submit!==cmFormSubmit){o.cmSubmit=o.submit;o.submit=cmFormSubmit}}catch(l){cmLogError(l)}if(typeof cm_NewFormTracker!=="undefined"){if(!o._$cV2){_$cF4(o)}}else{cmAddNewEvent(o,"submit",cmFormOnsubmitEvent)}cmAddNewEvent(o,"reset",cmFormOnresetEvent);for(i=0;i<o.elements.length;i++){l=o.elements[i];if(!l.cM1&&!l.cM2&&!l.cmFormEleMemValue){l.cM1=q;l.cM2=m;l.cmFormEleMemValue=null;m++;if(l.type=="radio"){n=l.name?l.name:l.id?l.id:"";if(n!=""){if(o.radiogroup[n]){l.cM2=o.radiogroup[n]}else{o.radiogroup[n]=l.cM2}}}if(cmFormC1.indexOf(l.type)>=0||l.type=="checkbox"||l.type=="radio"){try{cmAddNewEvent(l,"click",cmFormElementOnclickEvent)}catch(l){cmLogError(l)}}if(cmFormC2.indexOf(l.type)>=0||cmFormC3.indexOf(l.type)>=0){try{cmAddNewEvent(l,"focus",cmFormElementOnfocusEvent);cmAddNewEvent(l,"blur",cmFormElementOnblurEvent)}catch(l){cmLogError(l)}}if(l.type=="file"){try{cmAddNewEvent(l,"change",cmFormElementOnchangeEvent)}catch(l){cmLogError(l)}}}}}}}}function _$cF1(){if(typeof cm_NewFormTracker!=="undefined"&&cm_NewFormTracker.submitFunctions){var fnCounts={};var frm=null;var count=0;var fnToFrm={};for(frm in cm_NewFormTracker.submitFunctions){count=fnCounts[cm_NewFormTracker.submitFunctions[frm]];if(!count){count=0}count++;fnCounts[cm_NewFormTracker.submitFunctions[frm]]=count;fnToFrm[cm_NewFormTracker.submitFunctions[frm]]=frm}var funcName=null;for(funcName in fnToFrm){if(fnCounts[funcName]>1){cmUtils.console.error("Function "+funcName+" defined "+fnCounts[funcName]+" times. Hence ignoring.")}else{frm=_$cF2(fnToFrm[funcName]);if(frm&&!frm._$cV2){frm._$cV2=true;var newFuncName=funcName+Math.floor((Math.random()*10000)+1);window[newFuncName]=eval(funcName);window[funcName]=(function(f,fn){return function(){var args=arguments;var fnRealOnClick=function(){var retVal=fn.apply(this,args);if(retVal&&f){f.submit()}};if(f){cmFormOnsubmitEvent.call(f,undefined,fnRealOnClick)}return false}}(frm,window[newFuncName]))}}}}}function _$cF2(e){var f=e;if(typeof e==="string"){f=document.getElementById(e);if(!f){var d=document.getElementsByName(e);if(d.length>0){f=d[0]}d=null}}if(f&&typeof f==="object"&&f.tagName=="FORM"){return f}return null}function _$cF4(d){var c=function(a,b){return function(g){if(!g){g=window.event}var h=function(){var e=false;return function(){if(!e){e=true;var f=b&&b();a.onsubmit=function(){return f};a.submit()}}}();cmFormOnsubmitEvent.call(g.srcElement?g.srcElement:g.target,g,h);if(g.preventDefault){g.preventDefault()}else{g.returnValue=false}return false}}(d,d.onsubmit);d.onsubmit=c;d=null}function cV(i){if(cm_TrackLink==true||cm_TrackLink=="A"){return true}else{if(cm_TrackLink=="E"&&i.indexOf("/")!=0){return true}var h;if((h=cm_DownloadExtensions)!=null){var k=i.lastIndexOf(".");if(k!=-1){var g=i.substring(k);for(var e=0;e<h.length;e++){if(g==h[e]){return true}}}}return false}}function cW(c,d){CI();var c=CG(c);if(c){C9(c,d)}CJ(1);CE();if(d){setTimeout(d,cm_LinkClickDelayInterval)}else{if(cm_LinkClickDelay){if(c){setTimeout('document.location = "'+c.href+'"',cm_LinkClickDelayInterval);return false}else{return true}}}}function C9(k,h,i){cGI="";cGJ="";cGK="";var e=k.tagName.toUpperCase();if(e=="AREA"){cGJ=k.href?k.href:"";var l=k.parentElement?k.parentElement:k.parentNode;if(l!=null){cGI=l.name?l.name:(l.title?l.title:(l.id?l.id:""))}}else{while(e!="A"&&e!="HTML"){if(!k.parentElement){if(k.parentNode){k=k.parentNode}else{break}}else{k=k.parentElement}if(k){e=k.tagName.toUpperCase()}}if(e=="A"){cGJ=k.href?k.href:"";cGI=k.name?k.name:(k.title?k.title:(k.id?k.id:""))}}if(k.getAttribute){cGJ=cmGetManualLinkUrl(k,cGJ)}cGJ=cG7.normalizeURL(cGJ,true);if(cV(cGJ)==true){var m=new Date();cGK=m.getTime();if(typeof cmCustomLinkClickHandler=="function"){cmCustomLinkClickHandler(k)}cM(cm_ClientTS,cGK,cGI,cGJ,false,i,i,i,h)}else{cGJ=""}cmJSFPMigrateLink(k,"href")}function cmAddNewEvent(m,n,l,k,h){if(m.addEventListener){m.addEventListener(n,l,false)}else{if(m.attachEvent){k=k||n;h=h||l;var i=k+h,o="e"+i;if(typeof m[o]==="undefined"){m[o]=h;m[i]=function(){m[o](window.event)};m.attachEvent("on"+k,m[i])}}}}function cX(b){if(cmReadyToThrowImpressions()){cmAddClicksAndThrowImpressions(b)}else{cmAddClickHandlers();if(b==="onload"){cmThrowImpressionTags()}}}function cmReadyToThrowImpressions(){return(cm_ClientID!=="99999999"&&c1(cm_ClientID)!=="")}function cmGetManualLinkUrl(f,d){if(f.getAttribute){function e(c,a){var b=f.getAttribute("manual_"+a);if(b){c=cmAppendQueryParameter(c,a,b)}return c}d=e(d,"cm_re");d=e(d,"cm_sp")}return d}function cmInstrumentLinks(m,p){var q,r,t,s,u=cm_TrackImpressions,l="cmImpressionSent",n=cG6.links,o=false;q=(u.indexOf("S")!=-1);r=(u.indexOf("R")!=-1);t=(u.indexOf("C")!=-1);s=(u.indexOf("M")!=-1);m&=(cm_SkipHandlerReg.indexOf("L")==-1);p&=(q||r||t||s);if(m||p){cmForEach(n,function(b){if(m){_$cF5(b)}if(p&&!b[l]){var a=cmGetManualLinkUrl(b,b.href);if(!o){CI();o=true}CK(a,q,r,t,s);b[l]=1}});if(o){CJ(1)}}}function cmAddClicksAndThrowImpressions(b){cmInstrumentLinks(true,b==="onload")}function cmAddClickHandlers(){cmInstrumentLinks(true,false)}function cmThrowImpressionTags(){if(!cmReadyToThrowImpressions()){setTimeout(cmThrowImpressionTags,10)}else{cmInstrumentLinks(false,true)}}function _$cF5(e){var d=cmUtils.string.trim(e.href).toLowerCase();if(!cm_NewLinkTracker||e.className.indexOf("cmUseOldLinkTracker")!=-1||d.indexOf("#")===0||d.indexOf("javascript:")===0||d.indexOf(location.href.toLowerCase()+"#")===0){cmAddNewEvent(e,"click",cW)}else{if(!e._$cF6){var f=e.onclick;e.onclick=null;e._$cF6=function(b){if(!b){b=window.event}var c,n;c=n=this.href;var l=b.srcElement?b.srcElement:b.target;var m=l.tagName.toUpperCase();if(m!=="AREA"&&m!=="A"){while(m!=="A"){l=l.parentElement?l.parentElement:l.parentNode;if(l){m=l.tagName.toUpperCase()}}}if(l){n=l.href}if(n===c){var a=false;if(l.target===window.name||l.target==="_self"){var o=(function(h,i,k){var g=false;return function(){if(!g){g=true;if(!i||i.call(k)!==false){location.href=h}}}})(n,f,l)}else{if(f){a=f.call(l)}}cW(b,o);if(l.target===window.name||l.target==="_self"||a){if(b.preventDefault){b.preventDefault()}else{b.returnValue=false}}}};cmAddNewEvent(e,"click",e._$cF6)}}}function cY(b){cmOnDomReady();window.setTimeout(function(){CM_DDX.firstPassFunctionBinding=true},CM_DDX.BAD_PAGE_ID_ELAPSED_TIMEOUT);if(cmIsBrowserCertified()){window.cX("onload");cU()}}function cZ(k){cG3=null;CI();var e=false;for(var i=0;i<document.forms.length;i++){try{if(cG6.forms[i].cmEleValue>-1){cmFormBlurRecord(document.forms[i].elements[document.forms[i].cmEleValue])}}catch(k){cmLogError(k)}try{if(cGC!=""){e=true;cO(-1,"U")}}catch(k){cmLogError(k)}}CJ(1);if(e){window.dontExit=true;var m=new Date();var n=new Date();for(;window.dontExit&&(n-m<1000);){n=new Date()}}CE();if(cm_UseCookie&&cG7.cPE==0){var l=escape(c1(cm_ClientID));CB("cmRS","t3="+cmT3+"&pi="+l)}if(cG7.onUnload){cG7.onUnload()}if(cF(5)&&!cF(5.5)&&window.parent!=window){cG7.cTI=null}else{if(!cGU){for(var o=0;o<cG7.cTI.length;o++){cG7.cTI[o].onload=null;cG7.cTI[o].onerror=null}}}}function CE(){if(cm_UseCookie){cmT3=new Date().getTime();var g,h,i,l,m="";g=cGA?"&t4="+cGA:"";h=(cGJ!="")?"&lti="+cGK+"&ln="+escape(cGI)+"&hr="+escape(cGJ):"";i={};CU(i,cm_ClientID);var k="";if(cm_JSFEnabled){k="&cjen=1"}l="&t1="+cm_ClientTS+"&t3="+cmT3+g+h+"&fti="+cGH+"&fn="+escape(cGD)+"&ac="+cGF+"&fd="+escape(cGG)+"&fu="+escape(cGE)+"&pi="+escape(i.pi)+"&ho="+escape(cm_HOST)+"&ci="+escape(cm_ClientID);if(i.ul&&i.rf&&i.ul.length+i.rf.length<cGO){m="&ul="+escape(i.ul)+"&rf="+escape(i.rf)}if(!CB("cmRS",l+m+k)){if(!CB("cmRS",l+k)){CB("cmRS","t3="+cmT3+"&pi="+escape(i.pi)+k)}}}}function cmSetAvid(b){clearTimeout(cm_AvidLoadTimer);if(b){cm_Avid=b}else{cm_Avid="none"}CB("CMAVID",cm_Avid);cm_AvidLoadTimedOut=false}function cmJSFSetSessionCookies(e,h){if(!cm_JSFEnabled){return}var f=h.split(";");for(var g=0;g<f.length;g++){cmJSFSetSingleSessionCookie(e,f[g])}}function debugReadCookie(c){var i=c+"=";var g=document.cookie.split(";");for(var k=0;k<g.length;k++){var h=g[k];while(h.charAt(0)==" "){h=h.substring(1,h.length)}if(h.indexOf(i)==0){return h.substring(i.length,h.length)}}return null}function cmJSFGetCookieExpireDate(){var b=new Date();b.setTime(b.getTime()+(cm_JSFCoreCookieExpireSeconds*1000));return b.toGMTString()}function cmJSFGetUserId(){var b=cI(cm_JSFCoreCookieName);if(b){b=b.split("&",2)[0];if(b=="anonymous"||cmAnonymous()){b="1000000000000003"}}if(!b){b=cmIT()}return b}function cmJSFSetSingleSessionCookie(r,o){if(!cm_JSFEnabled||cmOptedOut()){return}var v=cI(cm_JSFCoreCookieName);if(v==null){v=cmJSFCreateUserId();if(cm_JSFTrackClients){v+="&ci="+o}CB(cm_JSFCoreCookieName,v,cmJSFGetCookieExpireDate(),cm_JSFPCookieDomain);cmJSFSetValidFlagSingleValue(cmValidFlag_NewVisitor,false,o)}else{if(cm_JSFTrackClients){function q(){var a=cI(cm_JSFCoreCookieName,"ci");if(a){a=unescape(a);a=a.split(",").join("_")}return a}function s(a,b){return a&&b&&(b.indexOf(a)>=0)}var m=q();if(m&&!s(o,m)){cmSetSubCookie(cm_JSFCoreCookieName,"ci",m+"_"+o,cmJSFGetCookieExpireDate(),cm_JSFPCookieDomain);if(s(o,q())){cmJSFSetValidFlagSingleValue(cmValidFlag_NewVisitor,false,o)}}}}var n=cmJSFGetSessionLoginCookieValue(o);if(!n&&cmJSFCombineSessionCookies(o)){n=cmJSFGetSessionLoginCookieValue(o)}var w=new Date().getTime(),t=""+(w+cm_JSFSessionTimeout*1000),u=cmJSFIsSessionExpired(cmJSFGetSessionExpireCookieValue(o));if(r||u||!n){var p=""+w;while(p.length<10){p="0"+p}p=p.substring(0,10);cmJSFSetSessionLoginCookieValue(o,p);cmJSFSetValidFlagSingleValue(((r||u)?cmValidFlag_SessionReset:cmValidFlag_NewSession),true,o);if(cm_JSFSessionType=="T"){cmJSFSetSessionExpiresCookieValue(o,t)}}if(cm_JSFSessionType=="I"){cmJSFSetSessionExpiresCookieValue(o,t)}}function cmJSFIsSessionExpired(b){if(b==null){return false}return(new Date().getTime()>b)}function cmJSFCreateUserId(){function e(a){var b=Math.random();if(b==0){b=Math.random()}return b.toString().substr(2,a)}var h=e(2)+e(10)+new Date().getTime(),f=h.length,g=23;if(f<g){h=h+h.substr(f-(g-f))}if(f>g){h=h.substr(0,g)}return h}function cmJSFSetValidFlagValue(i,g,k){if(!cm_JSFEnabled){return}var f=k.split(";");for(var h=0;h<f.length;h++){cmJSFSetValidFlagSingleValue(i,g,f[h])}}function cmJSFSetValidFlagSingleValue(k,h,m){var g=null;if(h){var l=cmJSFGetSessionValidFlagCookieValue(m);if(l){var i=parseInt(l);if(!isNaN(i)){g=i}}if(g==null){g=cmValidFlag_SessionContinue}if(k==cmValidFlag_NewSession){g&=~cmValidFlag_SessionReset}if(k==cmValidFlag_SessionReset){g&=~cmValidFlag_NewSession}g|=k}else{g=k}g|=cmValidFlag_SessionContinue;cmJSFSetSessionValidFlagCookieValue(m,g)}function cmJSFGetClientIdForSession(b){if(cm_JSFEAMasterIDSessionCookie){b=b.split("|")[0]}return b}function cmJSFCreateSessionMigrationParamName(b){return cm_JSFPCookieMigrateSessionID+"_"+cmJSFGetClientIdForSession(b)}function cmJSFCreateCombinedSessionCookieName(b){return cmJSFGetClientIdForSession(b)+"_clogin"}function cmJSFCombineSessionCookies(f){var g=cI(f+"_login");var h=cI(f+"_expires");var i=cI(f+"_valid");if(g!=null&&h!=null&i!=null){var k="l="+g+"&e="+h+"&v="+i;CB(cmJSFCreateCombinedSessionCookieName(f),k,null,cm_JSFPCookieDomain);CC(f+"_login",cm_JSFPCookieDomain);CC(f+"_expires",cm_JSFPCookieDomain);CC(f+"_valid",cm_JSFPCookieDomain);return true}return false}function cmJSFSetSessionLoginCookieValue(d,c){cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(d),"l",c,null,cm_JSFPCookieDomain)}function cmJSFSetSessionExpiresCookieValue(d,c){cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(d),"e",c,null,cm_JSFPCookieDomain)}function cmJSFSetSessionValidFlagCookieValue(d,c){cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(d),"v",c,null,cm_JSFPCookieDomain)}function cmJSFGetSessionLoginCookieValue(b){return cI(cmJSFCreateCombinedSessionCookieName(b),"l")}function cmJSFGetSessionExpireCookieValue(b){return cI(cmJSFCreateCombinedSessionCookieName(b),"e")}function cmJSFGetSessionValidFlagCookieValue(b){return cI(cmJSFCreateCombinedSessionCookieName(b),"v")}function cmJSFGetSessionValue(l){var m="";var n="";var h=l.split(";");for(var k=0;k<h.length;k++){var i=h[k];if(i==""){continue}var o=cmJSFGetSessionLoginCookieValue(i);m+=n+(o!=null?o:"");if(n==""){n="|"}}return m}function cmJSFGetValidFlagValue(l){var m="";var n="";var h=l.split(";");for(var k=0;k<h.length;k++){var i=h[k];if(i==""){continue}var o=cmJSFGetSessionValidFlagCookieValue(i);m+=n+(o!=null?o:"");if(n==""){n="|"}}return m}_cm.prototype.addTP=function(){coremetrics.getTechProps(this)};function cmJSFPMigrateCookies(z,q,p){if(z&&q&&cm_JSFEnabled&&cm_JSFPCookieMigrate){var w=cI(cm_JSFCoreCookieName),t,i,r,s;if(!w||cm_JSFPForceMigrateCookies){CB(cm_JSFCoreCookieName,z+(cm_JSFTrackClients?"&ci="+cm_ClientID.split(";").join(","):""),cmJSFGetCookieExpireDate(),cm_JSFPCookieDomain);t=(new Date().getTime()+cm_JSFSessionTimeout*1000).toString();i=cm_ClientID.split(";");for(s=0;s<i.length;++s){r=i[s];if(q[r]!==undefined){cmJSFSetSessionLoginCookieValue(r,q[r]);cmJSFSetSessionExpiresCookieValue(r,t);cmJSFSetSessionValidFlagCookieValue(r,"1")}}}}if(cm_JSFPCookieMigrate&&cm_JSFPMigrationOtherCookies!==null){var v=cm_JSFPMigrationOtherCookies.split(","),y,u,A,x;for(u=0;u<v.length;++u){y=v[u];if(p[y]!==undefined){A=cm_JSFPMigrationOtherCookiesExpireTimes[y];if(A){x=new Date();x.setTime(x.getTime()+parseInt(A));x=x.toGMTString()}else{x=null}CB(y,p[y],x,cm_JSFPCookieDomain)}}}}function cmJSFPMigrateLink(q,i){if(cm_JSFPCookieMigrate){var o=/:\/\/([a-z0-9_\-\.]+)/i.exec(q[i]),r,p,s,t,u,e,w=[];if(o){o=o[1]}if(o&&((o.indexOf(cm_JSFPCookieDomain)===-1)&&(q[i].toLowerCase().indexOf("javascript")!==0)&&((cm_JSFPMigrationDomainWhitelist!==null&&cmTextMatchList(o.toLowerCase(),cm_JSFPMigrationDomainWhitelist.split(",")))||(cm_JSFPMigrationDomainBlacklist!==null&&!(cmTextMatchList(o.toLowerCase(),cm_JSFPMigrationDomainBlacklist.split(","))))))||(cm_JSFPMigrationPathWhitelist!==null&&cmTextMatchList(q[i].toLowerCase(),cm_JSFPMigrationPathWhitelist.split(",")))){function v(b,c){var a=cmExtractParameter(b,q[i]);if(a===null){w.push([b,c])}}if(cm_JSFEnabled){r=cI(cm_JSFCoreCookieName);if(r){r=r.split("&",2)[0]}v(cm_JSFPCookieMigrateVisitorID,r);p=cm_ClientID.split(";");for(s=0;s<p.length;++s){v(cmJSFCreateSessionMigrationParamName(p[s]),cmJSFGetSessionLoginCookieValue(p[s]))}}if(cm_JSFPMigrationOtherCookies!==null){u=cm_JSFPMigrationOtherCookies.split(",");for(t=0;t<u.length;++t){e=cI(u[t]);if(e){v("cm_mc_"+u[t],e)}}}q[i]=cmAppendQueryParameters(q[i],w)}}}function cmTextMatchList(e,f){for(var d=0;d<f.length;++d){if(e.indexOf(f[d])>-1){return true}}return false}_cm.prototype.calculateTopLineAndReturnSegments=function cmCalculateTopLineAndReturnSegments(){var aa=[],Z=_cmPartnerUtils.getContactCookieValues(),U=new Ctck(),I="",T="",r=this,P,i,S,L,J,K,W,Y,e=false,ac,s,ad,k,V,X,N,ae,M,ab,R,Q;if(document.referrer){I=document.referrer}if(window.location.href){T=window.location.href}for(P in _cm_CMRules){if(_cm_CMRules.hasOwnProperty(P)){e=true;break}}ac=typeof(CM_DDX.notifySegmentProcessor)==="function";if(!e&&ac){_cm_CMRules[CM_DDX.cVA]={cid:CM_DDX.cVA,segmentRules:[],tags:[],segments:[]};e=true}for(i in _cm_CMRules){K=_cm_CMRules[i];if(typeof(K)!="object"||typeof(K.cid)=="undefined"){continue}W=K.cid;if(!r.topline[W]){r.topline[W]={}}Y=r.topline[W];Y.pgct=Z.getPgCt(W);Y.osshct=Z.getOsshCt(W);Y.orders=Z.getOrders(W);Y.sales=Z.getSales(W);Y.itcartct=Z.getItCartCt(W);Y.itpurct=Z.getItPurCt(W);Y.pvct=Z.getPvCt(W);Y.evpts=Z.getEvPts(W);Y.evcomct=Z.getEvComCt(W);Y.evinict=Z.getEvIniCt(W);Y.elvct=Z.getElvCt(W);s=true;if(Z.getFpFlag(W)){s=false}else{__cm_firstPageFlag=true}Y.startTime=Z.getStTime(W);if(Y.startTime==0){Y.startTime=((new Date()).getTime()/1000)|0}Y.slen=(((new Date()).getTime()/1000)|0)-Y.startTime;Y.n_r="";Y.mkchnl="";Y.mkpgm="";Y.mkv="";Y.mkc="";Y.mkp="";Y.mki="";Y.cmguid="";Y.natscheng="";Y.natschtm="";Y.refurl="";Y.refsite="";Y.enpg="";if(s){Y.mkchnl=(new Crur()).DIRECT_LOAD_CHANNEL;if(r.pn){Y.enpg=r.pn}Y.n_r="NEW";if(!_cm_isNew){Y.n_r="REPEAT"}ad=_cmPartnerUtils.parseVCPI(T);if(!ad){ad=_cmPartnerUtils.parseVCPI(I)}k=_cmPartnerUtils.parseReferralURL(I);if(ad&&ad.length>0){Y.mkchnl=k.MARKETING_PROGRAMS;Y.mkpgm=ad[0];Y.mkv=ad[1];Y.mkc=ad[2];Y.mkp=ad[3];Y.mki=ad[4];Y.cmguid=ad[5]}else{Y.mkchnl=k.channel}Y.refsite=k.refName;Y.natscheng=k.natSearchEngine;Y.natschtm=k.natSearchWord;Y.refurl=I}if(typeof(__cm_firstPageFlag)!="undefined"&&__cm_firstPageFlag&&!Y.enpg&&r.pn){Y.enpg=r.pn}Y.tzloc="";V=Math.floor(new Date(2009,0,15).getTimezoneOffset()/60);if(V==8){Y.tzloc="LOS ANGELES"}else{if(V==7){Y.tzloc="DENVER"}else{if(V==6){Y.tzloc="CHICAGO"}else{if(V==5){Y.tzloc="NEW YORK"}}}}if(r.tid!=1){if(r.tid==6||(r.pc&&(r.pc.indexOf("y")==0||r.pc.indexOf("Y")==0))){Y.pgct++;if(r.se&&r.se.replace(/^\s*/,"").replace(/\s*$/,"")){Y.osshct++}}}if(r.tid=="1"){Y.pgct++;if(r.se&&r.se.replace(/^\s*/,"").replace(/\s*$/,"")){Y.osshct++}}else{if(r.tid=="3"){Y.orders++;if(r.tr&&parseFloat(r.tr)!=NaN){Y.sales+=parseFloat(r.tr)}}else{if(r.tid=="4"){if(r.at&&r.at=="5"&&r.qt&&parseFloat(r.qt)!=NaN){Y.itcartct+=parseFloat(r.qt)}if(r.at&&r.at=="9"&&r.qt&&parseFloat(r.qt)!=NaN){Y.itpurct+=parseFloat(r.qt)}}else{if(r.tid=="5"){Y.pvct++}else{if(r.tid=="14"){if(r.cpt&&parseFloat(r.cpt)!=NaN){Y.evpts+=parseFloat(r.cpt)}if(r.cat&&r.cat=="2"){Y.evcomct++}if(r.cat&&r.cat=="1"){Y.evinict++}}else{if(r.tid=="15"){Y.elvct++}}}}}}U.setPgCt(W,Y.pgct);U.setOsshCt(W,Y.osshct);U.setOrders(W,Y.orders);U.setSales(W,Y.sales);U.setItCartCt(W,Y.itcartct);U.setItPurCt(W,Y.itpurct);U.setPvCt(W,Y.pvct);U.setEvPts(W,Y.evpts);U.setEvComCt(W,Y.evcomct);U.setEvIniCt(W,Y.evinict);U.setElvCt(W,Y.elvct);U.setFpFlag(W,"1");U.setStTime(W,Y.startTime)}for(i in _cm_CMRules){K=_cm_CMRules[i];if(typeof(K)!="object"||typeof(K.cid)=="undefined"){continue}W=K.cid;if(ac&&CM_DDX.cVA==W){CM_DDX.notifySegmentProcessor(this,r.topline[W])}X=Z.getSegRulesMet(W);for(S=0;S<K.segmentRules.length;S++){N=K.segmentRules[S];if(X.indexOf(N.id+"_")==0||X.indexOf("_"+N.id+"_")!=-1){continue}ae=false;try{ae=N.fn(this,r.topline[W])}catch(O){}if(ae){X+=N.id+"_"}}U.setSegRulesMet(W,X);M=Z.getSegsMet(W);for(L=0;L<K.segments.length;L++){ab=K.segments[L];if(M.indexOf(ab.id+"_")==0||M.indexOf("_"+ab.id+"_")!=-1){continue}R=true;for(J=0;J<ab.rules.length;J++){Q=ab.rules[J];if(!(X.indexOf(Q+"_")==0||X.indexOf("_"+Q+"_")!=-1)){R=false;break}}if(R){if(!aa[W]){aa[W]=""}aa[W]+=ab.id+"_";M+=ab.id+"_"}}U.setSegsMet(W,M)}if(e){_cmPartnerUtils.setContactCookieValues(U)}return aa};_cmPartnerUtils.calculateAndSendATData=function(h){var f=h.calculateTopLineAndReturnSegments();var g=_cmPartnerUtils.cmGetPartnerRequestArray(h,f);for(var e=0;e<g.length;e++){c9(g[e])}};_cmPartnerUtils.loadScript=function(e){if(cm_UseDOMScriptLoad){try{var f=cG6.getElementsByTagName("head").item(0);var g=cG6.createElement("script");g.setAttribute("language","javascript");g.setAttribute("type","text/javascript");g.setAttribute("src",e);f.appendChild(g)}catch(h){}}else{cG6.write('<script language="javascript1.1" src="'+e+'"><\/script>')}};_cmPartnerUtils.cmGetPartnerRequestArray=function(T,S){var L=[];if(!T.ci){return L}var s="";if(T.rf){s=T.rf}else{if(document.referrer){s=document.referrer}}var Q="";if(T.ul){Q=T.ul}else{if(window.location.href){Q=window.location.href}}for(var I in _cm_CMRules){var t=_cm_CMRules[I];if(typeof(t)!="object"){continue}if((T.ci+"").indexOf(t.cid+"")==-1){continue}if(t.version>1001){continue}var N=_cmPartnerUtils.getShuffledIndexArray(t.partners.length-1);for(var K=0;K<N.length;K++){var e=N[K];var W=t.partners[e];if(e<0||e>=t.tags.length){continue}var G=t.tags[e];var i=[];for(var P=0;P<G.length;P++){var M=G[P];if(M=="1"){if(T.tid=="1"||T.tid=="6"||(T.pc&&(T.pc.indexOf("y")==0||T.pc.indexOf("Y")==0))){var H=new Cptg(W.key,s,Q);H.tid="1";_cmPartnerUtils.copyTagParms(T,H,["pi","pn","cg","pv_a1","pv_a2","pv_a3","pv_a4","pv_a5","pv_a6","pv_a7","pv_a8","pv_a9","pv_a10","pv_a11","pv_a12","pv_a13","pv_a14","pv_a15"]);i.push(H)}}else{if(M=="2"){if(T.tid=="5"){var H=new Cptg(W.key,s,Q);H.tid="2";_cmPartnerUtils.copyTagParms(T,H,["pr","pm","cg","pr_a1","pr_a2","pr_a3","pr_a4","pr_a5","pr_a6","pr_a7","pr_a8","pr_a9","pr_a10","pr_a11","pr_a12","pr_a13","pr_a14","pr_a15"]);i.push(H)}}else{if(M=="3"){if(T.tid=="4"&&T.at&&T.at=="5"){var H=new Cptg(W.key,s,Q);H.tid="3";_cmPartnerUtils.copyTagParms(T,H,["pr","pm","cg","qt","bp",["s_a1","pr_a1"],["s_a2","pr_a2"],["s_a3","pr_a3"],["s_a4","pr_a4"],["s_a5","pr_a5"],["s_a6","pr_a6"],["s_a7","pr_a7"],["s_a8","pr_a8"],["s_a9","pr_a9"],["s_a10","pr_a10"],["s_a11","pr_a11"],["s_a12","pr_a12"],["s_a13","pr_a13"],["s_a14","pr_a14"],["s_a15","pr_a15"]]);i.push(H)}}else{if(M=="4"){if(T.tid=="4"&&T.at&&T.at=="9"){var H=new Cptg(W.key,s,Q);H.tid="4";_cmPartnerUtils.copyTagParms(T,H,["pr","pm","cg","qt","bp",["s_a1","pr_a1"],["s_a2","pr_a2"],["s_a3","pr_a3"],["s_a4","pr_a4"],["s_a5","pr_a5"],["s_a6","pr_a6"],["s_a7","pr_a7"],["s_a8","pr_a8"],["s_a9","pr_a9"],["s_a10","pr_a10"],["s_a11","pr_a11"],["s_a12","pr_a12"],["s_a13","pr_a13"],["s_a14","pr_a14"],["s_a15","pr_a15"]]);H.tr=T.tr;H.on=T.on;i.push(H)}}else{if(M=="5"){if(T.tid=="3"){var H=new Cptg(W.key,s,Q);H.tid="5";_cmPartnerUtils.copyTagParms(T,H,["on",["tr","ov"],"ct","sa","zp","o_a1","o_a2","o_a3","o_a4","o_a5","o_a6","o_a7","o_a8","o_a9","o_a10","o_a11","o_a12","o_a13","o_a14","o_a15"]);i.push(H)}}else{if(M=="6"){if(T.topline[t.cid]&&T.topline[t.cid].natscheng){var H=new Cptg(W.key,s,Q);H.tid="6";H.en=T.topline[t.cid].natscheng;H.se=T.topline[t.cid].natschtm;if(T.topline[t.cid].mkchnl==(new Crur()).MARKETING_PROGRAMS){H.st="PAID"}else{H.st="NATURAL"}i.push(H)}else{if(T.tid=="1"||T.tid=="6"||(T.pc&&(T.pc.indexOf("y")==0||T.pc.indexOf("Y")==0))){if(T.se&&T.se.replace(/^\s*/,"").replace(/\s*$/,"")){var H=new Cptg(W.key,s,Q);H.tid="6";H.en="ONSITE";H.se=T.se;H.sr=T.sr;i.push(H)}}}}else{if(M=="7"){if(T.tid=="14"){var H=new Cptg(W.key,s,Q);H.tid="7";_cmPartnerUtils.copyTagParms(T,H,[["cid","eid"],["ccid","cat"],["cat","at"],"cpt","c_a1","c_a2","c_a3","c_a4","c_a5","c_a6","c_a7","c_a8","c_a9","c_a10","c_a11","c_a12","c_a13","c_a14","c_a15"]);i.push(H)}}}}}}}}}if(W.type=="I"){for(var R=0;R<i.length;R++){var X=_cmPartnerUtils.cmGetImgSrc_Partner(i[R],W);L.push(X)}}else{if(W.type=="S"){for(var R=0;R<i.length;R++){if(W.callbackFunctionSet){try{W._cm_ConnectCallback(i[R])}catch(E){var F=new Cpse(t.cid+"",Q,R);var V=_cmPartnerUtils.cmGetImgSrc_CMError(F);L.push(V)}}else{if(!_cmPartnerUtils.AT_PartnerCallQueue[W.pid]){_cmPartnerUtils.AT_PartnerCallQueue[W.pid]=[]}_cmPartnerUtils.AT_PartnerCallQueue[W.pid].push(i[R])}}}}}var Y=S[t.cid];if(Y){for(var O=0;O<t.segments.length;O++){var U=t.segments[O];if(Y.indexOf(U.id)!=-1){var H=new Cptg("",s,Q);H.tid="99";H.sid=U.id;var J=_cmPartnerUtils.getShuffledIndexArray(U.p.length-1);for(var K=0;K<J.length;K++){var e=J[K];if(U.p[e]<0||U.p[e]>=t.partners.length){continue}var W=t.partners[U.p[e]];H.ckey=W.key;if(W.type=="I"){var X=_cmPartnerUtils.cmGetImgSrc_Partner(H,W);L.push(X)}else{if(W.type=="S"){if(W.callbackFunctionSet){try{W._cm_ConnectCallback(H)}catch(E){var F=new Cpse(t.cid+"",Q,e);var V=_cmPartnerUtils.cmGetImgSrc_CMError(F);L.push(V)}}else{if(!_cmPartnerUtils.AT_PartnerCallQueue[W.pid]){_cmPartnerUtils.AT_PartnerCallQueue[W.pid]=[]}_cmPartnerUtils.AT_PartnerCallQueue[W.pid].push(H)}}}}}}}}return L};_cmPartnerUtils.copyTagParms=function(h,g,i){var k,f;for(k=0;k<i.length;k++){f=typeof(i[k]);if(f=="string"){g[i[k]]=h[i[k]]}else{if(f=="object"){g[i[k][1]]=h[i[k][0]]}}}};_cmPartnerUtils.cmGetImgSrc_Partner=function(i,k){var f,g,h=C8();g=(h==="https:")?k.surl:k.url;f=g.indexOf("://");if(f!==-1){g=g.substring(f+3)}return new _cmCQ(h,g,_cmPartnerUtils.cmGetQueryStringForTag_Partner(i))};_cmPartnerUtils.cmGetImgSrc_CMError=function(b){return new _cmCQ(C8(),cm_HOST,_cmPartnerUtils.cmGetQueryStringForTag_Partner(b))};_cmPartnerUtils.cmGetQueryStringForTag_Partner=function(d){var e="";if(d.tid){e+="tid="+d.tid}for(var f in d){if(!d[f]||d[f]==""||d[f].constructor==Function||f=="tid"){continue}if(e!=""){e+="&"}e+=cD(f)+"="+cE(cD(d[f]))}return e};_cmPartnerUtils.setContactRule=function(o){var k=o.cid;_cm_CMRules[k]=o;for(var l=0;l<o.partners.length;l++){var n=o.partners[l];if(n.type=="S"){n._cm_ConnectCallback=function m(){};n.callbackFunctionSet=false;var i=n.url;if(C8()=="https:"){i=n.surl}i=i.indexOf("://")==-1?i:i.substring(i.indexOf("://")+3);_cmPartnerUtils.loadScript(C8()+"//"+i)}}_cmPartnerUtils.AT_RulesSet=true;if(_cm_NRSet){for(var h=0;h<_cmPartnerUtils.AT_TagQueue.length;h++){_cmPartnerUtils.calculateAndSendATData(_cmPartnerUtils.AT_TagQueue[h])}_cmPartnerUtils.AT_TagQueue=[]}};function _cm_registerCallback(m,k){if(!m){return}if(typeof(k)!="function"){return}for(var e in _cm_CMRules){var i=_cm_CMRules[e];if(typeof(i)!="object"||typeof(i.cid)=="undefined"){continue}for(var n=0;n<i.partners.length;n++){var p=i.partners[n];if(p.pid==m&&!p.callbackFunctionSet){p._cm_ConnectCallback=k;p.callbackFunctionSet=true;if(_cmPartnerUtils.AT_PartnerCallQueue[p.pid]){for(var q=0;q<_cmPartnerUtils.AT_PartnerCallQueue[p.pid].length;q++){try{p._cm_ConnectCallback(_cmPartnerUtils.AT_PartnerCallQueue[p.pid][q])}catch(o){}}_cmPartnerUtils.AT_PartnerCallQueue[p.pid]=[]}}}}}function cmSetNRFlag(c){if(_cm_NRSet){return}if(c){_cm_isNew=false}_cm_NRSet=true;if(_cmPartnerUtils.AT_RulesSet){for(var d=0;d<_cmPartnerUtils.AT_TagQueue.length;d++){_cmPartnerUtils.calculateAndSendATData(_cmPartnerUtils.AT_TagQueue[d])}_cmPartnerUtils.AT_TagQueue=[]}}_cmPartnerUtils.getContactCookieValues=function(){var o=1,m=new Ctck(),r=cI("CoreAt"),p,i,n,s,u,q,t;if(!r){return m}p=r.split("&");for(q=0;q<p.length;q++){i=p[q];u=i.indexOf("=");if(u!=-1){n=i.substring(0,u);s=null;if(i.length>u+1){s=i.substring(u+1)}if(n&&s){t=unescape(s).split(/\|/);if(t&&t.length>0){if(t[0]&&parseInt(t[0])<=o){if(t[1]){m.setPgCt(n,t[1])}if(t[2]){m.setOsshCt(n,t[2])}if(t[3]){m.setOrders(n,t[3])}if(t[4]){m.setSales(n,t[4])}if(t[5]){m.setItCartCt(n,t[5])}if(t[6]){m.setItPurCt(n,t[6])}if(t[7]){m.setPvCt(n,t[7])}if(t[8]){m.setEvPts(n,t[8])}if(t[9]){m.setEvComCt(n,t[9])}if(t[10]){m.setEvIniCt(n,t[10])}if(t[11]){m.setElvCt(n,t[11])}if(t[12]){m.setFpFlag(n,t[12])}if(t[13]){m.setStTime(n,t[13])}if(t[14]){m.setSegRulesMet(n,t[14])}if(t[15]){m.setSegsMet(n,t[15])}}}}}}return m};_cmPartnerUtils.setContactCookieValues=function(e){var f=1,h="",g;for(g in e.holder){if(g.length!=8||typeof(e.holder[g])=="function"){continue}h+=g+"="+f+"|"+e.getPgCt(g)+"|"+e.getOsshCt(g)+"|"+e.getOrders(g)+"|"+e.getSales(g)+"|"+e.getItCartCt(g)+"|"+e.getItPurCt(g)+"|"+e.getPvCt(g)+"|"+e.getEvPts(g)+"|"+e.getEvComCt(g)+"|"+e.getEvIniCt(g)+"|"+e.getElvCt(g)+"|"+e.getFpFlag(g)+"|"+e.getStTime(g)+"|"+e.getSegRulesMet(g)+"|"+e.getSegsMet(g)+"&"}CB("CoreAt",h,"",cm_JSFPCookieDomain)};_cmPartnerUtils.parseReferralURL=function(D){var E=new Crur(),C,w,y=[],v,t,x,k,u,z,A,a,i,B;if(!D){return E}C=this.extractDomainName(D);if(C.getPartsCount()==0){return E}if(C.url.search(/^[0-9]+(\.[0-9]+){3}$/)>=0){E.channel=E.REFERRAL_CHANNEL;E.refName=C.url;return E}w=[["GOOGLE.COM","q"],["YAHOO.COM","SEARCH.YAHOO.COM","p"],["MSN.COM","SEARCH.MSN.COM",["q","MT"]],["AOL.COM","SEARCH.AOL.COM",["aps_terms","query","encquery","q"]],["AOL.COM",["AOLSEARCH.AOL.COM","AOLSEARCHT.AOL.COM"],"query"],["ASK.COM",["q","ask"]],["ASK.COM",["ASKGEEVES.COM","ASKJEEVES.COM","ASKJEEVS.COM"],"ask"],["BING.COM","q"],["LYCOS.COM","HOTBOT.LYCOS.COM","MT"],["LYCOS.COM","query"],["ALTAVISTA.COM","q"],["ALTAVISTA.COM",["PARTNERS.ALTAVISTA.COM","ALTA-VISTA.COM"],"q"],["NETSCAPE.COM","SEARCH.NETSCAPE.COM",["search","query"]],["WEBSEARCH.CNN.COM","query"],["LOOKSMART.COM","key"],["ABOUT.COM","terms"],["MAMMA.COM","query="],["ALLTHEWEB.COM",["query","q"]],["VOILA.COM","kw"],["VIRGILIO.IT","SEARCH.VIRGILIO.IT","qs"],["LIVE.COM","SEARCH.LIVE.COM","q"],["BAIDU.COM",["word","wd"]],["SEARCH.ALICE.IT","qs"],["YANDEX.RU","text"],["CLUB-INTERNET.FR","q"],["SEARCH.SEZNAM.CZ","q"],["SEARCH.SEZNAM.CZ","w"],["SEARCH.COM",["q","what","QUERY","OLDQUERY"]],["SEARCH.YAM.COM","k"],["GOOGLE.PCHOME.COM.TW","q"]];for(v=C.getPartsCount();y.length==0&&v>=2;v--){t=C.getLast(v);for(x=0;x<w.length;x++){k=w[x];u=(k.length>2)?k[1]:k[0];u=(typeof(u)=="string")?[u]:u;for(z=0;z<u.length;z++){if(u[z]==t){y.push(k)}}}}if(y.length>0){E.channel=E.NATURAL_SEARCH_CHANNEL;E.natSearchEngine=y[0][0];E.refName=C.url;for(v=0;v<y.length;v++){k=y[v];A=(k.length>2)?k[2]:k[1];A=(typeof(A)=="string")?[A]:A;for(x=0;x<A.length;x++){a=new RegExp("[&?]"+A[x]+"=([^&]+)");i=D.match(a);if(i){B=_cmPartnerUtils.urlDecode(i[1]);if(B.search(/^[^a-zA-Z0-9]*$/)==-1){E.natSearchWord=B.replace(/\+/g," ");break}}}}}else{E.channel=E.REFERRAL_CHANNEL;E.refName=C.url}return E};_cmPartnerUtils.urlDecode=function(d){if(typeof(decodeURIComponent)=="function"){try{return decodeURIComponent(d)}catch(c){}}return unescape(d)};_cmPartnerUtils.extractDomainName=function(k){var a=k.match(/:\/*([^\/\?]+)/),h=a?a[1]:"",i,g;h=h.toUpperCase();a=h.match(/^(?:WWW\d*\.)?([^:]+)/);if(a){h=a[1]}i=h.length-1;g=h.lastIndexOf(".");if(g==-1){return new Cspd()}else{if(g==i){h=h.substring(0,i)}}return new Cspd(h)};_cmPartnerUtils.parseVCPI=function(k){var n,a,b,l,o,m;if(!k){return""}n=k.match(/[&?]cm_mmc(_o)?=([^&]+)/);if(!n){return""}a=n[1]?_cmPartnerUtils.deObfuscate(n[2]):n[2];b=a.split(/\-_\-|\*/);if(!b||b.length!=4){return""}l=b[3].indexOf("|-|");if(l!=-1){b[3]=b[3].substring(0,l)}b[0]=_cmPartnerUtils.urlDecode(b[0]).replace(/\+/g," ");b[1]=_cmPartnerUtils.urlDecode(b[1]).replace(/\+/g," ");b[2]=_cmPartnerUtils.urlDecode(b[2]).replace(/\+/g," ");b[3]=_cmPartnerUtils.urlDecode(b[3]).replace(/\+/g," ");o=k.match(/[&?]cm_guid=([^&]+)/);m=(o&&o[1])?_cmPartnerUtils.urlDecode(o[1]):"";return[b[0]+"*"+b[1]+"*"+b[2]+"*"+b[3],b[0],b[1],b[2],b[3],m]};_cmPartnerUtils.deObfuscate=function(c){if(!c){return""}var i="-P2KHd7ZG3s14WRVhqmaJe8rQUz_gpwuTtbXLkFEB56ylfAMc0YOCjvnNSDxIo9i",v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_1234567890",A=45,s=122,y=[],w,r,e="",t,z,x;for(w=0;w<i.length;w++){r=i.charCodeAt(w);y[r-45]=v.charAt(w)}try{for(w=0;w<c.length;w++){t=c.charAt(w);z=c.charCodeAt(w);if(z<A||z>s){e+=t}else{x=y[z-45];if(x==null){e+=t}else{e+=x}}}}catch(u){}return e};_cmPartnerUtils.getShuffledIndexArray=function(k){var f,i,g,h=[];for(f=0;f<=k;f++){h.push(f)}for(f=0;f<h.length;f++){i=Math.floor(Math.random()*(h.length));g=h[f];h[f]=h[i];h[i]=g}return h};_cmPartnerUtils.startsWith=function(d,c){return(d.toUpperCase().indexOf(c)==0)};_cmPartnerUtils.endsWith=function(d,c){return((d.toUpperCase().lastIndexOf(c)!=-1)&&(d.toUpperCase().lastIndexOf(c)+c.length==d.length))};_cmPartnerUtils.contains=function(d,c){return(d.toUpperCase().indexOf(c)!=-1)};function Ctck(){this.holder={};this.getIntValue=function(f,d){if(!this.holder[f]){return 0}var e=this.holder[f][d]?parseInt(this.holder[f][d]):0;e=(e==NaN)?0:e;return e};this.getFloatValue=function(f,d){if(!this.holder[f]){return 0}var e=this.holder[f][d]?parseFloat(this.holder[f][d]):0;e=(e==NaN)?0:e;return e};this.getStringValue=function(c,d){if(!this.holder[c]){return""}return this.holder[c][d]?this.holder[c][d]:""};this.setFloatValue=function(f,e,d){if(!this.holder[f]){this.holder[f]={}}if(e&&d&&parseFloat(d)!=NaN){if(typeof(d)=="number"){this.holder[f][e]=d.toFixed(2)+""}else{this.holder[f][e]=d}}};this.setIntValue=function(f,e,d){if(!this.holder[f]){this.holder[f]={}}if(e&&d&&parseInt(d)!=NaN){this.holder[f][e]=d+""}};this.setStringValue=function(f,e,d){if(!this.holder[f]){this.holder[f]=[]}if(e&&d){this.holder[f][e]=d}};this.getPgCt=function(b){return this.getIntValue(b,"pgct")};this.setPgCt=function(c,d){this.setIntValue(c,"pgct",d)};this.getOsshCt=function(b){return this.getIntValue(b,"osshct")};this.setOsshCt=function(c,d){this.setIntValue(c,"osshct",d)};this.getOrders=function(b){return this.getIntValue(b,"orders")};this.setOrders=function(c,d){this.setIntValue(c,"orders",d)};this.getSales=function(b){return this.getFloatValue(b,"sales")};this.setSales=function(c,d){this.setFloatValue(c,"sales",d)};this.getItCartCt=function(b){return this.getFloatValue(b,"itcartct")};this.setItCartCt=function(c,d){this.setFloatValue(c,"itcartct",d)};this.getItPurCt=function(b){return this.getFloatValue(b,"itpurct")};this.setItPurCt=function(c,d){this.setFloatValue(c,"itpurct",d)};this.getPvCt=function(b){return this.getIntValue(b,"pvct")};this.setPvCt=function(c,d){this.setIntValue(c,"pvct",d)};this.getEvPts=function(b){return this.getFloatValue(b,"evpts")};this.setEvPts=function(c,d){this.setFloatValue(c,"evpts",d)};this.getEvIniCt=function(b){return this.getIntValue(b,"evinict")};this.setEvIniCt=function(c,d){this.setIntValue(c,"evinict",d)};this.getEvComCt=function(b){return this.getIntValue(b,"evcomct")};this.setEvComCt=function(c,d){this.setIntValue(c,"evcomct",d)};this.getElvCt=function(b){return this.getIntValue(b,"elvct")};this.setElvCt=function(c,d){this.setIntValue(c,"elvct",d)};this.getFpFlag=function(b){return this.getIntValue(b,"fp")};this.setFpFlag=function(c,d){this.setIntValue(c,"fp",d)};this.getStTime=function(b){return this.getIntValue(b,"st")};this.setStTime=function(c,d){this.setIntValue(c,"st",d)};this.getSegRulesMet=function(b){return this.getStringValue(b,"segrules")};this.setSegRulesMet=function(c,d){this.setStringValue(c,"segrules",d)};this.getSegsMet=function(b){return this.getStringValue(b,"segs")};this.setSegsMet=function(c,d){this.setStringValue(c,"segs",d)}}function Cpse(f,e,d){this.ci=f;this.tid="21";this.ul=(e)?e:"";this.pindex=d}function Cptg(f,d,e){this.ckey=(f)?f:"";this.rf=(d)?d:"";this.ul=(e)?e:""}function Crur(){this.DIRECT_LOAD_CHANNEL="DIRECT LOAD";this.REFERRAL_CHANNEL="REFERRING SITES";this.NATURAL_SEARCH_CHANNEL="NATURAL SEARCH";this.MARKETING_PROGRAMS="MARKETING PROGRAMS";this.DIRECT_LOAD_REFERRAL_NAME="DL";this.channel=this.DIRECT_LOAD_CHANNEL;this.refName=this.DIRECT_LOAD_REFERRAL_NAME;this.natSearchEngine="";this.natSearchWord=""}function Cspd(b){this.url=(b)?b:"";this.splitUrl=this.url.split(".");this.getPartsCount=function(){return this.splitUrl.length};this.getLast=function(f){var a="";for(var e=f;e>=1;e--){if(this.splitUrl.length>=e){if(a){a+="."}a+=this.splitUrl[this.splitUrl.length-e]}}return a}}function cmCheckIEReady(){if(document.readyState=="complete"){cmOnDomReady()}}function cmOnDomReady(){if(!CM_DDX.domReadyFired){CM_DDX.domReadyFired=true;CM_DDX.invokeFunctionWhenAvailable(function(){__$dispatcher.domReady()})}}var coremetrics=(function(){var c="undefined",d="function";return{cmLoad:cmLoad,cmLastReferencedPageID:null,isDef:function(a){return typeof(a)!==c&&a},cmUpdateConfig:function(b){var a=coremetrics.isDef;if(a(b.io)){cm_IOEnabled=b.io}if(a(b.ia)){cm_OffsiteImpressionsEnabled=b.ia}if(a(b.at)){cm_ATEnabled=b.at}if(a(b.mc)){cm_MCEnabled=b.mc}if(a(b.ddx)&&a(b.ddx.version)){CM_DDX.version=b.ddx.version;if(a(b.ddx.standalone)){CM_DDX.standalone=b.ddx.standalone}}},getTechProps:function(i){var k,b=i||{},a=navigator,l=window.screen,m;b.jv=(typeof(Array.isArray)===d)?"1.8.5":(typeof([].reduce)===d)?"1.8":(typeof(Iterator)===d)?"1.7":(typeof(Array.forEach)===d)?"1.6":(typeof(decodeURI)===d)?"1.5":(typeof(NaN)==="number")?"1.3":(typeof(isFinite)===d)?"1.2":(typeof(isNaN)===d)?"1.1":"1.0";if(a.plugins){m=a.plugins;for(k=0;k<m.length;k++){b["np"+k]=m[k].name}}if(typeof(a.javaEnabled)===d){b.je=a.javaEnabled()?"y":"n"}b.sw=l.width;b.sh=l.height;b.pd=l.colorDepth;if(b.pd==0){b.pd=l.pixelDepth}b.tz=new Date().getTimezoneOffset()/60;return b}}})();var cm_exAttr=new Array();var cmCheckCMEMFlag=true;var cmAutoCopyAttributesToExtraFields=false;var cmPricePattern=/[^\-0-9\.]/gi;var cmSpacePattern=/^\s+|\s+$/gi;var cmMMCPattern=/cm_(?:mmc|ven|cat|pla|ite)/gi;function cmLoadIOConfig(){if(typeof(IORequest)=="function"){IORequest.client_id=cm_ClientID.split(";")[0].split("|")[0];IORequest.encrypt_cats=true;IORequest.encrypt_prds=true;IORequest.conflict_resolution=true;IORequest.max_prd_length=25;IORequest.max_cat_length=25;IORequest.timeout=[8000,4000];IORequest.use_site_category=false;if((IORequest.ie_version()!==null)&&(IORequest.ie_version()<7)){IORequest.a_max_elements=[3,3,5,3,3,3,3]}else{IORequest.a_max_elements=[3,3,5,3,3,7,7]}IORequest.required_attributes=[0,0,0,0,0];IORequest.access_method="json remote";IORequest.default_product_file=undefined}}function cmSetClientID(t,z,x,q,y){var r=t.split(";"),A,w=r[0].split("|")[0],p=C8()+"//",u,v=0,o;cm_PartnerDataClientIDs=cm_ClientID=t;if(typeof(IORequest)=="function"){IORequest.client_id=w}cm_McClientID=w;if(z===true){cm_JSFEnabled=true}if(x){cm_HOST=cm_Production_HOST=x;if((x==="test.cn.coremetrics.com")||(x==="testdata.cn.coremetrics.com")){cm_Production_HOST="data.cn.coremetrics.com"}cm_HOST+="/cm?"}if(q){cm_JSFPCookieDomain=q}CM_DDX.cVA=w;if(!document.body&&CM_DDX.headScripts){document.write("<script src='",p+cm_DDX_CDN_BASE_URL+"/"+CM_DDX.cVA+"/head"+(CM_DDX.test.doTest?"s-"+CM_DDX.test.testCounter:"")+".js?__t="+(CM_DDX.test.doTest?"0":(+new Date()))+"'><\/script>")}for(u=0;u<r.length;++u){A=r[u].split("|")[0];_cmPartnerUtils.loadScript(p+cm_CLIENT_CONFIG_HOST+"/"+A+".js")}cmRetrieveUserID(cmSetNRFlag);function s(){if((typeof TLT!=="undefined")&&(typeof TLT.getSessionData==="function")){var a=TLT.getSessionData();if(a){cmCreateSessionPropertyTag("TeaLeaf",a.tltSCV,(a.tltSCVNeedsHashing?"MD5":""));clearInterval(o)}}if(v>=cm_TealeafTagAttempts){clearInterval(o)}v++}o=setInterval(function(){s()},3000)}function cmSetupCookieMigration(s,r,q,i,z,y,u){if(s){cm_JSFPCookieMigrate=s}if(r){cm_JSFPForceMigrateCookies=r}if(q){cm_JSFPMigrationDomainWhitelist=q}if(i){cm_JSFPMigrationDomainBlacklist=i}if(z){cm_JSFPMigrationPathWhitelist=z}if(y){cm_JSFPMigrationOtherCookies=y}if(u){cm_JSFPMigrationOtherCookiesExpireTimes=u}if(cm_JSFPCookieMigrate){var t=cm_ClientID.split(";"),B={},v,w,C,x,A={};for(v=0;v<t.length;++v){C=cmExtractParameter(cmJSFCreateSessionMigrationParamName(t[v]),window.location.href);if(C){B[t[v]]=C}}if(cm_JSFPMigrationOtherCookies){x=cm_JSFPMigrationOtherCookies.split(",");for(w=0;w<x.length;++w){C=cmExtractParameter("cm_mc_"+x[w],window.location.href);if(C){A[x[w]]=C}}}cmJSFPMigrateCookies(cmExtractParameter(cm_JSFPCookieMigrateVisitorID,window.location.href),B,A)}}var cmNormalizeBlackList,cmNormalizeWhiteList=null;function cmSetupNormalization(d,f,e){if(d){cmNormalizeBlackList=d}if(f){cmNormalizeWhiteList=f}if(e){if(document.cmTagCtl!=null){document.cmTagCtl.normalizeURL=e}}}function cmSetupOther(c){for(var d in c){window[d]=c[d]}}function cmSetCurrencyCode(b){cm_currencyCode=b}function cmSetFirstPartyIDs(f,h){cm_JSFPCookieMigrate=true;cm_JSFPForceMigrateCookies=true;var k=cm_ClientID.split(";");var i={};for(var g=0;g<k.length;++g){i[k[g]]=h}cmJSFPMigrateCookies(f,i,null)}function cmCreateManualImpressionTag(g,h,f,i,k){if(!g){g=c1(cm_ClientID)}cmMakeTag(["tid","9","pi",g,"cm_sp",h,"cm_re",f,"cm_cr",i,"cm_me",k,"st",cm_ClientTS])}function cmCreateManualLinkClickTag(e,h,f){if(cM!=null){var g=new Date();cGK=g.getTime();e=cG7.normalizeURL(e,true);cM(cm_ClientTS,cGK,h,e,false,f)}}function cmCreateManualPageviewTag(i,l,m,n,q,p,o,k){cmMakeTag(["tid","1","pi",i,"cg",l,"ul",m,"rf",n,"se",p,"sr",o,"cmAttributes",q,"cmExtraFields",k])}function cmCreateElementTag(d,e,f){cmMakeTag(["tid","15","eid",d,"ecat",e,"cmAttributes",f])}function cmCreatePageElementTag(m,g,h,i,k,l){cmCreateElementTag(m,g,l)}var cmCreateProductElementTag=cmCreatePageElementTag;function cmCreateConversionEventTag(l,m,i,k,g,h){cmMakeTag(["tid","14","cid",l,"cat",m,"ccid",i,"cpt",k,"cmAttributes",g,"cmExtraFields",h])}function cmCreateTechPropsTag(e,g,h,f){cmMakeTag(["tid","6","pi",e,"cg",g,"pc","Y","cmAttributes",h,"cmExtraFields",f])}function cmCreatePageviewTag(g,i,l,k,m,h){cmMakeTag(["tid","1","pi",g,"cg",i,"se",l,"sr",k,"cmAttributes",m,"cmExtraFields",h])}function cmCreateDefaultPageviewTag(b){cmCreatePageviewTag(cmGetDefaultPageID(),b)}function cmCreateProductviewTag(l,i,k,m,g){var h=c1(cm_ClientID);cmMakeTag(["tid","5","pi",h?h:"Product: "+i+" ("+l+")","pr",l,"pm",i,"cg",k,"pc","N","cm_vc",g?g:cmExtractParameter("cm_vc",document.location.href),"cmAttributes",m])}var __sArray=[];var __sRefArray=[];var __sSkuArray=[];var __sRefSkuArray=[];var __skuString="";function cmDisplayShops(){var b;for(b=0;b<__sArray.length;++b){cmMakeTag(__sArray[b])}__sArray=[];__sRefArray=[];__skuString=cmCalcSKUString()}var cmDisplayShop5s=cmDisplayShop9s=cmDisplayShops;function cmCalcSKUString(){var f="";for(var d=0;d<__sSkuArray.length;d++){var e=__sSkuArray[d];f+="|"+e[1]+"|"+e[7]+"|"+e[5]+"|"}__sSkuArray=[];__sRefSkuArray=[];return f}(function(d){function f(a){if(a&&typeof a!=="string"){a=a.join(cm_AttributeDelimiter)}return a}d.cmAddShop=function(c){var b=c.concat();function a(r,v,u,y){var x=u[r],q,t,s,w;if(typeof(x)!=="undefined"){q=y[x];if(q){t=q[5];s=q[7];w=v[5];v[5]=parseInt(t)+parseInt(v[5]);v[7]=(((v[7]*w)+(s*t))/v[5]);y[x]=v}}else{u[r]=y.length;y[y.length]=v}}a(c[1]+"|"+c[9]+"|"+f(c[11])+"|"+f(c[13]),c,__sRefArray,__sArray);a(b[1],b,__sRefSkuArray,__sSkuArray)};function e(s,o,b,t,c,p,r,a){if((typeof(cm_currencyCode)=="undefined")||(!cm_currencyCode)){cm_currencyCode=""}c=c.toString().replace(cmPricePattern,"");o=o.toString().replace(cmSpacePattern,"");var q=f(r),u=f(a);return["pr",o,"pm",b,"qt",t,"bp",c,"cg",p,"cmAttributes",r,"cmExtraFields",a,"ha1",cm_hex_sha1(""+(q?q+"|||":"")+(u?"extra"+u:"")),"cc",cm_currencyCode,"at",s,"tid","4","pc","N"]}d.cmCreateShopAction5Tag=function(l,b,m,a,c,n,o){cmAddShop(e("5",l,b,m,a,c,n,o))};d.cmCreateShopAction9Tag=function(o,b,u,c,s,q,t,p,r,a){t=t.toString().replace(cmPricePattern,"");cmAddShop(e("9",o,b,u,c,p,r,a).concat(["cd",s,"on",q,"tr",t]))}}(window));function cmCreateOrderTag(n,s,o,r,p,l,k,q,m){if((typeof(cm_currencyCode)=="undefined")||(!cm_currencyCode)){cm_currencyCode=""}if(o){o=o.toString().replace(cmPricePattern,"")}s=s.toString().replace(cmPricePattern,"");cmMakeTag(["tid","3","on",n,"tr",s,"sg",o,"cd",r,"ct",p,"sa",l,"zp",k,"cc",cm_currencyCode,"cmAttributes",q,"cmExtraFields",m])}function cmCreateRegistrationTag(m,l,k,i,n,o,h){cmMakeTag(["tid","2","cd",m,"em",l,"ct",k,"sa",i,"zp",n,"cy",o,"cmAttributes",h])}function cmCreateSessionPropertyTag(d,e,f){cmMakeTag(["tid","18","it",d,"id",e,"hn",f])}function cmCreateErrorTag(d,c){cmMakeTag(["tid","404","pi",d,"cg",c,"pc","Y"])}function cmCreateCustomTag(d,c){cmMakeTag(["tid","7","li",d,"cmExtraFields",c])}function cmMakeTag(r){var n=new _cm("vn2","e4.0"),q,u={1:"pv_a",2:"rg",3:"o_a",4:"s_a",5:"pr_a",6:"pv_a",14:"c_a",15:"e_a"},v={1:"pv",2:"rg",3:"or",4:"sx",5:"pr",6:"pv",7:"ps",14:"cx"},t="cmAttributes",o="cmExtraFields";for(q=0;q<r.length;q+=2){n[r[q]]=r[q+1]}n.rnd=(Math.floor(Math.random()*11111111))+new Date().getTime();if(n.tid=="1"&&(cmCookiesDisabled()?cmAutoAddTP():(cI("cmTPSet")!="Y"))){n.tid="6";n.pc="Y"}if(n.tid=="6"){n.addTP();CB("cmTPSet","Y")}if(n.cm_exAttr){n[t]=n.cm_exAttr.join(cm_AttributeDelimiter);n.cm_exAttr=null}function w(g,c,e){if(g[c]){var b=g[c],a=b,f=e[g.tid],d;if(typeof b==="string"){a=b.split(cm_AttributeDelimiter)}for(d=0;d<a.length;++d){g[f+(d+1)]=a[d]}g[c]=null}}w(n,t,u);w(n,o,v);if(cmAutoCopyAttributesToExtraFields){if((n.tid!="2")&&(n.tid!="15")){for(q=1;q<=15;++q){if(!(n[v[n.tid]+""+q])){n[v[n.tid]+""+q]=n[u[n.tid]+""+q]}}}}if((n.pi==null)&&((n.pc=="Y")||(n.tid=="1"))){n.pi=cmGetDefaultPageID()}if((n.pc=="Y")||(n.tid=="1")){coremetrics.cmLastReferencedPageID=n.pi}else{if(coremetrics.cmLastReferencedPageID==null){coremetrics.cmLastReferencedPageID="NO_PAGEID"}}try{if(parent.cm_ref!=null){n.rf=parent.cm_ref;if(n.pc=="Y"){parent.cm_ref=document.URL}}if(parent.cm_set_mmc){n.ul=cmAppendQueryParameter(document.location.href,parent.cm_mmc_params);if(n.pc=="Y"){parent.cm_ref=n.ul;parent.cm_set_mmc=false}}}catch(s){}if(n.ul==null){n.ul=cG7.normalizeURL(window.location.href,false)}if(n.rf==null){n.rf=cG7.normalizeURL(document.referrer,false)}function i(a){return a.replace(cmMMCPattern,function(b){return b.toLowerCase()})}n.ul=i(n.ul);n.rf=i(n.rf);if((this.manual_cm_mmc)&&(n.ul.indexOf("cm_mmc")==-1)&&(n.ul.indexOf("cm_ven")==-1)){n.ul=cmAppendQueryParameter(n.ul,"cm_mmc",this.manual_cm_mmc)}var p=false;if(cmCheckCMEMFlag){p=cmStartTagSet()}n.writeImg();if(cmCheckCMEMFlag){cmCheckCMEMFlag=false;cmCheckCMEM()}if(p){cmSendTagSet()}if(typeof cm_ted_io=="function"){if(cm_IOEnabled){cm_ted_io(n)}}}function cmGetDefaultPageID(){var f=window.location.pathname;var h=f.indexOf("?");if(h!=-1){f=f.substr(0,h)}var i=f.indexOf("#");if(i!=-1){f=f.substr(0,i)}var g=f.indexOf(";");if(g!=-1){f=f.substr(0,g)}var k=f.lastIndexOf("/");if(k==f.length-1){f=f+"default"}while(f.indexOf("/")==0){f=f.substr(1,f.length)}return(f)}function cmIndexOfParameter(c,d){return d.indexOf(c)}function cmExtractParameter(l,p,s){var q=null,n,r,m="&"+l+"=",o,k;n=p.indexOf("?");if(n>=0){r=p.indexOf("#");if(r<0){r=p.length}p="&"+p.substring(n+1,r);o=p.indexOf(m);if(o>=0){k=p.indexOf("&",o+1);if(k<0){k=p.length}q=p.substring(o+m.length,k)}}return(s&&q)?decodeURIComponent(q):q}function cmRemoveParameter(i,l){if(cmIndexOfParameter(i,l)==-1){return l}var m=l;var g=m.indexOf(i);var k=(g-1);var h=m.indexOf("&",g);if(h==-1){h=m.length}if(m.substring(k,g)=="?"){k=(k+1);h=(h+1)}return m.substring(0,k)+m.substring(h,m.length)}function cmGetMetaTag(f){var e=document.getElementsBytagName("meta");for(var d in e){if(e[d].name==f){return e[d].content}}return null}function cmCheckCMEM(){var e,f,h,g=["cm_em","cm_lm","cm_lm_o"];for(e=0;e<g.length;e++){h=cmExtractParameter(g[e],document.location.href,true);if(h){if(e==2){cmMakeTag(["tid","2","cd_o",h,"em_o",h])}else{f=h.indexOf(":");if(f>-1){h=h.substring(f+1)}cmCreateRegistrationTag(h,h)}}}}if(defaultNormalize==null){var defaultNormalize=null}function myNormalizeURL(y,r){function s(f,e){var d,g,a,c,b=null;if(f){a=f.split("-_-");c=(e?a[0]:a[1]);if(c){c=c.split(",");g=c.length;if(g>0){for(d=0;d<g;d++){c[d]=c[d].toLowerCase()+"="}b=c}}}return b}var t=y||"",o=s(cmNormalizeBlackList,r),p=s(cmNormalizeWhiteList,r),w,u,n=t.indexOf("?"),q=[],x={};if((n>0)&&(o||p)){w=t.substring(n+1);t=t.substring(0,n);u=w.split("&");function v(d,a){var e,f,c,b;if(d){for(e=0;e<u.length;e++){c=a;b=u[e];for(f=0;f<d.length;f++){if(b.toLowerCase().indexOf(d[f])==0){c=!a;break}}if(c&&!x[b]){q.push(b);x[b]=1}}}}v(o,true);v(p,false);t+="?"+q.join("&")}if(defaultNormalize!=null){t=defaultNormalize(t,r)}return t}if(document.cmTagCtl!=null){if((""+document.cmTagCtl.normalizeURL).indexOf("myNormalizeURL")==-1){defaultNormalize=document.cmTagCtl.normalizeURL;document.cmTagCtl.normalizeURL=myNormalizeURL}}var cm_hex_sha1=(function(){function t(a){return m(n(l(a),a.length*8))}function q(e){var c="0123456789abcdef",a="",b,d;for(d=0;d<e.length;d++){b=e.charCodeAt(d);a+=c.charAt((b>>>4)&15)+c.charAt(b&15)}return a}function r(e){var a="",d=-1,b,c;while(++d<e.length){b=e.charCodeAt(d);c=d+1<e.length?e.charCodeAt(d+1):0;if(55296<=b&&b<=56319&&56320<=c&&c<=57343){b=65536+((b&1023)<<10)+(c&1023);d++}if(b<=127){a+=String.fromCharCode(b)}else{if(b<=2047){a+=String.fromCharCode(192|((b>>>6)&31),128|(b&63))}else{if(b<=65535){a+=String.fromCharCode(224|((b>>>12)&15),128|((b>>>6)&63),128|(b&63))}else{if(b<=2097151){a+=String.fromCharCode(240|((b>>>18)&7),128|((b>>>12)&63),128|((b>>>6)&63),128|(b&63))}}}}}return a}function l(a){var c,b=new Array(a.length>>2);for(c=0;c<b.length;c++){b[c]=0}for(c=0;c<a.length*8;c+=8){b[c>>5]|=(a.charCodeAt(c/8)&255)<<(24-c%32)}return b}function m(a){var c,b="";for(c=0;c<a.length*32;c+=8){b+=String.fromCharCode((a[c>>5]>>>(24-c%32))&255)}return b}function n(f,H){f[H>>5]|=128<<(24-H%32);f[((H+64>>9)<<4)+15]=H;var d=new Array(80),h=1732584193,x=-271733879,E=-1732584194,F=271733878,G=-1009589776,e,b,c,g,i,w,k,a;for(e=0;e<f.length;e+=16){b=h;c=x;g=E;i=F;w=G;for(k=0;k<80;k++){d[k]=(k<16)?f[e+k]:o(d[k-3]^d[k-8]^d[k-14]^d[k-16],1);a=p(p(o(h,5),u(k,x,E,F)),p(p(G,d[k]),s(k)));G=F;F=E;E=o(x,30);x=h;h=a}h=p(h,b);x=p(x,c);E=p(E,g);F=p(F,i);G=p(G,w)}return[h,x,E,F,G]}function u(a,b,c,d){return((a<20)?(b&c)|((~b)&d):(a<40)?(b^c^d):(a<60)?((b&c)|(b&d)|(c&d)):(b^c^d))}function s(a){return(a<20)?1518500249:(a<40)?1859775393:(a<60)?-1894007588:-899497514}function p(b,c){var d,a;d=(b&65535)+(c&65535);a=(b>>16)+(c>>16)+(d>>16);return(a<<16)|(d&65535)}function o(b,a){return(b<<a)|(b>>>(32-a))}return function(a){return(a?q(t(r(a))):null)}})();var _io_request=new IORequest();var _io_config=undefined;var _io_state=new IOState();function cm_ted_io(b){IORequest.log(IORequest.log_trace,"Processing tag: tid="+b.tid+", pr="+b.pr+", cg="+b.cg+", at="+b.at+", pi="+b.pi);_io_state.cm_ted_io(b)}function _cm_io_rec(b){if(_io_request!==undefined){_io_request.cm_io_rec(b)}}function _cm_io_cfg(b){if(_io_request!==undefined){_io_request.cm_io_cfg(b,1)}}function _cm_io_ssp(b){if(_io_request!==undefined){_io_request.cm_io_ssp(b)}}function cmRecRequest(h,g,k,m,i,l){if(h===undefined){IORequest.log(IORequest.log_error,"cmRecRequest: Required zone id undefined.")}IORequest.rec_request(h,g,k,m,i,l)}function cmPageRecRequest(f,e,g,h){if(f===undefined){IORequest.log(IORequest.log_error,"cmPageRecRequest: Required zone id undefined.")}IORequest.page_rec_request(f,e,g,h)}function cmElementRecRequest(f,e,g,h){if(f===undefined){IORequest.log(IORequest.log_error,"cmElementRecRequest: Required zone id undefined.")}IORequest.element_rec_request(f,e,g,h)}function cmDisplayRecs(){IORequest.display_recs()}function cmGetTestGroup(){return IORequest.ab_group_number}function cmSetRegId(c,d){if((c===undefined)||(c=="")){IORequest.log(IORequest.log_error,"cmSetRegId: Required registration id is blank or undefined.")}else{IORequest.setRegIdCalled=true;IORequest.ssp_reg_id=IORequest.encrypt16(c.toString());IORequest.log(IORequest.log_trace,"cmSetRegId",c+(d?","+d:"")+" - encryption of "+c+": "+IORequest.ssp_reg_id);IORequest.ssp_allow_flag=d}}function cmSetSegment(b){IORequest.setSegmentCalled=true;if((b===undefined)||(b=="")){IORequest.log(IORequest.log_trace,"cmSetSegment: Segment is blank or undefined, segment will be removed from cookie");IORequest.pf_segment=""}else{IORequest.pf_segment=IORequest.encrypt16(b.toString());IORequest.log(IORequest.log_trace,"cmSetSegment",b+" - encryption of "+b+": "+IORequest.pf_segment)}}function IORequest(){var g_config_filename="io_config.js";var g_version="V4";this.h_timer=undefined;this.h_script=undefined;this.xmlHttp=undefined;this.i_timeout=0;this.request_type="";this.action_callback=function(action){return};this.display_status=function(txt,color){return};this.cm_alert=function(p_text){if(!IORequest.production){alert(p_text)}};IOStopWatch=function(){this.start=function(){this.elapsed_time=0;this.t_start=new Date().getTime()};this.stop=function(){this.elapsed_time=new Date().getTime()-this.t_start;return(this.elapsed_time)}};this.stop_watch=new IOStopWatch("stop_watch");this.ajax_timeout=function(req_type){if(_io_request.xmlHttp!==undefined){try{if(_io_request.xmlHttp.abort!==undefined){if(typeof _io_request.xmlHttp.abort=="function"){_io_request.xmlHttp.abort()}}}catch(e){_io_request.display_status("IE - no abort property of the xmlHttp request object","red")}}IORequest.b_timeout=true;if(req_type==1){_io_request.action_callback("config_timeout");IORequest.i_zone=0;setTimeout('IORequest.config_download_failure("ajax timeout");',0)}else{if(req_type==2){_io_request.action_callback("ssp_timeout");IORequest.log(IORequest.log_warn,"Ajax timeout downloading ssp",_io_request.stop_watch.elapsed_time+" ms");IORequest.i_zone=0;setTimeout('IORequest.ssp_download_failure("ajax timeout");',0)}else{_io_request.display_status("Ajax timeout downloading product ("+_io_request.stop_watch.elapsed_time+"ms)","red");IORequest.log(IORequest.log_warn,"Ajax timeout downloading product",_io_request.stop_watch.elapsed_time+" ms");_io_request.download_product()}}};function getXmlHttpObject(){if(window.XMLHttpRequest){return new window.XMLHttpRequest}else{try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(ex){return null}}}this.javascript_timeout=function(req_type){if(IORequest.h_script!==undefined){var h=document.getElementsByTagName("head").item(0);if(h){h.removeChild(IORequest.h_script);IORequest.h_script=undefined}}_io_request.stop_watch.stop();if(IORequest.request_crc!==undefined){IORequest.timeout_product[IORequest.offer_id+IORequest.request_crc]=1}if(req_type==1){_io_request.action_callback("config_timeout");IORequest.i_zone=0;setTimeout('IORequest.config_download_failure("javascript timeout");',0)}else{if(req_type==2){_io_request.action_callback("ssp_timeout");IORequest.log(IORequest.log_warn,"JavaScript timeout downloading ssp",_io_request.stop_watch.elapsed_time+" ms");IORequest.i_zone=0;setTimeout('IORequest.ssp_download_failure("javascript timeout");',0)}else{_io_request.display_status("JavaScript timeout downloading product ("+_io_request.stop_watch.elapsed_time+"ms)","blue");IORequest.log(IORequest.log_warn,"JavaScript timeout downloading product",_io_request.stop_watch.elapsed_time+" ms");if(IORequest.request_crc!==undefined){if((_io_config.file_not_found_pc!==undefined)&&(_io_config.file_not_found_pc>Math.floor(Math.random()*100))){var id=IORequest.offer_type+IORequest.offer_id+"|"+IORequest.request_crc+"|"+(IORequest.isCategoryOffer(IORequest.offer_type)?IORequest.plain_text_cat_id:(IORequest.isSearchOffer(IORequest.offer_type)?IORequest.plain_text_scrubbed_search_id:(IORequest.isAttributeOffer(IORequest.offer_type)?IORequest.plain_text_attr_value:IORequest.plain_text_item_id)));cmCreatePageElementTag(id,_io_config.file_not_found_id);IORequest.log(IORequest.log_trace,"page element tag for file not found",id)}}_io_request.download_product()}}};this.stateChanged=function(){if(_io_request.xmlHttp.readyState==4){clearTimeout(_io_request.h_timer);_io_request.h_timer=undefined;if(_io_request.xmlHttp.status==200){var txt=_io_request.xmlHttp.responseText;eval(txt)}else{if(_io_request.xmlHttp.status==404){_io_request.display_status("Ajax - Requested File not found on server - "+_io_request.xmlHttp.status+". Next step in recommendation plan attempted","blue");IORequest.log(IORequest.log_warn,"Ajax - Requested File not found on server - "+_io_request.xmlHttp.status,"next step in recommendation plan attempted");IORequest.b_404=true;if(_io_request.request_type=="config"){setTimeout('IORequest.config_download_failure("ajax 404");',0)}else{if(_io_request.request_type=="ssp"){IORequest.ssp_processed("Ajax 404 downloading ssp")}else{if(_io_request.request_type=="product"){_io_request.download_product()}}}}else{_io_request.display_status("Ajax - Unexpected status from stateChanged: "+_io_request.xmlHttp.status+".","red");IORequest.log(IORequest.log_error,"Ajax - Unexpected status from stateChanged",_io_request.xmlHttp.status);IORequest.b_404=true;if(_io_request.request_type=="config"){setTimeout('IORequest.config_download_failure("ajax 404");',0)}else{if(_io_request.request_type=="ssp"){IORequest.ssp_processed("Ajax 404 downloading ssp")}else{if(_io_request.request_type=="product"){_io_request.download_product()}}}}}}else{}};this.get_target_from_plan=function(p_rec_plan,p_b_category){IORequest.pers_targ_from_cookie=0;if(IORequest.current_step>=p_rec_plan.rec_steps.length){return("_SX_")}var rec_step=p_rec_plan.rec_steps[IORequest.current_step];IORequest.log(IORequest.log_trace,"step: "+IORequest.current_step+" offer_id: "+rec_step.offer_id+" type: "+rec_step.offer_type+" target: "+rec_step.target_id+" algo_id: "+rec_step.algo_id+" algo_value",rec_step.algo_value);if(rec_step.target_id=="_NR_"){return("_NR_")}if(rec_step.target_id=="_DPF_"){return("_DPF_")}if(p_b_category&&!IORequest.isCategoryOffer(rec_step.offer_type)){IORequest.current_step++;this.display_status("Looking for Category - found Product: "+rec_step.target_id+".  Continuing to next step.","green");IORequest.log(IORequest.log_trace,"Looking for Category - found Product: "+rec_step.target_id+".  Continuing to next step.");return(this.get_target_from_plan(p_rec_plan,1))}if(rec_step.target_id=="_SP_"||rec_step.target_id=="_SG_"||rec_step.target_id=="_SE_"){if(IORequest.item_id==""){IORequest.current_step++;this.display_status("No item id specified. Continuing to next step.","blue");IORequest.log(IORequest.log_warn,"No item id specified.  Continuing to next step.");return(this.get_target_from_plan(p_rec_plan))}else{if(IORequest.isMultiTargetStep(rec_step)){return(IORequest.item_id)}else{return(IORequest.single_item_id)}}}if(rec_step.target_id=="_SC_"||rec_step.target_id=="_SGC_"||rec_step.target_id=="_SEC_"){if(IORequest.category_id==""){IORequest.current_step++;this.display_status("No category id specified. Continuing to next step.","blue");IORequest.log(IORequest.log_warn,"No category id specified.  Continuing to next step.");return(this.get_target_from_plan(p_rec_plan))}else{if(IORequest.isMultiTargetStep(rec_step)){return(IORequest.category_id)}else{return(IORequest.single_category_id)}}}if(rec_step.target_id=="_SS_"){if(IOConfig.crc_specified_search==""){IORequest.current_step++;this.display_status("No search term specified. Continuing to next step.","blue");IORequest.log(IORequest.log_warn,"No search term specified.  Continuing to next step.");return(this.get_target_from_plan(p_rec_plan))}else{return(IOConfig.crc_specified_search)}}if(rec_step.target_id=="_SA_"){if(IORequest.single_attr_value==""){IORequest.current_step++;this.display_status("No attribute value specified. Continuing to next step.","blue");IORequest.log(IORequest.log_warn,"No attribute value specified.  Continuing to next step.");return(this.get_target_from_plan(p_rec_plan))}else{if(IORequest.isMultiTargetStep(rec_step)){this.display_status("Multi-target not allowed for Specified Attribute. Returning single target.","blue");IORequest.log(IORequest.log_warn,"Multi-target not allowed for Specified Attribute. Returning single target.");return(IORequest.single_attr_value)}else{return(IORequest.single_attr_value)}}}if(rec_step.target_id=="_RVP_"||rec_step.target_id=="_RVL_"||rec_step.target_id=="_RVG_"||rec_step.target_id=="_RVLG_"||rec_step.target_id=="_LCP_"||rec_step.target_id=="_RPP_"||rec_step.target_id=="_RVC_"||rec_step.target_id=="_MPC_"||rec_step.target_id=="_MSP_"){var rc=_io_state.cm_get_item_from_cookie(rec_step.target_id,IORequest.isMultiTargetStep(rec_step));if(rc===0){IORequest.current_step++;this.display_status("No "+rec_step.target_id+" available. Continuing to next step.","green");IORequest.log(IORequest.log_trace,"No "+rec_step.target_id+" available.  Continuing to next step.");return(this.get_target_from_plan(p_rec_plan))}else{IORequest.pers_targ_from_cookie=1;return(rc)}}this.display_status("unrecognized target id: "+rec_step.target_id+".","red");IORequest.log(IORequest.log_error,"unrecognized target id",rec_step.target_id);return("_NR_")};this.get_session_data=function(){var session_data=undefined;var random_number=new Date().getTime().toString();var new_session_data="S"+random_number+"|";if(IORequest.ab_group_number_source==IORequest.ab_group_number_source_cookie){session_data=IORequest.find_cookie(IORequest.ses_cookie);if(session_data===undefined){session_data=IORequest.set_and_check_cookie(IORequest.ses_cookie,new_session_data,true)}}else{if(IORequest.ab_group_number_source==IORequest.ab_group_number_source_localstorage){if(IORequest.hasStorage){session_data=window.localStorage.getItem(IORequest.ab_session_key);if(session_data==null){window.localStorage.setItem(IORequest.ab_session_key,new_session_data);session_data=new_session_data}}}else{if(IORequest.ab_group_number_source==IORequest.ab_group_number_source_windowsname){var wname_data_array=window.top.name.split("~|~");if(window.top.name.indexOf(IORequest.ab_session_key)>-1){for(var i_subdata=0;i_subdata<wname_data_array.length;i_subdata++){if(wname_data_array[i_subdata].indexOf(IORequest.ab_session_key)>-1){session_data=wname_data_array[i_subdata].substr(IORequest.ab_session_key.length+1)}}}else{window.top.name=window.top.name+IORequest.ab_session_key+"="+new_session_data+"~|~";session_data=new_session_data}}}}return session_data};this.update_session_data=function(new_session_data){if(IORequest.ab_group_number_source==IORequest.ab_group_number_source_cookie){IORequest.set_and_check_cookie(IORequest.ses_cookie,new_session_data,true)}else{if(IORequest.ab_group_number_source==IORequest.ab_group_number_source_localstorage){if(IORequest.hasStorage){window.localStorage.setItem(IORequest.ab_session_key,new_session_data)}}else{if(IORequest.ab_group_number_source==IORequest.ab_group_number_source_windowsname){var new_wname_value="";var wname_data_array=window.top.name.split("~|~");for(var i_subdata=0;i_subdata<wname_data_array.length;i_subdata++){if(wname_data_array[i_subdata].indexOf(IORequest.ab_session_key)>-1){new_wname_value=new_wname_value+IORequest.ab_session_key+"="+new_session_data+"~|~"}else{if(wname_data_array[i_subdata]!=""){new_wname_value=new_wname_value+wname_data_array[i_subdata]+"~|~"}}}window.top.name=new_wname_value}}}};this.issue_page_element_tag=function(ab_test_array){var session_data=this.get_session_data();if(session_data!==undefined){if(session_data.indexOf("|"+ab_test_array[0]+"~")==-1){this.update_session_data(session_data+ab_test_array[0]+"~"+new Date().getTime().toString()+"|");cmCreatePageElementTag(ab_test_array[1],ab_test_array[0]);IORequest.log(IORequest.log_trace,"issued page element tag "+ab_test_array[1],ab_test_array[0]);cmCreatePageElementTag(ab_test_array[1],ab_test_array[0]+"_"+IORequest.ab_group_number_source+"_"+IORequest.ab_group_number);IORequest.log(IORequest.log_trace,"issued page element source tag "+ab_test_array[1],ab_test_array[0]+"_"+IORequest.ab_group_number_source+"_"+IORequest.ab_group_number)}else{var ses_data_array=session_data.split("|");for(var i_subdata=0;i_subdata<ses_data_array.length;i_subdata++){if(ses_data_array[i_subdata].indexOf(ab_test_array[0])>-1){var sub_data_array=ses_data_array[i_subdata].split("~");var ts_plus_5=new Date(Number(sub_data_array[1]));ts_plus_5.setMinutes(ts_plus_5.getMinutes()+new Number("5"));var current_timestamp=new Date().getTime();if(current_timestamp>(ts_plus_5.getTime())){cmCreatePageElementTag(ab_test_array[1],ab_test_array[0]);IORequest.log(IORequest.log_trace,"issued page element tag "+ab_test_array[1],ab_test_array[0]);session_data=session_data.replace(ab_test_array[0]+"~"+sub_data_array[1],ab_test_array[0]+"~"+current_timestamp);this.update_session_data(session_data)}}}}}};this.get_client_id=function(){var r_client_id;if(IORequest.client_id_override!==undefined){r_client_id=IORequest.client_id_override}else{if(IORequest.client_id!==undefined){r_client_id=IORequest.client_id}else{if(cm_ClientID!==undefined){r_client_id=cm_ClientID.split(";")[0].split("|")[0]}}if(IORequest.find_cookie(IORequest.test_cookie)===undefined){if(r_client_id.substr(0,1)=="6"){IORequest.log(IORequest.log_trace,"Retrieving data from client 9"+r_client_id.substr(1,r_client_id.length-1)+" instead of test client "+r_client_id);r_client_id="9"+r_client_id.substr(1,r_client_id.length-1)}}}return r_client_id};this.download_product=function(){if(_io_config!==undefined){IORequest.current_step++;this.io_zone=_io_config.zones[IORequest.zone_id];var zone_test_id="''";if(this.io_zone.ab_test_id!="no ab test"){this.issue_page_element_tag(this.io_zone.ab_test_id.split(":"));zone_test_id="'"+this.io_zone.ab_test_id+"'"}IORequest.log(IORequest.log_trace,"ab test id",this.io_zone.ab_test_id);if(!this.io_zone.rec_plan){this.cm_alert("rec_plan not defined - zone_id: "+IORequest.zone_id)}var rc=this.get_target_from_plan(this.io_zone.rec_plan,IORequest.b_timeout||IORequest.b_404);this.action_callback("recommendation_plan");if(rc=="_DPF_"&&(IORequest.default_product_file!==undefined)){_io_request.cm_io_rec(IORequest.default_product_file);return(0)}if(rc=="_SX_"||rc=="_NR_"||rc=="_DPF_"){var heading_txt="";if(rc=="_SX_"){this.display_status("steps exhausted. Calling zone population function "+this.io_zone.zpf+" without recommendations.","blue");IORequest.log(IORequest.log_warn,"steps exhausted - calling zone population function without recommendations",this.io_zone.zpf);heading_txt="Steps exhausted.  No recommendations found"}else{this.display_status("calling zone population function "+this.io_zone.zpf+" without recommendations (_NR_)","blue");IORequest.log(IORequest.log_warn,"calling zone population function without recommendations",this.io_zone.zpf);heading_txt="No recommendations found"}if(this.io_zone.zpf!==undefined){var guts="[],'"+this.io_zone.name+"','_NR_','','',[],[],'"+heading_txt+"',"+zone_test_id;if(_io_config.zpfcid!="N"){guts=guts+", []"}var zpf=this.io_zone.zpf+"("+guts+")";IORequest.log(IORequest.log_trace,"Calling zone population function",zpf);setTimeout(zpf,0)}else{this.display_status("Zone population function "+this.io_zone.name+"_zp is not defined.","red");IORequest.log(IORequest.log_error,"Zone population function ",this.io_zone.name+"_zp is not defined")}setTimeout('IORequest.stack_manager("rc: '+rc+'");',0);return(0)}var item=rc;this.offer_id=this.io_zone.rec_plan.rec_steps[IORequest.current_step].offer_id;this.cgi_version=this.io_zone.rec_plan.rec_steps[IORequest.current_step].offer_version;this.offer_type=this.io_zone.rec_plan.rec_steps[IORequest.current_step].offer_type;IORequest.offer_type=this.offer_type;IORequest.offer_id=this.offer_id;if((item.length>1)||(IORequest.isTargetsAsRecsStep(this.io_zone.rec_plan.rec_steps[IORequest.current_step]))){var image_url_prefix=((window.location.protocol=="https:"&&IORequest.access_method=="json remote")?IORequest.image_url_prefix["json remote https"]:IORequest.image_url_prefix[IORequest.access_method]);var pqa_cookie=IORequest.find_cookie(IORequest.pqa_cookie);if(pqa_cookie!==undefined&&(pqa_cookie.indexOf("E")>-1)){image_url_prefix=image_url_prefix.replace(IORequest.io_recs,"recsprodqa.coremetrics.com")}var itemList="";for(var i_prd=0;i_prd<item.length;i_prd++){itemList=itemList+item[i_prd]+"|"}IORequest.request_crc=undefined;this.url=image_url_prefix+"?cm_cid="+this.get_client_id()+"&cm_offerid="+this.offer_id+"&cm_offertype="+this.offer_type;if(IORequest.isMultiTargetStep(this.io_zone.rec_plan.rec_steps[IORequest.current_step])){this.url+="&cm_algorithm="+this.io_zone.rec_plan.rec_steps[IORequest.current_step].algo_id;var current_algo_value=this.io_zone.rec_plan.rec_steps[IORequest.current_step].algo_value;if((current_algo_value!==undefined)&&(current_algo_value!=="")){this.url+="&cm_algorithmvalue="+current_algo_value}}this.url+="&cm_targetid="+itemList;this.display_status("retrieving recommendations for multiple targets or targets as recommendations: "+itemList+" url: "+this.url,"green");IORequest.log(IORequest.log_trace,"retrieving recommendations for multiple targets or targets as recommendations: "+itemList+" - url",this.url)}else{if((IORequest.isProductBasedOffer(this.offer_type))&&((IORequest.isCategoryOffer(this.offer_type)&&!IORequest.encrypt_cats)||(IORequest.isProductOffer(this.offer_type)&&!IORequest.encrypt_prds))){this.item_id_crc=IORequest.encrypt8(item[0])}else{this.item_id_crc=item[0]}IORequest.request_crc=this.item_id_crc;this.group=this.item_id_crc.substr(0,2);var url_prefix=((window.location.protocol=="https:"&&IORequest.access_method=="json remote")?IORequest.url_prefix["json remote https"]:IORequest.url_prefix[IORequest.access_method]);var url_cookie=IORequest.find_cookie(IORequest.url_cookie);if(url_cookie!==undefined&&(url_cookie.indexOf("old")>-1)){url_prefix=((window.location.protocol=="https:"&&IORequest.access_method=="json remote")?IORequest.url_prefix_old["json remote https"]:IORequest.url_prefix_old[IORequest.access_method])}else{var pqa_cookie=IORequest.find_cookie(IORequest.pqa_cookie);if(pqa_cookie!==undefined&&(pqa_cookie.indexOf("A")>-1)){url_prefix=url_prefix+"prodqa/"}}var version_postfix="?V="+this.cgi_version;if(_io_config.vcgi=="N"){version_postfix=""}this.url=url_prefix+this.get_client_id()+"/"+g_version+"/"+this.offer_type+this.offer_id+"/"+this.offer_type+this.group+"/"+this.item_id_crc+".js"+version_postfix;this.display_status("retrieving recommendations for target: "+item[0]+" url: "+this.url,"green");IORequest.log(IORequest.log_trace,"retrieving recommendations for target: "+item[0]+" - url",this.url)}this.action_callback("product_request");if((IORequest.access_method=="ajax local")||(IORequest.access_method=="ajax remote")){this.xmlHttp=getXmlHttpObject();if(this.xmlHttp===null){this.cm_alert("Your browser really does not support Ajax!");return}this.h_timer=setTimeout("_io_request.ajax_timeout(0)",IORequest.timeout[this.i_timeout]);this.i_timeout=1;this.request_type="product";this.xmlHttp.onreadystatechange=this.stateChanged;this.stop_watch.start();try{this.xmlHttp.open("GET",this.url,true)}catch(e){clearTimeout(this.h_timer);this.display_status("Ajax Error: Cross Domain request attempted.  Ajax not supported.  Try json x-domain.","red");IORequest.rec_request_abort()}try{this.xmlHttp.send(null)}catch(e1){clearTimeout(this.h_timer);this.display_status("Ajax Error: Host not found.  Ajax not supported.  Try json x-domain.","red");IORequest.rec_request_abort()}}else{var request_timeout=(this.io_zone.rec_plan.rec_steps[IORequest.current_step].target_id=="_SS_"?IOConfig.sfto:IORequest.timeout[this.i_timeout]);this.h_timer=setTimeout("_io_request.javascript_timeout(0)",request_timeout);this.i_timeout=1;this.stop_watch.start();try{var h=document.getElementsByTagName("head").item(0);IORequest.h_script=document.createElement("script");IORequest.h_script.setAttribute("language","javascript");IORequest.h_script.setAttribute("type","text/javascript");IORequest.h_script.setAttribute("charset","UTF-8");IORequest.h_script.setAttribute("src",this.url);h.appendChild(IORequest.h_script)}catch(e2){IORequest.rec_request_abort()}}}else{this.display_status("download_product - current_step: "+IORequest.current_step+" - _io_config is not defined.","blue");IORequest.log(IORequest.log_warn,"download_product - current_step: "+IORequest.current_step+" - _io_config is not defined.")}};this.download_config=function(){var url_prefix=((window.location.protocol=="https:"&&IORequest.access_method=="json remote")?IORequest.url_prefix["json remote https"]:IORequest.url_prefix[IORequest.access_method]);var url_cookie=IORequest.find_cookie(IORequest.url_cookie);if(url_cookie!==undefined&&(url_cookie.indexOf("old")>-1)){url_prefix=((window.location.protocol=="https:"&&IORequest.access_method=="json remote")?IORequest.url_prefix_old["json remote https"]:IORequest.url_prefix_old[IORequest.access_method])}else{var pqa_cookie=IORequest.find_cookie(IORequest.pqa_cookie);if(pqa_cookie!==undefined&&(pqa_cookie.indexOf("A")>-1)){url_prefix=url_prefix+"prodqa/"}}this.url=url_prefix+this.get_client_id()+"/"+g_config_filename+"?ts="+(((new Date().getTime())/600000)|0);this.display_status("retrieving IO Config file: "+g_config_filename+" url: "+this.url,"green");IORequest.log(IORequest.log_trace,"retrieving IO config file "+g_config_filename,this.url);this.action_callback("config_request");if((IORequest.access_method=="ajax local")||(IORequest.access_method=="ajax remote")){this.xmlHttp=getXmlHttpObject();if(this.xmlHttp===null){this.cm_alert("Your browser really does not support Ajax!");return}this.h_timer=setTimeout("_io_request.ajax_timeout(1)",IORequest.timeout[this.i_timeout]);this.i_timeout=1;this.request_type="config";this.xmlHttp.onreadystatechange=this.stateChanged;this.stop_watch.start();try{this.xmlHttp.open("GET",this.url,true)}catch(e){clearTimeout(this.h_timer);this.display_status("Ajax Error: Cross Domain request attempted.  Ajax not supported.  Try json x-domain.","red");IORequest.rec_request_abort()}try{this.xmlHttp.send(null)}catch(e1){clearTimeout(this.h_timer);this.display_status("Ajax Error: Host not found.  Ajax not supported.  Try json x-domain.","red");IORequest.rec_request_abort()}}else{this.h_timer=setTimeout("_io_request.javascript_timeout(1)",IORequest.timeout[this.i_timeout]);this.i_timeout=1;this.stop_watch.start();try{var h=document.getElementsByTagName("head").item(0);var js=document.createElement("script");js.setAttribute("language","javascript");js.setAttribute("type","text/javascript");js.setAttribute("src",this.url);h.appendChild(js)}catch(e2){IORequest.rec_request_abort()}}};this.download_ssp=function(orig_cookie,reg_id){var ssp_url_prefix=((window.location.protocol=="https:"&&IORequest.access_method=="json remote")?IORequest.ssp_url_prefix["json remote https"]:IORequest.ssp_url_prefix[IORequest.access_method]);var pqa_cookie=IORequest.find_cookie(IORequest.pqa_cookie);if(pqa_cookie!==undefined&&(pqa_cookie.indexOf("E")>-1)){ssp_url_prefix=ssp_url_prefix.replace(IORequest.io_recs,"recsprodqa.coremetrics.com")}var orig_cookie_encoded=encodeURIComponent(orig_cookie);this.url=ssp_url_prefix+"?cm_cid="+_io_request.get_client_id()+"&cm_regid="+reg_id+"&cm_ioc="+orig_cookie_encoded;IORequest.log(IORequest.log_trace,"retrieving SSP data for encrypted reg id: "+reg_id+" - url",this.url);this.action_callback("ssp_request");if((IORequest.access_method=="ajax local")||(IORequest.access_method=="ajax remote")){this.xmlHttp=getXmlHttpObject();if(this.xmlHttp===null){this.cm_alert("Your browser really does not support Ajax!");return}this.h_timer=setTimeout("_io_request.ajax_timeout(2)",IORequest.timeout[this.i_timeout]);this.i_timeout=1;this.request_type="ssp";this.xmlHttp.onreadystatechange=this.stateChanged;this.stop_watch.start();try{this.xmlHttp.open("GET",this.url,true)}catch(e){clearTimeout(this.h_timer);this.display_status("Ajax Error: Cross Domain request attempted.  Ajax not supported.  Try json x-domain.","red");IORequest.rec_request_abort()}try{this.xmlHttp.send(null)}catch(e1){clearTimeout(this.h_timer);this.display_status("Ajax Error: Host not found.  Ajax not supported.  Try json x-domain.","red");IORequest.rec_request_abort()}}else{this.h_timer=setTimeout("_io_request.javascript_timeout(2)",IORequest.timeout[this.i_timeout]);this.i_timeout=1;this.stop_watch.start();try{var h=document.getElementsByTagName("head").item(0);IORequest.h_script=document.createElement("script");IORequest.h_script.setAttribute("language","javascript");IORequest.h_script.setAttribute("type","text/javascript");IORequest.h_script.setAttribute("charset","UTF-8");IORequest.h_script.setAttribute("src",this.url);h.appendChild(IORequest.h_script)}catch(e2){IORequest.rec_request_abort()}}};this.cm_io_rec=function(_j){this.stop_watch.stop();if(this.h_timer!==undefined){clearTimeout(this.h_timer);this.h_timer=undefined}if(this.io_zone!==undefined&&this.io_zone.zpf!==undefined){if(_j!==undefined&&_j.pd!==undefined&&_j.hd!==undefined&&_j.pd[0]!==undefined&&_j.pd[0][2]!==undefined&&_j.hd[9]!==undefined){var target_product_id=_j.pd[0][0];var target_crc=_j.hd[6];var offer_type=_j.hd[2];var offer_id=_j.hd[3];var num_recs=_j.hd[5];var num_static_parms=3;if(IORequest.isPageBasedOffer(offer_type)){num_static_parms=5}if(num_recs==0){this.display_status("Downloaded product file contains no recommendations.  Continuing to next step.","blue");IORequest.log(IORequest.log_warn,"Downloaded product file contains no recommendations.  Continuing to next step.");this.download_product()}else{var url_parm_offset=IORequest.getUrlParmOffset(_j.irs[1],_j.mids,offer_type);if(IORequest.isSearchOffer(offer_type)){target_product_id=IORequest.raw_search_term.replace(/"/g,'\\"')}if((IORequest.request_crc!==undefined)&&(target_crc!==undefined)&&(target_crc.length==8)&&(IORequest.timeout_product[offer_id+target_crc])){IORequest.log(IORequest.log_trace,"Product download attempt following timeout for same file.  Requested file CRC",IORequest.request_crc);IORequest.timeout_product[offer_id+target_crc]=0;return}this.display_status("Successful download of recommendations for item: "+target_product_id+' <font color="black">('+this.stop_watch.elapsed_time+" ms)</font>.","green");IORequest.log(IORequest.log_trace,"successful retrieval of recommendations for item "+target_product_id,this.stop_watch.elapsed_time+" ms");IORequest.log(IORequest.log_iuo,"requested version: "+this.cgi_version+" returned version",_j.hd[9]);IORequest.log(IORequest.log_product_file,"product file",_j);var rec_number=0;var product_ids=[];var cat_ids=[];var page_urls=[];var page_names=[];var rec_attributes=[];var tgt_attributes=[];if(IORequest.isProductOffer(offer_type)){if(!IORequest.pers_targ_from_cookie){if((IOConfig.category_structure=="E")&&(_j.pd[0][2])){_io_state.cm_ted_io({i_offer:"epr_category",cg:_j.pd[0][2].toString().toUpperCase()})}if((+IOConfig.brand_personalization[0])!=-1){var bp_index=(+IOConfig.brand_personalization[0])+num_static_parms;if(_j.pd[0][bp_index]!==undefined){_io_state.cm_ted_io({i_offer:"brand",brn:_j.pd[0][bp_index]})}}}}var score=[];var resort=false;var mpc=_io_state.cm_get_item_from_cookie("_MPC_",false);var mpb=_io_state.cm_get_item_from_cookie("_MPB_",false);for(var i_prd=1;i_prd<_j.pd.length;i_prd++){score[i_prd-1]=[];score[i_prd-1][0]=i_prd;score[i_prd-1][1]=5000;var j_pd_score=_j.pd[i_prd][1];if(_j.pd[i_prd][1].length==2){score[i_prd-1][1]=_j.pd[i_prd][1][0];j_pd_score=_j.pd[i_prd][1][1]}score[i_prd-1][2]=j_pd_score;var native_rec=((score[i_prd-1][1]>=5000)&&(score[i_prd-1][1]<6000));if(native_rec){if((IORequest.optional_parm=="R")&&(IORequest.isCategoryOffer(offer_type))){score[i_prd-1][2]=Math.floor(Math.random()*1000);resort=true}else{if((mpc!==0)&&(_io_config.cp!==1)){var cat_compare=(IORequest.encrypt_cats?IORequest.encrypt8(_j.pd[i_prd][2]):_j.pd[i_prd][2]);if(cat_compare==mpc[0]){score[i_prd-1][2]=score[i_prd-1][2]*_io_config.cp;resort=true}}if(IORequest.isProductBasedOffer(offer_type)){if(mpb!==0){var brand=_j.pd[i_prd][(+IOConfig.brand_personalization[0])+num_static_parms];var brand_crc=IORequest.encrypt8(brand);if(brand_crc==mpb[0]){score[i_prd-1][2]=score[i_prd-1][2]*(+IOConfig.brand_personalization[1]);resort=true}}}}}}if(resort){score.sort(function(a,b){return(b[1]==a[1]?b[2]-a[2]:b[1]-a[1])})}var l_attribute_array=_j.pd[0].length;for(var i_att=num_static_parms;i_att<l_attribute_array;i_att++){var prefix=((_j.ap!==undefined&&_j.ap[i_att-num_static_parms]!==undefined)?_j.ap[i_att-num_static_parms]:"");tgt_attributes.push((_j.pd[0][i_att]===undefined)?undefined:prefix+_j.pd[0][i_att].replace(/"/g,'\\"'))}var product_filter_crc=[];var product_filter_raw=[];if(this.io_zone.filter_cp){var lcps=_io_state.cm_get_item_from_cookie("_LCP_",true);if(lcps!==0){for(var i_cp=0;i_cp<lcps.length;i_cp++){if(IORequest.encrypt_prds){product_filter_crc[lcps[i_cp]]=1}else{product_filter_raw[lcps[i_cp]]=1}}}}if(this.io_zone.filter_pp){var rpps=_io_state.cm_get_item_from_cookie("_RPP_",true);if(rpps!==0){for(var i_pp=0;i_pp<rpps.length;i_pp++){if(IORequest.encrypt_prds){product_filter_crc[rpps[i_pp]]=1}else{product_filter_raw[rpps[i_pp]]=1}}}}if(IORequest.item_id!==""){for(var i_si=0;i_si<IORequest.item_id.length;i_si++){if(IORequest.encrypt_prds){product_filter_crc[IORequest.item_id[i_si]]=1}else{product_filter_raw[IORequest.item_id[i_si]]=1}}}for(var i_bl=0;i_bl<_io_config.bad_list.length;i_bl++){product_filter_crc[_io_config.bad_list[i_bl]]=1}IORequest.reason=[];var len_required_attributes=(_io_config.required_attrs.length);var a_deemphasized_by_segment=[];var a_tmp_deemph=[];for(var ii=0;((product_ids.length<this.io_zone.n_recs)&&(ii<score.length));ii++){var i_pd=score[ii][0];var item_raw=_j.pd[i_pd][0];var zpf_item=item_raw.replace(/"/g,'\\"');var item_crc=(IORequest.isContentBasedOffer(offer_type)?IORequest.encrypt16(item_raw):IORequest.encrypt8(item_raw));IORequest.reason[item_raw]=0;var b_all_required_attributes=true;var b_excluded_by_segment_filter=false;var b_deemphasized_by_segment_filter=false;if((IORequest.filtered_out_products[item_raw]===undefined)&&(product_filter_raw[item_raw]===undefined)&&(product_filter_crc[item_crc]===undefined)&&(IOState.h_productview_product[item_raw]===undefined)&&(IOState.h_pageview_page[item_raw]===undefined)){var a_tmp=[];for(var i_at=num_static_parms;((i_at<_j.pd[i_pd].length)&&(b_all_required_attributes===true));i_at++){if((len_required_attributes>(i_at-num_static_parms))&&(_io_config.required_attrs[i_at-num_static_parms])&&!(_j.pd[i_pd][i_at])){b_all_required_attributes=false}else{var at_prefix=((!IORequest.is_undefined(_j.ap)&&_j.ap[i_at-num_static_parms]!==undefined)?_j.ap[i_at-num_static_parms]:"");a_tmp.push((_j.pd[i_pd][i_at]===undefined)?undefined:at_prefix+_j.pd[i_pd][i_at].replace(/"/g,'\\"'))}}if(b_all_required_attributes){var segment=_io_state.get_pf_segment_from_cookie();if(segment!=""){b_zone_found=false;for(var i_zones=0;((i_zones<_io_config.pf_zone_list.length)&&(b_zone_found===false));i_zones++){if(_io_config.pf_zone_list[i_zones]==this.io_zone.name){b_zone_found=true}}if(b_zone_found){if(_j.mids!==undefined){var i_attr_index=-1;for(var i_mids=0;((i_mids<_j.mids.length)&&(i_attr_index===-1));i_mids++){if(_j.mids[i_mids]==_io_config.pf_metric_id){i_attr_index=i_mids}}if(i_attr_index!=-1){var segment_attr_value=_j.pd[i_pd][num_static_parms+i_attr_index];var segment_array=segment_attr_value.split(_io_config.multi_target_delim);var in_segment=false;for(var i_segment=0;i_segment<segment_array.length;i_segment++){if(IORequest.encrypt16(segment_array[i_segment])==segment){in_segment=true}}if(!in_segment){if(_io_config.pf_filter_type=="EXCLUDE"){b_excluded_by_segment_filter=true}else{if(_io_config.pf_filter_type=="DEEMPHASIZE"){b_deemphasized_by_segment_filter=true;a_deemphasized_by_segment.push(_j.pd[i_pd]);a_tmp_deemph.push(a_tmp)}}}}}}}if(b_excluded_by_segment_filter){IORequest.log(IORequest.log_trace,zpf_item+" is not in segment","not sent to zpf");IORequest.reason[item_raw]=8}else{if(b_deemphasized_by_segment_filter){IORequest.log(IORequest.log_trace,zpf_item+" is not in segment","moved to end of recommendation list");IORequest.reason[item_raw]=9}else{rec_number++;product_ids.push(zpf_item);cat_ids.push(_j.pd[i_pd][2]);if(IORequest.isPageBasedOffer(offer_type)){var page_url=_j.pd[i_pd][3];if(_io_config.zp_track=="Y"){var separator=page_url.indexOf("?")>-1?"&":"?";if(_io_config.zp_granular=="SIMPLE"){page_url=page_url+separator+_io_config.zp_parm+"="+this.io_zone.name}else{if(_io_config.zp_granular=="EXTENDED"){var rec_number_out=(rec_number)>6?"7P":(rec_number).toString();page_url=page_url+separator+_io_config.zp_parm+"="+this.io_zone.name+"_"+rec_number_out}}}page_urls.push(page_url);page_names.push(_j.pd[i_pd][4])}if(IORequest.conflict_resolution===true){IORequest.filtered_out_products[item_raw]=1}if(_io_config.zp_track=="Y"&&url_parm_offset!==undefined&&a_tmp[url_parm_offset]!==undefined){var separator=a_tmp[url_parm_offset].indexOf("?")>-1?"&":"?";if(_io_config.zp_granular=="SIMPLE"){a_tmp[url_parm_offset]=a_tmp[url_parm_offset]+separator+_io_config.zp_parm+"="+this.io_zone.name}else{if(_io_config.zp_granular=="EXTENDED"){var rec_number_out=(rec_number)>6?"7P":(rec_number).toString();a_tmp[url_parm_offset]=a_tmp[url_parm_offset]+separator+_io_config.zp_parm+"="+this.io_zone.name+"_"+rec_number_out}}}rec_attributes.push('["'+a_tmp.join('","')+'"]')}}}else{IORequest.log(IORequest.log_trace,zpf_item+" required attribute not present","not sent to zpf");IORequest.reason[item_raw]=1}}else{if((product_filter_raw[item_raw]!==undefined)||(product_filter_crc[item_crc]!==undefined)){IORequest.log(IORequest.log_trace,zpf_item+" is recently carted or purchased, is in bad item list, or is the specified item on the recommendation request","not sent to zpf");IORequest.reason[item_raw]=2}else{if(IORequest.filtered_out_products[item_raw]!==undefined){IORequest.log(IORequest.log_trace,zpf_item+" appears in previous zone","not sent to zpf");IORequest.reason[item_raw]=3}else{if(IOState.h_productview_product[item_raw]!==undefined){IORequest.log(IORequest.log_trace,zpf_item+" appears in the recommendation list but is also a product for which a product view tag was issued for this page","not sent to zpf");IORequest.reason[item_raw]=5}else{if(IOState.h_pageview_page[item_raw]!==undefined){IORequest.log(IORequest.log_trace,zpf_item+" appears in the recommendation list but is also a page for which a page view tag was issued for this page","not sent to zpf");IORequest.reason[item_raw]=7}}}}}}for(var jj=0;((product_ids.length<this.io_zone.n_recs)&&(jj<a_deemphasized_by_segment.length));jj++){var item_raw_deemph=a_deemphasized_by_segment[jj][0];var zpf_item_deemph=item_raw_deemph.replace(/"/g,'\\"');rec_number++;product_ids.push(zpf_item_deemph);cat_ids.push(a_deemphasized_by_segment[jj][2]);if(IORequest.isPageBasedOffer(offer_type)){var page_url=a_deemphasized_by_segment[jj][3];if(_io_config.zp_track=="Y"){var separator=page_url.indexOf("?")>-1?"&":"?";if(_io_config.zp_granular=="SIMPLE"){page_url=page_url+separator+_io_config.zp_parm+"="+this.io_zone.name}else{if(_io_config.zp_granular=="EXTENDED"){var rec_number_out=(rec_number)>6?"7P":(rec_number).toString();page_url=page_url+separator+_io_config.zp_parm+"="+this.io_zone.name+"_"+rec_number_out}}}page_urls.push(page_url);page_names.push(a_deemphasized_by_segment[jj][4])}if(IORequest.conflict_resolution===true){IORequest.filtered_out_products[item_raw_deemph]=1}if(_io_config.zp_track=="Y"&&url_parm_offset!==undefined&&a_tmp_deemph[jj][url_parm_offset]!==undefined){var separator=a_tmp_deemph[jj][url_parm_offset].indexOf("?")>-1?"&":"?";if(_io_config.zp_granular=="SIMPLE"){a_tmp_deemph[jj][url_parm_offset]=a_tmp_deemph[jj][url_parm_offset]+separator+_io_config.zp_parm+"="+this.io_zone.name}else{if(_io_config.zp_granular=="EXTENDED"){var rec_number_out=(rec_number)>6?"7P":(rec_number).toString();a_tmp_deemph[jj][url_parm_offset]=a_tmp_deemph[jj][url_parm_offset]+separator+_io_config.zp_parm+"="+this.io_zone.name+"_"+rec_number_out}}}rec_attributes.push('["'+a_tmp_deemph[jj].join('","')+'"]')}var target_header_txt=[];target_header_txt._SP_="Recommendations";target_header_txt._SG_="Page Recommendations";target_header_txt._SE_="Element Recommendations";target_header_txt._SC_="Top Selling Items";target_header_txt._SGC_="Top Viewed Pages";target_header_txt._SEC_="Top Viewed Elements";target_header_txt._NR_="No Recommendations";target_header_txt._RVP_="Recently viewed item(s)";target_header_txt._RVG_="Recently viewed page(s)";target_header_txt._RVL_="Recently viewed items";target_header_txt._RVLG_="Recently viewed pages";target_header_txt._RPP_="Recently purchased item(s)";target_header_txt._LCP_="Recently carted item(s)";target_header_txt._RVC_="Recommendations from a category you've recently viewed";target_header_txt._MPC_="Top selling items from a category of your interest";target_header_txt._MSP_="Most Significant Purchase";target_header_txt._SS_="Recommendations based on search terms";target_header_txt._SA_="Recommendations based on attribute value";target_header_txt._DPF_="Default Recommendations";var parms=[];var b_has_recs=product_ids.length?true:false;var target_id=b_has_recs?this.io_zone.rec_plan.rec_steps[IORequest.current_step].target_id:"_NR_";if(!b_has_recs){IORequest.log(IORequest.log_trace,"No recommendations made it through the filters","changing target symbolic from "+this.io_zone.rec_plan.rec_steps[IORequest.current_step].target_id+" to _NR_.")}var heading=this.io_zone.rec_plan.rec_steps[IORequest.current_step].heading||target_header_txt[target_id];parms.push(b_has_recs?'["'+product_ids.join('","')+'"]':"[]");parms.push('"'+this.io_zone.name+'"');parms.push('"'+target_id+'"');parms.push('"'+target_product_id+'"');parms.push('"'+_j.pd[0][2]+'"');parms.push(b_has_recs?"["+rec_attributes.join()+"]":"[]");parms.push('["'+tgt_attributes.join('","')+'"]');parms.push('"'+heading+'"');parms.push('"'+(this.io_zone.ab_test_id||"")+'"');parms.push(b_has_recs?'["'+cat_ids.join('","')+'"]':"[]");parms.push(IORequest.isPageBasedOffer(offer_type)?'"'+_j.pd[0][3]+'"':'""');parms.push(IORequest.isPageBasedOffer(offer_type)?'"'+_j.pd[0][4]+'"':'""');parms.push((b_has_recs&&IORequest.isPageBasedOffer(offer_type))?'["'+page_urls.join('","')+'"]':"[]");parms.push((b_has_recs&&IORequest.isPageBasedOffer(offer_type))?'["'+page_names.join('","')+'"]':"[]");var call=this.io_zone.zpf+"("+parms.join()+")";IORequest.log(IORequest.log_trace,"Calling zone population function",call);IORequest.unit_test_results=call;setTimeout(call,0);setTimeout('IORequest.stack_manager("successful product retrieval");',0);this.io_zone=undefined}}else{setTimeout('IORequest.stack_manager("successful product retrieval");',0)}}else{if(this.io_zone==undefined){if(_j!==undefined&&_j.pd!==undefined&&_j.hd!==undefined&&_j.pd[0]!==undefined&&_j.pd[0][0]!==undefined&&_j.hd[5]!==undefined){var num_recs=_j.hd[5];var target=_j.pd[0][0];var first_rec=(_j.pd.length>0)?(num_recs!=0?_j.pd[1][0]:"file contains no recommendations"):"";if(target==first_rec){target="Multi-target"}this.display_status("Recommendations were received after processing for all zones was complete --- [offer: "+_j.hd[3]+", target: "+target+", first recommendation: "+first_rec+"]","blue");IORequest.log(IORequest.log_warn,"Recommendations were received after processing for all zones was complete","[offer: "+_j.hd[3]+", target: "+target+", first recommendation: "+first_rec+"]")}else{this.display_status("Recommendations for unknown target were received after processing for all zones was complete.","blue");IORequest.log(IORequest.log_warn,"Recommendations for unknown target ","were received after processing for all zones was complete")}}else{this.display_status("Zone population function "+this.io_zone.name+"_zp is not defined.","red");IORequest.log(IORequest.log_error,"Zone population function ",this.io_zone.name+"_zp is not defined")}}};this.cm_io_cfg=function(_json,b_download_from_cdn){this.stop_watch.stop();clearTimeout(_io_request.h_timer);_io_request.h_timer=undefined;if(_io_config===undefined){if(_json!==undefined){this.action_callback(b_download_from_cdn?"server_cfg":"default_cfg");IORequest.log(IORequest.log_trace,"successful retrieval of config file",this.stop_watch.elapsed_time+" ms");IORequest.log(IORequest.log_config_file,"config file",_json);_io_state.set_ab_group_number_get_cookie();if(_json.zp!==undefined){_io_config=new IOConfig(_json);this.action_callback("config_return")}else{setTimeout('IORequest.config_download_failure("corrupt config file");',0)}if(b_download_from_cdn){IORequest.i_zone=0;setTimeout('IORequest.config_downloaded("successful config download");',0)}}}else{IORequest.log(IORequest.log_warn,"config request where _io_config already defined","aborting request")}};this.cm_io_ssp=function(_json){this.stop_watch.stop();clearTimeout(_io_request.h_timer);_io_request.h_timer=undefined;if(this.h_timer!==undefined){clearTimeout(this.h_timer);this.h_timer=undefined}if(_json!==undefined){this.action_callback("ssp_retrieved");IORequest.log(IORequest.log_trace,"successful retrieval of ssp",this.stop_watch.elapsed_time+" ms");IORequest.log(IORequest.log_config_file,"ssp file",_json);if(_json.success){if(_json.value!==undefined){var pseudo_cookies=_json.value.split(IORequest.cookie_separator);if(pseudo_cookies.length>=10){pseudo_cookies[10]=new Date().getTime().toString()}var new_cookie_value=pseudo_cookies.join(IORequest.cookie_separator);IORequest.set_and_check_cookie(IORequest.state_cookie,new_cookie_value,false,IORequest.vanity_suffix);IORequest.recently_viewed_product=undefined;IORequest.recently_viewed_category=undefined;IORequest.recently_viewed_page=undefined;_io_state.cm_build_all_recent_arrays()}}else{IORequest.log(IORequest.log_trace,"SSP download failed: "+_json.message)}this.action_callback("ssp_complete");IORequest.i_zone=0;setTimeout('IORequest.ssp_processed("ssp processing complete");',0)}}}IORequest.crc32_tab=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];IORequest.crc32_add=function(d,c){return IORequest.crc32_tab[(d^c)&255]^((d>>8)&16777215)};IORequest.crc32_str=function(h){var g;var f=h.length;var e;e=4294967295;for(g=0;g<f;g++){e=IORequest.crc32_add(e,h.charCodeAt(g))}return e^4294967295};IORequest.hex32=function(h){var g;var e;var f;g=h&65535;e=g.toString(16).toUpperCase();while(e.length<4){e="0"+e}g=(h>>>16)&65535;f=g.toString(16).toUpperCase();while(f.length<4){f="0"+f}return f+e};IORequest.isProductOffer=function(b){return(b=="P")};IORequest.isSearchOffer=function(b){return(b=="S")};IORequest.isAttributeOffer=function(b){return(b=="T")};IORequest.isEPRCategoryOffer=function(b){return(b=="E")};IORequest.isSiteCategoryOffer=function(b){return(b=="C")};IORequest.isCategoryOffer=function(b){return(IORequest.isEPRCategoryOffer(b)||IORequest.isSiteCategoryOffer(b)||IORequest.isPageCategoryOffer(b)||IORequest.isElementCategoryOffer(b))};IORequest.isPageOffer=function(b){return(b=="A")};IORequest.isPageCategoryOffer=function(b){return(b=="F")};IORequest.isPageBasedOffer=function(b){return(IORequest.isPageOffer(b)||IORequest.isPageCategoryOffer(b))};IORequest.isElementOffer=function(b){return(b=="B")};IORequest.isElementCategoryOffer=function(b){return(b=="G")};IORequest.isElementBasedOffer=function(b){return(IORequest.isElementOffer(b)||IORequest.isElementCategoryOffer(b))};IORequest.isContentBasedOffer=function(b){return(IORequest.isPageOffer(b)||IORequest.isElementOffer(b)||IORequest.isPageCategoryOffer(b)||IORequest.isElementCategoryOffer(b))};IORequest.isProductBasedOffer=function(b){return(!IORequest.isContentBasedOffer(b))};IORequest.getUrlParmOffset=function(g,h,l){var i=undefined;var k=false;if(!IORequest.isPageBasedOffer(l)){for(var m=0;m<h.length&&!k;m++){if(h[m]==g){i=m;k=true}}}return(i)};IORequest.isMultiTargetStep=function(b){return((b.algo_id!==undefined)&&(b.algo_id!==""))};IORequest.isTargetsAsRecsStep=function(c){var d=false;if((c.target_id=="_RVP_")||(c.target_id=="_RVG_")){if((c.algo_id!==undefined)&&(c.algo_id=="3")){d=true}}return(d)};IORequest.reverse=function(b){return b.split("").reverse().join("")};IORequest.encrypt16=function(b){return IORequest.hex32(IORequest.crc32_str(b))+IORequest.hex32(IORequest.crc32_str(IORequest.reverse(b)))};IORequest.encrypt8=function(b){return IORequest.hex32(IORequest.crc32_str(b))};IORequest.cookie_info=function(c,n){var l=document.cookie;var i=l.length;var m=l.split(";").length;IORequest.log(IORequest.log_trace,"cookie_length: "+i+" number of cookies",IORequest.cookie_count(c));IORequest.log(IORequest.log_trace,"cookie",l);alert("n: "+m+" l: "+i+" cookie: "+l);if(n){var o=n-i-3-c.length;var p="";for(var q=0;q<o;q++){p+=""+q%10}IORequest.set_and_check_cookie(c,p);IORequest.cookie_info(c)}};IORequest.cookie_count=function(){var c=document.cookie;var d=0;if(c){d=c.split(";").length}return d};IORequest.find_cookie=function(k){var i=document.cookie.split("; ");var f=k.length;for(var g=0;g<i.length;g++){if((k+"=")==i[g].substring(0,f+1)){var h=i[g].substring(f+1);if(h==""){return(undefined)}else{return(h)}}}return(undefined)};IORequest.rm_cookie=function(b){document.cookie=b+"=;path=/;expires="+new Date(1998,0).toGMTString()+";;"};IORequest.set_and_check_cookie=function(g,f,e,h){CB(g,f,e?null:new Date(2020,0).toGMTString(),h?h:null);f=IORequest.find_cookie(g);if(f===undefined){if(!e){IORequest.perm_cookie_not_supported=true}}IORequest.log(IORequest.log_cookie_write,"write "+g,IORequest.is_undefined(f)?"permanent cookies disabled":f);return(f)};IORequest.build_array_from_cookie=function(d,e){var f=IORequest.find_state_cookie(d);return((f===undefined)?undefined:(f.split(IORequest.cookie_separator))[e])};IORequest.find_state_cookie=function(o){if(IORequest.vanity_suffix===undefined){if(cm_JSFPCookieDomain===null||cm_JSFPCookieDomain===undefined){var l=document.domain;if(l){var n=/[^.]+\.[^.]+$/;IORequest.vanity_suffix="."+l.match(n)}}else{IORequest.vanity_suffix=cm_JSFPCookieDomain}}var k=IORequest.find_cookie(o);if(k===undefined){var i=((IORequest.ie_version()!==null)&&(IORequest.ie_version()<7))?20:50;if(IORequest.cookie_count()>=i){k=undefined}else{if(o==IORequest.state_cookie){var m=Math.floor(Math.random()*100);k=[m,IOConfig.version,IOConfig.brand_personalization[0],IOConfig.brand_personalization[1],IOConfig.category_structure,IORequest.a_max_elements[0],IORequest.a_max_elements[1],IORequest.a_max_elements[2],IORequest.a_max_elements[3],IORequest.a_max_elements[4],IORequest.a_max_elements[5],IORequest.a_max_elements[6]].join("~")+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_array_separator+IORequest.cookie_array_separator+IORequest.cookie_array_separator+IORequest.cookie_array_separator+IORequest.cookie_array_separator+IORequest.cookie_array_separator+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_separator}else{if(o==IORequest.state_cookie_content){k=[IORequest.a_max_page_elements[0]].join("~")+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_array_separator}}var h=k;k=IORequest.set_and_check_cookie(o,h,false,IORequest.vanity_suffix)}}return(k)};IORequest.default_json={zp:[{id:"Default_Zone",rp:[["001",0,99,3]]}],rp:{"001":[["101","_DPF_","0","You might be interested in"]]},oa:{"101":["4","P"]}};IORequest.i_zone=1;IORequest.i_msg=0;IORequest.rec_stack=[];IORequest.filtered_out_products=[];IORequest.b_timeout=false;IORequest.b_404=false;IORequest.zone_id=0;IORequest.encrypt_16=0;IORequest.item_id=0;IORequest.single_item_id="";IORequest.category_id=0;IORequest.single_category_id="";IORequest.raw_search_term="";IORequest.single_attr_value="";IORequest.current_step=-1;IORequest.pers_targ_from_cookie=0;IORequest.timeout_product=[];IORequest.ssp_reg_id="";IORequest.ssp_use_reg_id=undefined;IORequest.ssp_allow_flag=undefined;IORequest.setRegIdCalled=undefined;IORequest.pf_segment="";IORequest.setSegmentCalled=undefined;IORequest.cookie_separator="~|~";IORequest.cookie_array_separator="|";IORequest.ses_cookie="CoreM_Ses";IORequest.state_cookie="CoreM_State";IORequest.state_cookie_content="CoreM_State_Content";IORequest.test_cookie="CoreM_State_Test";IORequest.pqa_cookie="CoreM_State_pqa";IORequest.url_cookie="CoreM_State_url";IORequest.no_log_cookie="CoreM_State_No_Log";IORequest.recently_viewed_product=undefined;IORequest.recently_viewed_page=undefined;IORequest.recently_viewed_category=undefined;IORequest.perm_cookie_not_supported=false;IORequest.a_max_page_elements=[6];IORequest.access_method="json local";IORequest.ab_group_number=undefined;IORequest.ab_group_number_source=undefined;IORequest.ab_group_number_source_cookie="C";IORequest.ab_group_number_source_localstorage="LS";IORequest.ab_group_number_source_windowsname="WN";IORequest.ab_group_number_source_default="D";IORequest.ab_group_key="dr_ab_group_number";IORequest.ab_session_key="dr_ab_session";IORequest.have_cookie=false;IORequest.unit_test_results="";IORequest.log_cookie_write=2<<1;IORequest.log_config_file=2<<2;IORequest.log_product_file=2<<3;IORequest.log_trace=2<<4;IORequest.log_warn=2<<5;IORequest.log_error=2<<6;IORequest.log_iuo=2<<7;IORequest.production=false;IORequest.log_mask=IORequest.production?IORequest.log_error:(2<<16)-1;IORequest.log_mask=IORequest.log_mask&~IORequest.log_iuo;IORequest.breaklines=function(c){var d="";while(c.length>0){d+=c.substring(0,190)+"\n";c=c.substring(190)}return d};IORequest.log=function(f,d,e){if(!IORequest.disable_console_logging){if(typeof console!=="undefined"){if(IORequest.find_cookie(IORequest.no_log_cookie)===undefined){if(e!==undefined){d=d+": "+e}d=IORequest.breaklines(d);if(f==IORequest.log_product_file||f==IORequest.log_config_file){if(console.group){console.group()}if(console.dir){console.dir(e)}if(console.groupEnd){console.groupEnd()}}else{if(f==IORequest.log_warn){if(console.warn){console.warn(d)}}else{if(f==IORequest.log_error){if(console.error){console.error(d)}}else{if(IORequest.log_mask&f){if(console.log){console.log(d)}}}}}}}}};IORequest.ie_version=function(){return(/MSIE (\d+\.\d+);/.test(navigator.userAgent)?RegExp.$1:null)};IORequest.hasStorage=(function(){var c="test";try{localStorage.setItem(c,c);localStorage.removeItem(c);return true}catch(d){return false}}());IORequest.io_cdn="iocdn.cn.coremetrics.com";IORequest.io_recs="recs.cn.coremetrics.com";IORequest.url_prefix=[];IORequest.url_prefix["ajax local"]="";IORequest.url_prefix["ajax remote"]="/limelight/";IORequest.url_prefix["json local"]="";IORequest.url_prefix["json remote"]="http://"+IORequest.io_cdn+"/";IORequest.url_prefix["json remote https"]="https://"+IORequest.io_cdn+"/";IORequest.url_prefix_old=[];IORequest.url_prefix_old["json remote"]="http://coremetric.vo.llnwd.net/o33/";IORequest.url_prefix_old["json remote https"]="https://coremetric.hs.llnwd.net/o33/";IORequest.image_url_prefix=[];IORequest.image_url_prefix["json remote"]="http://"+IORequest.io_recs+"/iorequest/prodrecs";IORequest.image_url_prefix["json remote https"]="https://"+IORequest.io_recs+"/iorequest/prodrecs";IORequest.ssp_url_prefix=[];IORequest.ssp_url_prefix["json remote"]="http://"+IORequest.io_recs+"/iorequest/ssp";IORequest.ssp_url_prefix["json remote https"]="https://"+IORequest.io_recs+"/iorequest/ssp";IORequest.rec_request=function(h,k,m,l,i,g){IORequest.log(IORequest.log_trace,"cmRecRequest",h+(k?","+k:",")+(m?","+m:",")+(l?","+l:",")+(i?","+i:"")+(g?","+g:""));IORequest.rec_stack.push([h,false,k,m,l,i,g])};IORequest.page_rec_request=function(f,e,h,g){IORequest.log(IORequest.log_trace,"cmPageRecRequest",f+","+e+","+h);IORequest.rec_stack.push([f,true,e,h,g])};IORequest.element_rec_request=function(f,e,h,g){IORequest.log(IORequest.log_trace,"cmElementRecRequest",f+","+e+","+h);IORequest.rec_stack.push([f,true,e,h,g])};IORequest.rec_request_abort=function(){IORequest.rec_stack=[];IORequest.filtered_out_products=[];IORequest.log(IORequest.log_trace,"Aborted request","communication exception")};IORequest.display_recs=function(){IORequest.log(IORequest.log_trace,"cmDisplayRecs");IORequest.i_msg=0;IORequest.i_zone=1;IORequest.filtered_out_products=[];_io_config=undefined;if(IORequest.chris_dot_html_config){_io_config=new IOConfig(IORequest.chris_dot_html_config);IORequest.log(IORequest.log_config_file,"config file",IORequest.chris_dot_html_config);IORequest.i_zone=0;IORequest.stack_manager("chris.html")}else{_io_request.download_config()}};IORequest.config_downloaded=function(h){var m=false;if(IORequest.ssp_use_reg_id){var k=_io_state.get_ssp_load_ts_from_cookie();var g=new Date().getTime();var l=new Date(Number(k));l.setMinutes(l.getMinutes()+new Number(_io_config.ssp_retrieve_int));if(g>(l.getTime())){var i=IORequest.find_cookie(IORequest.state_cookie);if(i!==undefined){m=true;_io_request.download_ssp(i,IORequest.ssp_reg_id)}}}if(!m){IORequest.stack_manager(h)}};IORequest.config_download_failure=function(d){_io_config=new IOConfig(IORequest.default_json);for(var c=0;c<IORequest.rec_stack.length;c++){_io_config.add_zone(IORequest.rec_stack[c][0])}IORequest.stack_manager(d)};IORequest.ssp_processed=function(b){IORequest.stack_manager(b)};IORequest.ssp_download_failure=function(b){IORequest.stack_manager(b)};IORequest.encode_search_term=function(f){f=f.toString().toUpperCase();if(IOConfig.stpr){for(var e=0;e<IOConfig.stpr.length;e++){var d=IOConfig.stpr[e];d=d.toString().toUpperCase();if(f.substring(0,d.length)==d){f=f.substr(d.length)}}}f=f.replace(/[$'&`~@:\[\]\\!%^*()={}\| <>"]/g,"");return(f)};IORequest.stack_manager=function(k){if(IORequest.rec_stack.length){var q=IORequest.rec_stack.shift();IORequest.i_zone++;IORequest.i_msg=0;IORequest.zone_id=q[0];IORequest.encrypt_16=(q.length>1?q[1]:false);var i=(q.length>2?q[2]:"");i=(i==undefined?"":i.toString().toUpperCase());IORequest.plain_text_item_id=i;if(i!=""){if(IORequest.encrypt_16){IORequest.single_item_id=new Array(IORequest.encrypt16(i))}else{if(IORequest.encrypt_prds){IORequest.single_item_id=new Array(IORequest.encrypt8(i))}}i=i.split(_io_config.multi_target_delim);for(var l=0;l<i.length;l++){if(IORequest.encrypt_16){i[l]=IORequest.encrypt16(i[l])}else{if(IORequest.encrypt_prds){i[l]=IORequest.encrypt8(i[l])}}}}IORequest.item_id=i;var m=(q.length>3?q[3]:"");m=(m==undefined?"":m.toString().toUpperCase());IORequest.plain_text_cat_id=m;if(m!=""){if(IORequest.encrypt_16){IORequest.single_category_id=new Array(IORequest.encrypt16(m))}else{if(IORequest.encrypt_cats){IORequest.single_category_id=new Array(IORequest.encrypt8(m))}}m=m.split(_io_config.multi_target_delim);for(var n=0;n<m.length;n++){if(IORequest.encrypt_16){m[n]=IORequest.encrypt16(m[n])}else{if(IORequest.encrypt_cats){m[n]=IORequest.encrypt8(m[n])}}}}IORequest.category_id=m;IORequest.optional_parm=(q.length>4?q[4]:"");IORequest.optional_parm=(IORequest.optional_parm==undefined?"":IORequest.optional_parm);IORequest.raw_search_term=(q.length>5?q[5]:"");IORequest.raw_search_term=(IORequest.raw_search_term==undefined?"":IORequest.raw_search_term);if(IORequest.raw_search_term!=""){var o=IORequest.encode_search_term(IORequest.raw_search_term);IORequest.plain_text_scrubbed_search_id=o;q[5]=o;IOConfig.crc_specified_search=new Array(IORequest.encrypt8(o))}else{IOConfig.crc_specified_search=""}var p=(q.length>6?q[6]:"");p=(p==undefined?"":p.toString().toUpperCase());IORequest.plain_text_attr_value=p;if(p!=""){p=new Array(IORequest.encrypt8(p))}IORequest.single_attr_value=p;IORequest.current_step=-1;IORequest.b_timeout=false;IORequest.b_404=false;if(_io_config.zones[IORequest.zone_id]===undefined){IORequest.log(IORequest.log_error,"Zone "+IORequest.zone_id+" is not defined in the configuration file","no action taken");IORequest.stack_manager("zone: "+IORequest.zone_id+" is not defined in the configuration file")}else{_io_request.display_status("stack_manager called - "+k+" - parms: "+q.join(", "),"green");IORequest.log(IORequest.log_trace,"stack_manager called - "+k+" - parms",q.join(", "));_io_request.download_product()}}else{if(IORequest.i_zone==3){IORequest.i_zone=2}_io_request.display_status("All recommendation requests completed","green");IORequest.log(IORequest.log_trace,"All recommendation requests completed for zone",IORequest.zone_id);IORequest.i_zone=1;IORequest.i_msg=0}};IORequest.is_undefined=function(d){var c;return(d===c)};IORequest.inspect_json=function(o,k,l){var m="",i,n;if(l===null||l===undefined){l=0}if(k===null||k===undefined){k=1}if(k<1){return'<font color="red">Error: Levels number must be > 0</font>'}if(o===null||o===undefined){return'<font color="red">Error: Object <b>NULL</b></font>'}m+="<ul>";var p;for(p in o){if(true){try{i=typeof(o[p]);m+="<li>("+i+") "+p+((o[p]===null)?(": <b>null</b>"):(':  <font color="red">'+o[p]+"</font>"))+"</li>";if((i=="object")&&(o[p]!==null)&&(l+1<k)){m+=IORequest.inspect_json(o[p],k,l+1)}}catch(q){if(typeof(q)=="string"){n=q}else{if(q.message){n=q.message}else{if(q.description){n=q.description}else{n="Unknown"}}}m+='<li><font color="red">(Error) '+p+": "+n+"</font></li>"}}}m+="</ul>";return m};IOConfig.version=-1;IOConfig.brand_personalization=[-1,-1];IOConfig.category_structure=-1;IOConfig.stpr=[];IOConfig.crc_specified_search="";function IOConfig(p){_io_state.cm_build_all_recent_arrays();var m=false;this.io=p;if(((IORequest.ie_version()!==null)&&(IORequest.ie_version()<7))){if(this.io.cie6b!==undefined){for(var o=0;o<IORequest.a_max_elements.length;o++){if(this.io.cie6b[o]!=IORequest.a_max_elements[o]){IORequest.a_max_elements[o]=this.io.cie6b[o];m=true}}}}else{if(this.io.cdfltb!==undefined){for(var u=0;u<IORequest.a_max_elements.length;u++){if(this.io.cdfltb[u]!=IORequest.a_max_elements[u]){IORequest.a_max_elements[u]=this.io.cdfltb[u];m=true}}}}if(this.io.cdfltpg!==undefined){for(var q=0;q<IORequest.a_max_page_elements.length;q++){if(this.io.cdfltpg[q]!=IORequest.a_max_page_elements[q]){IORequest.a_max_page_elements[q]=this.io.cdfltpg[q];m=true}}}if(this.io.cs===undefined){if(IOConfig.category_structure==-1){IOConfig.category_structure="S"}}else{var s=(this.io.cs!=="EPR");var v=(IOConfig.category_structure!=="E");if(s!==v){m=true;IOConfig.category_structure=(this.io.cs=="EPR"?"E":"S")}}if(this.io.cv!==undefined){if(IOConfig.version!==this.io.cv){m=true;IOConfig.version=this.io.cv}}if(this.io.bp!==undefined){if(IOConfig.brand_personalization[0]!=this.io.bp[0]){IOConfig.brand_personalization[0]=this.io.bp[0];m=true}if(IOConfig.brand_personalization[1]!=this.io.bp[1]){IOConfig.brand_personalization[1]=this.io.bp[1];m=true}}else{IOConfig.brand_personalization=[-1,-1]}IORequest.ssp_use_reg_id=false;var n=_io_state.get_ssp_reg_id_from_cookie();if(this.io.sspe!==undefined){if(this.io.sspe=="Y"){if((this.io.sspl===undefined)||(this.io.sspl=="OPT_IN_MANDATORY")){if(IORequest.setRegIdCalled){if(IORequest.ssp_allow_flag){IORequest.ssp_use_reg_id=true;m=true}}}else{if(this.io.sspl=="OPT_IN_BY_DEFAULT"){if(IORequest.setRegIdCalled){if((IORequest.ssp_allow_flag===undefined)||(IORequest.ssp_allow_flag)){IORequest.ssp_use_reg_id=true;m=true}}else{IORequest.ssp_use_reg_id=true;IORequest.ssp_reg_id=n}}}}}if((IORequest.ssp_use_reg_id==false)&&(n!=="")){IORequest.ssp_reg_id="";m=true}if(m&&IORequest.have_cookie){var t=[IORequest.ab_group_number,IOConfig.version,IOConfig.brand_personalization[0],IOConfig.brand_personalization[1],IOConfig.category_structure,IORequest.a_max_elements[0],IORequest.a_max_elements[1],IORequest.a_max_elements[2],IORequest.a_max_elements[3],IORequest.a_max_elements[4],IORequest.a_max_elements[5],IORequest.a_max_elements[6]];var w=[IORequest.a_max_page_elements[0]];_io_state.cm_write_cookies(t,w);m=0}_io_state.cm_build_all_recent_arrays();IOConfig.stpr=this.io.stpr||[];IOConfig.sfto=this.io.sfto||1500;this.fcpl=this.io.fcpl===undefined?"N":this.io.fcpl.toString().toUpperCase();this.vcgi=this.io.vcgi===undefined?"Y":this.io.vcgi.toString().toUpperCase();this.zpfcid=this.io.zpfcid===undefined?"Y":this.io.zpfcid.toString().toUpperCase();this.required_attrs=this.io.ra||[];this.cp=this.io.cp||1;if(this.io.pfto!==undefined){IORequest.timeout[1]=this.io.pfto}if(this.io.fnf!==undefined){this.file_not_found_id=this.io.fnf[0];this.file_not_found_pc=this.io.fnf[1]}this.bad_list=this.io.bl||[];this.ps=this.io.ps===undefined?1:this.io.ps;this.ssp_access_method=this.io.sspa===undefined?"REGISTRATION_ID":this.io.sspa.toString().toUpperCase();this.ssp_retrieve_int=this.io.sspi===undefined?"30":this.io.sspi.toString().toUpperCase();this.pf_filter_type=this.io.pftype===undefined?"DEEMPHASIZE":this.io.pftype.toString().toUpperCase();this.pf_zone_list=this.io.pfzones||[];this.pf_metric_id=this.io.pfmetric===undefined?undefined:this.io.pfmetric.toString().toUpperCase();this.multi_target_delim=this.io.mtdelim===undefined?"|":this.io.mtdelim.toString().toUpperCase();this.zp_track=this.io.zptrack===undefined?"N":this.io.zptrack.toString().toUpperCase();this.zp_granular=this.io.zpgranular===undefined?"SIMPLE":this.io.zpgranular.toString().toUpperCase();this.zp_parm=this.io.zpparm===undefined?"cm_vc":this.io.zpparm.toString();this.zones=[];this.n_zones=this.io.zp.length;this.rec_plan=[];for(var r=0;r<this.n_zones;r++){this.zones[this.io.zp[r].id]=new IOZone(this.io.zp[r],this.rec_plan,this.io.rp,this.io.oa)}this.add_zone=function(a){var b={id:a,rp:[["001",0,99,3]]};this.zones[a]=new IOZone(b,this.rec_plan,this.io.rp,this.io.oa)}}function IOZone(i,k,g,l){this.name=i.id;var h=this.name+"_zp";if((window[h]!==undefined)&&(typeof window[h]=="function")){this.zpf=h}else{if((window.io_rec_zp!==undefined)&&(typeof window.io_rec_zp=="function")){this.zpf="io_rec_zp"}else{this.zpf=undefined}}this.filter_pp=(((i.fp!==undefined)&&(i.fp===0))?0:1);this.filter_cp=(((i.fc!==undefined)&&(i.fc===0))?0:1);if(i.rp.length==1){if(k[i.rp[0][0]]===undefined){k[i.rp[0][0]]=new IORecPlan(i.rp[0][0],g,l)}this.rec_plan=k[i.rp[0][0]];this.n_recs=i.rp[0][3];this.ab_test_id="no ab test"}else{for(var m=0;((m<i.rp.length)&&(this.rec_plan===undefined));m++){if(IORequest.ab_group_number>=i.rp[m][1]&&IORequest.ab_group_number<=i.rp[m][2]){if(k[i.rp[m][0]]===undefined){k[i.rp[m][0]]=new IORecPlan(i.rp[m][0],g,l)}this.rec_plan=k[i.rp[m][0]];this.n_recs=i.rp[m][3];this.ab_test_id=((i.rp[m][4]!==undefined)?i.rp[m][4]:"no ab test")}}}}function IORecStep(d,c){this.offer_id=d[0];this.target_id=d[1];this.offer_type=this.offer_id?c[this.offer_id][1]:"N";this.offer_version=this.offer_id?c[this.offer_id][0]:0;this.heading=(d[3]!==undefined)?d[3]:"";this.algo_id=(d[4]!==undefined)?d[4]:"";this.algo_value=(d[5]!==undefined)?d[5]:"";this.to_string=function(){return("offer_id: "+this.offer_id+" target_id: "+this.target_id+" offer_type: "+this.offer_type+" offer_version: "+this.offer_version+" algo_id: "+this.algo_id+" algo_value: "+this.algo_value)}}function IORecPlan(e,f,h){this.rec_steps=[];this.id=e;for(var g=0;g<f[e].length;g++){this.rec_steps.push(new IORecStep(f[e][g],h))}}IOState.h_productview_product=[];IOState.h_pageview_page=[];function IOState(){var K=(IORequest.production?"~":"~");var M=":";var P=[];var A=[];var E=[];var x=[];var B=[];var J=[];var S=[];var z=[];var L=[];var H=[];var Q=[];var D=[];var I=undefined;var F=undefined;var G=undefined;var y=undefined;var N=["p_viewed","p_carted","p_purchased","c_viewed","c_n_views","b_viewed","b_n_views"];var O=["pv","pc","pp","cv","cn","bv","bn"];var R=N;var C=false;this.cm_get_item_from_cookie=function(d,f){if(P.length!==0||(this.cm_build_all_recent_arrays()===true)){if((d=="_RVP_")||(d=="_RVL_")){if((f)||(d=="_RVL_")){return(S.length!=0?S:0)}else{return(IORequest.recently_viewed_product!=0?new Array(IORequest.recently_viewed_product):0)}}if(d=="_RVC_"){if(f){return(H.length!=0?H:0)}else{return(IORequest.recently_viewed_category!=0?new Array(IORequest.recently_viewed_category):0)}}if(d=="_LCP_"){if(f){return(z.length!=0?z:0)}else{return(z.length!=0?z.slice(0,1):0)}}if(d=="_RPP_"){if(f){return(L.length!=0?L:0)}else{return(L.length!=0?L.slice(0,1):0)}}if((d=="_RVG_")||(d=="_RVLG_")){if((f)||(d=="_RVLG_")){return(D.length!=0?D:0)}else{return(IORequest.recently_viewed_page!=0?new Array(IORequest.recently_viewed_page):0)}}if(d=="_MSP_"){var c=0;for(var b=1;b<L.length;b++){if(parseFloat(A[L[b]].pp_price)>parseFloat(A[L[c]].pp_price)){c=b}}return(L.length!=0?L.slice(c,c+1):0)}if(d=="_MPC_"){var c=0;for(var e=1;e<H.length;e++){if(parseInt(E[H[e]].n_viewed,10)>parseInt(E[H[c]].n_viewed,10)){c=e}}return(H.length!=0?H.slice(c,c+1):0)}if(d=="_MPB_"){var c=0;for(var a=1;a<Q.length;a++){if(parseInt(x[Q[a]].n_viewed,10)>parseInt(x[Q[c]].n_viewed,10)){c=a}}return(Q.length!=0?Q.slice(c,c+1):0)}}return(0)};cm_initialize_id=function(a,b){a[b]=[];a[b].index=-1;a[b].n_bought=0;a[b].n_viewed=0;a[b].n_carted=0;a[b].pv_timestamp=0;a[b].pc_timestamp=0;a[b].pp_timestamp=0;a[b].pp_price=-1};cm_build_hash_from_array=function(b){var c=[];c.max_index=0;for(var a=0;a<b.length;a++){cm_initialize_id(c,b[a])}return c};cm_id_array_from_index_array=function(i,h,n,l,e,g){var f=[];f.max_length=h;if(i){var d=i.split("~");if(d.length==1){d=i.split(",")}for(var k=0;k<d.length;k++){var c=n[d[k]];f.push(c);if((e!==undefined)&&(g!==undefined)){for(var b=0;b<e.length;b++){var o=e[b];var m=g[b];if((o!==undefined)&&(m!==undefined)){var a=String(o).split("~");if(a.length==1){a=String(o).split(",")}if((!(l===undefined))&&(a.length>0)){l[c][m]=a[k]}}}}}if(f.length>f.max_length){f.length=f.max_length}}return f};cm_create_integer_array_from_id_array=function(f,e,b){var d=[];for(var a=0;a<f.length;a++){var c=f[a];if(e[c].index==-1){e[c].index=e.max_index++}d.push(e[c][b])}return d};cm_create_id_array_from_hash=function(a){var c=[];for(var b in a){if(typeof b!="function"){c[a[b].index]=b}}return c};cm_add_action=function(b,l,e,m,a,g,h){var f;var i=b;if(e){if(m){i=IORequest.encrypt8(b);IORequest.log(IORequest.log_trace,"encryption of "+b,i)}else{i=IORequest.encrypt16(b);IORequest.log(IORequest.log_trace,"encryption of "+b,i)}}if(i!==undefined){f=[i];f.max_length=a.max_length;if(l[i]===undefined){cm_initialize_id(l,i)}if(g!==undefined){for(var d=0;d<g.length;d++){var n=g[d];if(n!==undefined){if(h!==undefined){var c=h[d]}if(n.indexOf("n_viewed")>-1){l[i][n]++}else{if(n.indexOf("timestamp")>-1){l[i][n]=new Date().getTime()}else{if(c!==undefined){l[i][n]=c}}}}}}for(var k=0;k<a.length;k++){if(a[k]!=i){f.push(a[k])}}if(f.length>f.max_length){f.length=f.max_length}}else{f=a}return(f)};this.cm_write_cookies=function(o,e){var t=[cm_create_integer_array_from_id_array(S,A,"index").join("~"),cm_create_integer_array_from_id_array(z,A,"index").join("~"),cm_create_integer_array_from_id_array(L,A,"index").join("~"),cm_create_integer_array_from_id_array(H,E,"index").join("~"),cm_create_integer_array_from_id_array(H,E,"n_viewed").join("~"),cm_create_integer_array_from_id_array(Q,x,"index").join("~"),cm_create_integer_array_from_id_array(Q,x,"n_viewed").join("~")];if(C){for(var d=0;d<R.length;d++){t[d]=R[d]+M+t[d]}}var k=o.join("~");var p=cm_create_id_array_from_hash(A).join(K);var w=cm_create_id_array_from_hash(E).join(K);var l=cm_create_id_array_from_hash(x).join(K);var g=t.join(IORequest.cookie_array_separator);var m=cm_create_integer_array_from_id_array(S,A,"pv_timestamp").join("~");var r=cm_create_integer_array_from_id_array(z,A,"pc_timestamp").join("~");var s=cm_create_integer_array_from_id_array(L,A,"pp_timestamp").join("~");var q=cm_create_integer_array_from_id_array(L,A,"pp_price").join("~");var c="";if((IORequest.ssp_use_reg_id===undefined)){c=G}else{if(IORequest.ssp_use_reg_id==true){c=IORequest.ssp_reg_id}else{c=""}}var u=[k,p,w,l,g,m,r,s,q,I,F,c,y].join(IORequest.cookie_separator);var h=IORequest.set_and_check_cookie(IORequest.state_cookie,u,false,IORequest.vanity_suffix);var f=e.join("~");var b=[cm_create_integer_array_from_id_array(D,B,"index").join("~")];var a=b.join(IORequest.cookie_array_separator);var n=cm_create_id_array_from_hash(B).join(K);var v=[f,n,a].join(IORequest.cookie_separator);var i=IORequest.set_and_check_cookie(IORequest.state_cookie_content,v,false,IORequest.vanity_suffix)};this.set_ab_group_number=function(b){var a=[];if(b!==undefined){a=IORequest.build_array_from_cookie(IORequest.state_cookie,0).split(",");if(a.length>0){IORequest.have_cookie=true;IORequest.ab_group_number=a[0];IORequest.ab_group_number_source=IORequest.ab_group_number_source_cookie;if(IORequest.ab_group_number.length>3){a=IORequest.build_array_from_cookie(IORequest.state_cookie,0).split("~");IORequest.ab_group_number=a[0]}}}if(IORequest.ab_group_number===undefined){if(IORequest.hasStorage){var e=window.localStorage.getItem(IORequest.ab_group_key);if(e==null){e=Math.floor(Math.random()*100);window.localStorage.setItem(IORequest.ab_group_key,e)}IORequest.ab_group_number=e;IORequest.ab_group_number_source=IORequest.ab_group_number_source_localstorage}}if(IORequest.ab_group_number===undefined){if(window.top.name==""){var e=Math.floor(Math.random()*100);window.top.name=IORequest.ab_group_key+"="+e+"~|~";IORequest.ab_group_number=e;IORequest.ab_group_number_source=IORequest.ab_group_number_source_windowsname}else{if(window.top.name.indexOf(IORequest.ab_group_key)>-1){var d=window.top.name.split("~|~");for(var c=0;c<d.length;c++){if(d[c].indexOf(IORequest.ab_group_key)>-1){IORequest.ab_group_number=d[c].substr(IORequest.ab_group_key.length+1);IORequest.ab_group_number_source=IORequest.ab_group_number_source_windowsname}}}}}if(IORequest.ab_group_number===undefined){IORequest.ab_group_number=0;IORequest.ab_group_number_source=IORequest.ab_group_number_source_default}};this.set_ab_group_number_get_cookie=function(){var a=IORequest.find_state_cookie(IORequest.state_cookie);this.set_ab_group_number(a)};this.get_ssp_load_ts_from_cookie=function(){var c="";var a=IORequest.find_state_cookie(IORequest.state_cookie);if(a!==undefined){var b=(a===undefined)?4:(a.split(IORequest.cookie_separator).length-1);if(b>4){c=IORequest.build_array_from_cookie(IORequest.state_cookie,10).split(IORequest.cookie_array_separator)}}return c};this.get_ssp_reg_id_from_cookie=function(){var c="";var a=IORequest.find_state_cookie(IORequest.state_cookie);if(a!==undefined){var b=(a===undefined)?4:(a.split(IORequest.cookie_separator).length-1);if(b>4){c=IORequest.build_array_from_cookie(IORequest.state_cookie,11).split(IORequest.cookie_array_separator)}}return c};this.get_pf_segment_from_cookie=function(){var c="";var a=IORequest.find_state_cookie(IORequest.state_cookie);if(a!==undefined){var b=(a===undefined)?4:(a.split(IORequest.cookie_separator).length-1);if(b>4){c=IORequest.build_array_from_cookie(IORequest.state_cookie,12).split(IORequest.cookie_array_separator)}}return c};this.cm_build_all_recent_arrays=function(){var h=[];var o=[];var m=[];var c=[];var k=false;var f=IORequest.find_state_cookie(IORequest.state_cookie);if(IORequest.setSegmentCalled){y=IORequest.pf_segment}else{y=_io_state.get_pf_segment_from_cookie()}this.set_ab_group_number(f);if(f!==undefined){var i=(f===undefined)?4:(f.split(IORequest.cookie_separator).length-1);P=IORequest.build_array_from_cookie(IORequest.state_cookie,0).split(",");if(P.length>0){if(P[0].length>3){P=IORequest.build_array_from_cookie(IORequest.state_cookie,0).split("~")}if(P.length>1){IOConfig.version=P[1];IOConfig.brand_personalization[0]=P[2];IOConfig.brand_personalization[1]=P[3];IOConfig.category_structure=P[4];IORequest.a_max_elements[0]=P[5];IORequest.a_max_elements[1]=P[6];IORequest.a_max_elements[2]=P[7];IORequest.a_max_elements[3]=P[8];IORequest.a_max_elements[4]=P[9];IORequest.a_max_elements[5]=P[10];IORequest.a_max_elements[6]=P[11]}}h=IORequest.build_array_from_cookie(IORequest.state_cookie,1).split(K);A=cm_build_hash_from_array(h);o=IORequest.build_array_from_cookie(IORequest.state_cookie,2).split(K);E=cm_build_hash_from_array(o);if(i>3){m=IORequest.build_array_from_cookie(IORequest.state_cookie,3).split(K);x=cm_build_hash_from_array(m)}var a=IORequest.build_array_from_cookie(IORequest.state_cookie,i<4?i:4).split(IORequest.cookie_array_separator);if(C&&(g_b_a_arrays[0].substring(0,2)==R[0].substring(0,2))){for(var g=0;g<a.length;g++){a[g]=a[g].substring(R[g].length+1)}}if(i>4){var b=IORequest.build_array_from_cookie(IORequest.state_cookie,5).split(IORequest.cookie_array_separator);var d=IORequest.build_array_from_cookie(IORequest.state_cookie,6).split(IORequest.cookie_array_separator);var l=IORequest.build_array_from_cookie(IORequest.state_cookie,7).split(IORequest.cookie_array_separator);var p=IORequest.build_array_from_cookie(IORequest.state_cookie,8).split(IORequest.cookie_array_separator);I=IORequest.build_array_from_cookie(IORequest.state_cookie,9).split(IORequest.cookie_array_separator);F=IORequest.build_array_from_cookie(IORequest.state_cookie,10).split(IORequest.cookie_array_separator);G=IORequest.build_array_from_cookie(IORequest.state_cookie,11).split(IORequest.cookie_array_separator);if(y===undefined){y=IORequest.build_array_from_cookie(IORequest.state_cookie,12).split(IORequest.cookie_array_separator)}}S=cm_id_array_from_index_array(a[0],IORequest.a_max_elements[0],h,A,new Array(b),new Array("pv_timestamp"));z=cm_id_array_from_index_array(a[1],IORequest.a_max_elements[1],h,A,new Array(d),new Array("pc_timestamp"));L=cm_id_array_from_index_array(a[2],IORequest.a_max_elements[2],h,A,new Array(l,p),new Array("pp_timestamp","pp_price"));H=cm_id_array_from_index_array(a[3],IORequest.a_max_elements[3],o,E,new Array(a[4]),new Array("n_viewed"));if(i>3){Q=cm_id_array_from_index_array(a[5],IORequest.a_max_elements[5],m,x,new Array(a[6]),new Array("n_viewed"))}if(IORequest.recently_viewed_product===undefined){IORequest.recently_viewed_product=(S.length===0?0:S[0])}if(IORequest.recently_viewed_category===undefined){IORequest.recently_viewed_category=(H.length===0?0:H[0])}k=true}f=IORequest.find_state_cookie(IORequest.state_cookie_content);if(f!==undefined){J=IORequest.build_array_from_cookie(IORequest.state_cookie_content,0).split(",");if(J.length>0){IORequest.a_max_page_elements[0]=J[0]}c=IORequest.build_array_from_cookie(IORequest.state_cookie_content,1).split(K);B=cm_build_hash_from_array(c);var a=IORequest.build_array_from_cookie(IORequest.state_cookie_content,2).split(IORequest.cookie_array_separator);D=cm_id_array_from_index_array(a[0],IORequest.a_max_page_elements[0],c);if(IORequest.recently_viewed_page===undefined){IORequest.recently_viewed_page=(D.length===0?0:D[0])}k=true}if(P.length==1){IORequest.rm_cookie(IORequest.state_cookie);var n=[IORequest.ab_group_number,IOConfig.version,IOConfig.brand_personalization[0],IOConfig.brand_personalization[1],IOConfig.category_structure,IORequest.a_max_elements[0],IORequest.a_max_elements[1],IORequest.a_max_elements[2],IORequest.a_max_elements[3],IORequest.a_max_elements[4],IORequest.a_max_elements[5],IORequest.a_max_elements[6]];var e=[IORequest.a_max_page_elements[0]];this.cm_write_cookies(n,e)}return k};cm_build_html_table_from_array=function(b,c,i,g){var a=(g?2:1);var e=c.length;var d="";var f=(a==1?"<TD COLSPAN=2>":"<TD>");if(e>0&&(c[0]!==undefined)){d="<TR><TH ROWSPAN="+e+">"+b+"</TH>"+f+(a==2?i[c[0]][g]+"</TD><TD>":"")+c[0]+"</TD></TR>";for(var h=1;h<e;h++){d+="<TR>"+f+(a==2?i[c[h]][g]+"</TD><TD>":"")+c[h]+"</TD></TR>"}}else{d="<TR><TH ROWSPAN=1>"+b+"</TH><TD COLSPAN=2>No "+b+"</TD></TR>"}return(d)};cm_get_products_in_cart=function(){if(this.cm_build_all_recent_arrays()===true){return(z)}else{return([])}};this.cm_ted_io=function(d){var c=false;if(this.cm_build_all_recent_arrays()===true){if(d.i_offer!==undefined){if(d.i_offer=="epr_category"){if(typeof d.cg!=="undefined"){if(_io_config.fcpl=="Y"){d.cg=d.cg.replace(/>.*$/,"");d.cg=d.cg.replace(/\s+$/,"")}if(!IORequest.encrypt_cats&&(d.cg.length>IORequest.max_cat_length)){IORequest.log(IORequest.log_warn,"EPR Category not added to cookie.  Category length is greater than the maximum of "+IORequest.max_cat_length+". Category",d.cg)}else{IORequest.log(IORequest.log_trace,"Adding EPR Category to cookie.  Category",d.cg);H=cm_add_action(d.cg,E,IORequest.encrypt_cats,true,H,new Array("n_viewed"));c=true}}else{IORequest.log(IORequest.log_warn,"EPR Category not added to cookie.  EPR Category is undefined.")}}if(d.i_offer=="brand"){if(typeof d.brn!=="undefined"){IORequest.log(IORequest.log_trace,"Adding brand to cookie. Brand",d.brn);Q=cm_add_action(d.brn,x,1,true,Q,new Array("n_viewed"));c=true}else{IORequest.log(IORequest.log_warn,"Brand not added to cookie.  Brand is undefined.")}}}else{if(typeof d.tid!=="undefined"){if(d.tid==1||d.tid==4||d.tid==5){IORequest.log(IORequest.log_cookie_write,"initial "+IORequest.state_cookie,IORequest.find_state_cookie(IORequest.state_cookie));IORequest.log(IORequest.log_cookie_write,"initial "+IORequest.state_cookie_content,IORequest.find_state_cookie(IORequest.state_cookie_content))}if(1==d.tid){var b=undefined;if(typeof d.pi!=="undefined"){b=""+d.pi.toString().toUpperCase();if(b!==undefined){IORequest.log(IORequest.log_trace,"Adding page ID from page view to cookie.  Page ID",b);D=cm_add_action(b,B,true,false,D);c=true}IOState.h_pageview_page[b]=1}else{IORequest.log(IORequest.log_warn,"Page ID not added to cookie.  Page ID is undefined.")}}if(5==d.tid){var a=undefined;var f=undefined;if(typeof d.pr!=="undefined"){a=""+d.pr.toString().toUpperCase()}if(typeof d.cg!=="undefined"){var f=""+d.cg.toString().toUpperCase()}if(a!==undefined){if(!IORequest.encrypt_prds&&(a.length>IORequest.max_prd_length)){IORequest.log(IORequest.log_warn,"Product from product view not added to cookie.  Product length is greater than the maximum of "+IORequest.max_prd_length+". Product",a)}else{IORequest.log(IORequest.log_trace,"Adding product from product view to cookie.  Product",a);S=cm_add_action(a,A,IORequest.encrypt_prds,true,S,new Array("pv_timestamp"));c=true}}if((f!==undefined)&&(IOConfig.category_structure=="S")){if(!IORequest.encrypt_cats&&(f.length>IORequest.max_cat_length)){IORequest.log(IORequest.log_warn,"Site Category from product view not added to cookie.  Category length is greater than the maximum of "+IORequest.max_cat_length+". Category",f)}else{IORequest.log(IORequest.log_trace,"Adding Site Category from product view to cookie.  Category",f);H=cm_add_action(f,E,IORequest.encrypt_cats,true,H,new Array("n_viewed"));c=true}}IOState.h_productview_product[a]=1}if(4==d.tid){var e=undefined;if(typeof d.pr!=="undefined"){e=""+d.pr.toString().toUpperCase()}if((typeof d.at!=="undefined")&&(e!==undefined)){if(5==d.at){if(!IORequest.encrypt_prds&&(d.pr.length>IORequest.max_prd_length)){IORequest.log(IORequest.log_warn,"Product from cart contents not added to cookie.  Product length is greater than the maximum of "+IORequest.max_prd_length+". Product",e)}else{IORequest.log(IORequest.log_trace,"Adding product from cart contents to cookie.  Product",e);z=cm_add_action(e,A,IORequest.encrypt_prds,true,z,new Array("pc_timestamp"));c=true}}if(9==d.at){if(!IORequest.encrypt_prds&&(d.pr.length>IORequest.max_prd_length)){IORequest.log(IORequest.log_warn,"Product from purchase not added to cookie.  Product length is greater than the maximum of "+IORequest.max_prd_length+". Product",e)}else{IORequest.log(IORequest.log_trace,"Adding product from purchase to cookie.  Product",e);L=cm_add_action(e,A,IORequest.encrypt_prds,true,L,new Array("pp_timestamp","pp_price"),new Array(null,d.bp));c=true}}}}}}if(c){this.cm_write_cookies(P,J)}}}}cmLoadIOConfig();function cmExecuteTagQueue(){var d=window.cmTagQueue;if(d){var f=(d.constructor==Array);if(!f){return}for(var e=0;e<d.length;++e){window[d[e][0]].apply(window,d[e].slice(1))}}return true}cmExecuteTagQueue();var homePageZoneId="home01";var prodDeatilZoneId="Prod01";var prodImgPrefix="http://s05.stb001.cn/ftp_product_img/cn";var prodImgPost="_1_std.jpg";var prodUrlPrefix="http://www.staples.cn/product/";function product_zpf(x,u,g,r,p,v,b,e,A,s,m){var j="";var i="";if(g!=="_NR_"){var d=x.length;var t=null;var h=null;if(u==homePageZoneId){t="<ul class='slides' style='width: 100%; -webkit-transition: 0s; transition: 0s; -webkit-transform: translate3d(0px, 0, 0);'>{content}</ul>";d=6}else{if(u==prodDeatilZoneId){t="<ul>{content}</ul>";d=6}else{t="{content}";h="{content}";d=6}}var c=[];var f=[];var n=0;for(var k=0;k<d;k++){var a=x[k];var q=v[k][0]?v[k][0]:"-";var z=v[k][6]?v[k][6]:"-";var w=prodImgPrefix+a+prodImgPost;var l=v[k][3]?v[k][3]:"-";var o=prodUrlPrefix+a;z=$.trim(z);z=z.replace("?","");var y=z;if(q!="-"&&z!="-"&&l!="-"){n++;if(z.length>13){z=z.substring(0,11)+"..."}if(u==homePageZoneId){c.push("<li style='width: 190px; float: left; display: block;'>");c.push('<a id="cross-img-'+k+'" href="'+o+"?cm_vc="+u+'">');c.push('<img  width="140" height="140" alt="'+z+'" src="'+w+'" /></a>');c.push('<a title="'+y+'" id="cross-'+k+'" href="'+o+"?cm_vc="+u+'" class="tit">'+z+"</a>");c.push("<a class='price'>[标准价] ￥<span>"+q+"</span>/"+l+"</a></li>")}else{if(u==prodDeatilZoneId){c.push('<li><a id="cross-img-'+k+'" href="'+o+"?cm_vc="+u+'" class="proImg">');c.push('<img  width="140" height="140" alt="'+z+'" src="'+w+'" /></a>');c.push('<h3><a  title="'+y+'" id="cross-'+k+'" href="'+o+"?cm_vc="+u+'">'+z+"</a></h3>");c.push("<p><span class='color666'>[标准价]</span><span>￥</span><span class='nowPrice'>"+q+"</span><span>/"+l+"</span></p></li>")}else{if(k<3){c.push("<div class='cg_likePro'>");c.push('<a id="cross-img-'+k+'" href="'+o+"?cm_vc="+u+'" class="proImg">');c.push('<img width="140" height="140" alt="'+z+'" src="'+w+'" /></a>');c.push('<a  title="'+y+'" class="pro_name" id="cross-'+k+'" href="'+o+"?cm_vc="+u+'"><strong>'+z+"</strong></a>");c.push("<p class='pro_price'><label>[标准价]</label>￥<span><strong>"+q+"</strong></span>/"+l+"</p></div>")}else{f.push("<div class='cg_likePro'>");f.push('<a id="cross-img-'+k+'" href="'+o+"?cm_vc="+u+'" class="proImg">');f.push('<img width="140" height="140" alt="'+z+'" src="'+w+'" /></a>');f.push('<a  title="'+y+'" class="pro_name" id="cross-'+k+'" href="'+o+"?cm_vc="+u+'"><strong>'+z+"</strong></a>");f.push("<p class='pro_price'><label>[标准价]</label>￥<span><strong>"+q+"</strong></span>/"+l+"</p></div>")}}}}}j=t.replace("{content}",c.join("\n"));if(h!=null){i=h.replace("{content}",f.join("\n"))}}if(j!=""){$("#"+u).html(j)}if(i!=""){$("#"+u+"2").html(i)}$("#"+u).show()}function home01_zp(r,q,p,o,n,m,l,k,j){product_zpf(r,q,p,o,n,m,l,k,j,"",true)}function search01_zp(r,q,p,o,n,m,l,k,j){product_zpf(r,q,p,o,n,m,l,k,j,"",true)}function Prod01_zp(r,q,p,o,n,m,l,k,j){product_zpf(r,q,p,o,n,m,l,k,j,"",true)}function Ctg01_zp(r,q,p,o,n,m,l,k,j){product_zpf(r,q,p,o,n,m,l,k,j,"",true)}function OwnB01_zp(r,q,p,o,n,m,l,k,j){product_zpf(r,q,p,o,n,m,l,k,j,"",true)}function Hot01_zp(r,q,p,o,n,m,l,k,j){product_zpf(r,q,p,o,n,m,l,k,j,"",true)};