jQuery(document).ready(function($) {
	window.Tour = {
		init : function() {
			/* Tour arrow */
			if ($('body > div').is('#tour')) {
				$('#arrow').animate( {
					height : "73px"
				}, 1000);
				/*
				 * Take position of tab for naming and subtract it from the
				 * position of the left on arrow, minus half the width
				 */
				var tabPos = $('#overview li.active').position();
				var tabSize = $('#overview li.active').width() + 80;
				var position = tabPos.left;
				$('#tour #arrow').css( {
					'left' : position + "px",
					'width' : tabSize + "px"
				});
			}
		}
	}.init();
});