var DHTML = (document.getElementById || document.all || document.layers); function getObj(name) { if (document.getElementById) { this.obj = document.getElementById(name); this.style = document.getElementById(name).style; } else if (document.all) { this.obj = document.all[name]; this.style = document.all[name].style; } else if (document.layers) { this.obj = document.layers[name]; this.style = document.layers[name]; } } function link_on(id) { var obj = new getObj(id); obj.style.background = '#FFFFFF'} function link_off(id) { var obj = new getObj(id); obj.style.background = '#E8E8E8'} function arrow_on(id) { var arrow = new getObj(id); arrow.style.visibility= 'visible'; } function arrow_off(id) { var arrow = new getObj(id); arrow.style.visibility= 'hidden'; } function view_D(id) { window.open('?table=ArtistImages&do=thumb&id=' +id, 'Thumb', 'width=495, height=650, scrollbars=no' ); return false; } var detect = navigator.userAgent.toLowerCase(); var OS,browser,version,total,thestring; if (checkIt('konqueror')) { browser = "Konqueror"; OS = "Linux"; } else if (checkIt('safari')) browser = "Safari" else if (checkIt('omniweb')) browser = "OmniWeb" else if (checkIt('opera')) browser = "Opera" else if (checkIt('webtv')) browser = "WebTV"; else if (checkIt('icab')) browser = "iCab" else if (checkIt('msie')) browser = "Internet Explorer" else if (!checkIt('compatible')) { browser = "Netscape Navigator" version = detect.charAt(8); } else browser = "An unknown browser"; if (!version) version = detect.charAt(place + thestring.length); if (!OS) { if (checkIt('linux')) OS = "Linux"; else if (checkIt('x11')) OS = "Unix"; else if (checkIt('mac')) OS = "Mac" else if (checkIt('win')) OS = "Windows" else OS = "an unknown operating system"; } function checkIt(string) { place = detect.indexOf(string) + 1; thestring = string; return place; } // Godamn IE 5 for MAC //alert(browser + "\n" + OS + "\n" + version); if(browser == 'Internet Explorer' ){ if(OS == 'Mac'){ exhibit_x -= 10; gallery_x -= 10; exhibit_y -= 10; gallery_y -= 10; } }