function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = jQuery(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
jQuery(document).ready(function($){ 
    equalHeight(jQuery("div.same-height"));

    $('#kuansing-subdomain').hover(
        function(){
            $('#headertopnavsubdomains').css('display', 'inherit');
            clearTimeout(topnavhover);
        },
        function(){
            topnavhover = setTimeout(
                function(){$('#headertopnavsubdomains').css('display', 'none')}, 250);
        }

	);
	
	$('#headertopnavsubdomains').mouseover(
       function(){
          clearTimeout(topnavhover);
       }
    );
    $('#headertopnavsubdomains').mouseout(
        function(){
            topnavhover = setTimeout(
                function(){$('#headertopnavsubdomains').css('display', 'none')}, 250);
        }
    );
    //*/
    $('.widget_navt li.current-cat').addClass('current_page_item');
    $('.widget_navt ul').parent('li').addClass('item_parent');
	$('.widget_navt li.current_page_item').parents('li').addClass('current_item_parent');
	
	$('.widget_navt li.current_item_parent').each(
        function(i){ 
            if($(this).children('ul').length == 0){ 
                $(this).removeClass('current_item_parent').addClass('current_page_item')
            }
        }
    );
    $('.widget_navt .categories a, .widget_navt .archives a').each(
        function(i){ 
            if (this.nextSibling.nodeName == '#text'){ 
                var a = this.nextSibling.textContent; 
                this.nextSibling.textContent = ''; 
                this.innerHTML += a 
            }
        }
    );
	
	$(".widget_navt li").each(function(i){
	
	
		this.onmouseover=function() {
			this.className+=" sfhover";
			
		}
		this.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	});

});