/*
<b>EnlargePhoto(mediaUseId,newsUrl)</b>
written by Matthew Martin xx/xx/2003

<b>What does it do?</b>
Pops off (or up) a window and enlarge a photo

<b>How do I use it?</b>
(call to JS file needs to be on a page only once)
&lt;script src="/js/standardFunctionality/STSpecific/EnlargePhoto.js"&gt;&lt;/script&gt; 
&lt;a href="JavaScript:EnlargePhoto('2001886756','/html/localnews/2001886624_guard24.html');"&gt;text&lt;/a&gt;

<i>Parameters:</i>
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();
}
