$(document).ready(function() {
	var href_array= window.location.pathname.split("/");
	var part_num = 0;
	while (part_num < href_array.length) {
		lastPart = href_array[part_num];
		part_num += 1;
	}
	// var pathname = window.location.pathname;
	//alert( lastPart);
	
	if( lastPart == "") lastPart="index.cfm";
	
	$('a[href*="' + lastPart + '"]').parent().addClass('active');

	$(".keys").hover(
	  function () {
	    $(this).addClass("hover");
	  }, 
	  function () {
	    $(this).removeClass("hover");
	  }
	);

	$('a[href=#top]').click(function(){
		$('window').scrollTop();
	});
	
	$('#benutzer').focus();
	
	$('a[href=#de]').click(function(){
		window.location = jQuery.query.set("sLang", "DE");
	});

	$('a[href=#fr]').click(function(){
		window.location = jQuery.query.set("sLang", "FR");
	});

	$('a[href=#it]').click(function(){
		window.location = jQuery.query.set("sLang", "IT");
	});

	
});



