var lang = "en"; //============================================================================================================================= // Function used to detect the type of browser //----------------------------------------------------------------------------------------------------------------------------- function Is() { var agent = navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion); this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1))); this.ns2 = (this.ns && (this.major == 2)); this.ns3 = (this.ns && (this.major == 3)); this.ns4b = (this.ns && (this.minor < 4.04)); this.ns4 = (this.ns && (this.major >= 4)); this.ie = (agent.indexOf("msie") != -1); this.ie3 = (this.ie && (this.major == 2)); this.ie4 = (this.ie && (this.major >= 4)); this.op3 = (agent.indexOf("opera") != -1); this.win = (agent.indexOf("win")!=-1); this.mac = (agent.indexOf("mac")!=-1); this.unix = (agent.indexOf("x11")!=-1); this.gotLayers = (this.ns4 || this.ie4); } var is = new Is(); if(is.ns4) { doc = "document"; sty = ""; } else if(is.ie4) { doc = "document.all"; sty = ".style"; } //============================================================================================================================= //============================================================================================================================= // Function used to preload the images //----------------------------------------------------------------------------------------------------------------------------- var imagesLoaded = 0; var imageArr = new Array(); function PreLoadImages() { for (i=0; i<8; i++) { imageArr[i*10] = new Image(0, 0); imageArr[i*10 + 1] = new Image(0, 0); if (i== 4 || i== 6) end = ""; else end = "-" + lang; imageArr[i*10].src = '/LHD/images/sideBar-' + i + '-off' + end + '.gif'; imageArr[i*10 + 1].src = '/LHD/images/sideBar-' + i + '-on' + end + '.gif'; } myImg = new Image(0,0); myImg = "/LHD/images/popUp-tr.gif" myImg = "/LHD/images/popUp-bl.gif" myImg = "/LHD/images/popUp-br.gif" imagesLoaded = 1; } //============================================================================================================================= //============================================================================================================================= // Function used to change the visibility of a layer and the look of an image //----------------------------------------------------------------------------------------------------------------------------- function PopUpDown(index, pos) { if (is.gotLayers && imagesLoaded) { name = "but" + index; document.images[name].src = imageArr[index*10 + pos].src; currentLayer = eval(doc + '["' + name + 'L"]' + sty); currentLayer.visibility = (pos) ? "visible" : "hidden"; } } //============================================================================================================================= //============================================================================================================================= // Opens a new window with the given paramaters and brings it to focus. //----------------------------------------------------------------------------------------------------------------------------- function NewWindow(newName, newURL) { theNewWindow = window.open(newURL,newName,"width=500,height=550,top=10,left=10,directories=no,hotkeys=no,location=no,menubar=no,resizable=no,scrollbars=no,scrolling=no,status=no,titlebar=no,toolbar=no"); theNewWindow.moveTo(10, 10); theNewWindow.focus(); } //============================================================================================================================= PreLoadImages();