this.tip = function(){
	$('#forum-post a').unbind().hover(function(e) {
		this.a_title = this.title; this.title = '';
		if (this.a_title.length > 5) {
			$('body').append('<span class="tip border-radius">' + this.a_title + '</span>');
			$('span.tip').css({'top': (e.pageY + 15) + 'px', 'left': (e.pageX + -10) + 'px'}).fadeIn(100);
		}
	},
	function(){
		this.title = this.a_title;
		$('span.tip').fadeOut(100).remove();
	}).mousemove(function(e){
		$('span.tip').css({'top': (e.pageY + 15) + 'px', 'left': (e.pageX + -10) + 'px'});
	});
}

jQuery(document).ready(function($){
	tip();
	$(function() {
		$('#navigation').accordion({
			autoHeight: false,
			navigation: true
		});
	});
});

function set_video_player(query){
	$.post('/show.youtube.php', {query: query}, get_video_player);
}
function get_video_player(code){
	$('#youtube_player').html(code);
}
