jQuery(function($) {
	// Figure out the location based on the browser URL
	var path = location.pathname;
	// Set your homepage here, eg. /index.php or /
	var home = "/index.php";
	// Check the home link against the path and set the navigation accordingly. 
	if (path == home || path == "/") {
		// Note that the jQuery selector matches *only* the home link
		var $nav = $('#tenant_side a[@href="' + home + '"]');
	} else {
		var $nav = $('#tenant_side a[@href$="' + path + '"]');
	}

	// Hide all subnavigation
	$('#tenant_side li ul').hide();

	// Add the active class to the current path and activate it's subnavigation
	$nav.addClass('active').siblings("ul").slideDown();
	
	// If the active class has subnavigation, show it
	$nav.parents("ul").show();
});

$(document).ready(function(){ 
        $("ul.sf-menu").superfish({ 
            animation: {height:'show'},   // slide-down effect without fade-in 
            delay:     1200               // 1.2 second delay on mouseout 
        }); 
    }); 




