$(document).ready(function(){
	$('a[title][tooltip]').each(function(){
		$.fn.qtip.styles.term = {
			width: 200,
			background: '#3d3d3d',
			color: '#fff',
			textAlign: 'left',
			fontFamily: 'Arial',
			fontSize: '11px',
			border: {width: 5,radius: 5,color: '#999'},
			tip: 'bottomLeft',
			name: 'dark'
		}
	});
	$('a[title][tooltip]').each(function(){
		$(this).qtip({
			content: {title:$(this).attr('title'), text:$(this).attr('tooltip')},
			position: {corner: {target: 'topMiddle',tooltip: 'bottomLeft'},adjust: { screen: true }	},
			style: 'term'
		});
	});

	var strFired = "";
	$('a[title][tooltip]').hover(function(){
		var strWord = $(this).attr("title");
		if ( strFired.indexOf(strWord+";") == -1 ) {
			strFired+=strWord+";";
			var strEvent = "Definition: " + strWord;
			OmnitureCustom(strEvent);
		}
	});
});
