/*
Name: early.js
Url: http://d1vgw4v7ja2ido.cloudfront.net/-625e91f8eef6824a.js
Generated: 1324155551461780
Files: ['/domain.js', '/visibility.js', '/settings.js', '/event.js', '/prefetch_init.js', '/w2.timing.js', '/early.js']

*/
/quora\.com$/i.test(location.host)?document.domain="quora.com":document.domain=document.domain;;require.install("visibility",function(require,exports,module){function removeClass(a,b){a.className=trimString((" "+(a.className||"")+" ").replace(" "+b+" "," "))}function trimString(a){var b=/^\s+/,c=/\s+$/;return a.trim?a.trim():a.replace(b,"").replace(c,"")}function addClass(a,b){hasClass(a,b)||(a.className=(a.className||"")+" "+b)}function hasClass(a,b){return(" "+(a.className||"")+" ").indexOf(" "+b+" ")!=-1}exports.setVisible=function(a){a?(window.focus(),window.frameElement?addClass(window.frameElement,"maximized"):removeClass(document.body,"minimized")):window.frameElement?removeClass(window.frameElement,"maximized"):addClass(document.body,"minimized")},exports.isVisible=function(){return window.frameElement?hasClass(window.frameElement,"maximized"):!hasClass(document.body,"minimized")},exports.addClass=addClass,exports.hasClass=hasClass,exports.removeClass=removeClass;//*/
});;;require.install("event",function(require,exports,module){exports.add=function(a,b,c){var d;a.addEventListener?a.addEventListener(b,d=function(a){c.call(this,a)===!1&&(a.preventDefault(),a.stopPropagation())},!1):a.attachEvent&&a.attachEvent("on"+b,d=function(b){b=b||window.event;return c.call(b.srcElement||a,b)});return d},exports.remove=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};//*/
});;require.install("prefetch_init",function(require,exports,module){var isVisible=require("visibility").isVisible,cachingEnabled=require("settings").browserCaching,isPrefetched=function(){var a=!1;try{a=!!window.frameElement&&require("visibility").hasClass(window.frameElement,"quora-prefetched")}catch(b){}return a}(),shellWindow=exports.shellWindow=function(){return isPrefetched&&window.parent||window}();if(isPrefetched){var windowManager=shellWindow.require("prefetch",0);require("event").add(document,"click",windowManager.clickHandler),windowManager.cache.changeIframeState(window.frameElement,windowManager.cache.iframeStates.BEGUN_LOADING),cachingEnabled||windowManager.disableCaching()}cachingEnabled&&(function(a,b){a.prompt=function(){if(isVisible())return b.apply(a,arguments)}}(window,window.prompt),function(a,b){a.alert=function(){if(isVisible())return b.apply(a,arguments)}}(window,window.alert),function(a,b){a.confirm=function(){if(isVisible())return b.apply(a,arguments)}}(window,window.confirm),function(a,b){a.a1ert=function(){if(isVisible())return b.apply(a,arguments)}}(window,window.a1ert));//*/
});require("prefetch_init");;_w2timing={},_w2timing.start=+(new Date);;require.install("early",function(require,exports,module){require("domain"),require("prefetch_init"),require("w2.timing");//*/
});
