
var applicationPath='/';

/**************************************************************************************************
 *Purpose: The DisplayImage function handles the display of the various enlarged images for the
 *  tech spotlight articles. The image is displayed after a user has clicked one of the small
 *  images. Each enlarged image is displayed in a separate page.
 *
 *Parameters: 
 *  - imageUrl: The Url where the image to be displayed can be found
 *  - imageCaption: The caption to be displayed underneath the image
 *  - width/height: The dimensions of the new window
 *
 *Date: 06/29/07
 **************************************************************************************************/
function DisplayImage(imageUrl, imageCaption, width, height) { 

	var baseUrl=applicationPath + 'spotlight/';
	var url=baseUrl + 'images.aspx?';
	var features='resizable=no';

	//specify the width and the height of the window
	features=features + ', width=' + width;
	features=features + ', height=' + height;
	
	//add the imageUrl and imageCaption query string values
	url=url + 'imageUrl=' + baseUrl + imageUrl;
	url=url + '&imageCaption=' + imageCaption;
	
 	//open the window
	window.open(url,'SpotlightImage', features);	
	
}
		
/**************************************************************************************************
 *Purpose: The DisplayImage function handles the display of the various enlarged images for the
 *  tech spotlight articles. The image is displayed after a user has clicked one of the small
 *  images. Each enlarged image is displayed in a separate page.
 *
 *Parameters: 
 *  - imageUrl: The Url where the image to be displayed can be found
 *  - imageCaption: The caption to be displayed underneath the image
 *  - width/height: The dimensions of the new window
 *
 *Date: 06/29/07
 **************************************************************************************************/
function DisplayPrinter(articlePath) { 

	var url= applicationPath + 'spotlight/printing.aspx?article=' + applicationPath + articlePath;
	var features='resizable=0, scrollbars=1';

 	//open the window
	window.open(url,'PrinterVersion', features);	
	
}
		
