if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
{ //IE 6+ in 'standards compliant mode'
	var myWidth = document.documentElement.clientWidth;
	var myHeight = document.documentElement.clientHeight;
}
	else
{
	if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
	{ //IE 4 compatible
		var myWidth = document.body.clientWidth;
		var myHeight = document.body.clientHeight;
	}
}


var newWindow;
function OpenPromoThumb(src, width, height, scrolls)
{

	if (newWindow)
		newWindow.close();

	var properties = "width="+width+", height="+height+", toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars="+scrolls+", resizable=no, top="+(parseInt((myHeight-height)/2))+", left="+(parseInt((myWidth-width)/2));
	newWindow = window.open(src, "PhotoWindow", properties);
	newWindow.focus();

	//return true;
}