/*************************************************************************** Copyright (C) 1999 Thomas Brattli This script is made by Thomas Brattli from www.bratta.com ****************************************************************************/ var n = (document.layers) ? 1:0; var ie = (document.all) ? 1:0; //Cross-browser objects: function makeObj(obj,nest){nest=(!nest) ? '':'document.'+nest+'.'; this.css=(n) ? eval(nest+'document.'+obj):eval('document.all.'+obj+'.style'); this.scrollWidth=n?this.css.document.width:eval(obj+'.offsetWidth'); this.x=(n)? this.css.left:this.css.pixelLeft;this.y=(n)? this.css.top:this.css.pixelTop; this.hideIt=b_hideIt;this.showIt=b_showIt;this.moveIt=b_moveIt;return this;} function b_showIt(){this.css.visibility="visible"};function b_hideIt(){this.css.visibility="hidden"} function b_moveIt(x,y){this.x=x; this.y=y;this.css.left=this.x;this.css.top=this.y;} //Cross-browser objects end var tim; var width=520 //Je weniger umso länger kann der layer scrollen var scrollstep = 10 var timeout = 20 function init(){ oArrowRight=new makeObj('divArrowRight','divCont') oArrowLeft=new makeObj('divArrowLeft','divCont') oArrowRight.moveIt(469,7)//Position Pfeil (horizontal,vertikal) oArrowLeft.moveIt(0,7) oMenu=new makeObj('divMenu','divCont') oMenu.moveIt(0,7) oMenu.showIt() oCont=new makeObj('divCont') // if(n) oCont.moveIt(120,160)//Layerposition für Netscape // else oCont.moveIt(120,150)//Layerposition für Internet-Explorer oCont.showIt() /*oDiv=new Array() //Neues Array fuer Submenu for (i=0;i<=3;i++) { oDiv[i]=new makeObj('divSub'+i, 'divCont.document.divMenu') } */ isinit=true } function mLeft(){ if (!isinit) return; if(!noScroll && oMenu.x-(oMenu.scrollWidth-(width))){ oMenu.moveIt(oMenu.x-scrollstep,oMenu.y) tim=setTimeout("mRight()",timeout) } } function noMove(){ if (!isinit) return; clearTimeout(tim) noScroll=true } /*funktion für Submenu function showDiv(num) { for (i=0;i<=3;i++) { if (i==num) oDiv[i].showIt(); else oDiv[i].hideIt(); } } */ onload=init;