var o;
function PLX_obj(n, d) {
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=plxObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function PLX_loadMenus() {
	if (window.fw_menu_0) return;
	window.fw_menu_0=new Menu("root",104,16,"Verdana, Arial, Helvetica, sans-serif",9,"#ffffff","#ffffff","#0069d1","#000000");
	fw_menu_0.addMenuItem("Vodka","location='http://www.distillery.com.au/vodka.aspx?_ItemType=3'");
	fw_menu_0.addMenuItem("Whisky","location='http://www.distillery.com.au/whisky.aspx?_ItemType=2'");
	fw_menu_0.addMenuItem("Gin","location='http://www.distillery.com.au/gin.aspx?_ItemType=1'");
	fw_menu_0.addMenuItem("Brandy","location='http://www.distillery.com.au/brandy.aspx?_ItemType=5'");
	fw_menu_0.addMenuItem("Grappe (Aquavit)","location='http://www.distillery.com.au/Aquavit.aspx?_ItemType=4'");
	fw_menu_0.addMenuItem("Barrels","location='http://www.distillery.com.au/barrels.aspx'");
	fw_menu_0.fontWeight="bold";
	fw_menu_0.hideOnMouseOut=true;
	window.fw_menu_1=new Menu("root",65,16,"Verdana, Arial, Helvetica, sans-serif",9,"#ffffff","#ffffff","#0069d1","#000000");
	fw_menu_1.addMenuItem("Subscribe","location='http://www.distillery.com.au/subscribe.aspx'");
	fw_menu_1.fontWeight="bold";
	fw_menu_1.hideOnMouseOut=true;
	fw_menu_1.writeMenus();
}
function PLX_showMenu(oMenu,sID)
{
	var o = PLX_obj(sID);
	var nLeft = 1, nTop = o.offsetHeight;
	if (o.offsetParent) {
		while (o.offsetParent) {
			nLeft += o.offsetLeft;
			nTop += o.offsetTop;
			o = o.offsetParent;
		}
	}
	else if (o.x) {
		nLeft += o.x;
		nTop += o.y;
	}
	window.FW_showMenu(oMenu,nLeft,nTop);
}
