var ga=document.all;
var Discount=0.06;
var DiscountThreshold=12;

// Name of SUBGRoup 0 / TITLE 1 / PICTURE 2 /SCENE 3 / VOLUME 4 / FOOD 5 / NOTES 6 / COST 7 / ALCOHOL 8 / VIEWSTATUS 9 / SALES STATUS 10 / RELEASE STATUS 11
// ViewStatus status of 0 supresses item in displayed cart
// salesStatus status of 1 means FOR SALE and cart buttons will enable for that wine
// Release Status of 1 means it is for the cart but maybe combined with 0 salesstatus we would have a soon to be released
var SECTpictures=new Array('SECwhite.gif','SECreds.gif','SECspark.jpg','SECfort.jpg','SECliqu.jpg','SECoils.jpg');
var SECT=new Array(
new Array(
			new Array('WHITEWINES','2001 CHARDONNAY','2001chard.gif','','750','Grilled reef fish layered with slices of ripe mango.','Barrel fermented and aged in new and one year old French oak. Lovely combination of tropical, melon, and citrus fruits. Balanced with a vanillin, long warm, creamy finish.','15.00','','0','0','1'),
			new Array('WHITEWINES','CHARDONNAY','chardonnay04X2.gif','','750','Grilled lobster, seafood risotto, poached salmon, roast duck, asparagus.','An unwooded chardonnay.  Colour is green gold with an aroma of apricots, and a hint of honey. Palate is creamy, rich, but neither sweet nor cloying. Good acid structure extends the wine to the back palate, giving a long finish. An elegant and beautiful wine that will improve with age.','16.00','','1','1','1'),
			new Array('WHITEWINES','CLASSIC DRY WHITE','classicdryX.gif','','750','Fettuccine tossed with butter and finely chopped fresh sage, grilled swordfish.','An  unwooded blend of chardonnay and Semillon. Less residual sugar than the CLASSIC WHITE. Full flavoured and rich with excellent fruit. Hints of pear, hazelnut, and sweet lemon. Subtle butter notes on the nose let the rich fruit show through, while a crisp acidity brings all the flavours together . A vibrant , well balance wine.','16.00','','1','1','1'),
			new Array('WHITEWINES','CLASSIC WHITE','classicwhiteX.gif','','750','Scallops sautéed with butter and lemon, sushi, oysters, lobster.','A fruit driven blend of chardonnay and Semillon. Lifted citrus and grapefruit zest aromas with floral overtones. A rich crisp palate with lovely fruit and balanced acidity. Hints of marmalade, honey, nougat and dried apricot. A semi - sweet and refined wine that goes well with seafood, and white chocolate.','16.00','','1','1','1')
),
new Array(
		    new Array('REDWINES','2005 "The Patrician" SHIRAZ','PATRICIANSHIRAZ.gif','','750','Lamb with ginger and garlic, or grilled rare beef, or roast venison. Try pouring over fresh strawberries.','Deep magenta crimson hue, almost black. Aroma is graphite, gun-flint, pepper, spice, liquorice, saddle leather and rose petals. The palate is a mirror of the aroma. Good weight, fine oak and tannins. Savoury and rounded. Sweet black fruits, a twist of black pepper ensconced in a creamy flowing palate that is sweetly perfumed. A sensory seductive wine.','35.00','','1','1','1'),
		    new Array('REDWINES','2002 SHIRAZ BIN 15','2002shiraz.gif','','750','Lamb with ginger and garlic, or grilled rare beef, or roast venison. Try pouring over fresh strawberries.','Big, powerful, intense and warm. Fine Oak and Tannins. Wild berry jam and smoke flavours. Silky texture with firm tannic structure. Will peak in about 4 years.','18.00','','0','1','1'),
			new Array('REDWINES','RESERVE CABERNET SAUVIGNON','2002cabsavX.gif','','750','Char grilled rib eye steak will turn this wine into a celebration.','A big round succulent wine. Aroma of sour black cherries, blackberries, hints of coffee bean, dark chocolate, with vanilla and cedar notes. Supple mid palate and a long savoury finish that never seems to end. Well structured with an inner core of intense fruit that will continue to flow over the tannins over the next 6 years.','20.00','','1','1','1'),
			new Array('REDWINES','2002 CABERNET SAUVIGNON BIN 15','2002cabsav.gif','','750','Char grilled rib eye steak will turn this wine into a celebration.','Intense aromas and flavours of cassis and mulberry, with a cedary, chocolatey oak. It will benefit from further bottle age, and will continue to evolve.','18.00','','0','1','1'),
			new Array('REDWINES','CLASSIC DRY RED','classicdryredX.gif','','750','Veal with pork under a rich tuna-anchovy sauce.','A medium bodied blend of Cabernet Sauvignon and Shiraz. Fresh pure layered dark fruit, cedar and spice. Elegant, well balanced. Soft sweet tannin and subtle oak.','16.00','','1','1','1'),
			new Array('REDWINES','CLASSIC RED','classicredX.gif','','750','Serve as an aperitif, or with light deserts, or just by itself. Try with dark, bitter sweet chocolate. Great with spicy Thai curries.','A non-commercial blend of Cabernet Sauvignon and Muscat of Alexandria. The colour is a vibrant crimson. Your nostrils could be arrested for indecent exposure, such is the power of the Muscat aroma. Full bodied, rich and lush in the mouth. Intense and never ending finish. This wine will seduce you before a drop touches your lips. Our biggest selling wine.','16.00','','1','1','1')
),
new Array(
			new Array('SPARKLING','LA DIVINA SPARKLING PINOT CHARDONNAY','ladivinaspaklingpinotchardX.gif','','750','Caviar and lobster anyone?',' \"La Divina\". The divine one. Pale gold. Dry with a complex structure of ruby grape fruit. Flavours of honey, vanilla, apples and cinnamon. Excellent layering and complexity. Creamy texture.  Sublime.','24.00','','1','1','1'),
			new Array('SPARKLING','FORBIDDEN SPARKLING WHITE CABERNET','forbiddensparklingwhitecabX.gif','','750','Enjoy with roast duck breast.',' \"Forbidden fruit\". Slight crimson hue. Exudes elegance and a barely restrained sensuality. Full bodied, aromatic with rich red fruit flavours. Blood orange, cherry, strawberry and plum. Supple and creamy texture. Rich and complex with a long finish.','24.00','','1','1','1'),
			new Array('SPARKLING','IMPERATOR SPARKLING SHIRAZ','imperatorsparklingshirazX.gif','','750','Sweet, tangy Sicilian salad with vine ripened tomatoes, capers, anchovies, and topped with fresh parmesan and basil.',"Richness of flavour and a soft palate. Ripe shiraz fruit, cherries , blackberries , plums, and a hint  of dark chocolate.",'26.00','','1','1','1')
),
new Array(
			new Array('FORTIFIED','TAWNY PORT','PORT.gif','','500','Blue cheese, nutty deserts, tiramisu.','Big tawny port, yet elegant and refined. Aromas of cloves, coffee and some menthol. Long persistent finish. Creamy and minty. Rich Fruit.','20.00','','1','1','1'),
			new Array('FORTIFIED','CABERNET ROYALE (to be released early 2006)','nolabel.gif',' ','500','Chocolate deserts and strong cheeses.','Luscious desert wine made from late picked cabernet sauvignon.','18.00','','0','0','0')

),
new Array(
			new Array('LIQUEUR','PREMIUM LIQUEUR MUSCAT','LIQUEURmuscat.gif','','500','Crème brulee, chocolate tart, crepes suzette.','Made from 60 year old Muscat of Alexandria vines. Luscious and gorgeous. Hints of orange blossom, and spice. Generous full palate with raisin and creamy vanillin flavours. Astringent mouth feel and dry oaky finish.','25.00','','1','1','1'),
			new Array('LIQUEUR','CREAM INDULGENCE','creamindulgenceX.gif','','500','Your main squeeze','Rich, luscious , brandy and cream liqueur. Hint of bitter almond, vanilla ,sweet orange peel. Irresistible. Enjoy straight, on the rocks, in coffee or on your favourite desert. 17% alcohol.','25.00','','1','1','1')
),
new Array(
			new Array('OLIVEOIL','EXTRA VIRGIN OLIVE OIL','VOLIVE.jpg','','500','Wonderful on salads, in home made mayonnaise, bruscetta etc. ','A  blend of Tuscan and Greek varieties including Kalamata, Frantoio and Correggiolo. Robust sweet golden green oil from ripe fruit. Intense aroma of green apple , melon.  Soft baby rocket bitterness and balanced flavours.  Seamless complexity. Persistent finish with light bitterness and pepper.','19.00','','1','1','1')
			)
);

var TotalNumberOfCartItems = 0 ;
for (k=0; k<SECT.length; k++) {TotalNumberOfCartItems = TotalNumberOfCartItems + SECT[k].length};

//  Start of Loading Cart
function LOADcart() {	
	var s = new Array(); //RR used to set Revivebutton function
	for (k=0; k<SECT.length; k++) {
		document.write('<a name="ANCH'+k+'"></a><br><div id="SECTION"><img src="shoppictures/'+SECTpictures[k]+'" width="351" height="85"></div>');
		for (j=0; j<SECT[k].length; j++) {
				var Stg='';
		 	  	s[0]='<table border="0" width="700" cellspacing="0" cellpadding="0"><tr><td valign="top"><img src="shoppictures/'+SECT[k][j][2]+'" class="picpad"></td>';
				if (SECT[k][j][10] != '1'  && SECT[k][j][11] =='1') {s[1]='<div id="SO"></div>'} else {s[1]=''};		
          		s[2]='<td valign="top"><p><span class="WINETITLE">'+SECT[k][j][1]+'</span></p>';
          		s[3]='<p><span class="START">'+SECT[k][j][6].substr(0,1)+'</span><span class="standard">'+SECT[k][j][6].substr(1)+'</span></p>';
		   		s[4]='<p><span class="standard"><em>'+SECT[k][j][3]+'</em></span></p>';
		   		s[5]='<p><strong>FOOD MATCH: </strong>'+SECT[k][j][5]+'</span></p>';
           		s[6]='<p><span class="standard"><strong>PRICE:</strong> $'+SECT[k][j][7]+'inc GST         <strong>VOLUME:</strong> '+SECT[k][j][4]+'ml<br></span></p></td></tr>';
           		s[7]='';
           		s[8]='';
           		s[9]='';
           		s[10]='';
           		s[11]='';
           		s[12]=' <tr><td colspan="2" align="center"><img src="shoppictures/line.gif" width="95%" height="25"></td></tr></table>';
				for (i=0; i<s.length; i++) {				
					if (SECT[k][j][9] =='1') {Stg=Stg+s[i]}
					};
				document.write(Stg);
		};
	};
}
