<?php

	/*
	** File: item_details
	** Description: show large picture of item
	** Version: $Revision: 1.4 $
	** Created: 07/13/1999
	** Author: Leon Atkinson
	** Email: leon@clearink.com
	** CVS Author: $Author: leon $
	** Last Revised: $Date: 2000/03/07 17:26:13 $
	** Log : $Log: item_details,v $
	** Log : Revision 1.4  2000/03/07 17:26:13  leon
	** Log : Added code to get item info, changed require() to include()
	** Log :
	** Log : Revision 1.3  2000/02/01 18:56:11  leon
	** Log : Added code from Isaac Reuben that does better tests for javascript.
	** Log :
	** Log : Revision 1.2  1999/08/18 22:32:18  leon
	** Log : Returning opening PHP tag to XML-friendly tag
	** Log :
	** Log : Revision 1.1  1999/07/28 19:41:11  leon
	** Log : Mass update based on code donation from a live project
	** Log :
	**
	** Copyright (c) 1999 Working Dogs.  All rights reserved.
	*/

	//get item functions
	include(APPLICATION_ROOT . "/modules/include/item_functions");

	//get item info
	$Item = GetItemInfo($item);


	print("<CENTER>");

	print("<B>");
	print($Item["Name"]);
	print("</B>");
	print("<BR>\n");

	//show graphic of product
	$size = getimagesize($Item["LargeGraphic"]);	
	print("<IMG SRC=\"" . $Item["LargeGraphic"] . "\" $size[3] BORDER=\"0\">");	
	print("<BR>\n");

	
	//close window button
	if((GENERATE_BROWSER_CONSTANTS) AND (BROWSER_JAVASCRIPTOK))
	{
		print("<script language=\"Javascript\">\n");
		print("document.writeln('<br>');\n");
		print("document.writeln('<center>');\n");
		print("document.writeln('<a href=\"javascript:window.close();\">Close Window</a>');\n");
		print("document.writeln('</center>');\n");
		print("</script>\n");
	}

?>