jQuery(document).ready(function(){
	var tipContainer = jQuery('#tooltip-container');
	tipContainer.find('div.tooltip').css('position', 'absolute').hide();
	jQuery('a.tooltip-trigger').css({
		float: 'left',
		marginRight: 50
	});
		
	jQuery('a.tooltip-trigger').each(function(){
		jQuery(this).mouseenter(function(){
			if(jQuery.browser.msie){
				jQuery(this).next('div.tooltip').not(':animated').animate({
					opacity: 'show',
					bottom: 100
				});
			} else {
				jQuery(this).next('div.tooltip').not(':animated').animate({
					opacity: 'show',
					bottom: 60
				});
			}
		});
		
		jQuery(this).mouseleave(function(){
			if(jQuery.browser.msie){
				jQuery(this).next('div.tooltip').animate({
					opacity: 'hide',
					bottom: 80
				});
			} else {
				jQuery(this).next('div.tooltip').animate({
					opacity: 'hide',
					bottom: 40
				});
			}
		});
		
		jQuery(this).each(function(){
			jQuery(this)
				.next('div.tooltip')
				.css('padding', 10)
				.append('<img src="images/index/tooltip-arrow.png" class="tooltip-arrow" />');
		});
	});
});
