var isDOM=document.getElementById?1:0,isIE=document.all?1:0,isNS4=navigator.appName=='Netscape'&&!isDOM?1:0,isIE4=isIE&&!isDOM?1:0,isOp=self.opera?1:0,isDyn=isDOM||isIE||isNS4;
function getRef(i,p){p=!p?document:p.navigator?p.document:p;
return isIE?p.all[i]:isDOM?(p.getElementById?p:p.ownerDocument).getElementById(i):isNS4?p.layers[i]:null};
function getSty(i,p){var r=getRef(i,p);return r?isNS4?r:r.style:null};
if(!self.LayerObj)var LayerObj=new Function('i','p','this.ref=getRef(i,p);this.sty=getSty(i,p);return this');
function getLyr(i,p){return new LayerObj(i,p)};
function LyrFn(n,f){LayerObj.prototype[n]=new Function('var a=arguments,p=a[0],px=isNS4||isOp?0:"px";with(this){'+f+'}')};LyrFn('x','if(!isNaN(p))sty.left=p+px;else return parseInt(sty.left)');LyrFn('y','if(!isNaN(p))sty.top=p+px;else return parseInt(sty.top)');LyrFn('w','if(p)(isNS4?sty.clip:sty).width=p+px;else return(isNS4?ref.document.width:ref.offsetWidth)');LyrFn('h','if(p)(isNS4?sty.clip:sty).height=p+px;else return(isNS4?ref.document.height:ref.offsetHeight)');LyrFn('vis','sty.visibility=p');
function InlineScrollbox(myName,pageName){this.myName=myName;this.pageName=pageName;this.div=null;this.scrW=this.scrH=this.scrTop=this.scrLeft=0;this.xSpeed=this.ySpeed=this.stepsLeft=0;this.timer=0;InlineScrollbox.list[myName]=this};InlineScrollbox.list=[];
var IsPt=InlineScrollbox.prototype;IsPt.load=function(pageToLoad){with(this){if(!isDyn)return;if(div){(isNS4?div:divCont).vis('hidden');div=null}pageName=pageToLoad;scrollTo(0,0);return}};IsPt.scrollTo=function(xPos,yPos){with(this){if(!pageName||!isDyn)return;if(!div){divCont=getLyr(myName+'-Container'+(isNS4?'':'-'+pageName));if(!divCont.ref)return;if(isNS4)with(divCont.sty.clip){scrW=width;scrH=height}div=getLyr(myName+(isNS4?'-':'-Page-')+pageName,isNS4?divCont.ref:null);if(!div.ref)return;(isNS4?div:divCont).vis('visible');if(isIE)div.ref.onmousewheel=new Function(myName+'.scrollBy(0,event.wheelDelta/-3);return false')}var pagW=div.w(),pagH=(isOp&&!document.documentElement)?div.sty.pixelHeight:div.h();if(navigator.userAgent.indexOf('rv:1.')>0)with(div.ref)for(var i=0;i<childNodes.length;i++)pagW=Math.max(pagW,(childNodes[i].offsetWidth?childNodes[i].offsetWidth:0));scrLeft=Math.max(0,Math.min(xPos,pagW-scrW));div.x(0-parseInt(scrLeft));scrTop=Math.max(0,Math.min(yPos,pagH-scrH));div.y(0-parseInt(scrTop));return}};IsPt.scrollBy=function(xDiff,yDiff){with(this){if(!pageName)return;scrollTo(scrLeft+xDiff,scrTop+yDiff);return}};IsPt.setScroll=function(newX,newY,steps){with(this){if(!pageName||!isDyn)return;stepsLeft=steps;if(timer){clearInterval(timer);timer=null}timer=setInterval('with('+myName+'){if(stepsLeft>0){xSpeed+='+((newX-xSpeed)/steps)+';ySpeed+='+((newY-ySpeed)/steps)+';stepsLeft--}scrollBy(xSpeed,ySpeed)}',50);return}};IsPt.startArea=function(w,h){with(this){scrW=w;scrH=h;document.write('<div style="position:relative;width:'+w+'px;height:'+h+'px;overflow:hidden">')}};IsPt.startPage=function(pN){with(this){document.write('<div id="'+myName+'-Container-'+pN+'" style="position:absolute;width:'+scrW+'px;height:'+scrH+'px;clip:rect(0px '+scrW+'px '+scrH+'px 0px);overflow:hidden;visibility:hidden"><div id="'+myName+'-Page-'+pN+'" style="position:'+(isIE?'absolute':'relative')+'">')}};IsPt.endPage=function(){document.write('</div></div>')};IsPt.endArea=function(){document.write('</div>')};var ilsOL=window.onload,ilsOR=window.onresize,nsWinW=window.innerWidth,nsWinH=window.innerHeight;window.onload=function(){if(ilsOL)ilsOL();
with(InlineScrollbox)for(var s in list)list[s].load(list[s].pageName)};function resizeBugCheck(){if(nsWinW!=innerWidth||nsWinH!=innerHeight)location.reload()};if(isOp&&!document.documentElement&&!self.opFix)self.opFix=setInterval('resizeBugCheck()',500);window.onresize=function(){if(ilsOR)ilsOR();if(isNS4)resizeBugCheck()};
