function _newWin( newURL ) {
	nWide = 750;
	xPosition = ( screen.width - nWide ) / 2 - 10;
	if ( screen.width <= ( nWide + 20 ) ) {
		nWide = screen.width - 40;
		xPosition = 0;
	}
	nHigh = screen.height - 40;
	yPosition = 0;

	args = "width=" + nWide + "," 
	+ "height=" + nHigh + "," 
	+ "location=no," 
	+ "menubar=no,"
	+ "resizable=yes,"
	+ "scrollbars=yes,"
	+ "status=no," 
	+ "titlebar=no,"
	+ "toolbar=no,"
	+ "hotkeys=no,"
	+ "screenx=" + xPosition + ","  //NN Only
	+ "screeny=" + yPosition + ","  //NN Only
	+ "left=" + xPosition + ","     //IE Only
	+ "top=" + yPosition;           //IE Only
	
	newWindow = window.open( newURL, 'newWindow', args );
	newWindow.focus();
}

function _hideComments () {
	if ( boxNumber > -1 ) {
		document.getElementById( 'box' +  boxNumber ).style.visibility = "hidden";
	}
	boxNumber = -1;

	for ( i = 1; i < commentCount; i++ ) {
		id = "comment_" + i;
		document.getElementById( id ).style.display = 'none';
	}
	for ( i = 0; i < imageCount; i++ ) {
		id = "image_" + i;
		document.getElementById( id ).style.display = 'none';
	}
	document.getElementById('intro').style.display = 'none';
	document.getElementById('images').style.display = 'none';
}

function _checKey ( thisEvent ) {
	keyCode = ( navigator.appName == "Netscape" ) ? thisEvent.which : thisEvent.keyCode;
	if (( keyCode == 67 ) || ( keyCode == 99 )) {						// key = c or C
		for ( i = 1; i < commentCount; i++ ) {
			id = "comment_" + i;
			document.getElementById( id ).style.display = 'block';
		}
		for ( i = 0; i < imageCount; i++ ) {
			id = "image_" + i;
			document.getElementById( id ).style.display = 'block';
		}
		document.getElementById('intro').style.display = 'block';
		document.getElementById('images').style.display = 'block';
	}
}

