jQuery(document).ready(function() {

	jQuery.fn.qtip.defaults.content.text = false;
	jQuery.fn.qtip.defaults.hide.effect = true;
	jQuery.fn.qtip.defaults.hide.event = "mouseout";
	jQuery.fn.qtip.defaults.hide.fixed = true;
	jQuery.fn.qtip.defaults.hide.leave = false;
	jQuery.fn.qtip.defaults.position.adjust.method = "flip flip";
	jQuery.fn.qtip.defaults.position.viewport = $(window);
	jQuery.fn.qtip.defaults.show.event = "mouseover";
	jQuery.fn.qtip.defaults.show.solo = true;
	jQuery.fn.qtip.defaults.style.classes = 'ui-tooltip';

	// Use the each() method to gain access to each elements attributes
	jQuery('.toolTip').each(function() {
		jQuery(this).qtip({
			position : {
				at : "top center",
				my : "bottom left"
			},
			style : {
				tip : {
					corner : "bottomLeft"
				}
			}
		});
	});

	jQuery('.toolTipIconLink').each(function() {
		jQuery(this).qtip({
			position : {
				at : "bottom center",
				my : "top center"
			},
			hide : {
				inactive : 3000,
				delay : 300
			},
			style : {
				tip : {
					corner : "topMiddle"
				}
			}
		});
	});

	jQuery('.toolTipTopLeft').each(function() {
		jQuery(this).qtip({
			position : {
				adjust : {
					x : 1
				},
				at : "top left",
				my : "bottom left"
			},
			style : {
				tip : {
					corner : "bottomLeft"
				}
			}
		});
	});

	jQuery('.toolTipLeft').each(function() {
		jQuery(this).qtip({
			position : {
				adjust : {
					x : -105
				},
				at: "left center",
				my: "right center"
			},
			style : {
				classes : 'ui-tooltip-rounded',
				tip : {
					corner: "rightCenter"
				}
			}
		});
	});
	
	jQuery('.toolTipLeft').removeClass('toolTipLeft').addClass('toolTip');
});

