function getAppVersion() { appname = navigator.appName; appversion = navigator.appVersion; majorver = appversion.substring(0, 1); if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1; if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1; return 0; } function swtch(num, imgname) { if (getAppVersion()) { document[imgname].src = img[num].src; } } $MenuItem) { echo('imgsrc['.($Index*2+1).'] = "'.$Config['Web']['BaseURL'].'images/'.$MenuItem[2].'.jpg";'); echo('imgsrc['.($Index*2+2).'] = "'.$Config['Web']['BaseURL'].'images/'.$MenuItem[2].'2.jpg";'); } ?> if (getAppVersion()) { img = new Array(); for (i = 0; i < imgsrc.length; i++) { img[i] = new Image(); img[i].src = imgsrc[i]; } }