//  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;//  function that launches popup windows that contain a single image and a close window buttonfunction popIt(winWidth,winHeight,imageSrc,imageWidth,imageHeight) {	if (macintosh && ie5) {		newWidth = winWidth;		newHeight = winHeight;	}	else {	  newWidth = parseInt(winWidth) + 17;	  newHeight = parseInt(winHeight) + 17;	}		imageNameBegin = imageSrc.lastIndexOf('/')+1;	imageNameEnd = imageSrc.length-4;	imageName = imageSrc.substring(imageNameBegin, imageNameEnd);		popWindow = window.open("","popWin","width="+newWidth+",height="+newHeight+",scrollbars=yes,resizable=no");	popWindow.document.open();	popWindow.document.write('<html>\r');	popWindow.document.write('<head>\r');	popWindow.document.write('<title>briandominguez.com :: photos</title>\r');	popWindow.document.write('</head>\r');	popWindow.document.write('<body bgcolor="#36414B" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">\r'); 	popWindow.document.write('<img src="'+imageSrc+'" width="'+imageWidth+'" height="'+imageHeight+'" name="'+imageName+'">\r');	popWindow.document.write('<br>\r');	popWindow.document.write('<br>\r');	popWindow.document.write('&nbsp;&nbsp;&nbsp;<a href="javascript:self.close()"><img src="../images/btnCloseWin.gif" width="131" height="26" name="closeWindow" alt="close window" border="0"></a>\r');	popWindow.document.write('<br>\r');	popWindow.document.write('<br>\r');	popWindow.document.write('</body>\r');	popWindow.document.write('</html>\r');	popWindow.document.close();	popWindow.focus();}// Functions that handles the rolloversfunction imgSwitch(imgName,imgObj,msg) {	if (document.images) {		document.images[imgName].src = eval(imgObj+".src")		window.status=(msg) ? msg : ''; return true;	}}// Reloads the window if Nav4 resizedfunction MM_reloadPage(init) {    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);// Preloading done herefunction preLoad(imgObj,imgSrc) {	if (document.images) {		eval(imgObj+ ' = new Image()');		eval(imgObj+'.src = "'+imgSrc+'"');	}}