/* set array length */
var profiles = new Array(14);

/* create 2 dimensional array - thank javascript for not supporting it natively */
for(i=0;i<profiles.length;i++){
	profiles[i] = new Array();
}

/* the profiles */
profiles[0][0] = "WPA_img_DiaLabelChar.gif";
profiles[0][1] = "Diamond Label Chardonnay - ";
profiles[0][2] = "Peachy tropical fruit and melon characters on the nose, with a hint of citrus freshness...";
profiles[0][3] = siteRoot + "wine_list/diamond_label/chardonnay/index.htm";

profiles[1][0] = "WPA_img_DiaLabelShir.gif";
profiles[1][1] = "Diamond Label Shiraz - ";
profiles[1][2] = "Delicious aroma of warm, spicy liquorice and brambly berry fruit...";
profiles[1][3] = siteRoot + "wine_list/diamond_label/shiraz/index.htm";

profiles[2][0] = "WPA_img_blendLabelTramRies.gif";
profiles[2][1] = "Blend Label Traminer Riesling - ";
profiles[2][2] = "An expressive, medium-dry wine, packed with grapey, fresh fruit flavours...";
profiles[2][3] = siteRoot + "wine_list/blend_label/traminer_riesling/index.htm";

profiles[3][0] = "WPA_img_blendLabelShirCab.gif";
profiles[3][1] = "Blend Label Shiraz Cabernet - ";
profiles[3][2] = "Brightly flavoured, lively wine than can be enjoyed lightly chilled in the summer months...";
profiles[3][3] = siteRoot + "wine_list/blend_label/shiraz_cabernet/index.htm";

profiles[4][0] = "WPA_img_balmoralSyrah.gif";
profiles[4][1] = "Balmoral Syrah - ";
profiles[4][2] = "Made from grapes grown in 50-100 year old vineyards...";
profiles[4][3] = siteRoot + "wine_list/flagship/balmoral_syrah/index.htm";

profiles[5][0] = "WPD_img_RoxburghChar.gif";
profiles[5][1] = "Roxburgh Chardonnay - ";
profiles[5][2] = "Hand harvested from one of Australia's oldest Chardonnay vineyards...";
profiles[5][3] = siteRoot + "wine_list/flagship/roxburgh_chardonnay/index.htm";

profiles[6][0] = "WPA_img_HOGShir.gif";
profiles[6][1] = "Hill of Gold Shiraz - ";
profiles[6][2] = "Velvety, ripe fine-grained tannins, combining well with the oak and spicy fruit...";
profiles[6][3] = siteRoot + "wine_list/hill_of_gold/shiraz/index.htm";

profiles[7][0] = "WPA_img_HOGChar.gif";
profiles[7][1] = "Hill of Gold Chardonnay - ";
profiles[7][2] = "Finely integrated, long finish and delivering terrific drinking satisfaction in the glass...";
profiles[7][3] = siteRoot + "wine_list/hill_of_gold/chardonnay/index.htm";

profiles[8][0] = "WPA_img_RMEtrad.gif";
profiles[8][1] = "Rosemount Estate Traditional -";
profiles[8][2] = "Won the 2002 Jimmy Watson Memorial Trophy at the Royal Melbourne Wine Show...";
profiles[8][3] = siteRoot + "wine_list/epicurean/cabernet_sauvignon/index.htm";

profiles[9][0] = "WPA_img_OrangeVineyardChar.gif";
profiles[9][1] = "Orange Vineyard Chardonnay - ";
profiles[9][2] = "A crisp, natural acidity with fresh grapefruit and peach flavours...";
profiles[9][3] = siteRoot + "wine_list/orange_vineyard/chardonnay/index.htm";

profiles[10][0] = "WPA_img_OrangeVineyardShir.gif";
profiles[10][1] = "Orange Vineyard Shiraz - ";
profiles[10][2] = "Aged for two years in French oak barrels, the lifted perfumed spices on the nose...";
profiles[10][3] = siteRoot + "wine_list/orange_vineyard/shiraz/index.htm";

profiles[11][0] = "WPA_img_DiaLabelSang.gif";
profiles[11][1] = "Diamond Label Sangiovese - ";
profiles[11][2] = "Great complement to food with subtle but complex flavours...";
profiles[11][3] = siteRoot + "wine_list/diamond_label/sangiovese/index.htm";

profiles[12][0] = "WPD_img_ShowResChar.gif";
profiles[12][1] = "Show Reserve Chardonnay - ";
profiles[12][2] = "Benchmark Hunter Valley Chardonnay, the wine offers ripe, peachy fruit...";
profiles[12][3] = siteRoot + "wine_list/show_reserve/chardonnay/index.htm";

profiles[13][0] = "WPD_img_ShowResCabSauv.gif";
profiles[13][1] = "Show Reserve Cabernet Sauvignon - ";
profiles[13][2] = "A classic wine from the famous terra rossa soils of South Australia's Coonawarra...";
profiles[13][3] = siteRoot + "wine_list/show_reserve/cabernet_sauvignon/index.htm";

/* someone set us up the bomb */
function randProfile() {
	var randProfile = Math.floor(Math.random() * profiles.length);
	output = "<h2><img src='images/wine_profile_ads/";
	output += profiles[randProfile][0];
	output += "' width='146' height='40' alt='Wine Profile'></h2><p><strong>";
	output += profiles[randProfile][1];
	output += "</strong> ";
	output += profiles[randProfile][2];
	output += "<br><a href='";
	output += profiles[randProfile][3];
	output += "' class='arrow'>Discover</a></p>";
	document.getElementById("hide-on-page-load").style.display = "none";
	document.write(output);
}
