	function showPoster(n,w,h) {	
		var poster_path = "http://www.generalrubric.com/magicposters/images/", tag;

		tag = "";
		img = poster_path + posters[n];

		if (w && h) {
			tag = "<IMG SRC=\""+img+"\" BORDER=\"NO\" WIDTH=\""+w+"\" HEIGHT=\""+h+"\">";
		}
		else {
			tag = "<IMG SRC=\""+img+"\" BORDER=\"NO\">";
		}
		
		return "<center><a href=\"javascript:fullPoster("+i+",640,480)\">" + tag + "</a><br><font size=\"-1\" face=\"arial,helvetica\">" + poster_names[n]+ "</font><br></center>";
	}

	function fullPoster(n,w,h) {	
		var poster_path = "http://www.generalrubric.com/magicposters/images/", tag, x;

		tag = "";
		img = poster_path + posters[n];

		// if (w && h) {
		//	tag = "<IMG SRC=\""+img+"\" BORDER=\"NO\" WIDTH=\""+w+"\" HEIGHT=\""+h+"\">";
		// }
		// else {
			//tag = "<IMG SRC=\""+img+"\" WIDTH=\"240\" HEIGHT=\"320\" BORDER=\"NO\">";
			tag = "<IMG SRC=\""+img+"\" BORDER=\"NO\">";
		// }

		x = window.open("","viewer","toolbar=no,statusbar=no,menubar=no,width="+w+",height="+h+",scrollbars=yes,resizable=yes");
		x.document.open();
		x.document.write("<HTML><HEAD><TITLE>"+poster_names[n]+"</TITLE><style>A { color: yellow; }</style></HEAD><BODY BGCOLOR=\"BLACK\" TEXT=\"WHITE\"><center>"+tag+"<BR><FONT FACE=\"arial,helvetica\"><b>"+poster_names[n]+"</b>&nbsp;&nbsp;&nbsp;&nbsp;(<i>"+poster_dims[n]+"</i>)&nbsp;&nbsp;&nbsp;&nbsp;"+poster_prices[n]+"<form name=\'cart\'>Quantity:<input type=\'text\' name=\'quantity\' value=\'1\' size=\'1\'><input type=\'hidden\' name=\'price\' value=\'"+poster_prices[n]+"\'><br><p><table cellpadding=\'5\' cellspacing=\'5\'><tr><td><a href=\"javascript:opener.top.saveItem(self,\'"+poster_names[n]+"\')\">Add to Cart</a></td><td><a href=\"javascript:opener.top.removeItem(self,\'"+poster_names[n]+"\')\">Remove from Cart</a></td><td><a href=\"javascript:opener.top.showCart(self)\">View Cart</a></td></table></form></center></FONT></BODY></HTML>");
		x.document.close();
		x.setTimeout("self.focus()",100);
	}
	
	function posterTable() {
		document.write("<table cellpadding=\"20\">\n");

		for (i=0; i<posters.length; i++) {
			if ( ((i % items) == 0) && (i != 0) ) {
				document.write("</tr>\n <tr>\n");
			}

			document.write("\t<td>"+showPoster(i,thumb_x,thumb_y)+"</td>\n");
		}

		document.write("</table>\n");
	}


