$(document).ready(function() {
    currentPage = window.location.pathname;
	
	//$('.moduleSidebar ul:not(:first)').hide();
    $('.moduleSidebar li ul').hide();
    $('.moduleSidebar li a[href$="' + currentPage + '"]').css({ textDecoration: "underline" });
    $('.moduleSidebar li a[href$="' + currentPage + '"]').siblings().show();
    $('.moduleSidebar li a[href$="' + currentPage + '"]').eq(0).parents('ul').show();
    $('.moduleSidebar li a[href$="' + currentPage + '"]').eq(0).parents().parents('ul').show();
    $('.moduleSidebar li a[href$="/business-support-services.aspx"]').css({ color: "#ff0000" });
    
	    
	 

	// Sidebar menu expand 12/31/10 (E)
	
/*	var overFn = function(){
	$('.moduleSidebar li ul').slideUp('slow');
	$(this).next('ul').slideToggle('slow');
	 return false;
	};
	
	var outFn = function(){}; 
	
	$('.moduleSidebar li a').not('.moduleSidebar li ul a').hoverIntent({ 
	    over: overFn, 
	    out: outFn 
	});


	var overFnT = function(){
	$('.moduleSidebar ul').slideUp('slow');
	$(this).next('ul').slideToggle('slow');
	 return false;
	};
	
	var outFnT = function(){}; 
	
	$('.moduleSidebar h3').hoverIntent({ 
	    over: overFnT, 
	    out: outFnT,
	});		*/
		
	

	
    //top menu ball effect

//    placeBall();
//
//    $('#ni547 li').hover(function() {
//        $(this).append('<img class="redBall" src="/media/images/redball.png"/>');
//        var ballLeft = $(this).position().left + $(this).children('a').width() / 2 - 15;
//        $(".redBall").css({ left: ballLeft, top: 16 });
//    }, function() {
//        $(".redBall").remove();
//        placeBall();
//    });

});
 
//function placeBall()
//{
//    $('#ni547 li a[href$="' + currentPage + '"]').each(function(){
//        $(this).parent().append('<img class="redBall" src="/media/images/redball.png"/>');
//	    var ballLeft = $(this).parent().position().left + $(this).width()/2 -15;
//	    $(".redBall").css({left:ballLeft,top:16});
//	 });
//}
//


