$(document).ready(function() {
	$('.tip[title]').qtipinclude();   // QTIPS GENERAL
	$('a.infotip').qtipincludeinfo(); // QTIPS INFO LOADED FROM NETINFO
});
// GENERAL QTIPS
(function($) {
	jQuery.fn.qtipinclude = function() {  
		var o = $(this);
		o.qtip({
			content: {
				text: false,
				prerender: false,
				title: {
					text: false
				}
			},
			position: {
				corner: {
					tooltip: 'bottomLeft',
					target: 'leftTop'
				},
				target: 'mouse',
				adjust: {
					x: 15,
					y: -15,
					mouse: true
				},
				screen: true
			},
			style: {
				background: '#eeeeee',
				padding: 5,
				border: {
					width: 10,
					radius: 10,
					color: '#eeeeee'
				},
				width: {
					max: 400
				},
				name: 'light',
				tip: true
			},
			show: {
				effect: {
					type: 'fade',
					length: 100
				}
			},
			hide: {
				effect: {
					type: 'fade',
					length: 100
				}
			}
		});
	}; 
})(jQuery);
// INFO QTIPS LOADED FROM NETINFO
(function($) {
	jQuery.fn.qtipincludeinfo = function() {
		var o = $(this);
		o.qtip({
			content: {
				text: '',
				url: $(this).attr('href')
			},
			position: {
				corner: {
					tooltip: 'bottomMiddle',
					target: 'TopMiddle'
				},
				adjust: {
					x: 8,
					y: 2,
					screen: true
				}
			},
			style: {
				border: {
					width: 1,
					radius: 5,
					color: '#eeeeee'
				},
				padding: 15,
				width: 650,
				name: 'light',
				tip: true
			},
			show: {
				solo: true,
				effect: {
					type: 'fade',
					length: 100
				}
			},
			hide: {
				delay: 250,
				fixed: true,
				effect: {
					type: 'fade',
					length: 100
				}
			}
		});
	}; 
})(jQuery);
