
descriptions['intro'] = outlinetop + "<div class='generalDescription'><p align='center' width='100%'><img src='/images/logo_home.gif' /></p><p>&nbsp;&nbsp;&nbsp;&nbsp;<b>To order coffee:</b> Choose a coffee from the list on the right. The coffee description will appear here, in this box. Choose quantity and grind, then click the &quot;BUY&quot; button to add the coffee to your order. When you are ready to pay for your order, click the &quot;CHECKOUT&quot; button, above.</p></div>" + outlinebot;

function storeinit() {
	ready = true;
	nav1Default = 1;
	nav2Default = 1;
	resizeToMinimum(819,474);
	updateClientDimensions();

// note that these store pages use a method of centering different from the rest of the site
	wholeBox = new layerObject('wholeBox',new Point(Math.max(10,parseInt((sw/2)-396)),Math.max(50,parseInt(sh/2)-170),1),new Array());
	popform = new layerObject('popform',new Point(0,0,20),new Array('wholeBox'));
	ULDesc = new layerObject('ULDesc',new Point(0,0,20),new Array('wholeBox'));
	orderStatus = new layerObject('orderStatus',new Point(0,0,20),new Array('wholeBox'));
	orderSummary = new layerObject('orderSummary',new Point(0,0,20),new Array('wholeBox'));

	wholeBox.draw();
	wholeBox.show();
	popDesc('intro');
	}

function formpop(PLU) {
	if (ready) {
		var item = product[PLU];
		formcode = '<table border=0 cellpadding=0 cellspacing=0 WIDTH=298 height="300"><TR><TD width=298 ALIGN="center"';
		formcode += ((item['BACKGROUNDIMAGE'].length > 0)?' style="background-repeat:no-repeat;background-position:center center;background-image:url(/images/products/'+ item['BACKGROUNDIMAGE'] + ');"':'');
		formcode += '><img src="';
		formcode += ((item['IMAGES'].length > 0)?'/images/products/'+ item['IMAGES'][0]:'/images/coffee_bag.jpg');
		formcode += '" ><br><img src="/images/t.gif" width="1" height="10"></TD></TR><tr><td bgcolor="#FF9933"><span class="prodTitle">&nbsp;';
		formcode += unescape(item['NAME']);
		formcode += '</span></TD></TR><TR><TD style="padding:0px 0px 0px 5px;"><img src="/images/t.gif" width="1" height="5"><br>';
		formcode += '<span class="generalDescription">' + item['DESCRIPTION'] + '</span></TD></TR><TR><TD ALIGN="center"><img src="/images/t.gif" width="1" height="5"><br>';
		formcode += '<span class="subhead"><b>Price: $';
		formcode += item['PRICE'] + '/' + item['UNITS'](false);
		formcode += '</b></span></TD></TR><TR><TD ALIGN="center" valign="top">';
		formcode += ' <table cellpadding="0" cellspacing="0" border="0"><tr valign="top">';
		formcode += ' <td>';
		formcode += '<form name="ITEM"><input type="hidden" name="PLU" value="';
		formcode += PLU;
		formcode += '"><input type="hidden" name="TYPE" value="coffee"><input type="hidden" name="UNITS" value="';
		formcode += item['UNITS'](false);
		formcode += '"><input type="hidden" name="PRODNAME" value="';
		formcode += item['NAME'];
		formcode += '"><input type="hidden" name="PRICE" value="';
		formcode += item['PRICE'];
		formcode += '"><input type=hidden name="UNITWEIGHT" value="';
		formcode += item['UNITWEIGHT'];
		formcode += '"><SELECT NAME="QUANTITY" class="sboxes"><OPTION value="0.25">1/4 lb.</OPTION><OPTION value="0.5">1/2 lb.</OPTION><OPTION SELECTED value="1">1 lb.</OPTION><OPTION value="2">2 lbs.</OPTION><OPTION value="3">3 lbs.</OPTION><OPTION value="4">4 lbs.</OPTION><OPTION value="5">5 lbs.</OPTION></SELECT></form></td><td>&nbsp;</td>';
		formcode += ' <td><form name="OPTIONS"><SELECT NAME="GRIND" class="sboxes"><OPTION value="whole bean" SELECTED>whole bean</OPTION><OPTION value="drip">drip</OPTION><OPTION value="coarse">coarse</OPTION><OPTION value="fine">fine</OPTION><OPTION value="espresso">espresso</OPTION></SELECT></form></td>';
		formcode += ' <td><a href="#" onclick="document.ITEM.PRICE.value=figurePrice(document.ITEM.PRICE.value,document.ITEM.QUANTITY.options[document.ITEM.QUANTITY.options.selectedIndex].value,document.ITEM.TYPE.value); document.ITEM.UNITS.value=((parseFloat(document.ITEM.QUANTITY.options[document.ITEM.QUANTITY.options.selectedIndex].value)>1)?\''+item['UNITS'](true)+'\':\''+item['UNITS'](false)+'\'); parent.popformsub(document.ITEM,document.OPTIONS); return false;"><img src="/images/buy_button_2.gif" width="40" height="20" border="0"></a></td>';
		formcode += ' </tr></table>';
		formcode += '</td></tr></table>';
		ULDesc.hide();
		orderSummary.hide();
		popform.write(outlinetop + formcode + outlinebot);
		popform.show();
		}
	else {
		window.status = "Just a moment - page still loading ...";
		}
	return false;
	}
function formpopgreen(PLU) {
	if (ready) {
		var item = product[PLU];
		formcode = '<table border=0 cellpadding=0 cellspacing=0 WIDTH=298><TR><TD width=298 ALIGN="center"><img src="/images/coffee_bag.jpg" width="63" height="115"><br><img src="/images/t.gif" width="1" height="10"></TD></TR><tr><td bgcolor="#FF9933"><span class="prodTitle">&nbsp;';
		formcode += unescape(item['NAME']);
		formcode += '</span></TD></TR><TR><TD><img src="/images/t.gif" width="1" height="5"><br>';
		formcode += '<span class="generalDescription">' + item['DESCRIPTION'] + '</span></TD></TR><TR><TD ALIGN="center"><img src="/images/t.gif" width="1" height="5"><br>';
		formcode += '<span class="subhead"><b>Price: $';
		formcode += item['PRICE'] + '/' + item['UNITS'](false);
		formcode += '</b></span></TD></TR><TR><TD ALIGN="center" valign="top">';
		formcode += ' <table cellpadding="0" cellspacing="0" border="0"><tr valign="top">';
		formcode += ' <td>';
		formcode += '<form name="ITEM"><input type="hidden" name="PLU" value="';
		formcode += PLU;
		formcode += '"><input type="hidden" name="TYPE" value="coffee"><input type="hidden" name="UNITS" value="';
		formcode += item['UNITS'](false);
		formcode += '"><input type="hidden" name="PRODNAME" value="';
		formcode += item['NAME'];
		formcode += '"><input type="hidden" name="PRICE" value="';
		formcode += item['PRICE'];
		formcode += '"><input type=hidden name="UNITWEIGHT" value="';
		formcode += item['UNITWEIGHT'];
		formcode += '"><SELECT NAME="QUANTITY" class="sboxes"><OPTION value="0.25">1/4 lb.</OPTION><OPTION value="0.5">1/2 lb.</OPTION><OPTION SELECTED value="1">1 lb.</OPTION><OPTION value="2">2 lbs.</OPTION><OPTION value="3">3 lbs.</OPTION><OPTION value="4">4 lbs.</OPTION><OPTION value="5">5 lbs.</OPTION></SELECT></form></td><td>&nbsp;</td>';
		formcode += ' <td><a href="#" onclick="document.ITEM.PRICE.value=figurePrice(document.ITEM.PRICE.value,document.ITEM.QUANTITY.options[document.ITEM.QUANTITY.options.selectedIndex].value,document.ITEM.TYPE.value); document.ITEM.UNITS.value=((parseFloat(document.ITEM.QUANTITY.options[document.ITEM.QUANTITY.options.selectedIndex].value)>1)?\''+item['UNITS'](true)+'\':\''+item['UNITS'](false)+'\'); parent.popformsub(document.ITEM); return false;"><img src="/images/buy_button_2.gif" width="40" height="20" border="0"></a></td>';
		formcode += ' </tr></table>';
		formcode += '</td></tr></table>';
		ULDesc.hide();
		orderSummary.hide();
		popform.write(outlinetop + formcode + outlinebot);
		popform.show();
		}
	else {
		window.status = "Just a moment - page still loading ...";
		}
	return false;
	}
