$(document).ready(function() {
			


$("#menue a").each(function(){
        var href = this.getAttribute('href');
        var location = new String( document.location );
		var fileN1 = location.lastIndexOf("/") + 1;
		var fileN2 = location.length;
		location = location.substring(fileN1,fileN2);
		
		if ( location == href) {
            $(this).addClass("active");
        }
    });


$('ul.sf-menu').supersubs({
            minWidth:    12,   // minimum width of sub-menus in em units
            maxWidth:    27,   // maximum width of sub-menus in em units
            extraWidth:  1     // extra width can ensure lines don't sometimes turn over
                               // due to slight rounding differences and font-family
        }).superfish({
            delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast'                          // faster animation speed 
			
			
			
		});  // call supersubs first, then superfish, so that subs are
                         // not display:none when measuring. Call before initialising
                         // containing tabs for same reason.



});


