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="httpwwwidgcsm-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_linkid="47b9a334d19815e86be330ae5c33375d";window.amzn_assoc_emphasize_categories="13900871,2335752011,172282,979455011,16310091,468642,229534";window.amzn_assoc_enable_interest_ads="false";window.amzn_assoc_rows="1";(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:"",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="http://ws-na.amazon-adsystem.com/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(L,n,Q,b,m,g,l,N,k,K,R,i,J,d,P,j,M,c){var h={},O=(L.width&&L.width!="auto")?L.width:"1",a=(L.height&&L.height!="auto")?L.height:"1",f=document.getElementById(Q);L.debug=g.toString();L.acap_publisherId=L.tracking_id;x(L);h.src=N;h.c=k;if(L.preview==="true"){h.c=K;}h.sz=O+"x"+a;h.apiVersion=R;L.slotNum=n;if(typeof s[L.ad_type]!=="undefined"){L.ead=s[L.ad_type](L,f.getBoundingClientRect().width);}if(typeof i!=="undefined"){L.viewerCountry=i;}h.pj=r.stringify(L);if((typeof g!=="undefined"&&g)||(typeof l!=="undefined"&&l)){h.testToken=J;h.n1apiVersion=R;h.n1url=d;h.n1id=P;}h.u=L.URL||document.location.href;q[n]=(m||(c&&b[L.ad_type]));if(q[n]){amzn_assoc_cm.addCounter("cm_","ssp_selected",1);amzn_assoc_cm.addCounter("cm_","ssp_selected_"+b[L.ad_type],1);}amzn_assoc_cm.trigger(e,r.generateGuid(),r.generateGuid());return(q[n]?(M+"/widgets/getad?"):(j+"/x/getad?"))+r.serialize(h,"&",false,true);};return r;};window.amzn_assoc_utils=window.assocUtilsMaker("ATVPDKIKX0DER","6",1000);(function(c){var d=window.amzn_assoc_internal_params;window.amzn_assoc_utils.getSynchronousAdCodeGenerator=function(){return function(k){var i='