// JavaScript Document
	// Start loading the image, save the parameters
	function popupImage(winName, winTitle, imgPath){
		img = new Image();
		img.src = imgPath;
		imagePath = imgPath;
		windowName = winName;
		windowTitle = winTitle;
		if(document.images && !(navigator.appName.indexOf("Microsoft") != -1 && navigator.appVersion.indexOf("Mac") != -1)) {
			checkLoad();
		} else {
			showWindow();
		}
	}

	// Is the image loaded yet?
	function checkLoad(){
		if(img.complete)
		{
			showPopup();
		} else {
			timerID = window.setTimeout('checkLoad()',100);
		}
	}

	// Show the popup
	function showPopup()
	{
		popupWin = window.open("", windowName, 'height=' + img.height + ',width=' + img.width);
		popupWin.document.open();
		popupWin.document.writeln("<html><head><title>"+windowTitle+"</title></head><body background="+imagePath+"></body>");
		popupWin.document.close();
	}

	// Show resizable window with scrollbars & centered image
	function showWindow()
	{
		imageWin = window.open("", windowName, 'height=800,width=600,scrollbars,resizable');
		imageWin.document.open();
		imageWin.document.writeln("<html><head><title>"+windowTitle+"</title></head><body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'><img src="+imagePath+"></body>");
		imageWin.document.close();
	}


//

//Detect Browser

var effect='false'

var smallerWin =null;

function morePop(src,nme,wdth,hght,lft,tp) {

 if (smallerWin == null)

  {

  stuff = '\'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width=' + wdth + ',height=' + hght + ',left=' + lft +',top=' + tp + '\''

  smallerWin = window.open(src,nme, stuff);

  smallerWin = null

  }

  else

  {

    smallerWin.Focus()

   }

}
