function createMenu(){
var oTbl,oTR,oTD;
oTbl = document.createElement("table");
oTbl.id = "tbl";
oTbl.cellSpacing = "1";
oTbl.className = "OTTable";
oTR = oTbl.insertRow();
oTD = oTR.insertCell(';
echo ');
if(dom.selectSingleNode("//menubar[@id=\'"+currentMenuId+"\']")==null){
currentMenuId=0;
}
oTD.setAttribute("menuid",dom.selectSingleNode("//menubar[@id=\'"+currentMenuId+"\']").getAttribute("id"));
oTD.className = "folder";
oTD.innerHTML = "<img src=\'"+dom.selectSingleNode("//menubar[@id=\'"+currentMenuId+"\']").getAttribute("icon")+"\'/>" + dom.selectSingleNode("//menubar[@id=\'"+currentM';
echo 'enuId+"\']").getAttribute("name");
oTR = oTbl.insertRow();
oTD = oTR.insertCell();
oTD.id = "fileTD";
oTD.className = "file";
var oIframe = document.createElement("iframe");
oIframe.id = "ifrm";
oIframe.style.width = "100%";
oIframe.style.height = "100%";
oIframe.frameBorder = "0";
oIframe.attachEvent("onload",loadHTML);
oTD.appendChild(oIframe);
oTR = oTbl.insertRow();
';
echo '
oTD = oTR.insertCell();
oTD.className = "handle";
oTD.onmousedown = function(){mousedown();};
oTD.onmouseup = function(){mouseup();};
oTD.onmousemove = function(){mousemove();};
var oNodes = dom.selectNodes("//menubar");
for(i=0;i<oNodes.length;i++){
oTR = oTbl.insertRow();
oTD = oTR.insertCell();
oTD.setAttribute("menuid",dom.selectSingleNode("//menubar["+i+"]").getAttribu';
echo 'te("id"));
oTD.className = "folder";
oTD.attachEvent("onmouseover",folderMouseOver);
oTD.attachEvent("onmouseout",folderMouseOut);
oTD.onclick = function(){slideFolder(this);};
oTD.innerHTML = "<img src=\'"+dom.selectSingleNode("//menubar["+i+"]").getAttribute("icon")+"\'/>" + dom.selectSingleNode("//menubar["+i+"]").getAttribute("name");;
}
oTR = oTbl.insertRow();
oTD = oTR.in';
echo 'sertCell();
oTD.id = "thumbBox";
oTD.innerHTML = "<img id=\'rightArrow\' src=\'/images/menu/1/open_win_arrow.gif\' onclick=\'showFav()\'/>";
document.getElementById("divMenuBox").rows[0].cells[0].appendChild(oTbl);
}
function folderMouseOver(){
var o = window.event.srcElement;
if(o.tagName!="IMG") o.className = "folderMouseOver";
}
function folderMouseOut(){
var o = window.event.srcEl';
echo 'ement;
if(o.tagName!="IMG") o.className = "folder";
}
function hideLoading(){
document.getElementById("loading").style.display = "none";
document.getElementById("ifrm").detachEvent("onload",hideLoading);
}