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");if(typeof amzn_assoc_ad_banner==="undefined"){var amzn_assoc_ad_banner=(function(){var a={};a.linkcodes={category:["ur1","w20"],promotions:["ur1","pf4"],ez:["ez","w21"],rotating:["ur1","w22"],setandforget:["ur1","w31"]};a.responsiveadsizelist={horizontal:{"728x90":["48","false"],"320x50":["288","false"]}};a.makeForesterCall=function(e,c){var d={};var b={};d.mobile_supported="true";d.tracking_id=e.tracking_id;d.action=c;d.adunit_type=e.ad_type;b.height=e.height;b.width=e.width;b.category=e.campaigns;b.is_responsive=e.is_responsive;b.marketplace=e.marketplace;b.link_id=e.linkid;b.adunit_subtype=e.banner_type;b.region=e.region;b.adunit_script_type=e.f;b.link_code=e.lc_value;d.adunit_properties=b;d.logType="banner_impressions";amazon_assoc_ir_f_call(d);};a.getOptimalSize=function(g,i,e){var d=0;var h="";for(var c in e[i]){var f=c.split("x")[0];var b=c.split("x")[1];if(g>=f){if(f*b>d){d=f*b;h=c;}}}return h;};a.createIframe=function(f,b){var e=amzn_assoc_ad_banner.populateIframeForBanner(f);var c=document.getElementById(a.bannerDivPreFix+b);var d=slotCounter.getNextSlot();c.innerHTML='';};a.rewriteCurrentFrame=function(b){window.location.href=amzn_assoc_ad_banner.populateIframeForBanner(b).url;};a.makeRemoteCall=function(f,c,b){var e=f.width+"x"+f.height;window[c]=function(g){if(!g&&!g.results){return;}var i=JSON.parse(g).results,h=0;for(size in i){if(i[size].size==e){f.banner_id=i[size].bannerID;f.p=i[size].placement;f.availableSize=e;if(f.f=="ifr"){a.rewriteCurrentFrame(f);return;}a.createIframe(f,b);return;}}if(f.banner_type=="setandforget"){f.campaigns="";a.createIframe(f,b);}};var d="http://ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&MarketPlace="+f.region+"&Operation=GetAdCreative&ID=OneJS&OneJS=1&"+amzn_assoc_utils.serialize(f,"&",false,true);amzn_assoc_utils.loadRemoteScript(d+"&jsonp="+c,function(){});};a.getDynamicBanner=function(i,d){if(i.isresponsive=="true"){var h="horizontal",g=amzn_assoc_ad_banner.getAvailableWidthInDiv(),b=g.width,c=g.count,f=amzn_assoc_ad_banner.getOptimalSize(b,h,d),e="amzn_assoc_banner_jsonp_callback_"+c;if(f!=""){i.lc_value="w23";i.height=f.split("x")[1];i.width=f.split("x")[0];amzn_assoc_ad_banner.makeRemoteCall(i,e,c);}}else{if(i.banner_type=="setandforget"){var c=a.getAvailableWidthInDiv().count;var e="amzn_assoc_banner_jsonp_callback_"+c;amzn_assoc_ad_banner.makeRemoteCall(i,e,c);}}};a.getAvailableWidthInDiv=function(){var c=a.globalBannerCreatedCount++;var e=a.bannerDivPreFix+c;document.write('
');var d=document.getElementById(e);var b=0;if(d){b=d.clientWidth;if(b==0){b=d.scrollWidth;}}var f={};f.width=b;f.count=c;return f;};a.populateIframeForBanner=function(g){var c={};c.t=g.tracking_id;c.o=1;c.l=amzn_assoc_ad_banner.linkcodes[g.banner_type][0];c.lc=g.lc_value;c.category=g.campaigns;c.f="ifr";c.m=g.marketplace;c.banner=g.banner_id;c.p=g.p;c.linkid=g.linkid;var b=[];for(var f in c){b.push(encodeURIComponent(f)+"="+encodeURIComponent(c[f]));}var e={};e.url=location.protocol+"//rcm-na.amazon-adsystem.com/e/cm?"+b.join("&");e.style="border:none;display:inline-block;width:"+g.width+"px;height:"+g.height+"px";a.makeForesterCall(g,"onload");return e;};a.globalBannerCreatedCount=0;a.bannerDivPreFix="assoc_amazon_ad_banner_div_";return a;}());var amazon_assoc_banner_spec=function(a){if(a.banner_type==""){a.banner_type="category";}a.lc_value=amzn_assoc_ad_banner.linkcodes[a.banner_type][1];if(a.banner_type=="setandforget"||a.isresponsive=="true"){amzn_assoc_ad_banner.getDynamicBanner(a,amzn_assoc_ad_banner.responsiveadsizelist);}else{return amzn_assoc_ad_banner.populateIframeForBanner(a);}};var amzn_assoc_ad_pre_script_banner=function(a,b){var c=amazon_assoc_banner_spec(a);if(typeof c==="undefined"){b[a.ad_type].adContentUrl="";}else{b[a.ad_type].iframeStyle=c.style;b[a.ad_type].adContentUrl=c.url;}return b;};}(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");}}());var amzn_assoc_ad_spec_type=function(b){var a={},d="amzn_assoc",c={callbacks:true,link_id:true,show_image:true,viewerCountry:true,link_color:true,campaigns:true,random_permute:true,overwrite:true,replace_items:true,height:true,exp_details:true,adult_content:true,prime:true,emphasize_keywords:true,tag_images:true,header_text_color:true,border_color:true,max_title_height:true,auto_complete:true,size:true,banner_type:true,show_prices_for_new_items_only:true,placement:true,text_color:true,show_prices:true,columns:true,show_border:true,enable_interest_ads:true,service_version:true,carousel:true,URL:true,corners:true,div_name:true,widget_id:true,search_bar:true,browse_node:true,theme:true,override:true,categories:true,tracking_id:true,search_bar_position:true,fallback_products:true,sign_links:true,default_state:true,show_price:true,list_price:true,btn_corners:true,price_color:true,fallback_mode:false,transition:true,url:true,btn_custom_size:true,ad_mode:true,p:true,show_rating:true,bg_color:true,search_index:true,shuffle_tracks:true,textlinks:true,width:true,attributes:true,pharos_list_id:true,isresponsive:true,ad_type:true,ignore_keywords:true,header_style:true,original_ad_mode:true,rating:true,emphasize_categories:true,show_on_hover:true,exclude_items:true,link_style:true,brand_position:true,slotNum:true,marketplace:true,ac_website:true,enable_geo_redirection:true,restrict_categories:true,search_type:true,widget_type:true,btn_size:true,rounded_corners:true,enable_auto_tagging:true,position:true,btn_design:true,region:true,preview:true,treatment_choice:true,exp_override:true,ignore_categories:true,title:true,axf_treatment:true,text_style:true,prb_enable:true,linkid:true,default_search_phrase:true,default_category:true,design:true,default_search_category:true,department:true,aax_test_punt:true,debug:true,search_key:true,exclude_phrases:true,banner_id:true,treatment_override:true,axf_exp_name:true,title_color:true,default_search_key:true,rows:true,asins:true,link_opens_in_new_window:true,custom_button_id:true,pharos_type:true,link_hover_style:true},e=function(){var g,f;for(g in c){if(c.hasOwnProperty(g)){f="amzn_assoc_"+g;if((f in b)&&typeof b[f]!=="undefined"){a[g]=b[f];}}}};a.getAllParamDefs=function(){return c;};a.getPrefix=function(){return d;};a.reset=function(){var h,f;for(h in c){if(c.hasOwnProperty(h)){f="amzn_assoc_"+h;if((f in b)&&typeof b[f]!=="undefined"){b[f]=undefined;try{delete b[f];}catch(g){}}}}};e();a.reset();return a;};window.amzn_assoc_placement="adunit0";window.amzn_assoc_tracking_id="httpwwwidgcsm_cwrec2-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_linkid="25a17e78252fe80625050ed0f54e8b3f";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":"laptops"}');window.amzn_assoc_enable_interest_ads="true";window.amzn_assoc_rows="3";var amzn_assoc_ad_spec=amzn_assoc_ad_spec_type(window);var amzn_assoc_ad_async_spec=(function(){var c={},b=window,d="amzn_assoc",a=function(){var f=0,e=[];if(("amzn_assoc_widgets" in b)&&Object.prototype.toString.call(b.amzn_assoc_widgets)==="[object Array]"){for(f=0;f');}else{document.write('
');}return c+"_"+a;};m.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=Math.random()*16|0,c=a=="x"?b:(b&3|8);return c.toString(16);});};m.reduce=function(d,f,b){var a=f,c;for(c=0;c<\/script>',d=a,g,b=c.getAllParamDefs();for(g in c){if(c.hasOwnProperty(g)&&typeof c[g]!=="function"&&typeof b[g]!=="undefined"&&!o.hasOwnProperty(g)){if(b[g]){d=d+"amzn_assoc_"+g+' = "'+c[g]+'";';}else{d=d+"amzn_assoc_"+g+" = "+JSON.stringify(c[g])+";";}}}d=d+f;return d;};};m.getSynchronousAdCodeJsonGenerator=function(){return function(c){var a,d={},b=c.getAllParamDefs();for(a in c){if(c.hasOwnProperty(a)&&typeof c[a]!=="function"&&typeof b[a]!=="undefined"&&!o.hasOwnProperty(a)){if(b[a]){d[a]=c[a];}else{d[a]=JSON.stringify(c[a]);}}}return d;};};m.getSynchronousAdCodeGeneratorForAdInstance=function(){return function(a,b,d){var c='