$(document).ready(function(){
	//Turn li tag into link				   
	$("#top-bar ul li").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});
	//Open in external window	
	$('a[rel="external"]').click( function() {
	window.open( $(this).attr('href') );
	return false;
	});
	//Fading panels	
	if (!$.browser.opera) {
		window.setTimeout(function() { $('#top-bar ul li span').fadeTo(1000, 0.6); }, 0);
	
		$("#top-bar ul li span").hover(function() {
			$(this).stop();
			$(this).fadeTo("normal", 1);
		},function() {
			$(this).stop();
			$(this).fadeTo("fast", 0.6);
		});
	};
	//Style data-table
	$('tr:odd').addClass('odd');
	$('tr:even').addClass('even');	
	
	
	$('.tooltip').hide();
	$('.links-holder .ihelp').hover(function() {
		var tooltip = $(this).parent().children('.tooltip');
		tooltip.show();
	}, function() {
		var tooltip = $(this).parent().children('.tooltip');
		tooltip.hide();
	});
	
	
}); 


