function initSwipeMenu() {
preLoadMenuImages("button_on.gif", "button_off.gif");
menuAtt = new Array();
menuAtt["width"] = 120;
menuAtt["height"] = 20;
menuAtt["align"] = "center";
menuAtt["font"] = "Verdana";
menuAtt["font_size"] = 10;
menuAtt["bg_off"] = "#0000FF";
menuAtt["bg_on"] = "#00FFFF";
menuAtt["fg_off"] = "white";
menuAtt["fg_on"] = "red";
menuAtt["border"] = 1;
menuAtt["border_color"] = "white";
//Menu 1
myMenu = new wipeMenu("myMenu", "h", menuAtt);

myMenu.addMain("about", true, "Getting Started", "index.htm");
myMenu.addSub("aboutSub1", "about", "Introduction", "intro1.htm");
myMenu.addSub("aboutSub2", "about", "What is SVG?", "whatsvg2.htm");
myMenu.addSub("aboutSub3", "about", "SVG Structure", "structure3.htm");

myMenu.addMain("shapes", true, "Basic Shapes", "shapes4.htm");
myMenu.addSub("shapesSub1", "shapes", "Rectangle", "rectangle5.htm");
myMenu.addSub("shapesSub2", "shapes", "Rounded Corners", "corners6.htm");
myMenu.addSub("shapesSub3", "shapes", "Lines", "lines7.htm");
myMenu.addSub("shapesSub4", "shapes", "Circle", "circle8.htm");
myMenu.addSub("shapesSub5", "shapes", "Ellipse", "ellipse9.htm");
myMenu.addSub("shapesSub6", "shapes", "Polygon", "polygon10.htm");
myMenu.addSub("shapesSub7", "shapes", "PolyLine", "polyline11.htm");
myMenu.addSub("shapesSub8", "shapes", "Paths", "paths12.htm");

myMenu.addMain("filters", true, "Filters", "filters13.htm");
myMenu.addSub("filtersSub7", "filters", "Gaussian Blur", "blur14.htm");
myMenu.addSub("filtersSub8", "filters", "Turbulence", "turbulance15.htm");
myMenu.addSub("filtersSub8", "filters", "Other Filters", "other16.htm");


myMenu.addMain("gradient", true, "Gradients", "gradients17.htm");
myMenu.addSub("gradientSub1", "gradient", "Linear", "linear18.htm");
myMenu.addSub("gradientSub2", "gradient", "Radial", "radial19.htm");

myMenu.addMain("text", true, "Text", "text20.htm");
myMenu.addSub("textSub1", "text", "Rotate text", "rotate21.htm");
myMenu.addSub("textSub1", "text", "Whats Next?", "next22.htm");

myMenu.buildMenu(10,10,2);

}

</script>





Scusatemi per la lunghezza eccessiva, ma non sapevo quale parte avrebbe potuto servirvi per rispondermi