function validate() { var str=""; var elements=document.getElementsByTagName('input'); for(var i=0; i-1 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0; this.ie4=(document.all && !this.dom && !this.opera5)?1:0; this.ie=this.ie4||this.ie5||this.ie6 this.mac=this.agent.indexOf("Mac")>-1 this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; this.ns4=(document.layers && !this.dom)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5) return this } function makeMenu(obj,nest){ nest=(!nest) ? "":'document.'+nest+'.'; this.css= bw.dom? document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0; this.elm= bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; this.ref= bw.dom || bw.ie4? document:bw.ns4?eval(nest+"document.layers." +obj+".document"):0; this.x= bw.ns4?this.css.left:bw.opera5?this.css.pixelLeft:this.elm.offsetLeft; this.y= bw.ns4?this.css.top:bw.opera5?this.css.pixelTop:this.elm.offsetTop; this.height= bw.ns4?this.ref.height:bw.opera5?this.css.pixelHeight:this.elm.offsetHeight; this.hideIt= b_hideIt; this.showIt= b_showIt; this.moveIt= b_moveIt; this.status= 0; return this; } function b_showIt(){this.css.visibility="visible"; this.status=1} function b_hideIt(){this.css.visibility="hidden"; this.status=0} function b_moveIt(x,y){this.x=x; this.y=y; /*this.css.left=this.x+px;*/ this.css.top=this.y+px;} function foldInit() { oFold = new Array(); y = 0; for (var i=0; i-1 && document.getElementById) { scrX= innerWidth; scrY= innerHeight; document.onmousemove=function(){ if(scrXinnerWidth+10 || scrY>innerHeight+10){ scrX = innerWidth; scrY = innerHeight; foldInit(); } }; } foldImg=0 foldinImg=new Image(); foldinImg.src="arrow3.gif" foldoutImg=new Image(); foldoutImg.src="arrow3.gif" foldsubinImg=new Image(); foldsubinImg.src="arrow3.gif" foldsuboutImg=new Image(); foldsuboutImg.src="arrow3.gif" pxbetweenmain = 0 pxbetweensub = 0 mainstayfolded = false substayfolded = false var px = bw.ns4||window.opera?"":"px"; /************************************************\ | KLayers 2.9 | | DHTML Library for Internet Explorer 4.* - 6.*, | | Netscape 4.* - 7.*, Mozilla, Opera 5.* - 7.* | | Copyright by Kruglov S. A. (kruglov.ru) 2002 | \************************************************/ /*** See for description and latest version ***\ \*** http://www.kruglov.ru/klayers/ ***/ function initKLayers(){ isDOM=(document.getElementById)?true:false isOpera=isOpera5=window.opera && isDOM isOpera6=isOpera && window.print isOpera7=isOpera && navigator.userAgent.indexOf("Opera 7") > 0 || navigator.userAgent.indexOf("Opera/7") >= 0 isMSIE=isIE=document.all && document.all.item && !isOpera isNC=navigator.appName=="Netscape" isNC4=isNC && !isDOM isNC6=isMozilla=isNC && isDOM if(!isDOM && !isNC && !isMSIE && !isOpera){ KLayers=false return false } pageLeft=0 pageTop=0 KL_imagePreloaderCount=0 KL_imagePreloaderArray=new Array() KL_imageRef="document.images[\"" KL_imagePostfix="\"]" KL_styleSwitch=".style" KL_layerPostfix="\"]" if(isNC4){ KL_layerRef="document.layers[\"" KL_styleSwitch="" } if(isMSIE){ KL_layerRef="document.all[\"" } if(isDOM){ KL_layerRef="document.getElementById(\"" KL_layerPostfix="\")" } KLayers=true return true } initKLayers() // document and window functions: function getWindowLeft(w){ if(!w) w=self if(isMSIE || isOpera7) return w.screenLeft if(isNC || isOpera) return w.screenX } function getWindowTop(w){ if(!w) w=self if(isMSIE || isOpera7) return w.screenTop if(isNC || isOpera) return w.screenY } function getWindowWidth(w){ if(!w) w=self if(isMSIE) return w.document.body.clientWidth if(isNC || isOpera) return w.innerWidth } function getWindowHeight(w){ if(!w) w=self if(isMSIE) return w.document.body.clientHeight if(isNC || isOpera) return w.innerHeight } function getDocumentWidth(w){ if(!w) w=self var d=w.document if(isMSIE || isOpera7) return d.body.scrollWidth if(isNC) return d.width if(isOpera5) return d.body.style.pixelWidth } function getDocumentHeight(w){ if(!w) w=self var d=w.document if(isMSIE || isOpera7) return d.body.scrollHeight if(isNC) return d.height if(isOpera5) return d.body.style.pixelHeight } function getScrollX(w){ if(!w) w=self if(isMSIE || isOpera7) return w.document.body.scrollLeft if(isNC || isOpera5) return w.pageXOffset } function getScrollY(w){ if(!w) w=self if(isMSIE || isOpera7) return w.document.body.scrollTop if(isNC || isOpera5) return w.pageYOffset } function preloadImage(imageFile){ KL_imagePreloaderArray[KL_imagePreloaderCount]=new Image() KL_imagePreloaderArray[KL_imagePreloaderCount++].src=imageFile } var KL_LAYER=0 var KL_IMAGE=1 function KL_findObject(what,where,type){ var i,j,l,s var len=eval(where+".length") for(j=0;jthis.getWidth()-windowWidth) scrollX=this.getWidth()-windowWidth if(scrollY>this.getHeight()-windowHeight) scrollY=this.getHeight()-windowHeight if(scrollX<0)scrollX=0 if(scrollY<0)scrollY=0 var top=0 var right=windowWidth var bottom=windowHeight var left=0 left=left+scrollX right=right+scrollX top=top+scrollY bottom=bottom+scrollY this.moveTo(windowLeft-scrollX,windowTop-scrollY) this.setClip(top,right,bottom,left) } KLP.scrollBy=KLP.scrollByOffset=function(windowLeft,windowTop,windowWidth,windowHeight,scrollX,scrollY){ var X=-parseInt(this.css.left)+windowLeft+scrollX var Y=-parseInt(this.css.top)+windowTop+scrollY this.scroll(windowLeft,windowTop,windowWidth,windowHeight,X,Y) } KLP.scrollByPercentage=function(windowLeft,windowTop,windowWidth,windowHeight,scrollX,scrollY){ var X=(this.getWidth()-windowWidth)*scrollX/100 var Y=(this.getHeight()-windowHeight)*scrollY/100 this.scroll(windowLeft,windowTop,windowWidth,windowHeight,X,Y) } KLP.write=function(str){ var o=this.object if(isMSIE || isNC6 || isOpera7){ o.innerHTML=str }else if(isNC4){ var d=o.document d.open() d.write(str) d.close() } } KLP.add=function(str){ var o=this.object if(isMSIE || isNC6 || isOpera7){ o.innerHTML+=str }else if(isNC4){ var d=o.document d.write(str) } } // class "KImage": KIP=KImage.prototype function KImage(name){ this.path=KL_getObjectPath(name,false,KL_IMAGE) this.object=eval(this.path) } KIP.isExist=KIP.exists=function(){ return (this.object)?true:false } KIP.getSrc=KIP.src=function(){ return this.object.src } KIP.setSrc=KIP.load=function(url){ this.object.src=url }