var main="http://www.pacinlaw.org";function scrIt(){myScroll=new ScrollObj(1,20,188,'track','up','down','drag','conMask','content')}function writeDivs(){var d="";d+="<div id=close style=top:210px;left:315px;width:80px;height:15px;position:absolute;z-index:0><a href=javascript:; onClick=close0a() class=lnk param=#B2A996~#D9A32F~300~300><i>back to main</i></a></div>";d+="<div id=track style=top:11px;left:401px;position:absolute;z-index:0><img src="+main+"/images/body/aw_track.gif width=13 height=177></div>";d+="<div id=up style=top:1px;left:400;position:absolute;z-index:0;cursor:pointer><img src="+main+"/images/body/aw_up.gif width=15 height=8></div>";d+="<div id=down style=top:190px;left:400px;position:absolute;z-index:0;cursor:pointer><img src="+main+"/images/body/aw_dn.gif width=15 height=8></div>";d+="<div id=drag style=top:12px;left:400px;position:absolute;z-index:4;cursor:pointer><img src="+main+"/images/body/aw_drag.gif width=15 height=7></div>";d+="<div id=box style=\"top:0px;left:0px;width:392px;height:195px;position:absolute;z-index:1;background-color:#262626;border-top:#3C3C3C 2px solid;border-right:#494949 2px solid;border-bottom:#494949 2px solid;border-left:#3C3C3C 2px solid\"><img src="+main+"/images/body/aw_back.gif width=388 height=196></div>";d+="<div id=conMask style=top:3px;left:5px;width:386px;height:194px;position:absolute;z-index:1;overflow:hidden>";d+="<div id=content class=scrbox style=top:3px;left:0px;width:386px;position:absolute;z-index:2>";document.write(d)}function open0a(){shDiv2();hdDiv1();hdDiv3()}function close0a(){shDiv1();shDiv3();hdDiv2()}function writeIframe(){var f="";var f="<iframe name=loader src=/audio/"+cut+"_load.html width=100 height=16 border=0 frameborder=0 scrolling=no></iframe>";document.write(f)};var dom=document.getElementById;var iex=document.all;var ns4=document.layers;function addEvent(event,method){this[event]=method;if(ns4) this.captureEvents(Event[event.substr(2,event.length).toUpperCase()])}function removeEvent(event){this[event]=null;if(ns4) this.releaseEvents(Event[event.substr(2,event.length).toUpperCase()])}function getElement(name,nest){nest=nest?"document."+nest+"." : "";var el=dom?document.getElementById(name):iex?document.all[name]:ns4?eval(nest+"document."+name):false;el.css=ns4?el:el.style;el.gettop=function(){return parseInt(el.css.top)||0};el.settop=function(y){el.css.top=ns4?y: y+"px"};el.getHeight=function(){return ns4?el.document.height:el.offsetHeight};el.getClipHeight=function(){return ns4?el.clip.height:el.offsetHeight};el.hideVis=function(){el.css.visibility="hidden"};el.addEvent=addEvent;el.removeEvent=removeEvent;return el}function getYMouse(e){return iex?event.clientY:e.pageY}document.addEvent=addEvent;document.removeEvent=removeEvent;ScrollObj=function(speed,dragHeight,trackHeight,trackObj,upObj,downObj,dragObj,conMaskObj,contentObj){this.speed=speed;this.dragHeight=dragHeight;this.trackHeight=trackHeight;this.trackObj=getElement(trackObj);this.upObj=getElement(upObj);this.downObj=getElement(downObj);this.dragObj=getElement(dragObj);this.conMaskObj=getElement(conMaskObj);this.contentObj=getElement(contentObj,conMaskObj);this.obj=contentObj+"Object";eval(this.obj+"=this");this.tracktop=this.dragObj.gettop();this.trackLength=this.trackHeight-this.dragHeight;this.trackBottom=this.tracktop+this.trackLength;this.conMaskHeight=this.conMaskObj.getClipHeight();this.contentHeight=this.contentObj.getHeight();this.contentLength=this.contentHeight-this.conMaskHeight;this.scrollLength=this.trackLength/this.contentLength;this.scrollTimer=null;if(this.contentHeight<=this.conMaskHeight){this.dragObj.hideVis()}else{var self=this;this.trackObj.addEvent("onmousedown",function(e){self.scrollJump(e);return false});this.upObj.addEvent("onmousedown",function(){self.scroll(self.speed);return false});this.upObj.addEvent("onmouseup",function(){self.stopScroll()});this.upObj.addEvent("onmouseout",function(){self.stopScroll()});this.downObj.addEvent("onmousedown",function(){self.scroll(-self.speed);return false});this.downObj.addEvent("onmouseup",function(){self.stopScroll()});this.downObj.addEvent("onmouseout",function(){self.stopScroll()});this.dragObj.addEvent("onmousedown",function(e){self.startDrag(e);return false});if(iex)this.dragObj.addEvent("ondragstart",function(){return false})}};ScrollObj.prototype.startDrag=function(e){this.dragStartMouse=getYMouse(e);this.dragStartOffset=this.dragObj.gettop();var self=this;document.addEvent("onmousemove",function(e){self.drag(e)});document.addEvent("onmouseup",function(){self.stopDrag()})};ScrollObj.prototype.stopDrag=function(){document.removeEvent("onmousemove");document.removeEvent("onmouseup")};ScrollObj.prototype.drag=function(e){var currentMouse=getYMouse(e);var mouseDifference=currentMouse-this.dragStartMouse;var dragDistance=this.dragStartOffset+mouseDifference;var dragMovement=(dragDistance<this.tracktop)?this.tracktop:(dragDistance>this.trackBottom)?this.trackBottom : dragDistance;this.dragObj.settop(dragMovement);var contentMovement=-(dragMovement-this.tracktop)*(1/this.scrollLength);this.contentObj.settop(contentMovement)};ScrollObj.prototype.scroll=function(speed){var contentMovement=this.contentObj.gettop()+speed;var dragMovement=this.tracktop-Math.round(this.contentObj.gettop()*(this.trackLength/this.contentLength));if(contentMovement>0){contentMovement=0}else if(contentMovement<-this.contentLength){contentMovement=-this.contentLength}if(dragMovement<this.tracktop){dragMovement=this.tracktop}else if(dragMovement > this.trackBottom){dragMovement=this.trackBottom};this.contentObj.settop(contentMovement);this.dragObj.settop(dragMovement);this.scrollTimer=window.setTimeout(this.obj+".scroll("+speed+")",25)};ScrollObj.prototype.stopScroll=function(){if(this.scrollTimer){window.clearTimeout(this.scrollTimer);this.scrollTimer=null}};ScrollObj.prototype.scrollJump=function(e){var currentMouse=getYMouse(e);var dragDistance=currentMouse-(this.dragHeight/2);var dragMovement=(dragDistance<this.tracktop)?this.tracktop:(dragDistance>this.trackBottom)?this.trackBottom:dragDistance;this.dragObj.settop(dragMovement);var contentMovement=-(dragMovement-this.tracktop)*(1/this.scrollLength);this.contentObj.settop(contentMovement)};function fixNetscape4(){if(ns4origWidth!=window.innerWidth||ns4origHeight!=window.innerHeight){window.location.reload()}}if(document.layers){ns4origWidth=window.innerWidth;ns4origHeight=window.innerHeight;window.onresize=fixNetscape4}


