function PanelMenu(){var a=document.createElement("div");a.id="pMenu";var b=document.createElement("ul");a.appendChild(b);var c=document.createElement("div");a.appendChild(c);this.objPanel=a}PanelMenu.prototype={'lstMenu':new Array(),'addMenu':function(a){this.lstMenu[a]=new Menu(a);this.lstMenu[a].appendTo(this.objPanel.firstChild);return this.lstMenu[a]}};PanelMenu.extend(Panel);function Menu(b){var c=document.createElement("li");c.className="mainOpt";var a=document.createElement("a");a.href="#";a.innerHTML=b;c.appendChild(a);var d=document.createElement("ul");d.className="submenu";c.appendChild(d);this.lstItemGrab=d;this.objPanel=c}Menu.prototype={'lstItem':new Array(),'lstItemGrab':null,'addItem':function(b,c){var d=document.createElement("li");var a=document.createElement("a");a.href="#";a.onclick=c;a.innerHTML=b;d.appendChild(a);this.lstItemGrab.appendChild(d)}};Menu.extend(Panel);