var controlName="NONE";var br;if(navigator.appName=="Netscape"&&navigator.appVersion.charAt(0)=="4"){br="N"}else{if(navigator.appName=="Microsoft Internet Explorer"&&document.all!=null){br="IE"}else{if(navigator.appName=="Netscape"&&document.getElementById!=null&&navigator.appVersion.charAt(0)=="5"){br="N5"}else{br=null}}}var agt=navigator.userAgent.toLowerCase();var is_mac=(agt.indexOf("mac")!=-1);function offsetHeight(D,C,B){if(B==null){B=0}if(D==C){return B}else{B=B+C.offsetTop;var A=C.parentNode;if(A!=null){return offsetHeight(D,A,B)}else{return B}}}function toggleDisplayStyle(J,N){var D=document.getElementById(J);if(D.isDynamic==false){return }var K=document.getElementById("wideContent");var L=document.getElementById("footer");var P=document.getElementById("editorialContent");if(N){if(D.style.display=="block"){return }var B=0;if(L!=null){B=L.offsetTop}var M=0;if(K!=null){M=K.offsetTop}var S=0;if(P!=null){S=P.offsetTop}D.style.display="block";if(P!=null){var F=(S-P.offsetTop)+"px";P.style.top=F}if(K!=null){var O=K.getElementsByTagName("IFRAME");var G=M-K.offsetTop;var F=G+"px";K.style.top=F;if(L!=null){L.style.top=F}if(O.length>0){var E=O[0];var H=document.getElementById("content");var Q="pistolbox";if(br=="IE"){Q="profileDynamicBox"}var R=document.getElementById(Q);if(H!=null&&R!=null){var C=offsetHeight(H,E);var I=offsetHeight(H,R);var T=(I+R.offsetHeight)-C;if(T>0){var A=T+"px";E.style.marginTop=A}}}}else{if(L!=null){var F=(B-L.offsetTop)+"px";L.style.top=F}}}else{D.style.display="none";if(P!=null){P.style.top="0px"}if(K!=null){K.style.top="0px";var O=K.getElementsByTagName("IFRAME");if(O.length>0){var E=O[0];E.style.marginTop="0px"}}if(L!=null){L.style.top="0px"}}}var handleTimerID;var handleTimout=200;function onHandleParent(A){if(controlName!="NONE"){if(br=="IE"){if((document.getElementById("BOXITEMS").value)>2){document.getElementById(controlName).style.visibility="hidden"}}}if(handleTimerID){clearTimeout(handleTimerID)}toggleDisplayStyle(A,true)}function offHandleParent(A){handleTimerID=setTimeout("handleTimeup('"+A+"')",handleTimout)}function onHandleChild(A){if(controlName!="NONE"){if(br=="IE"){if((document.getElementById("BOXITEMS").value)>2){document.getElementById(controlName).style.visibility="hidden"}}}clearTimeout(handleTimerID)}function offHandleChild(A){handleTimerID=setTimeout("handleTimeup('"+A+"')",handleTimout)}function handleTimeup(A){if(controlName!="NONE"){if(br=="IE"){document.getElementById(controlName).style.visibility="visible"}}toggleDisplayStyle(A,false)}function showLayer(B){if(br=="N"){var A=document.layers[B];A.visibility="show"}else{if(br=="IE"){var A=document.all(B);A.style.visibility="visible"}else{if(br=="N5"){var A=document.getElementById(B);A.style.visibility="visible"}else{}}}}function hideLayer(B){if(br=="N"){var A=document.layers[B];A.visibility="hide"}else{if(br=="IE"){var A=document.all(B);A.style.visibility="hidden"}else{if(br=="N5"){var A=document.getElementById(B);A.style.visibility="hidden"}else{}}}}function offLayer(A){timerID=setTimeout("hideLayer('"+A+"');",200)}function reloadPage(init){if(init==true){with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.pgW=innerWidth;document.pgH=innerHeight;onresize=reloadPage}}}else{if(innerWidth!=document.pgW||innerHeight!=document.pgH){location.reload()}}}reloadPage(true);