
csPix = new Array("../images/s-toppic2.jpg", "../images/s-toppic3.jpg", "../images/s-toppic1.jpg")
imgCt = csPix.length

function choosePic() {
	if (document.images) {
	randomNum = Math.floor ((Math.random() * imgCt))
	document.topPic.src = csPix[randomNum]
	}
	}

	// added pop-up window code
          function makeWin(url) {
              agent = navigator.userAgent;
              windowName = "Main";
              params  = "";
                  params += "toolbar=0,";
              params += "location=0,";
              params += "directories=0,";
              params += "status=0,";
              params += "menubar=0,";
              params += "scrollbars=yes,";
              params += "resizable=yes,";
              params += "width=590,";
              params += "height=380";
              win = window.open(url, windowName , params);
                  win.focus([true]);
              if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
                  win = window.open(url, windowName , params);
                  win.focus([true]);
              }

              if (!win.opener) {
                  win.opener = window;
              }

          }			
			