var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /* Mobify *********************************************************************/ var _mm = "http://web.archive.org/web/20120704043400/http://m.wired.com/"; if ( document.domain.indexOf("wired.com") >= 0 ) { var m = document.createElement('script'); m.type = 'text/javascript'; m.async = true; m.src = 'http' + (document.location.protocol[4] == 's' ? 's' : '') + '://m.wired.com/mobify/redirect.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(m, s); } jQuery(function(){ /* Top Nav ********************************************************************/ // Mouseovers jQuery('#pnav_list li a.primaryLink, #pnav_list_test li a.primaryLink').bind('mouseover', function() { jQuery('.dropdownMenu').hide(); jQuery(this).addClass('over'); }).bind('mouseout', function() { jQuery(this).removeClass('over'); }); // Dropdowns for the top nav jQuery('#pn_subscribe_a, #pn_sections, #pn_blogs, #pn_reviews, #pn_sections_test').bind('mouseover', function() { // hide all the menus that may be showing already jQuery('.dropdownMenu').hide(); jQuery(this).find('a').addClass('over'); jQuery(this).find('.dropdownMenu').show(); }); jQuery('#pnav_list, #pnav_list_test').bind('mouseleave', function() { // hide all the menus that may be showing already jQuery('.dropdownMenu').delay(500).fadeOut(200); jQuery('#pnav_list li a').removeClass('over'); }); // Close button on subscribe jQuery('#gh_close_sub_flyout').bind('click', function() { jQuery('.dropdownMenu').fadeOut(200); }); /* Sign In/Sign Out ***********************************************************/ // Check if the user is logged in var username_string = CN.cookie.get('amg_user_info'); if (username_string !== '') { jQuery('#gh_greeting').html('Hi, ' + username_string + ' | Sign Out |'); } else { jQuery('#gh_greeting').html('Sign In |'); } }); /* Text size widget */ function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } function getActiveStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title"); } return null; } function getPreferredStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title")) { return a.getAttribute("title"); } } return null; } /* Reviews */ function resizeImage(img,new_width,new_height) { if(img.width == new_width && img.height == new_height){ img.className = "prod_review_img_on"; return } else { if (jQuery(img).height() > jQuery(img).width()) { var h = new_height; var w = Math.ceil($(img).width() / jQuery(img).height() * new_height); } else { var w = new_width; var h = Math.ceil(jQuery(img).height() / jQuery(img).width() * new_width); } jQuery(img).css({ height: h, width: w }); img.className = "prod_review_img_offset"; } } } /* FILE ARCHIVED ON 04:34:00 Jul 04, 2012 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 15:26:07 Apr 27, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.849 exclusion.robots: 0.097 exclusion.robots.policy: 0.084 cdx.remote: 0.079 esindex: 0.013 LoadShardBlock: 106.526 (3) PetaboxLoader3.resolve: 162.229 (4) PetaboxLoader3.datanode: 64.98 (5) load_resource: 313.383 (2) */