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_itwrec2-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="Electronics";window.amzn_assoc_linkid="566de3316682663bebe33b0f2a77dfa9";window.amzn_assoc_design="text_links";window.amzn_assoc_emphasize_categories="2335752011,13900871,172282,229534";window.amzn_assoc_fallback_mode=JSON.parse('{"type":"search","value":"electronics"}');window.amzn_assoc_enable_interest_ads="false";window.amzn_assoc_rows="3";(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:"",destinationTrackingId:"",ead:"",URL:"",div_name:"",override:"",sourceTrackingId:"",sign_links:"",textlinks:"",slotNum:"",ac_website:"",enable_geo_redirection:"",force_win_bid:"",enable_auto_tagging:"",preview:"",debug:""};window.assocUtilsMaker=function(e,s,u){var v=window,o={},q,p={},m=function(i,f,j,g,b,h){var a={},d,k,c;if(typeof i[f]!=="undefined"&&i[f]!==""){i[j]=i[j]||[];k=i[f].split(",");for(c=0;c');}else{document.write('
');}return b+"_"+c;};o.registerAdCountComputer=function(b,a){p[b]=a;};o.getExpectedAdCount=function(a,b){if(typeof p[a.ad_type]==="undefined"){return 0;}else{return p[a.ad_type](a,b);}};o.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var a=Math.random()*16|0,b=c=="x"?a:(a&3|8);return b.toString(16);});};o.reduce=function(c,b,f){var d=b,a;for(a=0;a';o.execBodyScripts(i,f.slotNum);}}());return;}g="amzn_assoc_jsonp_callback_"+f.placement+"_"+f.slotNum;if(f.aaxMediated){b=b+"&jscb="+g;}else{b=b+"&jsonp="+g;}(function(i){v[g]=function(z){var j,y;if(f.aaxMediated){amzn_assoc_cm.endScope("cm_","aax_load_time");amzn_assoc_cm.endScope("cm_","aax_load_time_"+f.adOptions.ad_type);if(z&&z.html){try{j=JSON.parse(z.html);j.pj=f.adOptions;j.originUrl=f.adOptions.URL||document.location.href;f.url="http://ws-na.amazon-adsystem.com/widgets/safl";f.url=f.url+"?q="+encodeURIComponent(JSON.stringify(j));if(j.customPixels){for(y=0;y0){amzn_assoc_cm.endScope("cm_","wdgt_load_time_doc_load",window.performance.timing.loadEventEnd);amzn_assoc_cm.endScope("cm_","wdgt_load_time_doc_load_"+f.adOptions.ad_type,window.performance.timing.loadEventEnd);}}if(typeof f.clientCbs==="object"&&typeof f.clientCbs[j.type]==="function"){j.data.slotNum=f.slotNum;j.data.container=f.elemName;f.clientCbs[j.type](j.data,j.widget);}amzn_assoc_cm.trigger(e,h,d);};}(f.elemName));amzn_assoc_cm.endScope("cm_","onejs_exec_time");amzn_assoc_cm.trigger(e,h,d);if(f.aaxMediated){amzn_assoc_cm.startScope("cm_","aax_load_time");amzn_assoc_cm.startScope("cm_","aax_load_time_"+f.adOptions.ad_type);}else{amzn_assoc_cm.startScope("cm_","adhtml_load_time");amzn_assoc_cm.startScope("cm_","adhtml_load_time_"+f.adOptions.ad_type);}o.loadRemoteScript(b,function(){});};o.serialize=function(f,h,b,g){var c=[],a;for(var i in f){if(f.hasOwnProperty(i)&&typeof f[i]!="function"){var d=((g)?encodeURIComponent(i):i)+"=";if(b){d+="'";}if(f[i] instanceof Array){a=f[i][0];}else{a=f[i];}d+=(g)?encodeURIComponent(a):a;if(b){d+="'";}c.push(d);}}return c.join(h);};o.stringify=function(b){var h,f="{",g="",c="",d=0,a=this;if(typeof b==="boolean"||typeof b==="number"||typeof b==="string"){return'"'+b+'"';}for(h in b){if(b.hasOwnProperty(h)){if(typeof b[h]==="boolean"||typeof b[h]==="number"||typeof b[h]==="string"){if(typeof b[h]==="string"){b[h]=b[h].replace(/"/g,'\\"').replace(/\\\\\\"/g,'\\"');}f=f+g+'"'+h+'":"'+b[h]+'"';}else{if(b[h] instanceof Array){f=f+g+'"'+h+'": [';c="";for(d=0;d0);};o.getAAXUrl=function(L,J,O,f,H,i,I,M,l,a,P,j,K,h,N,G,b){var k={},c=(L.width&&L.width!="auto")?L.width:"1",d=(L.height&&L.height!="auto")?L.height:"1",g=document.getElementById(O);L.debug=i.toString();L.acap_publisherId=L.tracking_id;t(L);k.src=M;k.c=l;if(L.preview==="true"){k.c=a;}k.sz=c+"x"+d;k.apiVersion=P;L.slotNum=J;if(typeof p[L.ad_type]!=="undefined"){L.ead=p[L.ad_type](L,g.getBoundingClientRect().width);}if(typeof j!=="undefined"){L.viewerCountry=j;}k.pj=o.stringify(L);if((typeof i!=="undefined"&&i)||(typeof I!=="undefined"&&I)){k.testToken=K;k.n1apiVersion=P;k.n1url=h;k.n1id=N;}k.u=L.URL||document.location.href;return((H||f[L.ad_type])?(b+"/widgets/getad?"):(G+"/x/getad?"))+o.serialize(k,"&",false,true);};return o;};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='