Event.observe(window, 'load', function() {
	initPage();
});		
		
	function initPage() {
		$$('#tagcloud a').each(function(el) {
			// Uitgeschakeld, behouden als toekomstige feature
			//attachAjaxLoading(el);
		});
	}

		function attachAjaxLoading(el) {
			
			if (el.href == document.location.href) {
				el.addClassName('active');
			}
			
			el.observe('click', function(event) {
				new Ajax.Request(el.href, {
					method: 'get',
					onSuccess: function(transport) {
						$('menu').select('a').each(function(el2) {
							el2.removeClassName('active');
						});
						el.addClassName('active');		
						
						$('tagcloudwindow').innerHTML = transport.responseText;
						$('tagcloudwindow').show();
					}
				});
		
				Event.stop(event);
			});
		}
