<!-- hide script from old browsers
/* Change the second image on the page to the passed picture */
function change_image(picture) {
	document.images[1].src = picture;
}

/* Display a popup window */
function showItem(linkTarget) {
	 var itemWindow;
	 var itemWidth=550;
	 var itemHeight = 500;
	 var winLeft = (screen.width-itemWidth)/2;
	 var winTop = (screen.height-itemHeight)/2;
	 var winOptions = "toolbar=no, menubar=no, location=no, menubar=yes, scrollbars=yes, resizable=yes";
	 winOptions += ",width=" + itemWidth;
	 winOptions += ",height=" + itemHeight;
	 winOptions += ",left=" + winLeft;
	 winOptions += ",top=" + winTop;
	 itemWindow = window.open(linkTarget, "itemInfo", winOptions);
	 itemWindow.focus();
}

// Get the product name from the heading and the image name
// to be sent to the request a quote screen
function get_prdname()
{
	<!-- Get the product name from the heading and get the image from the img tag -->
	var pname = document.getElementsByTagName('h2');
	<!-- Replace the # sign with its escaped equivalent so it can be passed in the url -->
	pname = pname[0].innerHTML.replace("#", "%23");
	var command_name = document.getElementById("a1").href + pname;
	var imgname = document.getElementsByTagName('img');

	<!-- Get the third image on the page. The first image is the heading logo. -->
	<!-- The second image is the video clip image -->
	command_name = command_name + "&image=" + imgname[2].src;
	document.getElementById("a1").href = command_name;
}

// end hiding script from old browsers -->


