var dots = ""; var snm = function(data, config) { this.level = 0; this.config = config; this.data = data; this.strHTML=""; this.isDefined=function(el){return (typeof(el)=="undefined"||el==null)?false:true;}; this.build=function() { var strHTML = ""; strHTML += "
"; this.menus++; return str; }; this.buildRow=function(arr) { var str = ""; var bg = ""; var style = ""; if(this.isDefined(arr[3]) && this.level == 0) { bg = "background: url(resources/images/arrow.gif) no-repeat 187px 50%;"; } if(this.config.style!=null) style = this.getStyle(); // href=\""+arr[1]+"\" if(this.level == 0 && this.isDefined(arr[3])) str += "
  • "+arr[0]+""; else str += "
  • "+arr[0]+""; if(this.isDefined(arr[3])) { this.level++; str += this.addItems(arr); this.level--; } str += "
  • "; return str; }; this.getStyle = function() { var sli = this.config.style[this.level].li; var sa = this.config.style[this.level].a; var li = ""; var a = ""; for(key in sli) { li += key+":"+sli[key]; } for(key in sa) { a += key+":"+sa[key]; } return [li, a]; }; this.showChild=function(e, element, section) { // this is called when you are expanding a node so see it's children var elem=(!(this.isDefined(element)&&this.isDefined(element.tagName)))?null:element; var ct = (elem!=null)?elem.nextSibling:this.nextSibling; bi = elem.style.backgroundImage; if(bi == "" && (ct.style.display != "none")) elem.style.backgroundImage = "url(resources/images/arrow.gif)"; else elem.style.backgroundImage = ""; ct.style.display = (ct.style.display=="none")?"":"none"; }; this.collapseAll=function(e) { var tbl = findParent(findParent(e, "TD"), "TABLE").firstChild; var ri = null; var s = null; var b = null; for(var a=0; a