/*[/js-min/core/utility/domready.js, /js-min/widgets/shared/util/io-failure.js, /js-min/widgets/checkout/enhanced-purchase-options.js, /js-min/widgets/penname/pen-name-overlay.js, /js-min/widgets/product-page/report-as-inappropriate.js, /js-min/widgets/shared/shared-footer.js, http://libs.coremetrics.com/eluminate.js, /js-min/widgets/shared/util/bot.js]*/


// Licensed Materials - Property of IBM, eluminate.js (US Build # 4.17.34 Date/Time: 20141209-16:46), (C) Copyright IBM Corporation 2014. U.S. Government Users Restricted Rights:  Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
(function(c){var i="",h="",b=false;function f(){var m=[cm_JSFCoreCookieName,"cmRS","cmTPSet","CoreAt","CMAVID","CoreM_State","CoreM_Ses"],n=cm_ClientID.split(";"),l;for(l=0;l<n.length;l++){m.push(cmJSFCreateCombinedSessionCookieName(n[l]))}for(l=0;l<m.length;l++){CC(m[l],cm_JSFPCookieDomain);CC(m[l])}}function e(l,m){var n=cI(l);return n&&n.toUpperCase()==m}function g(o){var l=0,m=0,p=o.length;for(;l<p;l++){m=~~(31*m+o.charCodeAt(l))}return Math.abs(m)}function a(m,l){return m?m:l?l:""}function d(){var s,u,q,l=screen,o=navigator,m=o.mimeTypes,r=o.plugins,t=""+l.width+l.height+l.availWidth+l.availHeight+l.colorDepth+l.pixelDepth+a(o.language,a(o.browserLanguage));if(m){for(q=0,u=m.length;q<u;q++){t+=a(m[q].type)}}if(r){for(q=0,u=r.length;q<u;q++){s=r[q];t+=a(s.name)+a(s.version)+a(s.description)+a(s.filename)}}return t}function k(){return h=="D"}c.cmSetCookieSetting=function(l){h=l;if(k()){f()}};c.cmCookiesDisabled=k;c.cmSessionCookiesOnly=function(){return h=="S"};c.cmSetOptOut=function(l){i=l};c.cmOptedOut=function(){return((i=="Y")||cI("CMDisabled")||e("CMOptout","OPT_OUT")||e("CMOptOut","OPT_OUT")||e("ID","OPT_OUT"))};c.cmAnonymous=function(){return((i=="A")||e("CMOptout","ANONYMOUS")||e("CMOptOut","ANONYMOUS"))};c.cmAutoAddTP=function(){return Math.random()<a(c.cm_TPThreshold,0.2)};c.cmSetIT=function(l){b=l};c.cmIT=function(){if(b){return"it"+g(d())}else{return null}}}(window));var cmUtils=(function(){return{console:{log:function(a){if(typeof console!=="undefined"){console.log(a)}},error:function(a){if(typeof console!=="undefined"){console.error(a)}}},string:{trim:function(a){if(typeof a==="string"){if(String.prototype.trim){return a.trim()}else{return a.replace(/^\s+|\s+$/g,"")}}return a}}}}());function cmForEach(a,c){if(a){var b,d=a.length;for(b=0;b<d;b++){if(c(a[b])){return true}}}return false}function cmAppendQueryParameters(b,c){var d=b.split("#"),a=[],e;cmForEach(c,function(f){a.push(f.join("="))});e=a.join("&");if(e){d[0]+=((d[0].indexOf("?")>-1)?"&":"?")+e}return d.join("#")}function cmAppendQueryParameter(b,a,c){var d=[a];if(c){d.push(c)}return cmAppendQueryParameters(b,[d])}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 d=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 c=CM_DDX.gup("tms.syndicate");if(c===null){c="n"}if(d===null){d=""}c=c.toLowerCase();c=(c==="n"||c==="no"||c==="false")?"N":"Y";CM_DDX.test.testCounter=(d==="")?d:((d*1)+"");CM_DDX.test.syndicate=(c==="Y");CB("ddx.test.info",d+"-"+c+"-"+CM_DDX.test.doTest+"-"+CM_DDX.test.newWin)}else{var b=cI("ddx.test.info");if(b){var a=b.split("-");CM_DDX.test.testCounter=a[0];CM_DDX.test.syndicate=(a[1]==="Y");CM_DDX.test.doTest=(a[2]==="true");CM_DDX.test.newWin=(a.length===4&&a[3]==="true")}}}},partner:{},invokeFunctionWhenAvailable:function(a){if(CM_DDX.firstPassFunctionBinding===false){setTimeout(function(){CM_DDX.invokeFunctionWhenAvailable(a)},5)}else{if(CM_DDX.version!==0&&typeof(__$dispatcher)==="undefined"){setTimeout(function(){CM_DDX.invokeFunctionWhenAvailable(a)},CM_DDX.BAD_PAGE_ID_ELAPSED_TIMEOUT);return}if(CM_DDX.version!==0){a()}}},gup:function(d){d=d.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+d+"=([^&#]*)";var b=new RegExp(c);var a=b.exec(window.location.href);return(a===null)?null:decodeURIComponent(a[1].replace(/\+/g," "))},privacy:{isDoNotTrackEnabled:function(b){var a=CM_DDX.privacy.getDoNotTrack(b);if(a==false){a=(cI("CM_DDX","pdnt0","false")=="true")?true:false}return a},setDoNotTrack:function(b,a){CM_DDX.setSubCookie("CM_DDX","pdnt"+b,a,365)},getDoNotTrack:function(a){return(cI("CM_DDX","pdnt"+a,"false")=="true")?true:false}},setSubCookie:function(b,a,e,c,d){cmSetSubCookie(b,a,e,new Date(new Date().getTime()+(c*86400000)).toGMTString(),d)}};if(!cm_ClientID){var cm_ClientID="99999999"}if(!cm_HOST){var cm_HOST="testdata.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.coremetrics.com"}if(!cm_MC_RULES_HOST){var cm_MC_RULES_HOST="mktgcdn.coremetrics.com"}if(!cm_MC_USER_DETAILS_HOST){var cm_MC_USER_DETAILS_HOST="mcdata.coremetrics.com"}if(!cm_MC_APP_SERVER_HOST){var cm_MC_APP_SERVER_HOST="mc.coremetrics.com"}if(!cm_DDX_CDN_BASE_URL){var cm_DDX_CDN_BASE_URL="tmscdn.coremetrics.com/tms"}if(!cm_CLIENT_CONFIG_HOST){var cm_CLIENT_CONFIG_HOST="libs.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 e=new Date();var i=0;if(e.getFullYear){i=e.getFullYear()}else{i=e.getYear();if(i<1900){i+=1900}}e.setYear(i+15);cmCookieExpDate=e.toGMTString();if(cm_UseCookie){var k=cI("cmRS","pi","");chost=cm_HOST;cm_HOST=cI("cmRS","ho",chost);cci=cm_ClientID;cm_ClientID=cI("cmRS","ci",cci);var b=cI("cmRS","t3","");if(b!=""){cGA=b}var g=cI("cmRS","cjen","");if(g!=""){cm_JSFEnabled=true}var d=cI("cmRS","t1","");if(d!=""&&(!cGA||cm_ClientTS-cGA<cGR)){cmAddShared("st",d);var m=cI("cmRS","ul","");var o=cI("cmRS","rf","");var n=cI("cmRS","hr","");if(n!=""){var a=cI("cmRS","lti","");if(cm_ClientTS-a<cGR){var p=cI("cmRS","ln","");cM(d,a,p,n,true,k,m,o)}}var h=cI("cmRS","ac","");var f=cI("cmRS","fd","");if((h!="")||(f!="")){var a=cI("cmRS","fti","");if(cm_ClientTS-a<cGR){var c=cI("cmRS","fn","");var l=cI("cmRS","fu","");cL(d,a,c,h,l,f,true,k,m,o)}}}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(a){if(_$cV1!=null){a(_$cV1)}else{if(cm_JSFEnabled){_$cV1=cmJSFGetUserId();a(_$cV1)}else{var b="eluminate"+Math.floor((Math.random()*10000)+1);window[b]=function(d){if(typeof d==="string"){var c=d.indexOf("&ci=");if(c>=0){d=d.substring(0,c)}}_$cV1=d;a(_$cV1)};_cmPartnerUtils.loadScript(C8()+"//"+cm_Production_HOST+"/cookie-id.js?fn="+b)}}}function cmLoad(){var b,k=C8()+"//",a,e,d,i,f,g,c=_cmPartnerUtils.loadScript;if(cm_OffsiteImpressionsEnabled){cm_Avid=cI("CMAVID");if(cm_Avid==null){c(k+cm_AvidHost);cm_AvidLoadTimer=setTimeout(function(){cm_AvidLoadTimedOut=true},2000)}}if(cm_ATEnabled&&!cmOptedOut()&&!cmAnonymous()&&typeof(cG6._cm_CMRulesLoaded)=="undefined"){a=cm_ClientID.split(";");i=k+cm_Production_HOST+"/at/rules_";f=((cI("CorePartnerMode")=="TEST")?"test":"")+".js";for(d=0;d<a.length;d++){e=a[d].split("|")[0];if(cm_PartnerDataClientIDs.indexOf(e)!=-1){c(i+e+f)}}cG6._cm_CMRulesLoaded=1}if(cm_MCEnabled){c(k+cm_MC_LIB_HOST+"/mc.js");try{if((_cmMc.getIframeMaxDepth("IMODGUIDIDENTIFIER",5)!=null)&&(window.name!=null)&&(window.name.length>0)){b=k+cm_MC_APP_SERVER_HOST+"/mcwebapp/js/";c(b+"easyXDM.js");c(b+"imodWebDesigner.js");c(b+"json2.js")}}catch(h){}}if(typeof($f126)==="undefined"&&!CM_DDX.dispatcherLoadRequested){CM_DDX.dispatcherLoadRequested=true;$cm_client_id=CM_DDX.cVA;g=(CM_DDX.version>0)?"-v"+CM_DDX.version:"";if(CM_DDX.version>=2){c(k+cm_DDX_CDN_BASE_URL+"/dispatcher"+g+".js")}if(CM_DDX.version>=3&&!cm_ATEnabled){_cmPartnerUtils.AT_RulesSet=true}}}_cmMc.getWebDesignerDependentScriptUrl=function(){var a=unica_imod.getWebDesignerScriptBaseUrl();if(a!=null){return a+"easyXDM.js"}else{return null}};_cmMc.getIframeMaxDepth=function(b,f){var e=parent;var a=null;var d=1;while(a==null&&e!=null&&(f==null||d<=f)){a=e.frames[b];var c=e;e=e.parent;if(e==c){e=null}d++}return a};var cI=cI;var cE=cE;function cmStartTagSet(){if(cG8){return false}cG8=[];cG8[0]=new _cm();cG9=1;return true}function cmAddShared(a,b){if(cG8){cG8[0][a]=b}}function cmSendTagSet(){var a;var c=cG8;var b=null,d=0;for(d=0;d<c.length;d++){if(typeof c[d]._$cmlch==="function"){b=c[d];break}}while((a=C7(arguments[0]))!=null){if(b){c9.call(b,a,c[0].ci)}else{c9(a,c[0].ci)}}cG8=null}function _cmCQ(b,c,a){this.pl=b;this.hosts=c.split(",");if(a){this.qs=a}this.cM5=CR}function CR(){var b=arguments;var c=b[0]?b[0]:this.hosts[0];return this.pl+"//"+c+(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(f){var e="",c=cm_ClientID.split(";"),d=f.split("|")[0],b=f.split("|")[1];for(var g=0;g<c.length;g++){if(d==c[g].split("|")[0]){if(b){b=b.split(":");for(var a=0;a<b.length;a++){if(c[g].split("|")[1]&&(c[g].split("|")[1].toUpperCase().indexOf(b[a].toUpperCase())>-1)){e=cm_ClientID;break}}break}else{e=cm_ClientID;break}}}return this.getPageID(e)}function c1(a){var b=cG7.cM0[a];return b?b:""}function CS(b){var a=cG7.uls[b];if(!a){a=window.location.href}return a?a:""}function CT(b){var a=cG7.rfs[b];if(!a){a=cG6.referrer}return a?a:""}function CP(d){var e=cGT;if(!e){e=cGT=cG7.normalizeURL(window.location.href,false)}var c=d.indexOf("#");if(c>=0&&c<=e.length){var b=e.indexOf("#");if(b<0){b=e.length}if(d.substring(0,c)==e.substring(0,b)){return d.substring(c)}}return d}function c2(b,a){if(a){b=CP(b);var c=window.location.protocol+"//"+window.location.host;if(b.indexOf(c)==0){b=b.substring(c.length)}}return cD(b)}function c4(){for(var a in cmUA){if(cGM.indexOf(a)!=-1){return cmUA[a]}}return cmDefaultLimit}function C0(a){if(cG7){if(cG7.cTI&&cG7.cTI[a]){cG7.cTI[a].cmLD=true;if(cG7.cTI[a].ci){cmJSFSetValidFlagValue(cmValidFlag_SessionContinue,false,cG7.cTI[a].ci);cmJSFSetSessionCookies(false,cG7.cTI[a].ci)}}cG7.cPE--;if(cG7.onResponse){cG7.onResponse(a)}}window.dontExit=false}function CN(b){if(cG7){cG7.cPE--;var a=null;if(cG7.cTI&&cG7.cTI[b]){a=cG7.cTI[b];a.cmLD=true}if(cG7.onError&&(!a||!a.cmTO)){cG7.onError(3,a)}}}function c6(a,b){if(cG3){cG3[a]=true}C0(b)}function CO(b){if(cG7&&cG7.cTI&&cG7.cTI[b]&&!(cG7.cTI[b].cmLD)){var a=cG7.cTI[b];a.cmTO=a.src;if(cG7.onError){cG7.onError(4,a.cmTO)}}}function c8(b){if(!cG3||cG3[b]){return true}var a=new Date();return(a.getTime()-cG2[b])>cG4}function CV(h,e,b){if((CM_DDX.version>=3)&&CM_DDX.standalone){return}b=b||cm_ClientID;var d=function(i){var k=false;return function(){if(!k){if(typeof i==="function"){i()}k=true}}}(this._$cmlch);if((!cG2[h]||c8(h))&&(cm_OffsiteImpressionsEnabled==false||cm_Avid!=null||cm_AvidLoadTimedOut)){var c=new Image();var f=cmIndex;cG7.cTI[cmIndex++]=c;if(!cG2[h]){var g=new Date();cG2[h]=g.getTime();c.onload=function(){c6(h,f);d()}}else{c.onload=function(){C0(f);d()}}c.onerror=function(){CN(f);d()};if(cm_OffsiteImpressionsEnabled&&(cm_Avid!=null)&&(cm_Avid!="none")){e+="&avid="+cm_Avid}var a=c4();if(e.length>a){e=e.substring(0,a-6)+"&err=O"}if(cG7.onTagSent){cG7.onTagSent(e,f)}c.src=e;c.ci=b;setTimeout(function(){CO(f);d()},cm_TimeoutSecs*1000)}else{setTimeout(function(){CV(h,e,b)},cG5)}}function c9(a,c){if(cmOptedOut()){return}for(var d=0;d<a.hosts.length;d++){var b=a.cM5(a.hosts[d]);cG7.cPE++;CV.call(this,a.hosts[d],b,c)}}function cC(){var a=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 b=this.getImgSrc(arguments[0],1);c9.call(this,b,this.ci);a=b}return a}function cmLogError(a){}function C4(d,e,c){if(!c){if(!d.rf){if(!document.referrer){e.rf=""}else{e.rf=document.referrer}}else{if(d!=e){e.rf=d.rf}}if(!d.ul||d.ul==""||d.ul=="(none)"){e.ul=window.location.href}else{if(d!=e){e.ul=d.ul}}var b=cG7.normalizeURL(e.ul,false);var a=cG7.normalizeURL(e.rf,false);if(b!=""){e.ul=b}if(a!=""){e.rf=a}}}function C6(o,d,h){var i="";if(o.tid){i+="tid="+o.tid}var a=(o.tid==1||(o.pc&&o.pc.charAt(0)=="Y"));for(var k in o){if(k=="qs"||k=="tid"||k=="topline"){continue}if(o[k]!==0&&(!o[k]||o[k]==""||typeof(o[k])==="function")){continue}if(d&&d[k]&&d[k]==o[k]){continue}if(i!=""){i+="&"}i+=cD(k)+"="+cE(cD(o[k]))}if(!o.rs&&o.ci){if(o.pi&&a){cG7.cM0[o.ci]=o.pi}if(o.ul){cG7.uls[o.ci]=o.ul}if(o.rf){cG7.rfs[o.ci]=o.rf}}if(d&&cm_SecureTags.indexOf("|"+o.tid+"|")!=-1){d.protocol="https:"}if(cm_JSFEnabled&&!h){cmJSFSetSessionCookies(false,o.ci);i+=(i!=""?"&":"")+cmCore_JSFParamEnabled+"=1";var m=cmJSFGetUserId();i+="&"+cmCore_JSFParamUserID+"="+(m!=null?m:"");i+="&"+cmCore_JSFParamSessionID+"="+cmJSFGetSessionValue(o.ci);i+="&"+cmCore_JSFParamValidFlag+"="+cmJSFGetValidFlagValue(o.ci)}if(cm_PartnerDataClientIDs&&o.tid){try{var n={};for(var l in o){var b=o[l];if(typeof(b)!="function"&&typeof(b)!="undefined"){if(l=="ci"){b=b.split(";");for(var g=0;g<b.length;g++){b[g]=b[g].split("|")[0]}b=b.join(";")}}n[l]=b}if(d){for(var l in d){var b=d[l];if(typeof(b)!="function"&&typeof(b)!="undefined"){if(l=="ci"){b=b.split(";");for(var g=0;g<b.length;g++){b[g]=b[g].split("|")[0]}b=b.join(";")}}n[l]=b}}n.calculateTopLineAndReturnSegments=o.calculateTopLineAndReturnSegments;if(((cm_ATEnabled&&_cmPartnerUtils.AT_RulesSet)||CM_DDX.version>=3)&&_cm_NRSet){_cmPartnerUtils.calculateAndSendATData(n)}else{_cmPartnerUtils.AT_TagQueue.push(n)}}catch(f){}}var c=_cmPartnerUtils.copyTag(o,d);if(c.tid){_cmMc.mcTagQueue.push(c);if(cmMarketing.INSTANCE!==null){cmMarketing.INSTANCE.tagCallTriggered()}else{_cmMc.callPending.tagCallTriggered=true}}return i}_cmPartnerUtils.copyTag=function(a,e){var c={};for(var b in a){var d=a[b];if(typeof(d)!="function"&&typeof(d)!="undefined"){c[b]=d}}if(e){for(var b in e){var d=e[b];if(typeof(d)!="function"&&typeof(d)!="undefined"){c[b]=d}}}c.calculateTopLineAndReturnSegments=a.calculateTopLineAndReturnSegments;return c};function C8(b){var a=location.protocol;if(b&&b.protocol){a=b.protocol}if(a!="http:"&&a!="https:"){a="http:"}return a}function c0(){var c=arguments;C4(this,this,c[0]);var e={};var b=C6(this,e);var d=new _cmCQ(C8(e),cm_HOST,b);return c[1]?d:d.cM5()}function C7(){var f,n,b,r,e,c,o,d,k,q,g;if(!cG8||cG8.length<2){return null}f=cG8[0];n=cG8[1];f.ci=n.ci;for(k=1;k<cG8.length;k++){if(f.ci.indexOf(cG8[k].ci)==-1){f.ci+=";"+cG8[k].ci}if(cm_SecureTags.indexOf("|"+cG8[k].tid+"|")!=-1){f.protocol="https:"}}for(k=0;k<cG0.length;k++){b=cG0[k];if(!f[b]){f[b]=n[b]}}r=arguments;C4(n,f,r[0]);e=C8(f);g=new _cmCQ(e,cm_HOST);g.qs=C6(f);c=c4();o=0;for(var m=0;m<g.hosts.length;m++){d=e.length+g.hosts[m].length+g.qs.length;if(d>o){o=d}}for(k=1;k<cG8.length;k++){q=C6(cG8[k],f,true);if(k>1&&o+q.length+1>c){for(j=1;j<cG8.length-k+1;j++){cG8[j]=cG8[j+k-1]}cG8.length=cG8.length-k+1;break}o+=q.length+1;g.qs+="&"+q}if(k==cG8.length){cG8=null}return g}function _cm(){var d,b=arguments;this.ci=cm_ClientID;for(d=0;d<b.length;d++){this[b[d]]=b[++d]}this.write=cC;this.getImgSrc=c0;this.writeImg=cC;this.st=cm_ClientTS;this.vn1="4.17.34";if(cF(5.5)||!cF(0)){var c=(cm_UseUTF8&&encodeURIComponent)||cGU?"utf-8":cG6.charset;if(!c){c=cG6.defaultCharset}if(!c){c=cG6.characterSet}this.ec=c}this.topline=[]}function cD(a){var b="";a=b+(!a&&a!==0?"":a);return a.split("'").join(b).split('"').join(b).split("\r").join(b).split("\n").join(b)}function cE(d){var c=0,b;while(d.charAt(c)==" "&&c!=d.length){c++}b=d.length-1;while(d.charAt(b)==" "&&b!=0){b--}d=d.substring(c,b+1);if(cm_UseUTF8&&encodeURIComponent){d=encodeURIComponent(d)}else{d=preEscape(d);d=escape(d);var a=new RegExp("%25u00","g");d=d.replace(a,"%u00")}d=d.split("+").join("%2B");return d}function preEscape(c){for(var b=160;b<256;b++){var a=new RegExp(String.fromCharCode(b),"g");c=c.replace(a,"%u00"+b.toString(16))}return c}function cF(a){var b=cGM.indexOf("MSIE");if(b!=-1){return(parseFloat(cGM.substring(b+5))>=a)}return false}function CD(a){return(cGN.indexOf("Gecko")!=-1&&parseInt(cGM)>=a)}function cI(b,a,c){var d=cJ(b,cG6.cookie,";");if(a&&d){d=cJ(a,d,"&")}if(d){d=unescape(d)}else{if(c){d=c}}return d}function CL(){var e,a,b,d,f=0;a=cG6.cookie;if(a){e=a.split(";");f=e.length;for(d=0;d<e.length;d++){b=e[d].split("=");if(b.length<2||b[1]==null||b[1]==""){f--}}}return f}function CB(b,h,d,g){if(cmCookiesDisabled()){return true}var f,a,e,c=cG6.cookie;f=null;a=h.length+1;if(!cI(b)){a+=b.length}if(a>4096){f=1}else{if(c){if(CL()>=50){f=2}}}if(f){if(cG7.onError){cG7.onError(f,name)}return false}e=b+"="+h+"; path=/";if(g){e+="; domain="+g}if(d&&!cmSessionCookiesOnly()){e+="; expires="+d}cG6.cookie=e;return true}function cmSetSubCookie(m,k,i,b,f){var e=cI(m);var h;if(!e){h=k+"="+i}else{var l="&";var g=k+"=";var c=e.indexOf(g);if(c>=0){if(c>0&&e.charAt(c-1)!=l){c=e.indexOf(l+g);if(c>=0){c++}}}if(c>=0){var a=c+k.length+1;var d=e.indexOf(l,a);if(d<0){d=e.length}h=e.substring(0,a)+i+e.substring(d)}else{h=e+l+k+"="+i}}CB(m,h,b,f)}function CC(a,d){var b=cI(a);if(b!=null){var c=new Date();c.setYear(1973);var b=a+"=; path=/; expires="+c.toGMTString();if(d){b+="; domain="+d}cG6.cookie=b}return b}function cJ(a,h,c){var g,e,d,b,f=null;g=a+"=";e=c+" ";d=h.indexOf(e+g);if(d==-1){e=c;d=h.indexOf(e+g)}if(d==-1){d=h.indexOf(g);if(d!=0){return null}}else{d+=e.length}b=h.indexOf(e,d);if(b==-1){b=h.length}return h.substring(d+g.length,b)}function CG(c){if(!c){c=window.event}var a=[c.currentTarget,c.target,c.srcElement];for(var b=0;b<a.length;b++){if(a[b]){return a[b]}}}function CU(a,b,g,c,f){var e,d;a.pi=g?g:c1(b);if(cGQ){if(c||f){a.ul=c?c:"";a.rf=f?f:""}else{e=CS(b);d=CT(b);if(a.pi==""||e.indexOf("cm_")>0||(d!=""&&d.indexOf(window.location.protocol+"//"+window.location.host)!=0)){a.ul=e;a.rf=d}}}}function cL(g,e,c,h,a,i,m,f,l,b,d){var k=new _cm("tid","10");CU(k,k.ci,f,l,b);k.st=g;k.ti=e;k.fo=c;k.ac=h;k.hr=a;k.fi=i;k._$cmlch=d;if(m){k.rs="Y"}k.write(1)}function cM(h,a,b,c,n,g,m,e,f){var l=new _cm("tid","8");if(typeof(encodeURI)==="function"){c=encodeURI(c).replace(/%25/g,"%")}CU(l,l.ci,g,m,e);l.st=h;l.ti=a;l.nm=b;l.hr=c;l._$cmlch=f;var i=c.indexOf("cm_cr=");var d=c.indexOf("cm_me=");if(i>-1){var k=c.indexOf("&",i);if(k==-1){l.cm_cr=c.substring(i+6)}else{l.cm_cr=c.substring(i+6,k)}}if(d>-1){var k=c.indexOf("&",d);if(k==-1){l.cm_me=c.substring(d+6)}else{l.cm_me=c.substring(d+6,k)}}if(n){l.rs="Y"}l.write(1)}function CM(d){var f,b,c,e;if((f=d.indexOf("?"))==-1){f=d.lastIndexOf("/")}if(f!=-1){b=d.indexOf("#",f);if(b==-1){b=d.length}while(f!=-1&&f<b){f=d.indexOf("cm_",f);if(f!=-1){c=d.indexOf("&",f);if(c==-1){c=b}e=d.indexOf("=",f);if(e!=-1&&e<c){this[d.substring(f,e)]=d.substring(e+1,c)}f=c}}}}function CK(b,f,e,a,d){var k,i,c,l,g,h;if((f||e||a||d)&&b){k=new _cm("tid","9");i=new CM(CP(b));if(f){c=k.cm_sp_o=i.cm_sp_o;if(!c){c=k.cm_sp=i.cm_sp}}if(e){l=k.cm_re_o=i.cm_re_o;if(!l){l=k.cm_re=i.cm_re}}if(a){if(b.indexOf("#")==-1){g=k.cm_cr=i.cm_cr}}if(d){h=k.cm_me=i.cm_me}if(c||l||g||h){k.pi=c1(k.ci);k.st=cm_ClientTS;if(typeof cmCheckIgnoreImpression=="function"){if(cmCheckIgnoreImpression(c,l,g,h)){k.write(1)}}else{k.write(1)}}}}function cmFormBlurRecord(a){if(a.cmFormEleMemValue!=cmFormElementValue(a)&&a.cmFormEleMemValue!=null){cmFormReportInteraction(a)}a.form.cmEleValue=-1}function cmFormElementOnclickEvent(){try{var b;var a=cmFormElementValue(this);if((cmFormC1.indexOf(this.type)>=0)||(this.cmFormEleMemValue!=a)){if(this.type=="radio"){for(b=0;b<this.form.elements.length;b++){if(this.form.elements[b].cM2==this.cM2){this.form.elements[b].cmFormEleMemValue=null}}}this.cmFormEleMemValue=a;cmFormReportInteraction(this)}}catch(c){cmLogError(c)}}function cmFormElementOnfocusEvent(){try{this.form.cmEleValue=this.cM2;this.cmFormEleMemValue=cmFormElementValue(this)}catch(a){cmLogError(a)}}function cmFormElementOnblurEvent(){try{cmFormBlurRecord(this)}catch(a){cmLogError(a)}}function cmFormElementOnchangeEvent(){try{cmFormReportInteraction(this)}catch(a){cmLogError(a)}}function cmFormElementValue(c){var a;if(c.type=="checkbox"){return c.checked}else{if((cmFormC3.indexOf(c.type)>=0)&&c.options){var b="";for(a=0;a<c.options.length;a++){if(c.options[a].selected==true){b=b+c.options[a].index}}return b}else{if(cmFormC2.indexOf(c.type)>=0||c.type=="file"||c.type=="radio"){return c.value}else{return null}}}}function cO(g,h,d,c){var b,a,i,l="";var f=null;h=g+":"+h;if(g!=-1){if(cG6.forms[g]){f=cG6.forms[g];var l=f.attributes;a=f.action?f.action:l.action.nodeValue?l.action.nodeValue:l.getNamedItem("action").value?l.getNamedItem("action").value:""}}cGD=cG6.cmTagCtl.normalizeFORM(cGD);var k=c1(cm_ClientID);if(cm_FormPageID&&k!=""){var e=cGD.split(";");cGD="";for(i=0;i<e.length-1;i++){cGD+=k.split(":").join("").split(";").join("")+"_"+e[i]+";"}cm_FormPageID=false}if(cV(a)&&(g!="-1"||(g=="-1"&&cmSubmitFlag==false))){b=new Date();cGH=b.getTime();cGF=h;cGE=cG7.normalizeURL(a,true);cL(cm_ClientTS,cGH,cGD,cGF,cGE,cGC,false,c,c,c,d);cGG=cGC;cGC="";if((f)&&(typeof cmCustomFormSubmitHandler=="function")){cmCustomFormSubmitHandler(f,h)}}else{cGF=""}}function cmFormOnresetEvent(){var a;try{cO(this.cM1,"R")}catch(b){cmLogError(b)}try{for(a=0;a<cG6.forms[this.cM1].elements.length;a++){cG6.forms[this.cM1].elements[a].cmFormEleMemValue=false}}catch(b){cmLogError(b)}try{if(this.cQ){return this.cQ()}}catch(b){cmLogError(b)}}function cmFormOnsubmitEvent(c,a,d){try{if(this.cmEleValue>-1){cmFormBlurRecord(this.elements[this.cmEleValue])}}catch(b){cmLogError(b)}try{if(this.cM1>=0&&this.cmSubmitIndex==false){cmSubmitFlag=true;this.cmSubmitIndex=true;cO(this?this.cM1:-1,"S",a);CE()}else{if(typeof a==="function"){a()}}}catch(b){cmLogError(b)}cmJSFPMigrateLink(this,"action")}function cmFormReportInteraction(c){var b=cG6.cmTagCtl.normalizeFIELDS(c.name?c.name:c.id?c.id:"");var a=cGC+c.form.cM1+":"+c.cM2+":"+b.split(":").join("|").split(";").join("|")+";";if(a.length<1000){cGC=a}}function cmFormSubmit(){cmJSFPMigrateLink(this,"action");try{if(this.cmEleValue>-1){cmFormBlurRecord(this.elements[this.cmEleValue])}}catch(b){cmLogError(b)}try{if(this.cM1>=0&&this.cmSubmitIndex==false){cmSubmitFlag=true;this.cmSubmitIndex=true;cO(this?this.cM1:-1,"S");CE()}}catch(b){cmLogError(b)}try{if(cm_LinkClickDelay){setTimeout((function a(c){return function(){c.cmSubmit()}}(this)),cm_LinkClickDelayInterval);return false}else{this.cmSubmit()}}catch(b){cmLogError(b)}}cG6.cmTagCtl.normalizeFORM=function(a){return a};cG6.cmTagCtl.normalizeFIELDS=function(a){return a};function cU(){if(cm_SkipHandlerReg.indexOf("F")==-1){_$cF1();var c,f,b,a,k,g,h;for(c=0;c<cG6.forms.length;c++){f=cG6.forms[c];h=0;if(!f.cM1&&!f.cmEleValue&&!f.cmSubmitIndex){f.cM1=c;f.cmEleValue=-1;f.cmSubmitIndex=false;f.radiogroup={key:"value"};try{if(cF(5)&&!cF(8)){var d=f.attributes;b=d.name?d.name.nodeValue:d.id?d.id.nodeValue:d.action?d.action.nodeValue:"UNDEFINED"}else{if(f.attributes.getNamedItem){b=((f.attributes.getNamedItem("name"))&&(f.attributes.getNamedItem("name").value!==""))?f.attributes.getNamedItem("name").value:((f.attributes.getNamedItem("id"))&&(f.attributes.getNamedItem("id").value!==""))?f.attributes.getNamedItem("id").value:((f.attributes.getNamedItem("action"))&&(f.attributes.getNamedItem("action").value!==""))?f.attributes.getNamedItem("action").value:"UNDEFINED"}else{b=f.name?f.name:f.id?f.id:f.action?f.action:"UNDEFINED"}}}catch(k){b="ERROR";cmLogError(k)}cGD+=b+":"+c+";";try{if(f.submit!==cmFormSubmit){f.cmSubmit=f.submit;f.submit=cmFormSubmit}}catch(k){cmLogError(k)}if(typeof cm_NewFormTracker!=="undefined"){if(!f._$cV2){_$cF4(f)}}else{cmAddNewEvent(f,"submit",cmFormOnsubmitEvent)}cmAddNewEvent(f,"reset",cmFormOnresetEvent);for(a=0;a<f.elements.length;a++){k=f.elements[a];if(!k.cM1&&!k.cM2&&!k.cmFormEleMemValue){k.cM1=c;k.cM2=h;k.cmFormEleMemValue=null;h++;if(k.type=="radio"){g=k.name?k.name:k.id?k.id:"";if(g!=""){if(f.radiogroup[g]){k.cM2=f.radiogroup[g]}else{f.radiogroup[g]=k.cM2}}}if(cmFormC1.indexOf(k.type)>=0||k.type=="checkbox"||k.type=="radio"){try{cmAddNewEvent(k,"click",cmFormElementOnclickEvent)}catch(k){cmLogError(k)}}if(cmFormC2.indexOf(k.type)>=0||cmFormC3.indexOf(k.type)>=0){try{cmAddNewEvent(k,"focus",cmFormElementOnfocusEvent);cmAddNewEvent(k,"blur",cmFormElementOnblurEvent)}catch(k){cmLogError(k)}}if(k.type=="file"){try{cmAddNewEvent(k,"change",cmFormElementOnchangeEvent)}catch(k){cmLogError(k)}}}}}}}}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(a){var c=a;if(typeof a==="string"){c=document.getElementById(a);if(!c){var b=document.getElementsByName(a);if(b.length>0){c=b[0]}b=null}}if(c&&typeof c==="object"&&c.tagName=="FORM"){return c}return null}function _$cF4(a){var b=function(d,c){return function(f){if(!f){f=window.event}var e=function(){var g=false;return function(){if(!g){g=true;var h=c&&c();d.onsubmit=function(){return h};d.submit()}}}();cmFormOnsubmitEvent.call(f.srcElement?f.srcElement:f.target,f,e);if(f.preventDefault){f.preventDefault()}else{f.returnValue=false}return false}}(a,a.onsubmit);a.onsubmit=b;a=null}function cV(d){if(cm_TrackLink==true||cm_TrackLink=="A"){return true}else{if(cm_TrackLink=="E"&&d.indexOf("/")!=0){return true}var f;if((f=cm_DownloadExtensions)!=null){var c=d.lastIndexOf(".");if(c!=-1){var a=d.substring(c);for(var b=0;b<f.length;b++){if(a==f[b]){return true}}}}return false}}function cW(b,a){CI();var b=CG(b);if(b){C9(b,a)}CJ(1);CE();if(a){setTimeout(a,cm_LinkClickDelayInterval)}else{if(cm_LinkClickDelay){if(b){setTimeout('document.location = "'+b.href+'"',cm_LinkClickDelayInterval);return false}else{return true}}}}function C9(f,a,g){cGI="";cGJ="";cGK="";var b=f.tagName.toUpperCase();if(b=="AREA"){cGJ=f.href?f.href:"";var d=f.parentElement?f.parentElement:f.parentNode;if(d!=null){cGI=d.name?d.name:(d.title?d.title:(d.id?d.id:""))}}else{while(b!="A"&&b!="HTML"){if(!f.parentElement){if(f.parentNode){f=f.parentNode}else{break}}else{f=f.parentElement}if(f){b=f.tagName.toUpperCase()}}if(b=="A"){cGJ=f.href?f.href:"";cGI=f.name?f.name:(f.title?f.title:(f.id?f.id:""))}}if(f.getAttribute){cGJ=cmGetManualLinkUrl(f,cGJ)}cGJ=cG7.normalizeURL(cGJ,true);if(cV(cGJ)==true){var c=new Date();cGK=c.getTime();if(typeof cmCustomLinkClickHandler=="function"){cmCustomLinkClickHandler(f)}cM(cm_ClientTS,cGK,cGI,cGJ,false,g,g,g,a)}else{cGJ=""}cmJSFPMigrateLink(f,"href")}function cmAddNewEvent(e,d,f,g,b){if(e.addEventListener){e.addEventListener(d,f,false)}else{if(e.attachEvent){g=g||d;b=b||f;var a=g+b,c="e"+a;if(typeof e[c]==="undefined"){e[c]=b;e[a]=function(){e[c](window.event)};e.attachEvent("on"+g,e[a])}}}}function cX(a){if(cmReadyToThrowImpressions()){cmAddClicksAndThrowImpressions(a)}else{cmAddClickHandlers();if(a==="onload"){cmThrowImpressionTags()}}}function cmReadyToThrowImpressions(){return(cm_ClientID!=="99999999"&&c1(cm_ClientID)!=="")}function cmGetManualLinkUrl(c,b){if(c.getAttribute){function a(d,f){var e=c.getAttribute("manual_"+f);if(e){d=cmAppendQueryParameter(d,f,e)}return d}b=a(b,"cm_re");b=a(b,"cm_sp")}return b}function cmInstrumentLinks(i,f){var e,d,b,c,a=cm_TrackImpressions,k="cmImpressionSent",h=cG6.links,g=false;e=(a.indexOf("S")!=-1);d=(a.indexOf("R")!=-1);b=(a.indexOf("C")!=-1);c=(a.indexOf("M")!=-1);i&=(cm_SkipHandlerReg.indexOf("L")==-1);f&=(e||d||b||c);if(i||f){cmForEach(h,function(l){if(i){_$cF5(l)}if(f&&!l[k]){var m=cmGetManualLinkUrl(l,l.href);if(!g){CI();g=true}CK(m,e,d,b,c);l[k]=1}});if(g){CJ(1)}}}function cmAddClicksAndThrowImpressions(a){cmInstrumentLinks(true,a==="onload")}function cmAddClickHandlers(){cmInstrumentLinks(true,false)}function cmThrowImpressionTags(){if(!cmReadyToThrowImpressions()){setTimeout(cmThrowImpressionTags,10)}else{cmInstrumentLinks(false,true)}}function _$cF5(a){var b=cmUtils.string.trim(a.href).toLowerCase();if(!cm_NewLinkTracker||a.className.indexOf("cmUseOldLinkTracker")!=-1||b.indexOf("#")===0||b.indexOf("javascript:")===0||b.indexOf(location.href.toLowerCase()+"#")===0){cmAddNewEvent(a,"click",cW)}else{if(!a._$cF6){var c=a.onclick;a.onclick=null;a._$cF6=function(i){if(!i){i=window.event}var h,e;h=e=this.href;var g=i.srcElement?i.srcElement:i.target;var f=g.tagName.toUpperCase();if(f!=="AREA"&&f!=="A"){while(f!=="A"){g=g.parentElement?g.parentElement:g.parentNode;if(g){f=g.tagName.toUpperCase()}}}if(g){e=g.href}if(e===h){var k=false;if(g.target===window.name||g.target==="_self"){var d=(function(l,o,n){var m=false;return function(){if(!m){m=true;if(!o||o.call(n)!==false){location.href=l}}}})(e,c,g)}else{if(c){k=c.call(g)}}cW(i,d);if(g.target===window.name||g.target==="_self"||k){if(i.preventDefault){i.preventDefault()}else{i.returnValue=false}}}};cmAddNewEvent(a,"click",a._$cF6)}}}function cY(a){cmOnDomReady();window.setTimeout(function(){CM_DDX.firstPassFunctionBinding=true},CM_DDX.BAD_PAGE_ID_ELAPSED_TIMEOUT);if(cmIsBrowserCertified()){window.cX("onload");cU()}}function cZ(h){cG3=null;CI();var b=false;for(var a=0;a<document.forms.length;a++){try{if(cG6.forms[a].cmEleValue>-1){cmFormBlurRecord(document.forms[a].elements[document.forms[a].cmEleValue])}}catch(h){cmLogError(h)}try{if(cGC!=""){b=true;cO(-1,"U")}}catch(h){cmLogError(h)}}CJ(1);if(b){window.dontExit=true;var f=new Date();var d=new Date();for(;window.dontExit&&(d-f<1000);){d=new Date()}}CE();if(cm_UseCookie&&cG7.cPE==0){var g=escape(c1(cm_ClientID));CB("cmRS","t3="+cmT3+"&pi="+g)}if(cG7.onUnload){cG7.onUnload()}if(cF(5)&&!cF(5.5)&&window.parent!=window){cG7.cTI=null}else{if(!cGU){for(var c=0;c<cG7.cTI.length;c++){cG7.cTI[c].onload=null;cG7.cTI[c].onerror=null}}}}function CE(){if(cm_UseCookie){cmT3=new Date().getTime();var b,a,f,d,c="";b=cGA?"&t4="+cGA:"";a=(cGJ!="")?"&lti="+cGK+"&ln="+escape(cGI)+"&hr="+escape(cGJ):"";f={};CU(f,cm_ClientID);var e="";if(cm_JSFEnabled){e="&cjen=1"}d="&t1="+cm_ClientTS+"&t3="+cmT3+b+a+"&fti="+cGH+"&fn="+escape(cGD)+"&ac="+cGF+"&fd="+escape(cGG)+"&fu="+escape(cGE)+"&pi="+escape(f.pi)+"&ho="+escape(cm_HOST)+"&ci="+escape(cm_ClientID);if(f.ul&&f.rf&&f.ul.length+f.rf.length<cGO){c="&ul="+escape(f.ul)+"&rf="+escape(f.rf)}if(!CB("cmRS",d+c+e)){if(!CB("cmRS",d+e)){CB("cmRS","t3="+cmT3+"&pi="+escape(f.pi)+e)}}}}function cmSetAvid(a){clearTimeout(cm_AvidLoadTimer);if(a){cm_Avid=a}else{cm_Avid="none"}CB("CMAVID",cm_Avid);cm_AvidLoadTimedOut=false}function cmJSFSetSessionCookies(b,c){if(!cm_JSFEnabled){return}var a=c.split(";");for(var d=0;d<a.length;d++){cmJSFSetSingleSessionCookie(b,a[d])}}function debugReadCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function cmJSFGetCookieExpireDate(){var a=new Date();a.setTime(a.getTime()+(cm_JSFCoreCookieExpireSeconds*1000));return a.toGMTString()}function cmJSFGetUserId(){var a=cI(cm_JSFCoreCookieName);if(a){a=a.split("&",2)[0];if(a=="anonymous"||cmAnonymous()){a="1000000000000003"}}if(!a){a=cmIT()}return a}function cmJSFSetSingleSessionCookie(f,i){if(!cm_JSFEnabled||cmOptedOut()){return}var b=cI(cm_JSFCoreCookieName);if(b==null){b=cmJSFCreateUserId();if(cm_JSFTrackClients){b+="&ci="+i}CB(cm_JSFCoreCookieName,b,cmJSFGetCookieExpireDate(),cm_JSFPCookieDomain);cmJSFSetValidFlagSingleValue(cmValidFlag_NewVisitor,false,i)}else{if(cm_JSFTrackClients){function g(){var m=cI(cm_JSFCoreCookieName,"ci");if(m){m=unescape(m);m=m.split(",").join("_")}return m}function e(m,n){return m&&n&&(n.indexOf(m)>=0)}var l=g();if(l&&!e(i,l)){cmSetSubCookie(cm_JSFCoreCookieName,"ci",l+"_"+i,cmJSFGetCookieExpireDate(),cm_JSFPCookieDomain);if(e(i,g())){cmJSFSetValidFlagSingleValue(cmValidFlag_NewVisitor,false,i)}}}}var k=cmJSFGetSessionLoginCookieValue(i);if(!k&&cmJSFCombineSessionCookies(i)){k=cmJSFGetSessionLoginCookieValue(i)}var a=new Date().getTime(),d=""+(a+cm_JSFSessionTimeout*1000),c=cmJSFIsSessionExpired(cmJSFGetSessionExpireCookieValue(i));if(f||c||!k){var h=""+a;while(h.length<10){h="0"+h}h=h.substring(0,10);cmJSFSetSessionLoginCookieValue(i,h);cmJSFSetValidFlagSingleValue(((f||c)?cmValidFlag_SessionReset:cmValidFlag_NewSession),true,i);if(cm_JSFSessionType=="T"){cmJSFSetSessionExpiresCookieValue(i,d)}}if(cm_JSFSessionType=="I"){cmJSFSetSessionExpiresCookieValue(i,d)}}function cmJSFIsSessionExpired(a){if(a==null){return false}return(new Date().getTime()>a)}function cmJSFCreateUserId(){function b(f){var e=Math.random();if(e==0){e=Math.random()}return e.toString().substr(2,f)}var c=b(2)+b(10)+new Date().getTime(),a=c.length,d=23;if(a<d){c=c+c.substr(a-(d-a))}if(a>d){c=c.substr(0,d)}return c}function cmJSFSetValidFlagValue(d,a,c){if(!cm_JSFEnabled){return}var b=c.split(";");for(var e=0;e<b.length;e++){cmJSFSetValidFlagSingleValue(d,a,b[e])}}function cmJSFSetValidFlagSingleValue(e,a,c){var b=null;if(a){var d=cmJSFGetSessionValidFlagCookieValue(c);if(d){var f=parseInt(d);if(!isNaN(f)){b=f}}if(b==null){b=cmValidFlag_SessionContinue}if(e==cmValidFlag_NewSession){b&=~cmValidFlag_SessionReset}if(e==cmValidFlag_SessionReset){b&=~cmValidFlag_NewSession}b|=e}else{b=e}b|=cmValidFlag_SessionContinue;cmJSFSetSessionValidFlagCookieValue(c,b)}function cmJSFGetClientIdForSession(a){if(cm_JSFEAMasterIDSessionCookie){a=a.split("|")[0]}return a}function cmJSFCreateSessionMigrationParamName(a){return cm_JSFPCookieMigrateSessionID+"_"+cmJSFGetClientIdForSession(a)}function cmJSFCreateCombinedSessionCookieName(a){return cmJSFGetClientIdForSession(a)+"_clogin"}function cmJSFCombineSessionCookies(b){var a=cI(b+"_login");var e=cI(b+"_expires");var d=cI(b+"_valid");if(a!=null&&e!=null&d!=null){var c="l="+a+"&e="+e+"&v="+d;CB(cmJSFCreateCombinedSessionCookieName(b),c,null,cm_JSFPCookieDomain);CC(b+"_login",cm_JSFPCookieDomain);CC(b+"_expires",cm_JSFPCookieDomain);CC(b+"_valid",cm_JSFPCookieDomain);return true}return false}function cmJSFSetSessionLoginCookieValue(a,b){cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(a),"l",b,null,cm_JSFPCookieDomain)}function cmJSFSetSessionExpiresCookieValue(a,b){cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(a),"e",b,null,cm_JSFPCookieDomain)}function cmJSFSetSessionValidFlagCookieValue(a,b){cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(a),"v",b,null,cm_JSFPCookieDomain)}function cmJSFGetSessionLoginCookieValue(a){return cI(cmJSFCreateCombinedSessionCookieName(a),"l")}function cmJSFGetSessionExpireCookieValue(a){return cI(cmJSFCreateCombinedSessionCookieName(a),"e")}function cmJSFGetSessionValidFlagCookieValue(a){return cI(cmJSFCreateCombinedSessionCookieName(a),"v")}function cmJSFGetSessionValue(f){var e="";var d="";var b=f.split(";");for(var g=0;g<b.length;g++){var a=b[g];if(a==""){continue}var c=cmJSFGetSessionLoginCookieValue(a);e+=d+(c!=null?c:"");if(d==""){d="|"}}return e}function cmJSFGetValidFlagValue(f){var e="";var d="";var b=f.split(";");for(var g=0;g<b.length;g++){var a=b[g];if(a==""){continue}var c=cmJSFGetSessionValidFlagCookieValue(a);e+=d+(c!=null?c:"");if(d==""){d="|"}}return e}_cm.prototype.addTP=function(){coremetrics.getTechProps(this)};function cmJSFPMigrateCookies(b,m,n){if(b&&m&&cm_JSFEnabled&&cm_JSFPCookieMigrate){var e=cI(cm_JSFCoreCookieName),h,o,l,k;if(!e||cm_JSFPForceMigrateCookies){CB(cm_JSFCoreCookieName,b+(cm_JSFTrackClients?"&ci="+cm_ClientID.split(";").join(","):""),cmJSFGetCookieExpireDate(),cm_JSFPCookieDomain);h=(new Date().getTime()+cm_JSFSessionTimeout*1000).toString();o=cm_ClientID.split(";");for(k=0;k<o.length;++k){l=o[k];if(m[l]!==undefined){cmJSFSetSessionLoginCookieValue(l,m[l]);cmJSFSetSessionExpiresCookieValue(l,h);cmJSFSetSessionValidFlagCookieValue(l,"1")}}}}if(cm_JSFPCookieMigrate&&cm_JSFPMigrationOtherCookies!==null){var f=cm_JSFPMigrationOtherCookies.split(","),c,g,a,d;for(g=0;g<f.length;++g){c=f[g];if(n[c]!==undefined){a=cm_JSFPMigrationOtherCookiesExpireTimes[c];if(a){d=new Date();d.setTime(d.getTime()+parseInt(a));d=d.toGMTString()}else{d=null}CB(c,n[c],d,cm_JSFPCookieDomain)}}}}function cmJSFPMigrateLink(h,m){if(cm_JSFPCookieMigrate){var l=/:\/\/([a-z0-9_\-\.]+)/i.exec(h[m]),g,k,f,d,c,n,a=[];if(l){l=l[1]}if(l&&((l.indexOf(cm_JSFPCookieDomain)===-1)&&(h[m].toLowerCase().indexOf("javascript")!==0)&&((cm_JSFPMigrationDomainWhitelist!==null&&cmTextMatchList(l.toLowerCase(),cm_JSFPMigrationDomainWhitelist.split(",")))||(cm_JSFPMigrationDomainBlacklist!==null&&!(cmTextMatchList(l.toLowerCase(),cm_JSFPMigrationDomainBlacklist.split(","))))))||(cm_JSFPMigrationPathWhitelist!==null&&cmTextMatchList(h[m].toLowerCase(),cm_JSFPMigrationPathWhitelist.split(",")))){function b(e,o){var i=cmExtractParameter(e,h[m]);if(i===null){a.push([e,o])}}if(cm_JSFEnabled){g=cI(cm_JSFCoreCookieName);if(g){g=g.split("&",2)[0]}b(cm_JSFPCookieMigrateVisitorID,g);k=cm_ClientID.split(";");for(f=0;f<k.length;++f){b(cmJSFCreateSessionMigrationParamName(k[f]),cmJSFGetSessionLoginCookieValue(k[f]))}}if(cm_JSFPMigrationOtherCookies!==null){c=cm_JSFPMigrationOtherCookies.split(",");for(d=0;d<c.length;++d){n=cI(c[d]);if(n){b("cm_mc_"+c[d],n)}}}h[m]=cmAppendQueryParameters(h[m],a)}}}function cmTextMatchList(a,c){for(var b=0;b<c.length;++b){if(a.indexOf(c[b])>-1){return true}}return false}_cm.prototype.calculateTopLineAndReturnSegments=function cmCalculateTopLineAndReturnSegments(){var f=[],g=_cmPartnerUtils.getContactCookieValues(),o=new Ctck(),G="",p="",H=this,C,y,A,u,v,F,m,h,z=false,c,w,b,x,n,l,t,a,E,d,q,B;if(document.referrer){G=document.referrer}if(window.location.href){p=window.location.href}for(C in _cm_CMRules){if(_cm_CMRules.hasOwnProperty(C)){z=true;break}}c=typeof(CM_DDX.notifySegmentProcessor)==="function";if(!z&&c){_cm_CMRules[CM_DDX.cVA]={cid:CM_DDX.cVA,segmentRules:[],tags:[],segments:[]};z=true}for(y in _cm_CMRules){F=_cm_CMRules[y];if(typeof(F)!="object"||typeof(F.cid)=="undefined"){continue}m=F.cid;if(!H.topline[m]){H.topline[m]={}}h=H.topline[m];h.pgct=g.getPgCt(m);h.osshct=g.getOsshCt(m);h.orders=g.getOrders(m);h.sales=g.getSales(m);h.itcartct=g.getItCartCt(m);h.itpurct=g.getItPurCt(m);h.pvct=g.getPvCt(m);h.evpts=g.getEvPts(m);h.evcomct=g.getEvComCt(m);h.evinict=g.getEvIniCt(m);h.elvct=g.getElvCt(m);w=true;if(g.getFpFlag(m)){w=false}else{__cm_firstPageFlag=true}h.startTime=g.getStTime(m);if(h.startTime==0){h.startTime=((new Date()).getTime()/1000)|0}h.slen=(((new Date()).getTime()/1000)|0)-h.startTime;h.n_r="";h.mkchnl="";h.mkpgm="";h.mkv="";h.mkc="";h.mkp="";h.mki="";h.cmguid="";h.natscheng="";h.natschtm="";h.refurl="";h.refsite="";h.enpg="";if(w){h.mkchnl=(new Crur()).DIRECT_LOAD_CHANNEL;if(H.pn){h.enpg=H.pn}h.n_r="NEW";if(!_cm_isNew){h.n_r="REPEAT"}b=_cmPartnerUtils.parseVCPI(p);if(!b){b=_cmPartnerUtils.parseVCPI(G)}x=_cmPartnerUtils.parseReferralURL(G);if(b&&b.length>0){h.mkchnl=x.MARKETING_PROGRAMS;h.mkpgm=b[0];h.mkv=b[1];h.mkc=b[2];h.mkp=b[3];h.mki=b[4];h.cmguid=b[5]}else{h.mkchnl=x.channel}h.refsite=x.refName;h.natscheng=x.natSearchEngine;h.natschtm=x.natSearchWord;h.refurl=G}if(typeof(__cm_firstPageFlag)!="undefined"&&__cm_firstPageFlag&&!h.enpg&&H.pn){h.enpg=H.pn}h.tzloc="";n=Math.floor(new Date(2009,0,15).getTimezoneOffset()/60);if(n==8){h.tzloc="LOS ANGELES"}else{if(n==7){h.tzloc="DENVER"}else{if(n==6){h.tzloc="CHICAGO"}else{if(n==5){h.tzloc="NEW YORK"}}}}if(H.tid!=1){if(H.tid==6||(H.pc&&(H.pc.indexOf("y")==0||H.pc.indexOf("Y")==0))){h.pgct++;if(H.se&&H.se.replace(/^\s*/,"").replace(/\s*$/,"")){h.osshct++}}}if(H.tid=="1"){h.pgct++;if(H.se&&H.se.replace(/^\s*/,"").replace(/\s*$/,"")){h.osshct++}}else{if(H.tid=="3"){h.orders++;if(H.tr&&parseFloat(H.tr)!=NaN){h.sales+=parseFloat(H.tr)}}else{if(H.tid=="4"){if(H.at&&H.at=="5"&&H.qt&&parseFloat(H.qt)!=NaN){h.itcartct+=parseFloat(H.qt)}if(H.at&&H.at=="9"&&H.qt&&parseFloat(H.qt)!=NaN){h.itpurct+=parseFloat(H.qt)}}else{if(H.tid=="5"){h.pvct++}else{if(H.tid=="14"){if(H.cpt&&parseFloat(H.cpt)!=NaN){h.evpts+=parseFloat(H.cpt)}if(H.cat&&H.cat=="2"){h.evcomct++}if(H.cat&&H.cat=="1"){h.evinict++}}else{if(H.tid=="15"){h.elvct++}}}}}}o.setPgCt(m,h.pgct);o.setOsshCt(m,h.osshct);o.setOrders(m,h.orders);o.setSales(m,h.sales);o.setItCartCt(m,h.itcartct);o.setItPurCt(m,h.itpurct);o.setPvCt(m,h.pvct);o.setEvPts(m,h.evpts);o.setEvComCt(m,h.evcomct);o.setEvIniCt(m,h.evinict);o.setElvCt(m,h.elvct);o.setFpFlag(m,"1");o.setStTime(m,h.startTime)}for(y in _cm_CMRules){F=_cm_CMRules[y];if(typeof(F)!="object"||typeof(F.cid)=="undefined"){continue}m=F.cid;if(c&&CM_DDX.cVA==m){CM_DDX.notifySegmentProcessor(this,H.topline[m])}l=g.getSegRulesMet(m);for(A=0;A<F.segmentRules.length;A++){t=F.segmentRules[A];if(l.indexOf(t.id+"_")==0||l.indexOf("_"+t.id+"_")!=-1){continue}a=false;try{a=t.fn(this,H.topline[m])}catch(D){}if(a){l+=t.id+"_"}}o.setSegRulesMet(m,l);E=g.getSegsMet(m);for(u=0;u<F.segments.length;u++){d=F.segments[u];if(E.indexOf(d.id+"_")==0||E.indexOf("_"+d.id+"_")!=-1){continue}q=true;for(v=0;v<d.rules.length;v++){B=d.rules[v];if(!(l.indexOf(B+"_")==0||l.indexOf("_"+B+"_")!=-1)){q=false;break}}if(q){if(!f[m]){f[m]=""}f[m]+=d.id+"_";E+=d.id+"_"}}o.setSegsMet(m,E)}if(z){_cmPartnerUtils.setContactCookieValues(o)}return f};_cmPartnerUtils.calculateAndSendATData=function(c){var a=c.calculateTopLineAndReturnSegments();var d=_cmPartnerUtils.cmGetPartnerRequestArray(c,a);for(var b=0;b<d.length;b++){c9(d[b])}};_cmPartnerUtils.loadScript=function(b){if(cm_UseDOMScriptLoad){try{var a=cG6.getElementsByTagName("head").item(0);var d=cG6.createElement("script");d.setAttribute("language","javascript");d.setAttribute("type","text/javascript");d.setAttribute("src",b);a.appendChild(d)}catch(c){}}else{cG6.write('<script language="javascript1.1" src="'+b+'"><\/script>')}};_cmPartnerUtils.cmGetPartnerRequestArray=function(g,h){var A=[];if(!g.ci){return A}var x="";if(g.rf){x=g.rf}else{if(document.referrer){x=document.referrer}}var l="";if(g.ul){l=g.ul}else{if(window.location.href){l=window.location.href}}for(var r in _cm_CMRules){var w=_cm_CMRules[r];if(typeof(w)!="object"){continue}if((g.ci+"").indexOf(w.cid+"")==-1){continue}if(w.version>1001){continue}var o=_cmPartnerUtils.getShuffledIndexArray(w.partners.length-1);for(var q=0;q<o.length;q++){var z=o[q];var c=w.partners[z];if(z<0||z>=w.tags.length){continue}var D=w.tags[z];var y=[];for(var m=0;m<D.length;m++){var p=D[m];if(p=="1"){if(g.tid=="1"||g.tid=="6"||(g.pc&&(g.pc.indexOf("y")==0||g.pc.indexOf("Y")==0))){var C=new Cptg(c.key,x,l);C.tid="1";_cmPartnerUtils.copyTagParms(g,C,["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"]);y.push(C)}}else{if(p=="2"){if(g.tid=="5"){var C=new Cptg(c.key,x,l);C.tid="2";_cmPartnerUtils.copyTagParms(g,C,["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"]);y.push(C)}}else{if(p=="3"){if(g.tid=="4"&&g.at&&g.at=="5"){var C=new Cptg(c.key,x,l);C.tid="3";_cmPartnerUtils.copyTagParms(g,C,["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"]]);y.push(C)}}else{if(p=="4"){if(g.tid=="4"&&g.at&&g.at=="9"){var C=new Cptg(c.key,x,l);C.tid="4";_cmPartnerUtils.copyTagParms(g,C,["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"]]);C.tr=g.tr;C.on=g.on;y.push(C)}}else{if(p=="5"){if(g.tid=="3"){var C=new Cptg(c.key,x,l);C.tid="5";_cmPartnerUtils.copyTagParms(g,C,["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"]);y.push(C)}}else{if(p=="6"){if(g.topline[w.cid]&&g.topline[w.cid].natscheng){var C=new Cptg(c.key,x,l);C.tid="6";C.en=g.topline[w.cid].natscheng;C.se=g.topline[w.cid].natschtm;if(g.topline[w.cid].mkchnl==(new Crur()).MARKETING_PROGRAMS){C.st="PAID"}else{C.st="NATURAL"}y.push(C)}else{if(g.tid=="1"||g.tid=="6"||(g.pc&&(g.pc.indexOf("y")==0||g.pc.indexOf("Y")==0))){if(g.se&&g.se.replace(/^\s*/,"").replace(/\s*$/,"")){var C=new Cptg(c.key,x,l);C.tid="6";C.en="ONSITE";C.se=g.se;C.sr=g.sr;y.push(C)}}}}else{if(p=="7"){if(g.tid=="14"){var C=new Cptg(c.key,x,l);C.tid="7";_cmPartnerUtils.copyTagParms(g,C,[["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"]);y.push(C)}}}}}}}}}if(c.type=="I"){for(var k=0;k<y.length;k++){var b=_cmPartnerUtils.cmGetImgSrc_Partner(y[k],c);A.push(b)}}else{if(c.type=="S"){for(var k=0;k<y.length;k++){if(c.callbackFunctionSet){try{c._cm_ConnectCallback(y[k])}catch(v){var u=new Cpse(w.cid+"",l,k);var d=_cmPartnerUtils.cmGetImgSrc_CMError(u);A.push(d)}}else{if(!_cmPartnerUtils.AT_PartnerCallQueue[c.pid]){_cmPartnerUtils.AT_PartnerCallQueue[c.pid]=[]}_cmPartnerUtils.AT_PartnerCallQueue[c.pid].push(y[k])}}}}}var a=h[w.cid];if(a){for(var n=0;n<w.segments.length;n++){var f=w.segments[n];if(a.indexOf(f.id)!=-1){var C=new Cptg("",x,l);C.tid="99";C.sid=f.id;var B=_cmPartnerUtils.getShuffledIndexArray(f.p.length-1);for(var q=0;q<B.length;q++){var z=B[q];if(f.p[z]<0||f.p[z]>=w.partners.length){continue}var c=w.partners[f.p[z]];C.ckey=c.key;if(c.type=="I"){var b=_cmPartnerUtils.cmGetImgSrc_Partner(C,c);A.push(b)}else{if(c.type=="S"){if(c.callbackFunctionSet){try{c._cm_ConnectCallback(C)}catch(v){var u=new Cpse(w.cid+"",l,z);var d=_cmPartnerUtils.cmGetImgSrc_CMError(u);A.push(d)}}else{if(!_cmPartnerUtils.AT_PartnerCallQueue[c.pid]){_cmPartnerUtils.AT_PartnerCallQueue[c.pid]=[]}_cmPartnerUtils.AT_PartnerCallQueue[c.pid].push(C)}}}}}}}}return A};_cmPartnerUtils.copyTagParms=function(e,a,d){var c,b;for(c=0;c<d.length;c++){b=typeof(d[c]);if(b=="string"){a[d[c]]=e[d[c]]}else{if(b=="object"){a[d[c][1]]=e[d[c][0]]}}}};_cmPartnerUtils.cmGetImgSrc_Partner=function(d,c){var b,a,e=C8();a=(e==="https:")?c.surl:c.url;b=a.indexOf("://");if(b!==-1){a=a.substring(b+3)}return new _cmCQ(e,a,_cmPartnerUtils.cmGetQueryStringForTag_Partner(d))};_cmPartnerUtils.cmGetImgSrc_CMError=function(a){return new _cmCQ(C8(),cm_HOST,_cmPartnerUtils.cmGetQueryStringForTag_Partner(a))};_cmPartnerUtils.cmGetQueryStringForTag_Partner=function(b){var a="";if(b.tid){a+="tid="+b.tid}for(var c in b){if(!b[c]||b[c]==""||b[c].constructor==Function||c=="tid"){continue}if(a!=""){a+="&"}a+=cD(c)+"="+cE(cD(b[c]))}return a};_cmPartnerUtils.setContactRule=function(c){var g=c.cid;_cm_CMRules[g]=c;for(var f=0;f<c.partners.length;f++){var d=c.partners[f];if(d.type=="S"){d._cm_ConnectCallback=function e(){};d.callbackFunctionSet=false;var a=d.url;if(C8()=="https:"){a=d.surl}a=a.indexOf("://")==-1?a:a.substring(a.indexOf("://")+3);_cmPartnerUtils.loadScript(C8()+"//"+a)}}_cmPartnerUtils.AT_RulesSet=true;if(_cm_NRSet){for(var b=0;b<_cmPartnerUtils.AT_TagQueue.length;b++){_cmPartnerUtils.calculateAndSendATData(_cmPartnerUtils.AT_TagQueue[b])}_cmPartnerUtils.AT_TagQueue=[]}};function _cm_registerCallback(h,l){if(!h){return}if(typeof(l)!="function"){return}for(var b in _cm_CMRules){var a=_cm_CMRules[b];if(typeof(a)!="object"||typeof(a.cid)=="undefined"){continue}for(var g=0;g<a.partners.length;g++){var d=a.partners[g];if(d.pid==h&&!d.callbackFunctionSet){d._cm_ConnectCallback=l;d.callbackFunctionSet=true;if(_cmPartnerUtils.AT_PartnerCallQueue[d.pid]){for(var c=0;c<_cmPartnerUtils.AT_PartnerCallQueue[d.pid].length;c++){try{d._cm_ConnectCallback(_cmPartnerUtils.AT_PartnerCallQueue[d.pid][c])}catch(f){}}_cmPartnerUtils.AT_PartnerCallQueue[d.pid]=[]}}}}}function cmSetNRFlag(b){if(_cm_NRSet){return}if(b){_cm_isNew=false}_cm_NRSet=true;if(_cmPartnerUtils.AT_RulesSet){for(var a=0;a<_cmPartnerUtils.AT_TagQueue.length;a++){_cmPartnerUtils.calculateAndSendATData(_cmPartnerUtils.AT_TagQueue[a])}_cmPartnerUtils.AT_TagQueue=[]}}_cmPartnerUtils.getContactCookieValues=function(){var g=1,k=new Ctck(),d=cI("CoreAt"),f,l,h,c,a,e,b;if(!d){return k}f=d.split("&");for(e=0;e<f.length;e++){l=f[e];a=l.indexOf("=");if(a!=-1){h=l.substring(0,a);c=null;if(l.length>a+1){c=l.substring(a+1)}if(h&&c){b=unescape(c).split(/\|/);if(b&&b.length>0){if(b[0]&&parseInt(b[0])<=g){if(b[1]){k.setPgCt(h,b[1])}if(b[2]){k.setOsshCt(h,b[2])}if(b[3]){k.setOrders(h,b[3])}if(b[4]){k.setSales(h,b[4])}if(b[5]){k.setItCartCt(h,b[5])}if(b[6]){k.setItPurCt(h,b[6])}if(b[7]){k.setPvCt(h,b[7])}if(b[8]){k.setEvPts(h,b[8])}if(b[9]){k.setEvComCt(h,b[9])}if(b[10]){k.setEvIniCt(h,b[10])}if(b[11]){k.setElvCt(h,b[11])}if(b[12]){k.setFpFlag(h,b[12])}if(b[13]){k.setStTime(h,b[13])}if(b[14]){k.setSegRulesMet(h,b[14])}if(b[15]){k.setSegsMet(h,b[15])}}}}}}return k};_cmPartnerUtils.setContactCookieValues=function(b){var a=1,c="",d;for(d in b.holder){if(d.length!=8||typeof(b.holder[d])=="function"){continue}c+=d+"="+a+"|"+b.getPgCt(d)+"|"+b.getOsshCt(d)+"|"+b.getOrders(d)+"|"+b.getSales(d)+"|"+b.getItCartCt(d)+"|"+b.getItPurCt(d)+"|"+b.getPvCt(d)+"|"+b.getEvPts(d)+"|"+b.getEvComCt(d)+"|"+b.getEvIniCt(d)+"|"+b.getElvCt(d)+"|"+b.getFpFlag(d)+"|"+b.getStTime(d)+"|"+b.getSegRulesMet(d)+"|"+b.getSegsMet(d)+"&"}CB("CoreAt",c,"",cm_JSFPCookieDomain)};_cmPartnerUtils.parseReferralURL=function(b){var s=new Crur(),c,l,g=[],m,o,h,p,n,f,e,r,q,d;if(!b){return s}c=this.extractDomainName(b);if(c.getPartsCount()==0){return s}if(c.url.search(/^[0-9]+(\.[0-9]+){3}$/)>=0){s.channel=s.REFERRAL_CHANNEL;s.refName=c.url;return s}l=[["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(m=c.getPartsCount();g.length==0&&m>=2;m--){o=c.getLast(m);for(h=0;h<l.length;h++){p=l[h];n=(p.length>2)?p[1]:p[0];n=(typeof(n)=="string")?[n]:n;for(f=0;f<n.length;f++){if(n[f]==o){g.push(p)}}}}if(g.length>0){s.channel=s.NATURAL_SEARCH_CHANNEL;s.natSearchEngine=g[0][0];s.refName=c.url;for(m=0;m<g.length;m++){p=g[m];e=(p.length>2)?p[2]:p[1];e=(typeof(e)=="string")?[e]:e;for(h=0;h<e.length;h++){r=new RegExp("[&?]"+e[h]+"=([^&]+)");q=b.match(r);if(q){d=_cmPartnerUtils.urlDecode(q[1]);if(d.search(/^[^a-zA-Z0-9]*$/)==-1){s.natSearchWord=d.replace(/\+/g," ");break}}}}}else{s.channel=s.REFERRAL_CHANNEL;s.refName=c.url}return s};_cmPartnerUtils.urlDecode=function(a){if(typeof(decodeURIComponent)=="function"){try{return decodeURIComponent(a)}catch(b){}}return unescape(a)};_cmPartnerUtils.extractDomainName=function(c){var b=c.match(/:\/*([^\/\?]+)/),e=b?b[1]:"",d,f;e=e.toUpperCase();b=e.match(/^(?:WWW\d*\.)?([^:]+)/);if(b){e=b[1]}d=e.length-1;f=e.lastIndexOf(".");if(f==-1){return new Cspd()}else{if(f==d){e=e.substring(0,d)}}return new Cspd(e)};_cmPartnerUtils.parseVCPI=function(g){var d,i,h,f,c,e;if(!g){return""}d=g.match(/[&?]cm_mmc(_o)?=([^&]+)/);if(!d){return""}i=d[1]?_cmPartnerUtils.deObfuscate(d[2]):d[2];h=i.split(/\-_\-|\*/);if(!h||h.length!=4){return""}f=h[3].indexOf("|-|");if(f!=-1){h[3]=h[3].substring(0,f)}h[0]=_cmPartnerUtils.urlDecode(h[0]).replace(/\+/g," ");h[1]=_cmPartnerUtils.urlDecode(h[1]).replace(/\+/g," ");h[2]=_cmPartnerUtils.urlDecode(h[2]).replace(/\+/g," ");h[3]=_cmPartnerUtils.urlDecode(h[3]).replace(/\+/g," ");c=g.match(/[&?]cm_guid=([^&]+)/);e=(c&&c[1])?_cmPartnerUtils.urlDecode(c[1]):"";return[h[0]+"*"+h[1]+"*"+h[2]+"*"+h[3],h[0],h[1],h[2],h[3],e]};_cmPartnerUtils.deObfuscate=function(q){if(!q){return""}var o="-P2KHd7ZG3s14WRVhqmaJe8rQUz_gpwuTtbXLkFEB56ylfAMc0YOCjvnNSDxIo9i",h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_1234567890",a=45,m=122,d=[],g,n,p="",l,b,f;for(g=0;g<o.length;g++){n=o.charCodeAt(g);d[n-45]=h.charAt(g)}try{for(g=0;g<q.length;g++){l=q.charAt(g);b=q.charCodeAt(g);if(b<a||b>m){p+=l}else{f=d[b-45];if(f==null){p+=l}else{p+=f}}}}catch(k){}return p};_cmPartnerUtils.getShuffledIndexArray=function(c){var b,d,a,e=[];for(b=0;b<=c;b++){e.push(b)}for(b=0;b<e.length;b++){d=Math.floor(Math.random()*(e.length));a=e[b];e[b]=e[d];e[d]=a}return e};_cmPartnerUtils.startsWith=function(a,b){return(a.toUpperCase().indexOf(b)==0)};_cmPartnerUtils.endsWith=function(a,b){return((a.toUpperCase().lastIndexOf(b)!=-1)&&(a.toUpperCase().lastIndexOf(b)+b.length==a.length))};_cmPartnerUtils.contains=function(a,b){return(a.toUpperCase().indexOf(b)!=-1)};function Ctck(){this.holder={};this.getIntValue=function(c,b){if(!this.holder[c]){return 0}var a=this.holder[c][b]?parseInt(this.holder[c][b]):0;a=(a==NaN)?0:a;return a};this.getFloatValue=function(c,b){if(!this.holder[c]){return 0}var a=this.holder[c][b]?parseFloat(this.holder[c][b]):0;a=(a==NaN)?0:a;return a};this.getStringValue=function(b,a){if(!this.holder[b]){return""}return this.holder[b][a]?this.holder[b][a]:""};this.setFloatValue=function(c,a,b){if(!this.holder[c]){this.holder[c]={}}if(a&&b&&parseFloat(b)!=NaN){if(typeof(b)=="number"){this.holder[c][a]=b.toFixed(2)+""}else{this.holder[c][a]=b}}};this.setIntValue=function(c,a,b){if(!this.holder[c]){this.holder[c]={}}if(a&&b&&parseInt(b)!=NaN){this.holder[c][a]=b+""}};this.setStringValue=function(c,a,b){if(!this.holder[c]){this.holder[c]=[]}if(a&&b){this.holder[c][a]=b}};this.getPgCt=function(a){return this.getIntValue(a,"pgct")};this.setPgCt=function(b,a){this.setIntValue(b,"pgct",a)};this.getOsshCt=function(a){return this.getIntValue(a,"osshct")};this.setOsshCt=function(b,a){this.setIntValue(b,"osshct",a)};this.getOrders=function(a){return this.getIntValue(a,"orders")};this.setOrders=function(b,a){this.setIntValue(b,"orders",a)};this.getSales=function(a){return this.getFloatValue(a,"sales")};this.setSales=function(b,a){this.setFloatValue(b,"sales",a)};this.getItCartCt=function(a){return this.getFloatValue(a,"itcartct")};this.setItCartCt=function(b,a){this.setFloatValue(b,"itcartct",a)};this.getItPurCt=function(a){return this.getFloatValue(a,"itpurct")};this.setItPurCt=function(b,a){this.setFloatValue(b,"itpurct",a)};this.getPvCt=function(a){return this.getIntValue(a,"pvct")};this.setPvCt=function(b,a){this.setIntValue(b,"pvct",a)};this.getEvPts=function(a){return this.getFloatValue(a,"evpts")};this.setEvPts=function(b,a){this.setFloatValue(b,"evpts",a)};this.getEvIniCt=function(a){return this.getIntValue(a,"evinict")};this.setEvIniCt=function(b,a){this.setIntValue(b,"evinict",a)};this.getEvComCt=function(a){return this.getIntValue(a,"evcomct")};this.setEvComCt=function(b,a){this.setIntValue(b,"evcomct",a)};this.getElvCt=function(a){return this.getIntValue(a,"elvct")};this.setElvCt=function(b,a){this.setIntValue(b,"elvct",a)};this.getFpFlag=function(a){return this.getIntValue(a,"fp")};this.setFpFlag=function(b,a){this.setIntValue(b,"fp",a)};this.getStTime=function(a){return this.getIntValue(a,"st")};this.setStTime=function(b,a){this.setIntValue(b,"st",a)};this.getSegRulesMet=function(a){return this.getStringValue(a,"segrules")};this.setSegRulesMet=function(b,a){this.setStringValue(b,"segrules",a)};this.getSegsMet=function(a){return this.getStringValue(a,"segs")};this.setSegsMet=function(b,a){this.setStringValue(b,"segs",a)}}function Cpse(c,a,b){this.ci=c;this.tid="21";this.ul=(a)?a:"";this.pindex=b}function Cptg(c,b,a){this.ckey=(c)?c:"";this.rf=(b)?b:"";this.ul=(a)?a:""}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(a){this.url=(a)?a:"";this.splitUrl=this.url.split(".");this.getPartsCount=function(){return this.splitUrl.length};this.getLast=function(c){var b="";for(var d=c;d>=1;d--){if(this.splitUrl.length>=d){if(b){b+="."}b+=this.splitUrl[this.splitUrl.length-d]}}return b}}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 b="undefined",a="function";return{cmLoad:cmLoad,cmLastReferencedPageID:null,isDef:function(c){return typeof(c)!==b&&c},cmUpdateConfig:function(c){var e=coremetrics.isDef;if(e(c.io)){cm_IOEnabled=c.io}if(e(c.ia)){cm_OffsiteImpressionsEnabled=c.ia}if(e(c.at)){cm_ATEnabled=c.at}if(e(c.mc)){cm_MCEnabled=c.mc}if(e(c.ddx)&&e(c.ddx.version)){CM_DDX.version=c.ddx.version;if(e(c.ddx.standalone)){CM_DDX.standalone=c.ddx.standalone}}},getTechProps:function(f){var e,g=f||{},h=navigator,d=window.screen,c;g.jv=(typeof(Array.isArray)===a)?"1.8.5":(typeof([].reduce)===a)?"1.8":(typeof(Iterator)===a)?"1.7":(typeof(Array.forEach)===a)?"1.6":(typeof(decodeURI)===a)?"1.5":(typeof(NaN)==="number")?"1.3":(typeof(isFinite)===a)?"1.2":(typeof(isNaN)===a)?"1.1":"1.0";if(h.plugins){c=h.plugins;for(e=0;e<c.length;e++){g["np"+e]=c[e].name}}if(typeof(h.javaEnabled)===a){g.je=h.javaEnabled()?"y":"n"}g.sw=d.width;g.sh=d.height;g.pd=d.colorDepth;if(g.pd==0){g.pd=d.pixelDepth}g.tz=new Date().getTimezoneOffset()/60;return g}}})();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(h,b,d,l,c){var k=h.split(";"),a,e=k[0].split("|")[0],m=C8()+"//",g,f=0,n;cm_PartnerDataClientIDs=cm_ClientID=h;if(typeof(IORequest)=="function"){IORequest.client_id=e}cm_McClientID=e;if(b===true){cm_JSFEnabled=true}if(d){cm_HOST=cm_Production_HOST=d;if((d==="test.coremetrics.com")||(d==="testdata.coremetrics.com")){cm_Production_HOST="data.coremetrics.com"}cm_HOST+="/cm?"}if(l){cm_JSFPCookieDomain=l}CM_DDX.cVA=e;if(!document.body&&CM_DDX.headScripts){document.write("<script src='",m+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(g=0;g<k.length;++g){a=k[g].split("|")[0];_cmPartnerUtils.loadScript(m+cm_CLIENT_CONFIG_HOST+"/"+a+".js")}cmRetrieveUserID(cmSetNRFlag);function i(){if((typeof TLT!=="undefined")&&(typeof TLT.getSessionData==="function")){var o=TLT.getSessionData();if(o){cmCreateSessionPropertyTag("TeaLeaf",o.tltSCV,(o.tltSCVNeedsHashing?"MD5":""));clearInterval(n)}}if(f>=cm_TealeafTagAttempts){clearInterval(n)}f++}n=setInterval(function(){i()},3000)}function cmSetupCookieMigration(m,n,o,p,d,e,k){if(m){cm_JSFPCookieMigrate=m}if(n){cm_JSFPForceMigrateCookies=n}if(o){cm_JSFPMigrationDomainWhitelist=o}if(p){cm_JSFPMigrationDomainBlacklist=p}if(d){cm_JSFPMigrationPathWhitelist=d}if(e){cm_JSFPMigrationOtherCookies=e}if(k){cm_JSFPMigrationOtherCookiesExpireTimes=k}if(cm_JSFPCookieMigrate){var l=cm_ClientID.split(";"),b={},h,g,a,f,c={};for(h=0;h<l.length;++h){a=cmExtractParameter(cmJSFCreateSessionMigrationParamName(l[h]),window.location.href);if(a){b[l[h]]=a}}if(cm_JSFPMigrationOtherCookies){f=cm_JSFPMigrationOtherCookies.split(",");for(g=0;g<f.length;++g){a=cmExtractParameter("cm_mc_"+f[g],window.location.href);if(a){c[f[g]]=a}}}cmJSFPMigrateCookies(cmExtractParameter(cm_JSFPCookieMigrateVisitorID,window.location.href),b,c)}}var cmNormalizeBlackList,cmNormalizeWhiteList=null;function cmSetupNormalization(b,c,a){if(b){cmNormalizeBlackList=b}if(c){cmNormalizeWhiteList=c}if(a){if(document.cmTagCtl!=null){document.cmTagCtl.normalizeURL=a}}}function cmSetupOther(b){for(var a in b){window[a]=b[a]}}function cmSetCurrencyCode(a){cm_currencyCode=a}function cmSetFirstPartyIDs(b,e){cm_JSFPCookieMigrate=true;cm_JSFPForceMigrateCookies=true;var c=cm_ClientID.split(";");var d={};for(var a=0;a<c.length;++a){d[c[a]]=e}cmJSFPMigrateCookies(b,d,null)}function cmCreateManualImpressionTag(a,e,b,d,c){if(!a){a=c1(cm_ClientID)}cmMakeTag(["tid","9","pi",a,"cm_sp",e,"cm_re",b,"cm_cr",d,"cm_me",c,"st",cm_ClientTS])}function cmCreateManualLinkClickTag(b,c,a){if(cM!=null){var d=new Date();cGK=d.getTime();b=cG7.normalizeURL(b,true);cM(cm_ClientTS,cGK,c,b,false,a)}}function cmCreateManualPageviewTag(b,h,g,f,c,d,e,a){cmMakeTag(["tid","1","pi",b,"cg",h,"ul",g,"rf",f,"se",d,"sr",e,"cmAttributes",c,"cmExtraFields",a])}function cmCreateElementTag(b,a,c){cmMakeTag(["tid","15","eid",b,"ecat",a,"cmAttributes",c])}function cmCreatePageElementTag(c,b,a,f,e,d){cmCreateElementTag(c,b,d)}var cmCreateProductElementTag=cmCreatePageElementTag;function cmCreateConversionEventTag(d,c,f,e,b,a){cmMakeTag(["tid","14","cid",d,"cat",c,"ccid",f,"cpt",e,"cmAttributes",b,"cmExtraFields",a])}function cmCreateTechPropsTag(b,d,c,a){cmMakeTag(["tid","6","pi",b,"cg",d,"pc","Y","cmAttributes",c,"cmExtraFields",a])}function cmCreatePageviewTag(b,f,d,e,c,a){cmMakeTag(["tid","1","pi",b,"cg",f,"se",d,"sr",e,"cmAttributes",c,"cmExtraFields",a])}function cmCreateDefaultPageviewTag(a){cmCreatePageviewTag(cmGetDefaultPageID(),a)}function cmCreateProductviewTag(d,f,e,c,b){var a=c1(cm_ClientID);cmMakeTag(["tid","5","pi",a?a:"Product: "+f+" ("+d+")","pr",d,"pm",f,"cg",e,"pc","N","cm_vc",b?b:cmExtractParameter("cm_vc",document.location.href),"cmAttributes",c])}var __sArray=[];var __sRefArray=[];var __sSkuArray=[];var __sRefSkuArray=[];var __skuString="";function cmDisplayShops(){var a;for(a=0;a<__sArray.length;++a){cmMakeTag(__sArray[a])}__sArray=[];__sRefArray=[];__skuString=cmCalcSKUString()}var cmDisplayShop5s=cmDisplayShop9s=cmDisplayShops;function cmCalcSKUString(){var c="";for(var b=0;b<__sSkuArray.length;b++){var a=__sSkuArray[b];c+="|"+a[1]+"|"+a[7]+"|"+a[5]+"|"}__sSkuArray=[];__sRefSkuArray=[];return c}(function(b){function c(d){if(d&&typeof d!=="string"){d=d.join(cm_AttributeDelimiter)}return d}b.cmAddShop=function(d){var e=d.concat();function f(o,k,l,g){var h=l[o],p,m,n,i;if(typeof(h)!=="undefined"){p=g[h];if(p){m=p[5];n=p[7];i=k[5];k[5]=parseInt(m)+parseInt(k[5]);k[7]=(((k[7]*i)+(n*m))/k[5]);g[h]=k}}else{l[o]=g.length;g[g.length]=k}}f(d[1]+"|"+d[9]+"|"+c(d[11])+"|"+c(d[13]),d,__sRefArray,__sArray);f(e[1],e,__sRefSkuArray,__sSkuArray)};function a(f,k,m,e,l,i,g,n){if((typeof(cm_currencyCode)=="undefined")||(!cm_currencyCode)){cm_currencyCode=""}l=l.toString().replace(cmPricePattern,"");k=k.toString().replace(cmSpacePattern,"");var h=c(g),d=c(n);return["pr",k,"pm",m,"qt",e,"bp",l,"cg",i,"cmAttributes",g,"cmExtraFields",n,"ha1",cm_hex_sha1(""+(h?h+"|||":"")+(d?"extra"+d:"")),"cc",cm_currencyCode,"at",f,"tid","4","pc","N"]}b.cmCreateShopAction5Tag=function(g,i,f,k,h,e,d){cmAddShop(a("5",g,i,f,k,h,e,d))};b.cmCreateShopAction9Tag=function(k,m,d,l,f,h,e,i,g,n){e=e.toString().replace(cmPricePattern,"");cmAddShop(a("9",k,m,d,l,i,g,n).concat(["cd",f,"on",h,"tr",e]))}}(window));function cmCreateOrderTag(f,a,e,b,d,h,i,c,g){if((typeof(cm_currencyCode)=="undefined")||(!cm_currencyCode)){cm_currencyCode=""}if(e){e=e.toString().replace(cmPricePattern,"")}a=a.toString().replace(cmPricePattern,"");cmMakeTag(["tid","3","on",f,"tr",a,"sg",e,"cd",b,"ct",d,"sa",h,"zp",i,"cc",cm_currencyCode,"cmAttributes",c,"cmExtraFields",g])}function cmCreateRegistrationTag(e,f,g,a,d,c,b){cmMakeTag(["tid","2","cd",e,"em",f,"ct",g,"sa",a,"zp",d,"cy",c,"cmAttributes",b])}function cmCreateSessionPropertyTag(b,a,c){cmMakeTag(["tid","18","it",b,"id",a,"hn",c])}function cmCreateErrorTag(a,b){cmMakeTag(["tid","404","pi",a,"cg",b,"pc","Y"])}function cmCreateCustomTag(a,b){cmMakeTag(["tid","7","li",a,"cmExtraFields",b])}function cmMakeTag(f){var l=new _cm("vn2","e4.0"),g,c={1:"pv_a",2:"rg",3:"o_a",4:"s_a",5:"pr_a",6:"pv_a",14:"c_a",15:"e_a"},b={1:"pv",2:"rg",3:"or",4:"sx",5:"pr",6:"pv",7:"ps",14:"cx"},d="cmAttributes",k="cmExtraFields";for(g=0;g<f.length;g+=2){l[f[g]]=f[g+1]}l.rnd=(Math.floor(Math.random()*11111111))+new Date().getTime();if(l.tid=="1"&&(cmCookiesDisabled()?cmAutoAddTP():(cI("cmTPSet")!="Y"))){l.tid="6";l.pc="Y"}if(l.tid=="6"){l.addTP();CB("cmTPSet","Y")}if(l.cm_exAttr){l[d]=l.cm_exAttr.join(cm_AttributeDelimiter);l.cm_exAttr=null}function a(n,r,p){if(n[r]){var s=n[r],t=s,o=p[n.tid],q;if(typeof s==="string"){t=s.split(cm_AttributeDelimiter)}for(q=0;q<t.length;++q){n[o+(q+1)]=t[q]}n[r]=null}}a(l,d,c);a(l,k,b);if(cmAutoCopyAttributesToExtraFields){if((l.tid!="2")&&(l.tid!="15")){for(g=1;g<=15;++g){if(!(l[b[l.tid]+""+g])){l[b[l.tid]+""+g]=l[c[l.tid]+""+g]}}}}if((l.pi==null)&&((l.pc=="Y")||(l.tid=="1"))){l.pi=cmGetDefaultPageID()}if((l.pc=="Y")||(l.tid=="1")){coremetrics.cmLastReferencedPageID=l.pi}else{if(coremetrics.cmLastReferencedPageID==null){coremetrics.cmLastReferencedPageID="NO_PAGEID"}}try{if(parent.cm_ref!=null){l.rf=parent.cm_ref;if(l.pc=="Y"){parent.cm_ref=document.URL}}if(parent.cm_set_mmc){l.ul=cmAppendQueryParameter(document.location.href,parent.cm_mmc_params);if(l.pc=="Y"){parent.cm_ref=l.ul;parent.cm_set_mmc=false}}}catch(e){}if(l.ul==null){l.ul=cG7.normalizeURL(window.location.href,false)}if(l.rf==null){l.rf=cG7.normalizeURL(document.referrer,false)}function m(i){return i.replace(cmMMCPattern,function(n){return n.toLowerCase()})}l.ul=m(l.ul);l.rf=m(l.rf);if((this.manual_cm_mmc)&&(l.ul.indexOf("cm_mmc")==-1)&&(l.ul.indexOf("cm_ven")==-1)){l.ul=cmAppendQueryParameter(l.ul,"cm_mmc",this.manual_cm_mmc)}var h=false;if(cmCheckCMEMFlag){h=cmStartTagSet()}l.writeImg();if(cmCheckCMEMFlag){cmCheckCMEMFlag=false;cmCheckCMEM()}if(h){cmSendTagSet()}if(typeof cm_ted_io=="function"){if(cm_IOEnabled){cm_ted_io(l)}}}function cmGetDefaultPageID(){var b=window.location.pathname;var e=b.indexOf("?");if(e!=-1){b=b.substr(0,e)}var d=b.indexOf("#");if(d!=-1){b=b.substr(0,d)}var a=b.indexOf(";");if(a!=-1){b=b.substr(0,a)}var c=b.lastIndexOf("/");if(c==b.length-1){b=b+"default"}while(b.indexOf("/")==0){b=b.substr(1,b.length)}return(b)}function cmIndexOfParameter(b,a){return a.indexOf(b)}function cmExtractParameter(h,d,a){var c=null,f,b,g="&"+h+"=",e,i;f=d.indexOf("?");if(f>=0){b=d.indexOf("#");if(b<0){b=d.length}d="&"+d.substring(f+1,b);e=d.indexOf(g);if(e>=0){i=d.indexOf("&",e+1);if(i<0){i=d.length}c=d.substring(e+g.length,i)}}return(a&&c)?decodeURIComponent(c):c}function cmRemoveParameter(f,d){if(cmIndexOfParameter(f,d)==-1){return d}var c=d;var b=c.indexOf(f);var e=(b-1);var a=c.indexOf("&",b);if(a==-1){a=c.length}if(c.substring(e,b)=="?"){e=(e+1);a=(a+1)}return c.substring(0,e)+c.substring(a,c.length)}function cmGetMetaTag(c){var a=document.getElementsBytagName("meta");for(var b in a){if(a[b].name==c){return a[b].content}}return null}function cmCheckCMEM(){var b,a,c,d=["cm_em","cm_lm","cm_lm_o"];for(b=0;b<d.length;b++){c=cmExtractParameter(d[b],document.location.href,true);if(c){if(b==2){cmMakeTag(["tid","2","cd_o",c,"em_o",c])}else{a=c.indexOf(":");if(a>-1){c=c.substring(a+1)}cmCreateRegistrationTag(c,c)}}}}if(defaultNormalize==null){var defaultNormalize=null}function myNormalizeURL(a,h){function g(o,p){var q,n,t,r,s=null;if(o){t=o.split("-_-");r=(p?t[0]:t[1]);if(r){r=r.split(",");n=r.length;if(n>0){for(q=0;q<n;q++){r[q]=r[q].toLowerCase()+"="}s=r}}}return s}var f=a||"",l=g(cmNormalizeBlackList,h),k=g(cmNormalizeWhiteList,h),c,e,m=f.indexOf("?"),i=[],b={};if((m>0)&&(l||k)){c=f.substring(m+1);f=f.substring(0,m);e=c.split("&");function d(p,s){var o,n,q,r;if(p){for(o=0;o<e.length;o++){q=s;r=e[o];for(n=0;n<p.length;n++){if(r.toLowerCase().indexOf(p[n])==0){q=!s;break}}if(q&&!b[r]){i.push(r);b[r]=1}}}}d(l,true);d(k,false);f+="?"+i.join("&")}if(defaultNormalize!=null){f=defaultNormalize(f,h)}return f}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 b(l){return i(h(k(l),l.length*8))}function e(n){var p="0123456789abcdef",m="",l,o;for(o=0;o<n.length;o++){l=n.charCodeAt(o);m+=p.charAt((l>>>4)&15)+p.charAt(l&15)}return m}function d(n){var m="",o=-1,l,p;while(++o<n.length){l=n.charCodeAt(o);p=o+1<n.length?n.charCodeAt(o+1):0;if(55296<=l&&l<=56319&&56320<=p&&p<=57343){l=65536+((l&1023)<<10)+(p&1023);o++}if(l<=127){m+=String.fromCharCode(l)}else{if(l<=2047){m+=String.fromCharCode(192|((l>>>6)&31),128|(l&63))}else{if(l<=65535){m+=String.fromCharCode(224|((l>>>12)&15),128|((l>>>6)&63),128|(l&63))}else{if(l<=2097151){m+=String.fromCharCode(240|((l>>>18)&7),128|((l>>>12)&63),128|((l>>>6)&63),128|(l&63))}}}}}return m}function k(m){var n,l=new Array(m.length>>2);for(n=0;n<l.length;n++){l[n]=0}for(n=0;n<m.length*8;n+=8){l[n>>5]|=(m.charCodeAt(n/8)&255)<<(24-n%32)}return l}function i(m){var n,l="";for(n=0;n<m.length*32;n+=8){l+=String.fromCharCode((m[n>>5]>>>(24-n%32))&255)}return l}function h(B,s){B[s>>5]|=128<<(24-s%32);B[((s+64>>9)<<4)+15]=s;var C=new Array(80),A=1732584193,z=-271733879,y=-1732584194,v=271733878,u=-1009589776,p,r,q,o,n,l,m,D;for(p=0;p<B.length;p+=16){r=A;q=z;o=y;n=v;l=u;for(m=0;m<80;m++){C[m]=(m<16)?B[p+m]:g(C[m-3]^C[m-8]^C[m-14]^C[m-16],1);D=f(f(g(A,5),a(m,z,y,v)),f(f(u,C[m]),c(m)));u=v;v=y;y=g(z,30);z=A;A=D}A=f(A,r);z=f(z,q);y=f(y,o);v=f(v,n);u=f(u,l)}return[A,z,y,v,u]}function a(m,l,o,n){return((m<20)?(l&o)|((~l)&n):(m<40)?(l^o^n):(m<60)?((l&o)|(l&n)|(o&n)):(l^o^n))}function c(l){return(l<20)?1518500249:(l<40)?1859775393:(l<60)?-1894007588:-899497514}function f(l,o){var n,m;n=(l&65535)+(o&65535);m=(l>>16)+(o>>16)+(n>>16);return(m<<16)|(n&65535)}function g(l,m){return(l<<m)|(l>>>(32-m))}return function(l){return(l?e(b(d(l))):null)}})();var _io_request=new IORequest();var _io_config=undefined;var _io_state=new IOState();function cm_ted_io(a){IORequest.log(IORequest.log_trace,"Processing tag: tid="+a.tid+", pr="+a.pr+", cg="+a.cg+", at="+a.at+", pi="+a.pi);_io_state.cm_ted_io(a)}function _cm_io_rec(a){if(_io_request!==undefined){_io_request.cm_io_rec(a)}}function _cm_io_cfg(a){if(_io_request!==undefined){_io_request.cm_io_cfg(a,1)}}function _cm_io_ssp(a){if(_io_request!==undefined){_io_request.cm_io_ssp(a)}}function cmRecRequest(a,b,e,c,f,d){if(a===undefined){IORequest.log(IORequest.log_error,"cmRecRequest: Required zone id undefined.")}IORequest.rec_request(a,b,e,c,f,d)}function cmPageRecRequest(a,b,d,c){if(a===undefined){IORequest.log(IORequest.log_error,"cmPageRecRequest: Required zone id undefined.")}IORequest.page_rec_request(a,b,d,c)}function cmElementRecRequest(a,b,d,c){if(a===undefined){IORequest.log(IORequest.log_error,"cmElementRecRequest: Required zone id undefined.")}IORequest.element_rec_request(a,b,d,c)}function cmDisplayRecs(){IORequest.display_recs()}function cmGetTestGroup(){return IORequest.ab_group_number}function cmSetRegId(b,a){if((b===undefined)||(b=="")){IORequest.log(IORequest.log_error,"cmSetRegId: Required registration id is blank or undefined.")}else{IORequest.setRegIdCalled=true;IORequest.ssp_reg_id=IORequest.encrypt16(b.toString());IORequest.log(IORequest.log_trace,"cmSetRegId",b+(a?","+a:"")+" - encryption of "+b+": "+IORequest.ssp_reg_id);IORequest.ssp_allow_flag=a}}function cmSetSegment(a){IORequest.setSegmentCalled=true;if((a===undefined)||(a=="")){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(a.toString());IORequest.log(IORequest.log_trace,"cmSetSegment",a+" - encryption of "+a+": "+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(){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()}}};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){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{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 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;_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(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}}}}var rpps=_io_state.cm_get_item_from_cookie("_RPP_",true);if(rpps!==0){if(this.io_zone.filter_pp){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[rpps[i_si]]=1}else{product_filter_raw[rpps[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{product_ids.push(zpf_item);cat_ids.push(_j.pd[i_pd][2]);if(IORequest.isPageBasedOffer(offer_type)){page_urls.push(_j.pd[i_pd][3]);page_names.push(_j.pd[i_pd][4])}if(IORequest.conflict_resolution===true){IORequest.filtered_out_products[item_raw]=1}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,'\\"');product_ids.push(zpf_item_deemph);cat_ids.push(a_deemphasized_by_segment[jj][2]);if(IORequest.isPageBasedOffer(offer_type)){page_urls.push(a_deemphasized_by_segment[jj][3]);page_names.push(a_deemphasized_by_segment[jj][4])}if(IORequest.conflict_resolution===true){IORequest.filtered_out_products[item_raw_deemph]=1}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("["+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()+")";if(this.io_zone.zpf!==undefined){IORequest.log(IORequest.log_trace,"Calling zone population function",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){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(a,b){return IORequest.crc32_tab[(a^b)&255]^((a>>8)&16777215)};IORequest.crc32_str=function(c){var d;var a=c.length;var b;b=4294967295;for(d=0;d<a;d++){b=IORequest.crc32_add(b,c.charCodeAt(d))}return b^4294967295};IORequest.hex32=function(c){var d;var b;var a;d=c&65535;b=d.toString(16).toUpperCase();while(b.length<4){b="0"+b}d=(c>>>16)&65535;a=d.toString(16).toUpperCase();while(a.length<4){a="0"+a}return a+b};IORequest.isProductOffer=function(a){return(a=="P")};IORequest.isSearchOffer=function(a){return(a=="S")};IORequest.isAttributeOffer=function(a){return(a=="T")};IORequest.isEPRCategoryOffer=function(a){return(a=="E")};IORequest.isSiteCategoryOffer=function(a){return(a=="C")};IORequest.isCategoryOffer=function(a){return(IORequest.isEPRCategoryOffer(a)||IORequest.isSiteCategoryOffer(a)||IORequest.isPageCategoryOffer(a)||IORequest.isElementCategoryOffer(a))};IORequest.isPageOffer=function(a){return(a=="A")};IORequest.isPageCategoryOffer=function(a){return(a=="F")};IORequest.isPageBasedOffer=function(a){return(IORequest.isPageOffer(a)||IORequest.isPageCategoryOffer(a))};IORequest.isElementOffer=function(a){return(a=="B")};IORequest.isElementCategoryOffer=function(a){return(a=="G")};IORequest.isElementBasedOffer=function(a){return(IORequest.isElementOffer(a)||IORequest.isElementCategoryOffer(a))};IORequest.isContentBasedOffer=function(a){return(IORequest.isPageOffer(a)||IORequest.isElementOffer(a)||IORequest.isPageCategoryOffer(a)||IORequest.isElementCategoryOffer(a))};IORequest.isProductBasedOffer=function(a){return(!IORequest.isContentBasedOffer(a))};IORequest.isMultiTargetStep=function(a){return((a.algo_id!==undefined)&&(a.algo_id!==""))};IORequest.isTargetsAsRecsStep=function(b){var a=false;if((b.target_id=="_RVP_")||(b.target_id=="_RVG_")){if((b.algo_id!==undefined)&&(b.algo_id=="3")){a=true}}return(a)};IORequest.reverse=function(a){return a.split("").reverse().join("")};IORequest.encrypt16=function(a){return IORequest.hex32(IORequest.crc32_str(a))+IORequest.hex32(IORequest.crc32_str(IORequest.reverse(a)))};IORequest.encrypt8=function(a){return IORequest.hex32(IORequest.crc32_str(a))};IORequest.cookie_info=function(b,g){var k=document.cookie;var a=k.length;var h=k.split(";").length;IORequest.log(IORequest.log_trace,"cookie_length: "+a+" number of cookies",IORequest.cookie_count(b));IORequest.log(IORequest.log_trace,"cookie",k);alert("n: "+h+" l: "+a+" cookie: "+k);if(g){var f=g-a-3-b.length;var e="";for(var d=0;d<f;d++){e+=""+d%10}IORequest.set_and_check_cookie(b,e);IORequest.cookie_info(b)}};IORequest.cookie_count=function(){var b=document.cookie;var a=0;if(b){a=b.split(";").length}return a};IORequest.find_cookie=function(c){var d=document.cookie.split("; ");var b=c.length;for(var a=0;a<d.length;a++){if((c+"=")==d[a].substring(0,b+1)){var e=d[a].substring(b+1);if(e==""){return(undefined)}else{return(e)}}}return(undefined)};IORequest.rm_cookie=function(a){document.cookie=a+"=;path=/;expires="+new Date(1998,0).toGMTString()+";;"};IORequest.set_and_check_cookie=function(d,a,b,c){CB(d,a,b?null:new Date(2020,0).toGMTString(),c?c:null);a=IORequest.find_cookie(d);if(a===undefined){if(!b){IORequest.perm_cookie_not_supported=true}}IORequest.log(IORequest.log_cookie_write,"write "+d,IORequest.is_undefined(a)?"permanent cookies disabled":a);return(a)};IORequest.build_array_from_cookie=function(b,a){var c=IORequest.find_state_cookie(b);return((c===undefined)?undefined:(c.split(IORequest.cookie_separator))[a])};IORequest.find_state_cookie=function(c){if(IORequest.vanity_suffix===undefined){if(cm_JSFPCookieDomain===null||cm_JSFPCookieDomain===undefined){var f=document.domain;if(f){var d=/[^.]+\.[^.]+$/;IORequest.vanity_suffix="."+f.match(d)}}else{IORequest.vanity_suffix=cm_JSFPCookieDomain}}var g=IORequest.find_cookie(c);if(g===undefined){var a=((IORequest.ie_version()!==null)&&(IORequest.ie_version()<7))?20:50;if(IORequest.cookie_count()>=a){g=undefined}else{if(c==IORequest.state_cookie){var e=Math.floor(Math.random()*100);g=[e,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(c==IORequest.state_cookie_content){g=[IORequest.a_max_page_elements[0]].join("~")+IORequest.cookie_separator+IORequest.cookie_separator+IORequest.cookie_array_separator}}var b=g;g=IORequest.set_and_check_cookie(c,b,false,IORequest.vanity_suffix)}}return(g)};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.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(b){var a="";while(b.length>0){a+=b.substring(0,190)+"\n";b=b.substring(190)}return a};IORequest.log=function(c,b,a){if(!IORequest.disable_console_logging){if(typeof console!=="undefined"){if(IORequest.find_cookie(IORequest.no_log_cookie)===undefined){if(a!==undefined){b=b+": "+a}b=IORequest.breaklines(b);if(c==IORequest.log_product_file||c==IORequest.log_config_file){if(console.group){console.group()}if(console.dir){console.dir(a)}if(console.groupEnd){console.groupEnd()}}else{if(c==IORequest.log_warn){if(console.warn){console.warn(b)}}else{if(c==IORequest.log_error){if(console.error){console.error(b)}}else{if(IORequest.log_mask&c){if(console.log){console.log(b)}}}}}}}}};IORequest.ie_version=function(){return(/MSIE (\d+\.\d+);/.test(navigator.userAgent)?RegExp.$1:null)};IORequest.hasStorage=(function(){var b="test";try{localStorage.setItem(b,b);localStorage.removeItem(b);return true}catch(a){return false}}());IORequest.io_cdn="iocdn.coremetrics.com";IORequest.io_recs="recs.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(a,e,c,d,f,b){IORequest.log(IORequest.log_trace,"cmRecRequest",a+(e?","+e:",")+(c?","+c:",")+(d?","+d:",")+(f?","+f:"")+(b?","+b:""));IORequest.rec_stack.push([a,false,e,c,d,f,b])};IORequest.page_rec_request=function(a,b,c,d){IORequest.log(IORequest.log_trace,"cmPageRecRequest",a+","+b+","+c);IORequest.rec_stack.push([a,true,b,c,d])};IORequest.element_rec_request=function(a,b,c,d){IORequest.log(IORequest.log_trace,"cmElementRecRequest",a+","+b+","+c);IORequest.rec_stack.push([a,true,b,c,d])};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(a){var c=false;if(IORequest.ssp_use_reg_id){var e=_io_state.get_ssp_load_ts_from_cookie();var b=new Date().getTime();var d=new Date(Number(e));d.setMinutes(d.getMinutes()+new Number(_io_config.ssp_retrieve_int));if(b>(d.getTime())){var f=IORequest.find_cookie(IORequest.state_cookie);if(f!==undefined){c=true;_io_request.download_ssp(f,IORequest.ssp_reg_id)}}}if(!c){IORequest.stack_manager(a)}};IORequest.config_download_failure=function(a){_io_config=new IOConfig(IORequest.default_json);for(var b=0;b<IORequest.rec_stack.length;b++){_io_config.add_zone(IORequest.rec_stack[b][0])}IORequest.stack_manager(a)};IORequest.ssp_processed=function(a){IORequest.stack_manager(a)};IORequest.ssp_download_failure=function(a){IORequest.stack_manager(a)};IORequest.encode_search_term=function(c){c=c.toString().toUpperCase();if(IOConfig.stpr){for(var a=0;a<IOConfig.stpr.length;a++){var b=IOConfig.stpr[a];b=b.toString().toUpperCase();if(c.substring(0,b.length)==b){c=c.substr(b.length)}}}c=c.replace(/[$'&`~@:\[\]\\!%^*()={}\| <>"]/g,"");return(c)};IORequest.stack_manager=function(a){if(IORequest.rec_stack.length){var c=IORequest.rec_stack.shift();IORequest.i_zone++;IORequest.i_msg=0;IORequest.zone_id=c[0];IORequest.encrypt_16=(c.length>1?c[1]:false);var b=(c.length>2?c[2]:"");b=(b==undefined?"":b.toString().toUpperCase());IORequest.plain_text_item_id=b;if(b!=""){if(IORequest.encrypt_16){IORequest.single_item_id=new Array(IORequest.encrypt16(b))}else{if(IORequest.encrypt_prds){IORequest.single_item_id=new Array(IORequest.encrypt8(b))}}b=b.split(_io_config.multi_target_delim);for(var h=0;h<b.length;h++){if(IORequest.encrypt_16){b[h]=IORequest.encrypt16(b[h])}else{if(IORequest.encrypt_prds){b[h]=IORequest.encrypt8(b[h])}}}}IORequest.item_id=b;var g=(c.length>3?c[3]:"");g=(g==undefined?"":g.toString().toUpperCase());IORequest.plain_text_cat_id=g;if(g!=""){if(IORequest.encrypt_16){IORequest.single_category_id=new Array(IORequest.encrypt16(g))}else{if(IORequest.encrypt_cats){IORequest.single_category_id=new Array(IORequest.encrypt8(g))}}g=g.split(_io_config.multi_target_delim);for(var f=0;f<g.length;f++){if(IORequest.encrypt_16){g[f]=IORequest.encrypt16(g[f])}else{if(IORequest.encrypt_cats){g[f]=IORequest.encrypt8(g[f])}}}}IORequest.category_id=g;IORequest.optional_parm=(c.length>4?c[4]:"");IORequest.optional_parm=(IORequest.optional_parm==undefined?"":IORequest.optional_parm);IORequest.raw_search_term=(c.length>5?c[5]:"");IORequest.raw_search_term=(IORequest.raw_search_term==undefined?"":IORequest.raw_search_term);if(IORequest.raw_search_term!=""){var e=IORequest.encode_search_term(IORequest.raw_search_term);IORequest.plain_text_scrubbed_search_id=e;c[5]=e;IOConfig.crc_specified_search=new Array(IORequest.encrypt8(e))}else{IOConfig.crc_specified_search=""}var d=(c.length>6?c[6]:"");d=(d==undefined?"":d.toString().toUpperCase());IORequest.plain_text_attr_value=d;if(d!=""){d=new Array(IORequest.encrypt8(d))}IORequest.single_attr_value=d;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 - "+a+" - parms: "+c.join(", "),"green");IORequest.log(IORequest.log_trace,"stack_manager called - "+a+" - parms",c.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(a){var b;return(a===b)};IORequest.inspect_json=function(e,a,h){var g="",b,f;if(h===null||h===undefined){h=0}if(a===null||a===undefined){a=1}if(a<1){return'<font color="red">Error: Levels number must be > 0</font>'}if(e===null||e===undefined){return'<font color="red">Error: Object <b>NULL</b></font>'}g+="<ul>";var d;for(d in e){if(true){try{b=typeof(e[d]);g+="<li>("+b+") "+d+((e[d]===null)?(": <b>null</b>"):(':  <font color="red">'+e[d]+"</font>"))+"</li>";if((b=="object")&&(e[d]!==null)&&(h+1<a)){g+=IORequest.inspect_json(e[d],a,h+1)}}catch(c){if(typeof(c)=="string"){f=c}else{if(c.message){f=c.message}else{if(c.description){f=c.description}else{f="Unknown"}}}g+='<li><font color="red">(Error) '+d+": "+f+"</font></li>"}}}g+="</ul>";return g};IOConfig.version=-1;IOConfig.brand_personalization=[-1,-1];IOConfig.category_structure=-1;IOConfig.stpr=[];IOConfig.crc_specified_search="";function IOConfig(h){_io_state.cm_build_all_recent_arrays();var l=false;this.io=h;if(((IORequest.ie_version()!==null)&&(IORequest.ie_version()<7))){if(this.io.cie6b!==undefined){for(var i=0;i<IORequest.a_max_elements.length;i++){if(this.io.cie6b[i]!=IORequest.a_max_elements[i]){IORequest.a_max_elements[i]=this.io.cie6b[i];l=true}}}}else{if(this.io.cdfltb!==undefined){for(var c=0;c<IORequest.a_max_elements.length;c++){if(this.io.cdfltb[c]!=IORequest.a_max_elements[c]){IORequest.a_max_elements[c]=this.io.cdfltb[c];l=true}}}}if(this.io.cdfltpg!==undefined){for(var g=0;g<IORequest.a_max_page_elements.length;g++){if(this.io.cdfltpg[g]!=IORequest.a_max_page_elements[g]){IORequest.a_max_page_elements[g]=this.io.cdfltpg[g];l=true}}}if(this.io.cs===undefined){if(IOConfig.category_structure==-1){IOConfig.category_structure="S"}}else{var e=(this.io.cs!=="EPR");var b=(IOConfig.category_structure!=="E");if(e!==b){l=true;IOConfig.category_structure=(this.io.cs=="EPR"?"E":"S")}}if(this.io.cv!==undefined){if(IOConfig.version!==this.io.cv){l=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];l=true}if(IOConfig.brand_personalization[1]!=this.io.bp[1]){IOConfig.brand_personalization[1]=this.io.bp[1];l=true}}else{IOConfig.brand_personalization=[-1,-1]}IORequest.ssp_use_reg_id=false;var k=_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;l=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;l=true}}else{IORequest.ssp_use_reg_id=true;IORequest.ssp_reg_id=k}}}}}if((IORequest.ssp_use_reg_id==false)&&(k!=="")){IORequest.ssp_reg_id="";l=true}if(l&&IORequest.have_cookie){var d=[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 a=[IORequest.a_max_page_elements[0]];_io_state.cm_write_cookies(d,a);l=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.zones=[];this.n_zones=this.io.zp.length;this.rec_plan=[];for(var f=0;f<this.n_zones;f++){this.zones[this.io.zp[f].id]=new IOZone(this.io.zp[f],this.rec_plan,this.io.rp,this.io.oa)}this.add_zone=function(m){var n={id:m,rp:[["001",0,99,3]]};this.zones[m]=new IOZone(n,this.rec_plan,this.io.rp,this.io.oa)}}function IOZone(f,e,b,d){this.name=f.id;var a=this.name+"_zp";if((window[a]!==undefined)&&(typeof window[a]=="function")){this.zpf=a}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=(((f.fp!==undefined)&&(f.fp===0))?0:1);this.filter_cp=(((f.fc!==undefined)&&(f.fc===0))?0:1);if(f.rp.length==1){if(e[f.rp[0][0]]===undefined){e[f.rp[0][0]]=new IORecPlan(f.rp[0][0],b,d)}this.rec_plan=e[f.rp[0][0]];this.n_recs=f.rp[0][3];this.ab_test_id="no ab test"}else{for(var c=0;((c<f.rp.length)&&(this.rec_plan===undefined));c++){if(IORequest.ab_group_number>=f.rp[c][1]&&IORequest.ab_group_number<=f.rp[c][2]){if(e[f.rp[c][0]]===undefined){e[f.rp[c][0]]=new IORecPlan(f.rp[c][0],b,d)}this.rec_plan=e[f.rp[c][0]];this.n_recs=f.rp[c][3];this.ab_test_id=((f.rp[c][4]!==undefined)?f.rp[c][4]:"no ab test")}}}}function IORecStep(a,b){this.offer_id=a[0];this.target_id=a[1];this.offer_type=this.offer_id?b[this.offer_id][1]:"N";this.offer_version=this.offer_id?b[this.offer_id][0]:0;this.heading=(a[3]!==undefined)?a[3]:"";this.algo_id=(a[4]!==undefined)?a[4]:"";this.algo_value=(a[5]!==undefined)?a[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(b,a,c){this.rec_steps=[];this.id=b;for(var d=0;d<a[b].length;d++){this.rec_steps.push(new IORecStep(a[b][d],c))}}IOState.h_productview_product=[];IOState.h_pageview_page=[];function IOState(){var i=(IORequest.production?"~":"~");var g=":";var d=[];var t=[];var p=[];var w=[];var s=[];var k=[];var a=[];var u=[];var h=[];var m=[];var c=[];var q=[];var l=undefined;var o=undefined;var n=undefined;var v=undefined;var f=["p_viewed","p_carted","p_purchased","c_viewed","c_n_views","b_viewed","b_n_views"];var e=["pv","pc","pp","cv","cn","bv","bn"];var b=f;var r=false;this.cm_get_item_from_cookie=function(C,B){if(d.length!==0||(this.cm_build_all_recent_arrays()===true)){if((C=="_RVP_")||(C=="_RVL_")){if((B)||(C=="_RVL_")){return(a.length!=0?a:0)}else{return(IORequest.recently_viewed_product!=0?new Array(IORequest.recently_viewed_product):0)}}if(C=="_RVC_"){if(B){return(m.length!=0?m:0)}else{return(IORequest.recently_viewed_category!=0?new Array(IORequest.recently_viewed_category):0)}}if(C=="_LCP_"){if(B){return(u.length!=0?u:0)}else{return(u.length!=0?u.slice(0,1):0)}}if(C=="_RPP_"){if(B){return(h.length!=0?h:0)}else{return(h.length!=0?h.slice(0,1):0)}}if((C=="_RVG_")||(C=="_RVLG_")){if((B)||(C=="_RVLG_")){return(q.length!=0?q:0)}else{return(IORequest.recently_viewed_page!=0?new Array(IORequest.recently_viewed_page):0)}}if(C=="_MSP_"){var z=0;for(var A=1;A<h.length;A++){if(parseFloat(t[h[A]].pp_price)>parseFloat(t[h[z]].pp_price)){z=A}}return(h.length!=0?h.slice(z,z+1):0)}if(C=="_MPC_"){var z=0;for(var y=1;y<m.length;y++){if(parseInt(p[m[y]].n_viewed,10)>parseInt(p[m[z]].n_viewed,10)){z=y}}return(m.length!=0?m.slice(z,z+1):0)}if(C=="_MPB_"){var z=0;for(var x=1;x<c.length;x++){if(parseInt(w[c[x]].n_viewed,10)>parseInt(w[c[z]].n_viewed,10)){z=x}}return(c.length!=0?c.slice(z,z+1):0)}}return(0)};cm_initialize_id=function(x,y){x[y]=[];x[y].index=-1;x[y].n_bought=0;x[y].n_viewed=0;x[y].n_carted=0;x[y].pv_timestamp=0;x[y].pc_timestamp=0;x[y].pp_timestamp=0;x[y].pp_price=-1};cm_build_hash_from_array=function(z){var y=[];y.max_index=0;for(var x=0;x<z.length;x++){cm_initialize_id(y,z[x])}return y};cm_id_array_from_index_array=function(x,J,F,H,z,K){var y=[];y.max_length=J;if(x){var A=x.split("~");if(A.length==1){A=x.split(",")}for(var I=0;I<A.length;I++){var B=F[A[I]];y.push(B);if((z!==undefined)&&(K!==undefined)){for(var C=0;C<z.length;C++){var E=z[C];var G=K[C];if((E!==undefined)&&(G!==undefined)){var D=String(E).split("~");if(D.length==1){D=String(E).split(",")}if((!(H===undefined))&&(D.length>0)){H[B][G]=D[I]}}}}}if(y.length>y.max_length){y.length=y.max_length}}return y};cm_create_integer_array_from_id_array=function(B,y,x){var z=[];for(var A=0;A<B.length;A++){var C=B[A];if(y[C].index==-1){y[C].index=y.max_index++}z.push(y[C][x])}return z};cm_create_id_array_from_hash=function(x){var y=[];for(var z in x){if(typeof z!="function"){y[x[z].index]=z}}return y};cm_add_action=function(C,G,z,F,D,J,x){var y;var I=C;if(z){if(F){I=IORequest.encrypt8(C);IORequest.log(IORequest.log_trace,"encryption of "+C,I)}else{I=IORequest.encrypt16(C);IORequest.log(IORequest.log_trace,"encryption of "+C,I)}}if(I!==undefined){y=[I];y.max_length=D.max_length;if(G[I]===undefined){cm_initialize_id(G,I)}if(J!==undefined){for(var A=0;A<J.length;A++){var E=J[A];if(E!==undefined){if(x!==undefined){var B=x[A]}if(E.indexOf("n_viewed")>-1){G[I][E]++}else{if(E.indexOf("timestamp")>-1){G[I][E]=new Date().getTime()}else{if(B!==undefined){G[I][E]=B}}}}}}for(var H=0;H<D.length;H++){if(D[H]!=I){y.push(D[H])}}if(y.length>y.max_length){y.length=y.max_length}}else{y=D}return(y)};this.cm_write_cookies=function(I,O){var D=[cm_create_integer_array_from_id_array(a,t,"index").join("~"),cm_create_integer_array_from_id_array(u,t,"index").join("~"),cm_create_integer_array_from_id_array(h,t,"index").join("~"),cm_create_integer_array_from_id_array(m,p,"index").join("~"),cm_create_integer_array_from_id_array(m,p,"n_viewed").join("~"),cm_create_integer_array_from_id_array(c,w,"index").join("~"),cm_create_integer_array_from_id_array(c,w,"n_viewed").join("~")];if(r){for(var P=0;P<b.length;P++){D[P]=b[P]+g+D[P]}}var z=I.join("~");var H=cm_create_id_array_from_hash(t).join(i);var A=cm_create_id_array_from_hash(p).join(i);var J=cm_create_id_array_from_hash(w).join(i);var M=D.join(IORequest.cookie_array_separator);var y=cm_create_integer_array_from_id_array(a,t,"pv_timestamp").join("~");var F=cm_create_integer_array_from_id_array(u,t,"pc_timestamp").join("~");var E=cm_create_integer_array_from_id_array(h,t,"pp_timestamp").join("~");var G=cm_create_integer_array_from_id_array(h,t,"pp_price").join("~");var Q="";if((IORequest.ssp_use_reg_id===undefined)){Q=n}else{if(IORequest.ssp_use_reg_id==true){Q=IORequest.ssp_reg_id}else{Q=""}}var C=[z,H,A,J,M,y,F,E,G,l,o,Q,v].join(IORequest.cookie_separator);var L=IORequest.set_and_check_cookie(IORequest.state_cookie,C,false,IORequest.vanity_suffix);var N=O.join("~");var R=[cm_create_integer_array_from_id_array(q,s,"index").join("~")];var S=R.join(IORequest.cookie_array_separator);var x=cm_create_id_array_from_hash(s).join(i);var B=[N,x,S].join(IORequest.cookie_separator);var K=IORequest.set_and_check_cookie(IORequest.state_cookie_content,B,false,IORequest.vanity_suffix)};this.set_ab_group_number=function(x){var A=[];if(x!==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 y=window.localStorage.getItem(IORequest.ab_group_key);if(y==null){y=Math.floor(Math.random()*100);window.localStorage.setItem(IORequest.ab_group_key,y)}IORequest.ab_group_number=y;IORequest.ab_group_number_source=IORequest.ab_group_number_source_localstorage}}if(IORequest.ab_group_number===undefined){if(window.top.name==""){var y=Math.floor(Math.random()*100);window.top.name=IORequest.ab_group_key+"="+y+"~|~";IORequest.ab_group_number=y;IORequest.ab_group_number_source=IORequest.ab_group_number_source_windowsname}else{if(window.top.name.indexOf(IORequest.ab_group_key)>-1){var B=window.top.name.split("~|~");for(var z=0;z<B.length;z++){if(B[z].indexOf(IORequest.ab_group_key)>-1){IORequest.ab_group_number=B[z].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 x=IORequest.find_state_cookie(IORequest.state_cookie);this.set_ab_group_number(x)};this.get_ssp_load_ts_from_cookie=function(){var y="";var x=IORequest.find_state_cookie(IORequest.state_cookie);if(x!==undefined){var z=(x===undefined)?4:(x.split(IORequest.cookie_separator).length-1);if(z>4){y=IORequest.build_array_from_cookie(IORequest.state_cookie,10).split(IORequest.cookie_array_separator)}}return y};this.get_ssp_reg_id_from_cookie=function(){var y="";var x=IORequest.find_state_cookie(IORequest.state_cookie);if(x!==undefined){var z=(x===undefined)?4:(x.split(IORequest.cookie_separator).length-1);if(z>4){y=IORequest.build_array_from_cookie(IORequest.state_cookie,11).split(IORequest.cookie_array_separator)}}return y};this.get_pf_segment_from_cookie=function(){var y="";var x=IORequest.find_state_cookie(IORequest.state_cookie);if(x!==undefined){var z=(x===undefined)?4:(x.split(IORequest.cookie_separator).length-1);if(z>4){y=IORequest.build_array_from_cookie(IORequest.state_cookie,12).split(IORequest.cookie_array_separator)}}return y};this.cm_build_all_recent_arrays=function(){var y=[];var F=[];var H=[];var B=[];var x=false;var L=IORequest.find_state_cookie(IORequest.state_cookie);if(IORequest.setSegmentCalled){v=IORequest.pf_segment}else{v=_io_state.get_pf_segment_from_cookie()}this.set_ab_group_number(L);if(L!==undefined){var J=(L===undefined)?4:(L.split(IORequest.cookie_separator).length-1);d=IORequest.build_array_from_cookie(IORequest.state_cookie,0).split(",");if(d.length>0){if(d[0].length>3){d=IORequest.build_array_from_cookie(IORequest.state_cookie,0).split("~")}if(d.length>1){IOConfig.version=d[1];IOConfig.brand_personalization[0]=d[2];IOConfig.brand_personalization[1]=d[3];IOConfig.category_structure=d[4];IORequest.a_max_elements[0]=d[5];IORequest.a_max_elements[1]=d[6];IORequest.a_max_elements[2]=d[7];IORequest.a_max_elements[3]=d[8];IORequest.a_max_elements[4]=d[9];IORequest.a_max_elements[5]=d[10];IORequest.a_max_elements[6]=d[11]}}y=IORequest.build_array_from_cookie(IORequest.state_cookie,1).split(i);t=cm_build_hash_from_array(y);F=IORequest.build_array_from_cookie(IORequest.state_cookie,2).split(i);p=cm_build_hash_from_array(F);if(J>3){H=IORequest.build_array_from_cookie(IORequest.state_cookie,3).split(i);w=cm_build_hash_from_array(H)}var D=IORequest.build_array_from_cookie(IORequest.state_cookie,J<4?J:4).split(IORequest.cookie_array_separator);if(r&&(g_b_a_arrays[0].substring(0,2)==b[0].substring(0,2))){for(var K=0;K<D.length;K++){D[K]=D[K].substring(b[K].length+1)}}if(J>4){var C=IORequest.build_array_from_cookie(IORequest.state_cookie,5).split(IORequest.cookie_array_separator);var A=IORequest.build_array_from_cookie(IORequest.state_cookie,6).split(IORequest.cookie_array_separator);var I=IORequest.build_array_from_cookie(IORequest.state_cookie,7).split(IORequest.cookie_array_separator);var E=IORequest.build_array_from_cookie(IORequest.state_cookie,8).split(IORequest.cookie_array_separator);l=IORequest.build_array_from_cookie(IORequest.state_cookie,9).split(IORequest.cookie_array_separator);o=IORequest.build_array_from_cookie(IORequest.state_cookie,10).split(IORequest.cookie_array_separator);n=IORequest.build_array_from_cookie(IORequest.state_cookie,11).split(IORequest.cookie_array_separator);if(v===undefined){v=IORequest.build_array_from_cookie(IORequest.state_cookie,12).split(IORequest.cookie_array_separator)}}a=cm_id_array_from_index_array(D[0],IORequest.a_max_elements[0],y,t,new Array(C),new Array("pv_timestamp"));u=cm_id_array_from_index_array(D[1],IORequest.a_max_elements[1],y,t,new Array(A),new Array("pc_timestamp"));h=cm_id_array_from_index_array(D[2],IORequest.a_max_elements[2],y,t,new Array(I,E),new Array("pp_timestamp","pp_price"));m=cm_id_array_from_index_array(D[3],IORequest.a_max_elements[3],F,p,new Array(D[4]),new Array("n_viewed"));if(J>3){c=cm_id_array_from_index_array(D[5],IORequest.a_max_elements[5],H,w,new Array(D[6]),new Array("n_viewed"))}if(IORequest.recently_viewed_product===undefined){IORequest.recently_viewed_product=(a.length===0?0:a[0])}if(IORequest.recently_viewed_category===undefined){IORequest.recently_viewed_category=(m.length===0?0:m[0])}x=true}L=IORequest.find_state_cookie(IORequest.state_cookie_content);if(L!==undefined){k=IORequest.build_array_from_cookie(IORequest.state_cookie_content,0).split(",");if(k.length>0){IORequest.a_max_page_elements[0]=k[0]}B=IORequest.build_array_from_cookie(IORequest.state_cookie_content,1).split(i);s=cm_build_hash_from_array(B);var D=IORequest.build_array_from_cookie(IORequest.state_cookie_content,2).split(IORequest.cookie_array_separator);q=cm_id_array_from_index_array(D[0],IORequest.a_max_page_elements[0],B);if(IORequest.recently_viewed_page===undefined){IORequest.recently_viewed_page=(q.length===0?0:q[0])}x=true}if(d.length==1){IORequest.rm_cookie(IORequest.state_cookie);var G=[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 z=[IORequest.a_max_page_elements[0]];this.cm_write_cookies(G,z)}return x};cm_build_html_table_from_array=function(C,B,E,x){var D=(x?2:1);var z=B.length;var A="";var y=(D==1?"<TD COLSPAN=2>":"<TD>");if(z>0&&(B[0]!==undefined)){A="<TR><TH ROWSPAN="+z+">"+C+"</TH>"+y+(D==2?E[B[0]][x]+"</TD><TD>":"")+B[0]+"</TD></TR>";for(var F=1;F<z;F++){A+="<TR>"+y+(D==2?E[B[F]][x]+"</TD><TD>":"")+B[F]+"</TD></TR>"}}else{A="<TR><TH ROWSPAN=1>"+C+"</TH><TD COLSPAN=2>No "+C+"</TD></TR>"}return(A)};cm_get_products_in_cart=function(){if(this.cm_build_all_recent_arrays()===true){return(u)}else{return([])}};this.cm_ted_io=function(B){var y=false;if(this.cm_build_all_recent_arrays()===true){if(B.i_offer!==undefined){if(B.i_offer=="epr_category"){if(_io_config.fcpl=="Y"){B.cg=B.cg.replace(/>.*$/,"");B.cg=B.cg.replace(/\s+$/,"")}if(B.cg!==undefined){if(!IORequest.encrypt_cats&&(B.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",B.cg)}else{IORequest.log(IORequest.log_trace,"Adding EPR Category to cookie.  Category",B.cg);m=cm_add_action(B.cg,p,IORequest.encrypt_cats,true,m,new Array("n_viewed"));y=true}}}if(B.i_offer=="brand"){IORequest.log(IORequest.log_trace,"Adding brand to cookie. Brand",B.brn);c=cm_add_action(B.brn,w,1,true,c,new Array("n_viewed"));y=true}}else{if(B.tid==1||B.tid==4||B.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==B.tid){var z=""+B.pi.toString().toUpperCase();if(z!==undefined){IORequest.log(IORequest.log_trace,"Adding page ID from page view to cookie.  Page ID",z);q=cm_add_action(z,s,true,false,q);y=true}IOState.h_pageview_page[z]=1}if(5==B.tid){var x=""+B.pr.toString().toUpperCase();var A=""+B.cg.toString().toUpperCase();if(x!==undefined){if(!IORequest.encrypt_prds&&(x.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",x)}else{IORequest.log(IORequest.log_trace,"Adding product from product view to cookie.  Product",x);a=cm_add_action(x,t,IORequest.encrypt_prds,true,a,new Array("pv_timestamp"));y=true}}if((A!==undefined)&&(IOConfig.category_structure=="S")){if(!IORequest.encrypt_cats&&(A.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",A)}else{IORequest.log(IORequest.log_trace,"Adding Site Category from product view to cookie.  Category",A);m=cm_add_action(A,p,IORequest.encrypt_cats,true,m,new Array("n_viewed"));y=true}}IOState.h_productview_product[x]=1}if((B.pr!==undefined)&&(4==B.tid)&&(5==B.at)){if(!IORequest.encrypt_prds&&(B.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",B.pr)}else{IORequest.log(IORequest.log_trace,"Adding product from cart contents to cookie.  Product",B.pr);u=cm_add_action(B.pr.toString().toUpperCase(),t,IORequest.encrypt_prds,true,u,new Array("pc_timestamp"));y=true}}if((B.pr!==undefined)&&(4==B.tid)&&(9==B.at)){if(!IORequest.encrypt_prds&&(B.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",B.pr)}else{IORequest.log(IORequest.log_trace,"Adding product from purchase to cookie.  Product",B.pr);h=cm_add_action(B.pr.toString().toUpperCase(),t,IORequest.encrypt_prds,true,h,new Array("pp_timestamp","pp_price"),new Array(null,B.bp));y=true}}}if(y){this.cm_write_cookies(d,k)}}}}cmLoadIOConfig();function cmExecuteTagQueue(){var b=window.cmTagQueue;if(b){var c=(b.constructor==Array);if(!c){return}for(var a=0;a<b.length;++a){window[b[a][0]].apply(window,b[a].slice(1))}}return true}cmExecuteTagQueue();



BN_YUI.use('event-delegate', 'event-base', 'ajax-form', 'fancy-label', 'widget-base', 'util-browser', 'widget-position', 'widget-position-align', 'lang-dom', 'form-toolkit', 'substitute', 'base-build', 'event-hover', 'bn-overlay', 'node', 'shim-plugin', 'widget-position-constrain', 'io-xdr', 'styled-inputs', 'io-base', 'cookie', 'event-custom', function(Y) {
(function(f) {var a=false,c,g=".text-field-wrapper label",d=function(h){a=true;
(h||f).all(g).plug(f.Plugin.FancyLabel)
};
if(f.UA.ie&&f.UA.ie<8){c=f.after("contentready",d,g);
setTimeout(function(){if(!a){c.detach();
setTimeout(d,0)
}},2500)
}else{d()
}f.on("ajax:updated",function(i){var h=i.currentTarget.get("host");
d(h)
});
if(f.UA.ie&&f.UA.ie<=8){var e=f.Node.prototype._insert;
f.Node.prototype._insert=function(j,i){var h=e.call(this,j,i);
this.toggleClass("empty-ie",!this.hasChildNodes());
return h
};
var b=f.Node.prototype.empty;
f.Node.prototype.empty=function(){this.addClass("empty-ie");
return b.call(this)
}
}})(Y);
(function(c) {var b=function(){var d=BN_YUI;
d.use("account-signin",function(e){e.Account.signInUser()
})
};
var a=function(e){var d=e.getResponseHeader("WWW-Authenticate");
if(d){if(d==="reload-page"){window.location.reload()
}else{if(d==="signin-popup"){b()
}}}};
c.before("io:failure",function(e,f){var d;
if(f){d=f.status;
if(d){if(d===401){a(f)
}}}})
})(Y);
(function(e) {var d=e.namespace("Checkout"),c="activated",b={},a=null;
e.once("beforeunload",function(){var g=null;
for(g in b){if(b.hasOwnProperty(g)){cmCreateProductviewTag(g,b[g].title,b[g].storesubject,b[g].exploreAttributes)
}}});
d.Pulldown=e.Base.create("Pulldown",e.Widget,[e.WidgetPosition,e.WidgetPositionAlign,e.WidgetPositionConstrain],{BOUNDING_TEMPLATE:'<div class="buynow-dropdown additionalOptions"></div>',CONTENT_TEMPLATE:null,_hoverCheck:function(g){var k=this.get("boundingBox"),j=this.get("eds").get("parentContainer"),i=function(m){return m===k||m===j
},l=g.currentTarget.ancestor(i,true),h=g.relatedTarget?g.relatedTarget.ancestor(i,true):null;
if(!l||!h){this.hide()
}},_edsChange:function(j){var g=j.prevVal,h=j.newVal,i=h.get("contentContainer"),k=this.get("boundingBox");
if(g){g.get("parentContainer").detach("mouseleave",this._hoverCheck,this);
g.get("contentContainer").append(k.get("children"))
}h.get("parentContainer").on("mouseleave",this._hoverCheck,this);
k.append(i.get("children"));
e.Do.before(function(l){if(l==="parentNode"){return new e.Do.Halt("pretending the pulldown is a child of the contentContainer",i)
}},k,"get");
this.set("align.node",h.get("trigger"))
},_visibleChange:function(g){var j=this.get("boundingBox"),i=this.get("eds").get("parentContainer"),h=g.newVal;
j.toggleClass(c,h);
i.toggleClass(c,h);
if(i.hasClass("use-shim")){if(j.shim){j.unplug(e.Plugin.Shim)
}j.plug(e.Plugin.Shim)
}},bindUI:function(){this.on("edsChange",this._edsChange,this);
this.on("visibleChange",this._visibleChange,this);
this.get("boundingBox").on("mouseleave",this._hoverCheck,this)
}},{ATTRS:{eds:{value:null}}});
a=new d.Pulldown({render:false,constrain:true,visible:false,align:{node:e.one("body"),points:[e.WidgetPositionAlign.TL,e.WidgetPositionAlign.BL]}});
d.EnhancedDisplayOptions=e.Base.create("EnhancedDisplayOptions",e.Base,[],{_bindProductView:function(i){var h=this.get("trigger"),j=h.getAttribute("data-bn-ean"),g={title:h.getAttribute("data-bn-title"),storesubject:h.getAttribute("data-bn-storesubject"),categoryid:h.getAttribute("data-bn-categoryid"),exploreAttributes:h.getAttribute("data-bn-productexploreattrs")+"-_--_-hover"};
i.preventDefault();
e.log("Logged:\n"+j+":"+g,"info","Checkout.EnhancedDisplayOptions");
e.log('\ncmCreateProductviewTag("'+j+'", "'+g.title+'", "'+g.storesubject+'", "'+g.exploreAttributes+'")',"info","Checkout.EnhancedDisplayOptions");
b[j]=g
},_showPulldown:function(g){g.preventDefault();
if(!a.get("rendered")){a.render(e.one("body"))
}e.all(".display-tile-item").removeClass(c);
a.set("eds",this).show()
},initializer:function(g){if(g.parentContainer){g.parentContainer.once("mouseover",this._bindProductView,this)
}if(g.trigger){g.trigger.on("click",this._showPulldown,this)
}}},{ATTRS:{trigger:{value:null},contentContainer:{value:null},parentContainer:{value:null}}});
function f(g){return g.hasClass("display-tile-item")
}e.on("domready",function(){e.all(".more-options").each(function(h){var i=h.next();
var j=h.ancestor(f);
var g=new e.Checkout.EnhancedDisplayOptions({trigger:h,contentContainer:i,parentContainer:j})
})
})
})(Y);
(function(c) {var d='<div class="box pen-name-radio"><input type="radio" name="penName" id="{id}" value="{value}" tabindex="{tabIndex}" /><label for="{id}">{value}</label></div>',b=c.Shared.BNOverlay.getById("pen-name-overlay"),a=function(){b.onceAfter("render",function(){var e=this,i=e.getStdModNode(c.WidgetStdMod.BODY),h=false,f={},g=function(){h=false;
e.set("penNameAttempted",null);
i.all("form").each(function(j){j.reset()
});
i.get("children").hide().item(0).show();
e.fit()
};
c.publish("penname:chosen",{broadcast:1});
e.addAttr("penNameAttempted",{value:null},true).on("penNameAttemptedChange",function(j){i.all(".penNameAttempted").setHTML(j.newVal)
});
c.on("penname:chosen",e.hide,e);
e.on("widget:hide",g);
i.delegate("click",function(j){h=true
},".anonymous");
i.delegate("click",function(j){j.preventDefault();
c.fire("penname:chosen",{penName:e.get("penNameAttempted"),isAnonymous:h})
},".continue");
i.all("form").each(function(j){var k=new c.Ajax.Form({node:j,actionButtons:j.all("input[type=submit], input[type=button]")});
k.publish("success",{fireOnce:false});
k.publish("error",{fireOnce:false});
j.on("submit",function(l){l.preventDefault();
k.submitForm()
});
k.on("success",function(l){e.set("penNameAttempted",l.penname.message);
this.formCfg.node.hide()
});
k.after("success",e.fit,e);
f[j.get("name")]=k
});
c.Array.each([f["check-availability"],f["penname-suggestions"]],function(j){j.on("success",function(l){if(l.penname.success){i.one("form[name=penname-available]").show().one("input[name=penName]").set("value",l.penname.message)
}else{var r=i.one("form[name=penname-suggestions]"),s=r.one(".suggestions"),q=r.one(".pen-name-other input[type=text]"),p=r.one(".pen-name-other input[type=radio]"),o=l.penname.suggestedPenNames||[],n=null,m;
s.empty();
for(m=0;
m<o.length;
m++){n=c.substitute(d,{id:"penName"+m,value:o[m],tabIndex:m});
var k=s.appendChild(c.Node.create(n)).one("input").plug(c.StyledInputs.Plugin.Radiobutton);
if(m===0){k.set("checked",true)
}}q.on("focus",function(){p.set("checked",true)
});
q.on("change",function(){p.set("value",this.get("value"))
});
r.show()
}})
});
f["penname-available"].on("success",function(j){i.one("div.penname-continue").show()
});
i.one(".createAPenNameTermsOfUse").on("click",function(j){j.preventDefault();
e.detach("widget:hide",g);
c.Shared.BNOverlay.getById("review-guidelines").show().once("widget:hide",function(k){e.on("widget:hide",g);
e.show()
})
});
i.one(".find-different-name").on("click",function(j){j.preventDefault();
g();
this.ancestor("form").hide();
i.one("form[name=check-availability]").show();
e.fit()
})
})
};
if(b){a()
}else{c.on("overlay-creation:pen-name",function(){a()
})
}})(Y);
(function(a) {a.Shared.BNOverlay.getById("report-as-inappropriate").on("available",function(c){var b={head:{processing:"Submitting your report ...",success:"Thank you",failure:"We're sorry"},body:{processing:"",success:"We appreciate your feedback and will review this title in accordance with our content policy.",failure:"We are experiencing technical difficulties at this time. Please reload this page later and try again."}};
this.after("render",function(){var e=this.getStdModNode("body").one("form"),d=function(g){this.getStdModNode("header").one(".shadow-bar-header").setContent(b.head[g]);
this.setStdModContent("body",b.body[g],"replace")
};
e.one("select").plug(a.StyledInputs.Plugin.Select);
e.one("textarea").plug(a.FormToolkit.CharacterCountdown,{charCount:e.one("textarea").get("maxlength"),showMaxMessage:true,showRemainder:true,showRowCount:false});
var f=new a.Ajax.Form({node:e,actionButtons:e.all("button")});
e.on("submit",function(g){g.preventDefault();
f.submitForm()
});
f.on("start",function(){d("processing")
});
f.on("success",function(g){if(g&&g.productreport&&g.productreport.success&&g.productreport.success===true){d("success")
}else{d("failure")
}});
f.on(["failure","error"],function(){d("failure")
})
})
})
})(Y);
(function(e) {var c=new Date(),a=document.getElementById("bnCWYear"),b=e.one("#ftr-email");
if(a){a.innerHTML=c.getFullYear()
}if(b){b.one(".ftr-error").hide();
b.one(".ftr-thanks").hide();
b.on("submit",function(g){g.preventDefault();
var d=b.one("input#emailInput").get("value");
var f=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
if(d==""||f.test(d)==false){b.one("input#emailInput").setStyle("border","1px solid #cc1d01");
b.one(".ftr-error").setStyle("color","#cc1d01").show();
return false
}else{e.io("http://apps.m.bn.com/signup/ussignup",{data:"eml="+d,xdr:{use:"native",credentials:true},on:{end:function(i,j,h){b.one(".ftr-thanks").show();
b.all(".ftr-text, .ftr-error").hide()
}}})
}})
}})(Y);
(function(c) {var d="bn-ua-cp",i={path:"/",domain:"."+window.location.hostname.split(".").slice(-2).join(".")},a=-1,f=1,h=2,e=3,g=4;
var b=f;
if(!c.Cookie.exists(d)||(c.Cookie.get(d,i)===a)){if(c.UA.ie>5||c.UA.gecko>1.9||c.UA.webkit>522||c.UA.opera>8||c.UA.mobile){b=h
}c.Cookie.set(d,b,i);
if(c.Cookie.exists(d)){b=e
}else{b=a
}if(c.util.browser.isEventSupported("click")&&c.util.browser.isEventSupported("change")){b=g
}c.Cookie.set(d,b,i)
}})(Y);
});