// JavaScript Document


// Make a pop-up window function.
function create_window (image, width, height) {

	// Set w & h.
	 width = 500; // + 25; // Add some pixels to the width and height - no keep it cropped.
	 height = 333; // + 50;
	
	//  537 x 333   =  600 x 372
	
	// If the window is already open, resize it to the new dimensions.
	/*if (window.popup_window	 && !window.popup_window.closed) {
		window.popup_window.resizeTo(width, height);
	}*/ 
	
	// Set the window properties.
	var window_specs = "location=no, scrollbars=no, menubars=no, toolbars=no, resizable=yes, left=0, top=0, width=" + width + ", height=" + height;
	
	// Set the URL. 
	var url = "image_window.php?image=" + image;
	
	// Create the pop-up window.
	popup_window = window.open(url, "PictureWindow", window_specs);
	popup_window.focus();
	
} // End of function.


////////////////////////////////////////////////


// Make a pop-up window function for beef packs.
function create_window_beef (image, width, height) {

	// Set w & h.
	 width = 500; // + 25; // Add some pixels to the width and height - no keep it cropped.
	 height = 333; // + 50;
	
	// If the window is already open, resize it to the new dimensions.
	/*if (window.popup_window	 && !window.popup_window.closed) {
		window.popup_window.resizeTo(width, height);
	}*/ 
	
	// Set the window properties.
	var window_specs = "location=no, scrollbars=no, menubars=no, toolbars=no, resizable=yes, left=0, top=0, width=" + width + ", height=" + height;
	
	// Set the URL. 
	var url = "image_window_b.php?image=" + image;
	
	// Create the pop-up window.
	popup_window = window.open(url, "PictureWindow", window_specs);
	popup_window.focus();
	
} // End of function.