/* EnlargePhoto(mediaUseId,newsUrl) written by Matthew Martin xx/xx/2003 What does it do? Pops off (or up) a window and enlarge a photo How do I use it? (call to JS file needs to be on a page only once) <script src="/js/standardFunctionality/STSpecific/EnlargePhoto.js"></script> <a href="JavaScript:EnlargePhoto('2001886756','/html/localnews/2001886624_guard24.html');">text</a> Parameters: mediaUseId - the oid of the media document you want to enlarge newsUrl - the URL of the news story the photo is associated with */ function EnlargePhoto(mediaUseId,newsUrl) { mediaUseId = mediaUseId.replace(/\./, ""); var windowWidth = 320; var windowHeight = 240; var availableWidth = screen.availWidth; var availableHeight = screen.availHeight; var windowLeft = ((availableWidth - windowWidth) / 2); var windowTop = ((availableHeight - windowHeight) / 2); var url = "http://seattletimes.nwsource.com/cgi-bin/EnlargePhoto.pl?MediaUseId=" + mediaUseId + "&NewsURL=" + newsUrl; photoWindow = window.open(url,mediaUseId,"width=" + windowWidth + ",height=" + windowHeight + ",left=" + windowLeft + ",top=" + windowTop + ",location=no,resizable=yes,scrollbars=yes,toolbar=no"); photoWindow.focus(); }