var imageonLV  = "'http://img.1percent.com/picts/bull2.gif'";
var imageoffLV = "'http://img.1percent.com/picts/bull2of.gif'";

function ToggleLV(show,image) {
	if(show) {
		eval("document." + image + ".src=" + imageonLV);
	} else {
		eval("document." + image + ".src=" + imageoffLV);	
	}
}

/*

	Author: Matthew R. Villa <matt@1-percent.com>
	Developed For: 1-Percent.com, Inc.
	(c) 2001 1-Percent.com, Inc
	Created: 10.05.2001
	Revised: 10.05.2001
	
	Description:
	This function creates a new window to display a product image.
	It dynamically creates the HTML to display the image, and positions
	the browser-window to the center of the end-user's computer screen.
	
*/

function product_image_popup(img_location, img_width, img_height, product_name) {

	/* Popup window style configuration. */
	var new_win_topmargin = 0;
	var new_win_leftmargin = 0;
	var new_win_marginwidth = 0;
	var new_win_marginheight = 0;
	var new_win_bgcolor = 'FFFFFF';
	var new_win_textcolor = '000000'
	var new_win_title = product_name + ' - Product Image';

	/* Create new window. */
	var win_prop_top = (screen.height - img_height) / 2;
	var win_prop_left = (screen.width - img_width) / 2;
	var window_name = product_name;
	var window_properties = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,' +
				'resizable=1,width=' + img_width + ',height=' + img_height + ',' +
				'top=' + win_prop_top + ',left=' + win_prop_left;
	var window_handler = window.open('', 'product_window', window_properties);
	
	/* Create HTML to display image. */
	window_handler.document.writeln('<html>');
	window_handler.document.writeln('<head>');
	window_handler.document.writeln('<title>' + new_win_title + '</title>');
	window_handler.document.writeln('</head>');
	window_handler.document.writeln('<body bgcolor="#' + new_win_bgcolor + '" text="#' + new_win_textcolor + '" topmargin="' + new_win_topmargin + '" leftmargin="' + new_win_leftmargin + '" marginwidth="' + new_win_marginwidth + '" marginheight="' + new_win_marginheight + '">');
	window_handler.document.writeln('<a href="javascript:self.close()"><img src="' + img_location + '" width="' + img_width + '" height="' + img_height + '" alt="' + product_name + '" border="0" galleryimg="no"></a>');
	window_handler.document.writeln('</body>');
	window_handler.document.writeln('</html>');
	
}
