// JavaScript Document
var getHash = function () {
	return location.hash;
},
contentsHeight = function (id) {
	var $elem = $(id);
	var eleH = $elem.height();
	eleH += parseInt(String($elem.css('padding-top')).replace(/px/, ''));
	eleH += parseInt(String($elem.css('padding-bottom')).replace(/px/, ''));
	return eleH;
};
$(document).ready(function () {
	$('#navigation-base a:not(.active)').hover(function () {
		$(this).stop(false, false).animate({
			'backgroundPosition': '(0px 0px)'
		}, {
			duration: 200
		});
	}, function () {
		$(this).stop(false, false).animate({
			'backgroundPosition': '(-130px 0px)'
		}, {
			duration: 200
		});
	});
	
	$('.bgScroll a:not(.active)').hover(function () {
		var $el = $(this);
		if ($el.hasClass('active')) return;
		$el.stop(false, false).animate({
			'backgroundPosition': '(0px 0px)'
		}, {
			duration: 200
		});
	},function () {
		var $el = $(this);
		if ($el.hasClass('active')) return;
		$el.stop(false, false).animate({
			'backgroundPosition': '(-200px 0px)'
		}, {
			duration: 200
		});
	});
});
