<!--
/*
function newImageWindow(href, target, width, height, scroll) {

	if (!scroll) {

		scroll = 'no';

	}


	if (height > 600) {

		width += 17;
		height = 600;
		scroll = 'yes';

	}

	var top = (document.body.clientHeight - height) / 2;
	var left = (document.body.clientWidth - width) / 2;
	top = Math.round(top);

	content = '<title></title><body style="margin: 0; padding: 0"><img src="' + href + '" border="0" style="cursor: pointer" onclick="window.close()"><br>';
	win =  window.open('about:blank', 'new_windows', 'toolbar=no, width=' + width + ', height=' + height + ', top=' + top + ', left=' + left + ', scrollbars=' + scroll + ', status=yes, resizable=yes');
	win.document.open();
	win.document.write(content);

}
*/


function newImageWindow(src, target, width, height) {

	document.all.popup.style.width = document.body.scrollWidth;
	document.all.popup.style.height = document.body.scrollHeight;
	document.all.popup.style.display = '';

	document.all.photo_container.getElementsByTagName('span')[0].innerHTML = '<img src="' + src + '" width="' + width + '" height="' + height + '" id="bPhoto" style="cursor: pointer" onclick="closePhoto()">';

	var top = (document.body.clientHeight - height) / 2 + document.body.scrollTop - 50;
	var left = (document.body.clientWidth - width) / 2 + document.body.scrollLeft;

	if (top < 0) {

		top = 0;

	}

	if (left < 0) {

		left = 0;

	}

	document.all.photo_container.style.top = top;
	document.all.photo_container.style.left = left;
	slideOpacity(20);

}



function slideOpacity(digit) {

	document.all.popup.style.filter = 'alpha(opacity=' + digit + ')';
	document.all.popup.style.opacity = '0.' + digit;

	if (digit < 80) {

		setTimeout('slideOpacity(' + (digit + 10) + ')', '1');

	}

	else {

		document.all.photo_container.style.display = '';

	}

}



function closePhoto() {

	document.all.popup.style.display = 'none';
	document.all.photo_container.style.display = 'none';

}

//-->