$(function() {
		
	var currentURL = window.location.toString().split("/");
	currentURL[currentURL.length-1] = currentURL[currentURL.length-1].length < 1 ? "index.php" : currentURL[currentURL.length-1];
	var currentID = currentURL[currentURL.length-1].substr(0,currentURL[currentURL.length-1].length-4);
			
	$('#menu a[href^='+currentID+']').filter(function() {				
		var position = $(this).css("backgroundPosition");	
		if (position == "undefined" || position == null) {
			x = $(this).css("backgroundPositionX"); // IE...
		} else {
			x = position.split(" ")[0];
		}
		$(this).css("backgroundPosition",x+" -33px")		
	});
	
	$("#footer .nappi").click(function() 
	{
	    $('#footer .sites').slideToggle();
		return false;
	}); 

});

