// Browser and platform variablesversion = parseFloat(navigator.appVersion);macintosh = navigator.appVersion.indexOf('Mac')>0;windows = navigator.appVersion.indexOf('Win')>0;netscape = navigator.appName.indexOf('Netscape');ie = navigator.appVersion.indexOf("MSIE")>0;ie4 = ie && version>=4 && version<5;ie5 = ie && navigator.appVersion.indexOf('5')>0;// Preloading done herefunction preLoad(imgObj,imgSrc) {	if (document.images) {		eval(imgObj+ ' = new Image()');		eval(imgObj+'.src = "'+imgSrc+'"');	}}// Functions that handles the rolloversfunction imgSwitch(imgName,imgObj) {	if (document.images) {		document.images[imgName].src = eval(imgObj+".src");	}}//  Function that launches popup windows that contain a single image and a close window buttonfunction popIt(thisImg) {		popWindow = window.open("","popWin","width='510',height='430',scrollbars=yes,resizable=no");	popWindow.document.open();	popWindow.document.write('<html>\r');	popWindow.document.write('<head>\r');	popWindow.document.write('<title>jw photo portfolio</title>\r');	popWindow.document.write('</head>\r');	popWindow.document.write('<body bgcolor="#FFFFFF" onBlur="self.close()">\r');	popWindow.document.write('<div align="center"><img src="images/portfolio/'+thisImg+'Zoom.jpg" name="zoom"></div>\r');	popWindow.document.write('<br>\r');	popWindow.document.write('<div align="center"><a href="javascript:self.close()"><img src="images/btnCloseWin.gif" width="123" height="35" name="closeWindow" alt="close window" border="0"></a></div>\r');	popWindow.document.write('</body>\r');	popWindow.document.write('</html>\r');	popWindow.document.close();	popWindow.focus();}
