com = { realdecoy: {} };
com.realdecoy.toggle = function(dom)
            {
                if( typeof(dom) == "undefined" ) return false;
                var found = null;
                var child = null;
                for( var div = dom.parentNode; div != null; div = div.parentNode )
                {
                    if( div.className.indexOf( "opened" ) > 0 || div.className.indexOf( "closed" ) > 0 )
                    {
                        found = div;
                        break;
                    }
                }
                if( found == null ) return false;
                if( found.childNodes.length > 1 )
                {
                    var i = 0;
                    var imax = found.childNodes.length;
                    for( ; i < imax; i++ )
                    {
                        child = found.childNodes[i];
                        if( child.nodeType != 1 ) continue;
                        if( child.tagName == "DIV" ) break;
                        child = null;
                    }
                }
                if( found.className.indexOf( "opened" ) > 0 )
                {
                    found.className = "indent closed";
                    if( child )    child.style.display = "none";
                }
                else if( found.className.indexOf( "closed" ) > 0 )
                {
                    found.className = "indent opened";
                    if( child )    child.style.display = "";
                }
                
                return true;
            };
