//
// Javascript file for UltimateReef.com Articles
//

			var currentTime = new Date()
			var year = currentTime.getFullYear()

  	  //, imgTitle, imgDescription, imgHeight, imgWidth
      function popUp(imgName, imgTitle, imgDescription, imgWidth, imgHeight) {
        var winWidth = imgWidth + 65;
        var winHeight = imgHeight + 220;
        var popUpWindow=window.open('','name','width='+ winWidth +',height='+ winHeight +',menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
        popUpWindow.document.write('<html><head><title>'+ imgTitle +' | Articles | UltimateReef.Com</title>');
        popUpWindow.document.write('<STYLE type="text/css">');
        popUpWindow.document.write('  BODY { FONT-SIZE: 9pt; BACKGROUND: url("images/template/background.gif") #ffffff; MARGIN: 10px; CURSOR: default; COLOR: #000000; FONT-FAMILY: arial, verdana; }');
        popUpWindow.document.write('  DIV.image {background-color: black; color: white; border: 5px solid black; font-size: 11pt; width: '+ imgWidth +'px;}');
        popUpWindow.document.write('  DIV.close {background-color: ; color: black; border: 5px transparent; font-size: 9pt; width: '+ imgWidth +'px; text-align: center;}');
        popUpWindow.document.write('  DIV.copyright {background-color: ; color: black; border: 5px transparent; font-size: 8pt; width: '+ imgWidth +'px; text-align: center;}');
        popUpWindow.document.write('  A {text-decoration: none;}');
        popUpWindow.document.write('</STYLE>');
        popUpWindow.document.write('</head><body>');
        popUpWindow.document.write('<div class="image"><img onClick="javascript:self.close();" style="cursor: pointer;" src="images/original/'+imgName+'" border="0"><br><b>'+imgTitle+':</b> '+imgDescription+'</div>');
        popUpWindow.document.write('<div class="close"><br><a href="javascript:self.close();">Close</a> the image.</div>');
        popUpWindow.document.write('<div class="copyright"><br>Copyright &copy; ' + year + ' UltimateReef.com</div>');
        popUpWindow.document.write('</body></html>');
        popUpWindow.document.close();
        popUpWindow.resizeTo(winWidth,winHeight);
        popUpWindow.focus();
      }

      function modifiedDate() {
      	if (Date.parse(document.lastModified) != 0) {
      		var modiDate = new Date(document.lastModified);
      		var monthName = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
      		document.write(monthName[modiDate.getMonth()] + " " +	modiDate.getDate() + ", " + modiDate.getFullYear());
        }
      }

