$('document').ready(function(){

	// select all desired input fields and attach tooltips to them
	$("#frmContact :input").tooltip({
		position: ['center', 'right'],
		offset: [-2, 5],
		effect: 'toggle',
		opacity: 0.7
	});
	
	$(".newsLetterForm :input").tooltip({
		position: ['top', 'center'],
		offset: [-2, 5],
		effect: 'slideup',
		opacity: 0.7
	});
	
	$.tools.addTipEffect("slidedown",function(){
			// Opening Animation  
        	var opacity = this.getConf().opacity; 
        	this.getTip().css({opacity:0}).animate({right: '+=30', opacity:opacity}, 300).show(); 
    },function(){
		// Closing Animation 
    	this.getTip().animate({left: '+=15', opacity:0}, 300, function() {  
    	   $(this).hide().animate({left: '+=30'}, 0); 
    	}); 
    });
});