$().ready(function() {
	$('#menu_container a[title]').qtip({
		show: 'mouseover',
		hide: { when: 'mouseout', fixed: true, delay: 300 },
		content: { prerender: true },
		text: false, // Use each elements title attribute
		position: {
			corner: {
				tooltip: 'leftBottom', // Use the corner...
				target: 'leftTop' // ...and opposite corner
			},
			adjust: { x: 13, y: 0 }
		},
		style: {
			border: {
				width: 3,
				radius: 3
			},
			padding: 5,
			tip: { // Now an object instead of a string
				corner: 'bottomLeft', // We declare our corner within the object using the corner sub-option
				color: '#333333'
			},

			name: 'dark' // Style it according to the preset 'cream' style
		}
	});

	$('#content_table').css('opacity', 0.01);
	$('#content_table').fadeTo(500, 1.0);

	$('a').click(function() {
		var url = $(this).attr('href').toString();
		if (url.search(PAGE_PATH)!=-1 && !$(this).hasClass('fancy')) {
			$('#content_table').fadeTo(500, 0.01);
			setTimeout(function() {
				document.location.href = url;
			}, 500);
			return false;
		}
	});
});
