$('#nav a[title],form [title]').qtip({
  style: {
	   tip: {
         width: 6,
         height: 6
      }
   },
position: {
      my: 'left center', 
      at: 'right center',
	  adjust: { 
	y: 1,
	x: 2
	}
},
 show: {
      delay: 150,
      effect: function(offset) {
         $(this).slideDown(150); 
      }
   }, 
 hide: {
      effect: function(offset) {
         $(this).slideUp(90); 
      }
   }  
});
$('#menu a[title]').qtip({
style: 	{
	  		tip: {
       		width: 11,
        	height: 11
      		}
   		},  
position:  {
      my: 'bottom left', 
      at: 'top right'
		},
show: 		{
      		delay: 150,
      		effect: function(offset) {
         		$(this).slideDown(150);
      			}
   			}, 
hide: 		{
      		effect: function(offset) {
         		$(this).slideUp(90);
      			}
   			}  
});


$('p a[title],#logo[title],.tick a[title],acronym[title],a.non-html[title],a.promo[title],.gallery a[title],.choices a[title],.links a[title]').qtip({
  style: {
	  tip: {
         width: 11,
         height: 11
      }
   },   
position: {
      target: 'mouse',
	  adjust: { 
	y: 15,
	x: 15
	},
	viewport: $(window)
   },
show: {
      delay: 300,
      effect: function(offset) {
         $(this).slideDown(150); // "this" refers to the tooltip
      }
   },  
hide: {
      effect: function(offset) {
         $(this).fadeOut(150); // "this" refers to the tooltip
      }
   }  
});
$('a.promo[oldtitle],.gallery a[oldtitle]').each(function() {
        var $newName = $(this);
        $newName
            .attr({
                name : $newName.attr('oldtitle'),
            })
});
