var amazon_assoc_ir_f_call_associates_ads=function(d){var b="",c,a;if(typeof JSON!=="undefined"){a=JSON.stringify(d);}else{if(typeof amzn_assoc_utils!=="undefined"){a=amzn_assoc_utils.stringify(d);}else{return;}}if(typeof d.logType!=="undefined"){b="&logType="+d.logType;}c="//fls-na.amazon-adsystem.com/1/associates-ads/1/OP/r/json";c=c+"?cb="+(new Date()).getTime()+b+"&p="+encodeURIComponent(a);(new Image()).src=c;};var amazon_assoc_ir_f_call=amazon_assoc_ir_f_call_associates_ads;var amazon_assoc_ir_call=function(c,b,a){new Image().src="//ir-na.amazon-adsystem.com/e/ir?o="+a+"&t="+c+"&l="+b+"&cb="+(new Date()).getTime();};window.cmManager=function(h,g,i){var j={},l={},k={};j.startScope=function(b,a){k[b+a]=new Date().getTime();};j.endScope=function(d,c,a){var b;if(typeof k[d+c]!=="undefined"){b=new Date().getTime()-k[d+c];}else{if(typeof a!=="undefined"){b=new Date().getTime()-a;}else{return;}}j.queue(d,[{name:c,value:b}]);delete k[d+c];};j.addCounter=function(c,b,a){j.queue(c,[{name:b,value:a}]);};j.queue=function(b,a){if(typeof l[b]!=="undefined"){l[b]=l[b].concat(a);}else{l[b]=a;}};j.trigger=function(b,w,f){var v="//"+h+"action-impressions/1/OE/associates-adsystems/action/",a,e,c="",u="",s,d=0;for(a in l){if(l.hasOwnProperty(a)){d=d+1;v=v+u+a+":";c="";for(e=0;e0){s=new Image();s.src=v+"?marketplace="+g+"&service=AmazonWidgets&method="+i+"&marketplaceId="+b+"&requestId="+w+"&session="+f;return s.src;}else{return"";}};return j;};window.amzn_assoc_cm=cmManager("fls-na.amazon-adsystem.com/1/","US","Widgets_Render_Time");window.amzn_assoc_placement="adunit0";window.amzn_assoc_tracking_id="muonative-20";window.amzn_assoc_ad_mode="auto";window.amzn_assoc_ad_type="smart";window.amzn_assoc_marketplace="amazon";window.amzn_assoc_region="US";window.amzn_assoc_default_category="PCHardware";window.amzn_assoc_default_browse_node="13900871";window.amzn_assoc_linkid="166bc7919056b781296d146203cd0371";window.amzn_assoc_emphasize_categories="468642,165793011,3375251,229534,2619533011,2972638011,1064954,11091801,301668,163856011,284507,133140011,16310091,3760901,1055398,16310101,2238192011,979455011,5088769011,172282,13900871,2335752011,13900861,283155,3760911,165796011,15684181,2617941011,2619525011,1036592";window.amzn_assoc_fallback_mode=JSON.parse('{"type":"search","value":"macbook"}');window.amzn_assoc_enable_interest_ads="true";(function(){if(typeof window.performance!=="undefined"&&typeof window.performance.timing!=="undefined"){amzn_assoc_cm.endScope("cm_","onejs_load_evt",window.performance.timing.navigationStart);if(window.performance.timing.loadEventEnd>0){amzn_assoc_cm.endScope("cm_","onejs_load_evt_doc_load",window.performance.timing.loadEventEnd);}}amzn_assoc_cm.startScope("cm_","onejs_exec_time");}());window.amzn_assoc_internal_params={viewerCountry:"",exp_details:"",destinationTrackingId:"",ad_id:"",ead:"",URL:"",div_name:"",override:"",sourceTrackingId:"",sign_links:"",textlinks:"",slotNum:"",ac_website:"",enable_geo_redirection:"",force_win_bid:"",enable_auto_tagging:"",preview:"",axf_treatment:"",aax_test_punt:"",debug:"",axf_exp_name:""};window.assocUtilsMaker=function(e,w,y){var z=window,r={},t,s={},q={},u={},o=function(g,c,h,d,k,f){var j={},b,i,a;if(typeof g[c]!=="undefined"&&g[c]!==""){g[h]=g[h]||[];i=g[c].split(",");for(a=0;a');}else{document.write('
');}return b+"_"+a;};r.registerAdCountComputer=function(a,b){s[a]=b;};r.getExpectedAdCount=function(b,a){if(typeof s[b.ad_type]==="undefined"){return 0;}else{return s[b.ad_type](b,a);}};r.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var c=Math.random()*16|0,a=b=="x"?c:(c&3|8);return a.toString(16);});};r.reduce=function(d,a,c){var b=a,f;for(f=0;f';r.execBodyScripts(j,h.slotNum);}}());return;}d="amzn_assoc_jsonp_callback_"+h.placement+"_"+h.slotNum;if(h.aaxMediated){a=a+"&jscb="+d;}else{a=a+"&jsonp="+d;}(function(j){z[d]=function(m){var l,k;if(h.aaxMediated){amzn_assoc_cm.endScope("cm_",i);amzn_assoc_cm.endScope("cm_",i+"_"+h.adOptions.ad_type);if(m&&m.html){try{l=JSON.parse(m.html);l.pj=h.adOptions;l.originUrl=h.adOptions.URL||document.location.href;h.url="https://ws-na.amazon-adsystem.com:443/widgets/safl";h.url=h.url+"?q="+encodeURIComponent(JSON.stringify(l));if(l.customPixels){for(k=0;k0){amzn_assoc_cm.endScope("cm_","wdgt_load_time_doc_load",window.performance.timing.loadEventEnd);amzn_assoc_cm.endScope("cm_","wdgt_load_time_doc_load_"+h.adOptions.ad_type,window.performance.timing.loadEventEnd);}}if(typeof h.clientCbs==="object"&&typeof h.clientCbs[k.type]==="function"){k.data.slotNum=h.slotNum;k.data.container=h.elemName;h.clientCbs[k.type](k.data,k.widget);}amzn_assoc_cm.trigger(e,f,c);};}(h.elemName));amzn_assoc_cm.endScope("cm_","onejs_exec_time");amzn_assoc_cm.trigger(e,f,c);if(h.aaxMediated){amzn_assoc_cm.startScope("cm_",i);amzn_assoc_cm.startScope("cm_",i+"_"+h.adOptions.ad_type);}else{amzn_assoc_cm.startScope("cm_","adhtml_load_time");amzn_assoc_cm.startScope("cm_","adhtml_load_time_"+h.adOptions.ad_type);}r.loadRemoteScript(a,function(){},h);};r.serialize=function(d,f,a,h){var b=[],i;for(var g in d){if(d.hasOwnProperty(g)&&typeof d[g]!="function"){var c=((h)?encodeURIComponent(g):g)+"=";if(a){c+="'";}if(d[g] instanceof Array){i=d[g][0];}else{i=d[g];}c+=(h)?encodeURIComponent(i):i;if(a){c+="'";}b.push(c);}}return b.join(f);};r.stringify=function(a){var g,f="{",d="",b="",c=0,h=this;if(typeof a==="boolean"||typeof a==="number"||typeof a==="string"){return'"'+a+'"';}for(g in a){if(a.hasOwnProperty(g)){if(typeof a[g]==="boolean"||typeof a[g]==="number"||typeof a[g]==="string"){if(typeof a[g]==="string"){a[g]=a[g].replace(/"/g,'\\"').replace(/\\\\\\"/g,'\\"');}f=f+d+'"'+g+'":"'+a[g]+'"';}else{if(a[g] instanceof Array){f=f+d+'"'+g+'": [';b="";for(c=0;c0);};r.getAAXUrl=function(P,N,S,c,n,d,k,f,l,L,T,j,m,b,R,i,O,K,M){var h={},Q=(P.width&&P.width!=="auto")?P.width:"1",a=(P.height&&P.height!=="auto")?P.height:"1",g=document.getElementById(S);P.debug=d.toString();P.acap_publisherId=P.tracking_id;x(P);h.src=(typeof P.ad_type!=="undefined"&&typeof P.ad_mode!=="undefined"&&typeof f[P.ad_type+"-"+P.ad_mode]!=="undefined"&&K.isDedicatedSourceForRecoAdsEnabled())?f[P.ad_type+"-"+P.ad_mode]:f["default"];h.c=l;if(P.preview==="true"){h.c=L;}h.sz=Q+"x"+a;h.apiVersion=T;P.slotNum=N;if(typeof s[P.ad_type]!=="undefined"){P.ead=s[P.ad_type](P,g.getBoundingClientRect().width);}if(typeof j!=="undefined"){P.viewerCountry=j;}h.pj=r.stringify(P);if((typeof d!=="undefined"&&d)||(typeof k!=="undefined"&&k)){h.testToken=m;h.n1apiVersion=T;h.n1url=b;h.n1id=R;}h.u=P.URL||document.location.href;q[N]=(n||M||(K.isSSPEnabled()&&c[P.ad_type]));if(q[N]){amzn_assoc_cm.addCounter("cm_","ssp_selected",1);amzn_assoc_cm.addCounter("cm_","ssp_selected_"+c[P.ad_type],1);}amzn_assoc_cm.trigger(e,r.generateGuid(),r.generateGuid());return(q[N]?(O+"/widgets/getad?"):(i+"/x/getad?"))+r.serialize(h,"&",false,true);};r.create_ad_unit_delivery_network_per_slot=function(){return{aaxChannel:"100",aaxPreviewChannel:"88",aaxApiVersion:"2.0",aaxTestToken:"7snvCunWohswq2jh",aaxBidRequestURL:"http://ws-na-prod.amazon.com/widgets/bid",n1id:"500",aaxURL:"//aax-us-east.amazon-adsystem.com",sspServerURL:"//ws-na.amazon-adsystem.com",sspEnabledForMonetisation:false};};return r;};window.amzn_assoc_utils=window.assocUtilsMaker("ATVPDKIKX0DER","6",1000);window.nativeAdLayoutComputer=(function(){var j={},h=10,g=128,i=4,f=3;j.computeLayout=function(q,t,e){var b,s,r,a,c,d,p;t=(typeof t==="undefined")?g:t;c=parseInt(q/t);if(c==0){return{columnCount:0,columnWidth:0,columnWidthPercentage:0,marginLeftPercentage:0};}if(c>i){c=i;}b=(c-1)*h;s=(q-b)/c;if(s75){b=(c*h);s=(q-b)/(c+0.5);while(s-1)){n.textlinks=amzn_assoc_utils.fetchAmazonLinks();h[n.ad_type].fallbackUrl=h[n.ad_type].adContentUrl;h[n.ad_type].adContentUrl=amzn_assoc_utils.getAAXUrl(n,o,u,b,a,i,d,k,ad_unit_delivery_network[o].aaxChannel,ad_unit_delivery_network[o].aaxPreviewChannel,ad_unit_delivery_network[o].aaxApiVersion,n.viewerCountry,ad_unit_delivery_network[o].aaxTestToken,ad_unit_delivery_network[o].aaxBidRequestURL,ad_unit_delivery_network[o].n1id,ad_unit_delivery_network[o].aaxURL,ad_unit_delivery_network[o].sspServerURL,f,ad_unit_delivery_network[o].sspEnabledForMonetisation);}if(typeof u!=="undefined"&&n.ac_website!=="true"&&!h[n.ad_type].inline){q=amzn_assoc_utils.checkAvailableSpace(n.ad_type,u);}if(q&&h[n.ad_type].adContentUrl!=""){amzn_assoc_utils.fetchHtml({url:h[n.ad_type].adContentUrl,aaxPuntFallback:h[n.ad_type].fallbackUrl,prefix:"amzn_assoc_ad_div_"+n.placement,elemName:u,slotNum:o,clientCbs:l,renderInIframe:v,adOptions:n,aaxMediated:((typeof h[n.ad_type].aaxMediatedMarketPlaces!=="undefined")&&(h[n.ad_type].aaxMediatedMarketPlaces.indexOf(n.region)>-1))?true:false,placement:n.placement,iframeStyle:h[n.ad_type].iframeStyle,inline:h[n.ad_type].inline});}if(!q){amzn_assoc_cm.addCounter("cm_","onejs_abort_evt",1);amzn_assoc_cm.addCounter("cm_","onejs_abort_evt_"+n.ad_type,1);amzn_assoc_cm.endScope("cm_","onejs_exec_time");}}};}());}if(amzn_assoc_ad_async_spec.numberOfWidgets>0){(function(){var a=0;for(a=0;a