MilwaukeeTool = window.MilwaukeeTool || {};

MilwaukeeTool.Service = function() {
	function _init_shadows() {
		$('.where-to-buy span').dropShadow( { left: 2, top: 0, blur: 6 } );
	}
	
	function _init_hdc_learn_more() {
		$('#hdc-learn-more').click(function() {
			var anchor_pos = $(this).offset();
			$('#hdc-tooltip').css({
				'top' : (parseInt(anchor_pos.top) + $(this).height() + 2) + 'px',
				'left' : anchor_pos.left + 'px',
				'display' : 'block'
			});
			
			return false;
		});
		
		$('#hdc-tooltip .tooltip-close a:first').click(function() {
			$('#hdc-tooltip').css('display', 'none');
			return false;
		})
	}
	
	return {
		init: function() {
			_init_shadows();
			_init_hdc_learn_more();
		}
	}
}();

$(document).ready(function() {
	MilwaukeeTool.Service.init();
});