/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/menu/tree_frog_vertical.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */


function showSubCategory() {
	
    $("#AllSort dt").mouseover(function() {
        var newDiv = document.getElementById("EFF_div_" + this.id.substr(7));
          
        this.className = "curr";
        
        if (newDiv) {
            newDiv.style.display = "block";
            return;
        } else {
            //var CLASS_NAME=($.browser.msie?($.browser.version>"7.0")?"class":"className":"class");
        	if(this.nextSibling && this.nextSibling.tagName && this.nextSibling.tagName.toLowerCase() == "dd")
            {
		        var CLASS_NAME = ($.browser.msie) ? "className" : "class";
		        var newDiv_wrap = document.createElement("div");
		        newDiv_wrap.setAttribute("className", "pop_wrap");
		        newDiv_wrap.setAttribute("class", "pop_wrap");
		        newDiv_wrap.setAttribute("id", "EFF_div_" + this.id.substr(7))
		        var newDiv = document.createElement("div");
		        newDiv.setAttribute("className", "pop");
		        newDiv.setAttribute("class", "pop");
		        newDiv_wrap.appendChild(newDiv);
		        
		        //alert(this.nextSibling.innerHTML);
		        newDiv.innerHTML = this.nextSibling.innerHTML;
		        
		        this.parentNode.insertBefore(newDiv_wrap, this);
		        newDiv_wrap.style.display = "block";
            }
        }
        //test/
        $(".pop_wrap").mouseover(function() {
            $(this).css({ "display": "block" });
            this.nextSibling.className = "curr";
        }).bind("mouseleave", function() {
            $(this).css({ "display": "none" });
            this.nextSibling.className = "";
        })
        //test end/
    }).bind("mouseleave", function() {
    	//alert(oldClass);
    	if(this.nextSibling && this.nextSibling.tagName && this.nextSibling.tagName.toLowerCase() == "dd")
    	{
    		this.className = (this.nextSibling.className == "Dis") ? "curr" : "";
    	}
    	else
    	{
    		this.className = "noChild";
    	}
        $(".pop_wrap").css({ "display": "none" });
    });
}