$(document).ready(function()
{	
	$('a[href*=feedback]').each(function()
	{
		$(this).qtip(
	   {
		   id: 'modal',
		   content: {
           text: '<center><img class="throbber" src="/img/ajax.gif" alt="Loading..." /></center>',
 		   ajax: {
	          url: '/pharmacy4u_yii/index.php/site/feedback',
	          loading: false,
	          once: false,
	       },
	    },
	    position: {
	       at: 'center',
	       my: 'center',
	       target: $(document.body),
	       viewport: $(window), // Keep the tooltip on-screen at all times
	    },
	    show: {
	        event: 'click', // Show it on click...
	        solo: true, // ...and hide all other tooltips...
	        modal: true // ...and make it modal
	     },
	    hide: {
	    	 //event: 'click mouseout',
	    	 fixed:true,
	    },
	    style: 'ui-tooltip-light ui-tooltip-rounded',
	   })
	})
	
	// Make sure it doesn't follow the link when we click it
	.click(function(event) { event.preventDefault(); });
		
});


