// Tooltips on login/logout button
$(document).ready(function()
{
		$('#login').click(function(){
			$('#login').removeData('qtip') 
	        .qtip({
	           content: {
	              text: $('#qtip-login-text'), 
	              title: {
	                 text: $('#qtip-login-title'),
	                 button: true
	              }
	           },
	           
	           position: {
	              my: 'top right',
	              at: 'bottom right'
	           },
	           show: {
	              event: false, 
	              ready: true 
	           },
	           hide: {
	               delay: 200,
	               fixed: true // We'll let the user interact with it
	           },
	           style: {
	        	   classes: 'ui-tooltip-light ui-tooltip-shadow'
	           }
	        });
		});

		$('#logout').click(function(){
			$('#logout').removeData('qtip') 
	        .qtip({
	           content: {
	              text: $('#qtip-logout-text'), 
	              title: {
	                 text: $('#qtip-logout-title'),
	                 button: true
	              }
	           },
	           position: {
	              my: 'top right',
	              at: 'bottom right'
	           },
	           show: {
	              event: false, 
	              ready: true 
	           },
	           hide: {
	               delay: 200,
	               fixed: true // We'll let the user interact with it
	           },
	           style: {
	        	   classes: 'ui-tooltip-light ui-tooltip-shadow'
	           }
	        });
		});
		
		$('#lang').click(function(){
			$('#lang').removeData('qtip') 
	        .qtip({
	           content: {
	              text: $('#qtip-lang-text'), 
	              title: {
	                 text: $('#qtip-lang-title'),
	                 button: true
	              }
	           },
	           position: {
	              my: 'top right',
	              at: 'bottom right'
	           },
	           show: {
	              event: false, 
	              ready: true 
	           },
	           hide: {
	               delay: 200,
	               fixed: true // We'll let the user interact with it
	           },
	           style: {
	        	   classes: 'ui-tooltip-light ui-tooltip-shadow'
	           }
	        });
		});		
				
});		      
