var browser = navigator.appName;
var version = parseInt(navigator.appVersion);

function openWin(winName, winWidth, winHeight) {
	if ((browser == "Netscape") && (version == 3))  {
		winWidth = winWidth + 22;
		winHeight = winHeight + 31;
	}
	url = (winName + ".asp");
	newWin = window.open(url, winName,"width="+winWidth+",height="+winHeight+",left=20,top=20,scrollbars=0,resizable=0");
}

function launch(newURL, newName, newFeatures, orgName) {
	var remote = open(newURL, newName, newFeatures);
	if (remote.opener == null){
		remote.opener = window;
	}
	remote.opener.name = orgName;
	return remote;
}

var newsPhoto;
function showPhoto(strImage) 
{
	photoswitch = new Image();
	photoswitch.src = "photos/images/large/pic" + strImage + ".jpg";
	if (document.images) {
         document.mainPhoto.src = photoswitch.src;
	}
}

function clickPhoto(strImage,strIssue,strArticle) 
{
	if (!newsPhoto || newsPhoto.closed){
		newsPhoto=open('','','width=600,height=525,status=no,scrollbars=yes,left=20,top=0,menubar=no,resizable=no');
	}
	newsPhoto.location = 'showphoto.asp?image=' + strImage + '&issue=' + strIssue + '&article=' + strArticle;
	setTimeout('newsPhoto.focus();',250);
}