
		$(document).ready(function(){
		
			var locationPathname = location.pathname;
            
			if (locationPathname == '/')
                locationPathname = '/index.html';

			// set selected class in leftNavigation
			var a_elements = $('#leftNavigation li a[href=\"' + locationPathname + '\"]');
			a_elements.addClass('selected');		
			a_elements.parents('#leftNavigation li').children('a').addClass('selected');	
			a_elements.parents('#leftNavigation li').addClass('selected');
			
			// make all li elements clickable (not only the a elements)
			$('#leftNavigation li').click(
				function(){
					if ($(this).find('a:first').attr('href'))
					{
						location.href = $(this).find('a:first').attr('href');
						return false;
					}
				}
			);

			// set selected class in topNavigation
			a_elements = $('#topNavigation li a[href=\"' + locationPathname + '\"]');
			a_elements.addClass('selected');		
			a_elements.parents('#topNavigation li').children('a').addClass('selected');	
			a_elements.parents('#topNavigation li').addClass('selected');
			
			// make all li elements clickable (not only the a elements)
			$('#topNavigation li').click(
				function(){
					location.href = $(this).find('a:first').attr('href');
					return false;
				}
			);
			
			
			// make logo div clickable 
			$('#homeNavigation').click(
				function(){
					location.href = '/index.html';
					return false;
				}
			);
		

		});
		
	
