/* FILE ARCHIVED ON 8:52:37 Jan 12, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 17:32:40 Jul 31, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ function changecss(theClass,element,value) { //documentation for this script at https://webarchive.library.unt.edu/eot2008/20090112085237/http://www.shawnolson.net/a/503/ var cssRules; if (document.all) { cssRules = 'rules'; } else if (document.getElementById) { cssRules = 'cssRules'; } for (var S = 0; S < document.styleSheets.length; S++){ for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) { if (document.styleSheets[S][cssRules][R].selectorText == theClass) { document.styleSheets[S][cssRules][R].style[element] = value; } } } } function swapcss(selector,name,value) { $(selector).css(name,value); } function divSquash(){ var cssRules; if (document.all) { cssRules = 'rules'; }else if (document.getElementById) { cssRules = 'cssRules'; } for (var S = 0; S < document.styleSheets.length; S++){ for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) { var testme = document.styleSheets[S][cssRules][R].selectorText; var testHeight = document.styleSheets[S][cssRules][R].style['height']; if(testme.indexOf("#")>-1 && testHeight == "auto"){ element = testme.replace(/#/,""); if(obj=dge(element)){ if(obj.innerHTML==""){ obj.style.height="0px"; } } } } } } function showCommentDivs(){ changecss('.commenting','display','block'); } function popup(url,height,width,startpop){ if(null==startpop){ var startpop = 'top=30,left=30,screenY=30,screenX=30,scrollbars=yes,toolbar=no,resizable=no'; } var ID = "_blank"; fullpop = 'width='+ width + ',height=' + height + ',' + startpop; window.open(url,ID,fullpop); } function swapDisplay() { // Make sure a hider element exists var hider = event.srcElement.getAttribute("hider"); if (null!=hider) { var el = document.all[hider] if (null!=el) el.style.display = ""==el.style.display ? "block" : "" } } function sampleSwap(divID,newContentDiv){ document.getElementById(divID).innerHTML = copySample(newContentDiv); } function swapDisplay_Button(hider) { if (null!=hider) { var el = document.all[hider] if (null!=el) el.style.display = ""==el.style.display ? "block" : "" } } function swapDisplayByButton(hider) { if (null!=hider) { var el = document.all[hider] if (null!=el) el.style.display = ""==el.style.display ? "block" : "" } } function loopSwapDisplay(hider,count){ for (var i = 0; i < count; i++) { swapDisplayByButton(hider + "_" + i); } } function tabshowhide(DivID,v){ if (document.all) { var obj = document.all[DivID] if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; } obj.display=v; }else{ var obj = document.getElementById(DivID) if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; } obj.display=v; } } function tabswap(groupname,count,selected){ for (var i = 0; i < count; i++) { selected==i? tabshowhide(groupname + "_" + i,'show') : tabshowhide(groupname + "_" + i,'hide') } } function swap_select(selectID){ var y=document.getElementById(selectID).value document.getElementById(selectID).value=y.toUpperCase() } function NewToggleConsole(DivID,iState){ meth = document.body.scrollLeft; var obj = document.getElementById(DivID); var y = 0; obj.style.top = y + "px"; obj.style.left = meth + "px"; obj.style.display = iState ? "block" : ""; obj.style.visibility = "hidden" ? "visible" : "hidden"; obj.style.zIndex = 990; } function ToggleHide(DivID){ var obj = document.getElementById(DivID); obj.style.visibility = "hidden"; obj.style.display = ""; } function ShowDiv(DivID){ var obj = document.getElementById(DivID); obj.style.display = "block"; obj.style.visibility = "visible"; } function checkToggleState(DivID){ var obj = document.getElementById(DivID); if(obj.style.display=="block" || obj.style.visibility == "visible"){ obj.style.visibility = "hidden"; obj.style.display = ""; }else{ obj.style.display = "block"; obj.style.visibility = "visible"; } } function setSelectOptions(selId, optString) { opts = optString.split(","); sel = document.getElementById(selId); sel.options.length = 0; if (opts != "") { for (var i=0; i=0){ jsCode = scriptTags[no].text + '\n'; } else jsCode = scriptTags[no].innerHTML; scriptObj.innerHTML = jsCode; } document.getElementsByTagName("head")[0].appendChild(scriptObj); } $.debug(document.getElementsByTagName("head")[0].innerHTML); } function storeMousePos() { window.Xclick = event.x; window.Yclick = event.y; } function storeMousePosFF(e) { window.Xclick = e.pageX; window.Yclick =e.pageY; } if (!document.all) { window.captureEvents(Event.CLICK); window.onclick=storeMousePosFF; } else { document.onclick=storeMousePos; } if (!document.all) { window.captureEvents(Event.MOUSEMOVE); window.onmousemove=storeMouseMoveFF; } else { document.onmousemove=storeMouseMove; } function showHideComments(blockID,state){ linkDiv = document.getElementById('comment_linkbar_' + blockID ); if(state=="show"){ linkDiv.innerHTML = "