
//-----------------------------------------------------------------------------
// This code is used by the Case Study pages to popup a larger version
// of the case study thumbnails.
//
// It assumes all full-sized images are named full_ImgName where "ImgName" matches
// the name of the corresponding thumbnail img.
//-----------------------------------------------------------------------------
function csThumbPop( thumbSrc )
{
	var strPageTitle = "Image";
	var strTargetPg = "../common/csPop.php?ImgSrc=";	
	
	// Use the Thumbnail's src attribute to build the Full-sized img's src attribute.
	// Pass the Full-sized img's src to the popup pg via the URL
	var strImgSrc = thumbSrc;
	strImgSrc = strImgSrc.replace( 'thumb_', 'full_' );
	strTargetPg += strImgSrc;
	
	// Define the window's attributes
	var strWindowAttributes = 'width=300,height=300,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no';
	
	// Open the window (duh)
	window.open( strTargetPg, strPageTitle, strWindowAttributes );
}
