  /*!
         * Ext JS Library 3.0.0
         * Copyright(c) 2006-2009 Ext JS, LLC
         * licensing@extjs.com
         * http://www.extjs.com/license
         */
        Ext.ns('Ext.ux.tree');
        
        Ext.ux.tree.customNodeUI=Ext.extend(Ext.tree.TreeNodeUI, {
        
        renderElements : function(n, a, targetNode, bulkRender){
                // add some indent caching, this helps performance when rendering a large tree
                this.indentMarkup = n.parentNode ? n.parentNode.ui.getChildIndent() : '';
                //console.log(n);
                //console.log(n.parentNode.ui.getChildIndent());
                var cb = typeof a.checked == 'boolean';
        
                var href = a.href ? a.href : Ext.isGecko ? "" : "#";
                //var href = Ext.isGecko ? "http://arklegaudit.gov" : "http://arklegaudit.gov";
                var buf = ['<li class="x-tree-node"><div ext:tree-node-id="',n.id,'" class="x-tree-node-el x-tree-node-leaf x-unselectable ', a.cls,'" unselectable="on">',
                    '<span class="x-tree-node-indent">',/*this.indentMarkup,*/"</span>",
                    '<img src="', this.emptyIcon,'" class="x-tree-ec-icon x-tree-elbow" />',
                    '<img src="', a.icon || this.emptyIcon, '" class="x-tree-node-icon',(a.icon ? " x-tree-node-inline-icon" : ""),(a.iconCls ? " "+a.iconCls : ""),'" unselectable="on" />',
                    cb ? ('<input class="x-tree-node-cb" type="checkbox" ' + (a.checked ? 'checked="checked" />' : '/>')) : '',
                    '<a hidefocus="on" class="x-tree-node-anchor" href="',href,'" tabIndex="1" ',
                     a.hrefTarget ? ' target="'+a.hrefTarget+'"' : "", '><span class="customnode" unselectable="on">',n.text,'</span></a>','<img src="', this.emptyIcon, '" class="x-tree-ec-icon x-tree-elbow" /><span style="font-family:Tahoma, Geneva, sans-serif; font-size: 9px;">',n.attributes.fiscal,' released ',n.attributes.releasedate,'</span></div>',
                    '<ul class="x-tree-node-ct" style="display:none;"></ul>',
                    "</li>"].join('');
        
                var nel;
                if(bulkRender !== true && n.nextSibling && (nel = n.nextSibling.ui.getEl())){
                    this.wrap = Ext.DomHelper.insertHtml("beforeBegin", nel, buf);
                }else{
                    this.wrap = Ext.DomHelper.insertHtml("beforeEnd", targetNode, buf);
                }
                
                this.elNode = this.wrap.childNodes[0];
                this.ctNode = this.wrap.childNodes[1];
                var cs = this.elNode.childNodes;
                this.indentNode = cs[0];
                this.ecNode = cs[1];
                this.iconNode = cs[2];
                var index = 3;
                if(cb){
                    this.checkbox = cs[3];
                    // fix for IE6
                    this.checkbox.defaultChecked = this.checkbox.checked;
                    index++;
                }
                this.anchor = cs[index];
                this.textNode = cs[index].firstChild;
            }
          });
          /*!
         * Ext JS Library 3.0.0
         * Copyright(c) 2006-2009 Ext JS, LLC
         * licensing@extjs.com
         * http://www.extjs.com/license
         */
       
        Ext.ns('Ext.ux.tree');
        
        Ext.ux.tree.innewsNodeUI=Ext.extend(Ext.tree.TreeNodeUI, {
        
        renderElements : function(n, a, targetNode, bulkRender){
                // add some indent caching, this helps performance when rendering a large tree
               // this.indentMarkup = n.parentNode ? n.parentNode.ui.getChildIndent() : '';
                //console.log(n);
                //console.log(n.parentNode.ui.getChildIndent());
                var cb = typeof a.checked == 'boolean';
                var shortext = n.text ;
                text = Ext.util.Format.ellipsis(shortext,52,true);
                var href = a.href ? a.href : Ext.isGecko ? "" : "#";
                //var href = Ext.isGecko ? "http://arklegaudit.gov" : "http://arklegaudit.gov";
                var buf = ['<li class="x-tree-node"><div ext:tree-node-id="',n.id,'" class="x-tree-node-el x-tree-node-leaf x-unselectable ', a.cls,'" unselectable="off">',
                   '<span class="x-tree-node-indent">',/*this.indentMarkup,*/"</span>",
                  '<img src="', this.emptyIcon, '" class="x-tree-ec-icon x-tree-elbow" />',
                    '<img src="', a.icon || this.emptyIcon, '" class="x-tree-node-icon',(a.icon ? " x-tree-node-inline-icon" : ""),(a.iconCls ? " "+a.iconCls : ""),'" unselectable="off" />',
                    cb ? ('<input class="x-tree-node-cb" type="checkbox" ' + (a.checked ? 'checked="checked" />' : '/>')) : '',
                    '<a hidefocus="on" class="x-tree-node-anchor" href="',href,'" tabIndex="1" ',
                     a.hrefTarget ? ' target="'+a.hrefTarget+'"' : "", '><span unselectable="off">',text,'</span></a></div>',
                    '<ul class="x-tree-node-ct" style="display:none;"></ul>',
                    "</li>"].join('');
        
                var nel;
                if(bulkRender !== true && n.nextSibling && (nel = n.nextSibling.ui.getEl())){
                    this.wrap = Ext.DomHelper.insertHtml("beforeBegin", nel, buf);
                }else{
                    this.wrap = Ext.DomHelper.insertHtml("beforeEnd", targetNode, buf);
                }
                
                this.elNode = this.wrap.childNodes[0];
                this.ctNode = this.wrap.childNodes[1];
                var cs = this.elNode.childNodes;
                this.indentNode = cs[0];
                this.ecNode = cs[1];
                this.iconNode = cs[2];
                var index = 3;
                if(cb){
                    this.checkbox = cs[3];
                    // fix for IE6
                    this.checkbox.defaultChecked = this.checkbox.checked;
                    index++;
                }
                this.anchor = cs[index];
                this.textNode = cs[index].firstChild;
            }
          });
          Ext.ns('Ext.ux.tree');

Ext.ux.tree.meetsauditsUI=Ext.extend(Ext.tree.TreeNodeUI, {

renderElements : function(n, a, targetNode, bulkRender){
        // add some indent caching, this helps performance when rendering a large tree
        this.indentMarkup = n.parentNode ? n.parentNode.ui.getChildIndent() : '';
		//console.log(n);
		//console.log(n.parentNode.ui.getChildIndent());
        var cb = typeof a.checked == 'boolean';

        var href = a.href ? a.href : Ext.isGecko ? "" : "#";
        //var href = Ext.isGecko ? "http://arklegaudit.gov" : "http://arklegaudit.gov";
        var buf = ['<li class="x-tree-node"><div ext:tree-node-id="',n.id,'" class="x-tree-node-el x-tree-node-leaf x-unselectable ', a.cls,'" unselectable="on">',
            '<span class="x-tree-node-indent">',/*this.indentMarkup,*/"</span>",
            '<img src="', this.emptyIcon,'" class="x-tree-ec-icon x-tree-elbow" />',
            '<img src="', a.icon || this.emptyIcon, '" class="x-tree-node-icon',(a.icon ? " x-tree-node-inline-icon" : ""),(a.iconCls ? " "+a.iconCls : ""),'" unselectable="on" />',
            cb ? ('<input class="x-tree-node-cb" type="checkbox" ' + (a.checked ? 'checked="checked" />' : '/>')) : '',
            '<a hidefocus="on" class="x-tree-node-anchor" href="',href,'" tabIndex="1" ',
             a.hrefTarget ? ' target="'+a.hrefTarget+'"' : "", '><span class="customnode" unselectable="on">',n.text,'</span></a>',(n.attributes.fiscal ? "<br />" : ""),n.attributes.fiscal ? '<img src="'+ this.emptyIcon+ '" class="x-tree-ec-icon x-tree-elbow" /><span style="font-family:Tahoma, Geneva, sans-serif; font-size: 9px;">Audit period(fiscal): '+n.attributes.fiscal+' </span>' : "",(n.attributes.addtltitle ? "<br />" : ""),n.attributes.addtltitle ? '<img src="'+ this.emptyIcon+ '" class="x-tree-ec-icon x-tree-elbow" /><span style="font-family:Tahoma, Geneva, sans-serif; font-size: 9px;">'+n.attributes.addtltitle+' </span>' : "",'</div>',
            '<ul class="x-tree-node-ct" style="display:none;"></ul>',
            "</li>"].join('');

        var nel;
        if(bulkRender !== true && n.nextSibling && (nel = n.nextSibling.ui.getEl())){
            this.wrap = Ext.DomHelper.insertHtml("beforeBegin", nel, buf);
        }else{
            this.wrap = Ext.DomHelper.insertHtml("beforeEnd", targetNode, buf);
        }
        
        this.elNode = this.wrap.childNodes[0];
        this.ctNode = this.wrap.childNodes[1];
        var cs = this.elNode.childNodes;
        this.indentNode = cs[0];
        this.ecNode = cs[1];
        this.iconNode = cs[2];
        var index = 3;
        if(cb){
            this.checkbox = cs[3];
			// fix for IE6
			this.checkbox.defaultChecked = this.checkbox.checked;						
            index++;
        }
        this.anchor = cs[index];
        this.textNode = cs[index].firstChild;
    }
  });
