jQuery(document).ready(function() {
	jQuery('[qtip="true"]').each(function() {
		jQuery(this).qtip({
			content: $(this).attr('qtiphtml'),
			/*content: {
				text: false
			},*/
			position: {
				corner: {
					tooltip: 'bottomLeft',
					target: 'topLeft'
				},
				target: 'mouse',
				adjust: {
					mouse: true,
					screen: true // qtip on-screen at all times
				}
			},
			style: {
				border: {
					width: 1,
					radius: 4,
					color: '#cccccc'
				},
				padding: 1,
				tip: true,
				background: '#ffffff',
				color: '#333333',
				width: {
					min: 200,
					max: 500
				}
			},
			show: {
				solo: true,
				effect: {
					length: 0
				}
			},
			hide: {
				delay: 2000,
				effect: {
					length: 0
				}
			}
		});
	});
});
