function loadgameintoclass(gameid, divtoput) { get_method_execute("/backend/gamedump.csv.php", "game=" + gameid); } var mygame = new Array(); var mytempgamevar = new mygamevariables(); var parentlevel = 0; var selectednode = 0; var treemouse = false; var previousmenuid = 0; function mygamevariables() { var varname, info, editable, priority, vartype, minlength, maxlength, title, parent, data, varid, varformat, divid; var expandstatus = true; var selectstatus = false; var children = new Array(); } function createtree(divtoput, gametodo) { var counter; var haveifound; var textree = ""; var temps; var mylength=0; textree = buildnewtree(); textree = '
| ";
mystring += " ";
mystring += " ";
mygame[0].divid = "server";
var tempfind;
var mytempstring;
for(var y = 1; y < mygame.length; y++) {
mytempstring="";
nameidtouse = "server";
mystring += "";
while (tempfind > 1) {
foundparent = false;
for (var z = 0; z < y;z++) {
if (mygame[z].varid == tempfind && foundparent == false) {
mycurrentlevel++;
tempfind = mygame[z].parent;
mytempstring += " ";
}
mystring += " |
| " + returnmenufor(elementid) + " |