function P_checkClick(ev,isIframe){if(P_execute){G_.dest="";if(!ev)ev=window.event;var i=0;while(!ev&&i<window.frames.length){try{ev=window.frames[i++].window.event;}catch(exception){}};if(ev){var myObj=G_.ie?ev.srcElement:ev.target;while(myObj.tagName!="A"&&myObj.tagName!="BODY"&&myObj.tagName!="FORM"&&myObj.tagName!="AREA"&&(myObj.parentNode||myObj.parentElement))myObj=G_.ie?myObj.parentElement:myObj.parentNode;if((myObj.tagName=="A"||myObj.tagName=="AREA")&&(!isIframe||(myObj.target=="_parent"||myObj.target=="_top")))G_.dest=myObj.href;};if(G_.dest){G_.dest=G_.dest.toLowerCase();var tempLoc=self.location.pathname.replace(/\x2F/g,"\\\/");tempLoc=tempLoc.replace(/\./g,"\\\.");var toMatch=new RegExp(tempLoc+"\/?(index\.|default\.)?[^.]*#","i");if((G_.dest.search(toMatch)>-1)||(G_.dest.substring(0,4)!="http"))G_.dest="";}}};function P_insetClick(ev){P_checkClick(ev,true);};function P_submit(ev){P_popupoff();if(this.P_onsubmit)return this.P_onsubmit(ev);};function P_insetSubmit(ev){if(this.target=="_parent"||this.target=="_top")P_popupoff();if(this.P_onsubmit)return this.P_onsubmit(ev);};function P_startUp(){document.onclick=P_checkClick;window.onunload=P_closeDown;if(!G_.ignoreFrames){for(var i=0;i<window.frames.length;i++)P_setFrame(i);};P_setForms(document,P_submit);var P_=new P__();if(P_.load.launch())P_.unload.pre(15000);else P_.unload.pre();G_.started=true;};function P_setFrame(i){try{window.frames[i].window.document.onclick=P_insetClick;P_setForms(window.frames[i].window.document,P_insetSubmit);}catch(exception){}};function P_setForms(doc,func){var myForms=doc.getElementsByTagName("form");for(var i=0;i<myForms.length;i++){if(myForms[i].addEventListener)myForms[i].addEventListener('submit',func,false);else{myForms[i].P_onsubmit=myForms[i].onsubmit;myForms[i].onsubmit=func;}}};function P_closeDown(ev){if(G_.started){var P_=new P__();P_.unload.launch();if(G_.onUnload)return G_.onUnload(ev);}};if(self.location.hostname.toLowerCase().indexOf('popsci')==-1){if(P_execute)window.onload=P_startUp;};P_isLoaded=true;

