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",152,17,"Arial, Helvetica, sans-serif",10,"#ffffff","#842626","#842626","#cccccc");
	fw_menu_0.addMenuItem("Bouquets","location='http://www.finishingtouches.net.au/Galleries/bouquets.aspx?_Gallery=3'");
	fw_menu_0.addMenuItem("Table Centrepieces","location='http://www.finishingtouches.net.au/Galleries/centerpiece.aspx?_Gallery=4'");
	fw_menu_0.addMenuItem("Pedestals","location='http://www.finishingtouches.net.au/Galleries/pedestals.aspx?_Gallery=6'");
	fw_menu_0.addMenuItem("Chair Covers & Sashes","location='http://www.finishingtouches.net.au/Galleries/chaircov.aspx?_Gallery=5'");
	fw_menu_0.addMenuItem("Skirts & Backdrops","location='http://www.finishingtouches.net.au/Galleries/skirtbackdro.aspx?_Gallery=2'");
	fw_menu_0.addMenuItem("Themes","location='http://www.finishingtouches.net.au/Galleries/themes.aspx?_Gallery=8'");
	fw_menu_0.addMenuItem("Miscellaneous","location='http://www.finishingtouches.net.au/Galleries/misc.aspx?_Gallery=7'");
	fw_menu_0.fontWeight="bold";
	fw_menu_0.hideOnMouseOut=true;
	fw_menu_0.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);
}

