$(function(){
	
	if($('a.current').length){
		var currentAnchor = $('a.current');
		currentAnchor = 'a.' + $(currentAnchor[0]).attr('class').replace(/current/gi, '').replace(/ /, '');
		//console.log(currentAnchor);
	}
	changedCurrent = false;
	

	$('#content a').not('.noToolTitle').tooltip({ 
    	track: false, 
    	delay: 0, 
    	showURL: false, 
    	showBody: " - ", 
    	fade: 250 
	});

	
	$('.navigation a').hover(function(){
		if(currentAnchor){
			$(currentAnchor).removeClass('current');
			//$(this).addClass('current');
		}
	},
	function(){
		//$(this).removeClass('current');
		if(changedCurrent != true && currentAnchor){
			$(currentAnchor).addClass('current');
		}
	});
	
	$('.navigation a').click(function(){
		changedCurrent = true;
		if(currentAnchor){
			$(currentAnchor).removeClass('current');
		}
		$(this).addClass('current');
	});

});