/* variables section */ // Simple browser detection (seperate into: NS4.x, IE4.x, DOCOM[5+] browsers) var ns = (navigator.appName == 'Netscape'); var gen3 = (parseInt(navigator.appVersion) >= 3 && parseInt(navigator.appVersion) < 4); var ns4 = (ns && parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 5); var ie = (navigator.appName == 'Microsoft Internet Explorer'); var ie3 = (ie && navigator.appVersion < 4); var ie4 = (ie && parseInt(navigator.appVersion) >= 4); var docom = (document.getElementById); var win2k = (navigator.userAgent.indexOf('Windows NT 5.0') != -1); var ie4mac = (ie && !docom && navigator.userAgent.indexOf('Macintosh') != -1); var dhtmlBrowser = (ie4 || ns4 || docom); var win31 = (navigator.appVersion.indexOf("Win16") != -1) var SHOW, HIDE; if (ie4 || docom) { SHOW = "visible"; HIDE = "hidden"; } else if (ns4) { SHOW = "show"; HIDE = "hide"; } // Global variables var path = ""; var winW, winH; var st; var zoomWindow = null; function layerWrite(id,nestref,text) { if (ns4) { var lyr = (nestref)? eval('document.'+nestref+'.document.'+id+'.document') : eval('document.' + id + '.document'); lyr.open(); lyr.write(text); lyr.close(); } else if (ie4) document.all[id].innerHTML = text; } function zoom(img, caption, textsrc) { if (zoomWindow) if (!ns) zoomWindow.close(); zoomWindow = window.open(path+'zoom.html?' + img + '&' + caption + '&' + textsrc, 'zoom', 'top=0,left=50,width=550,height=550,toolbar=0,title=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0'); } function vizElement(eleId, vizProp) { if (docom) document.getElementById(eleId).style.visibility = vizProp; else if (ie4) eval('document.all.' + eleId + '.style.visibility = "' + vizProp + '"'); else if (ns4) eval('document.' + eleId + '.visibility = "' + vizProp + '"'); }