/*
	www.cbsides.com/javascript/cb.js
*/
if (!cb) { 
    var cb = {
		init: function() {
			$('a[href*=#]').click(function() {
				var target = $('a[name=' + this.hash.split('#')[1] + ']');
				
				if (target.length) {
					var targetOffset = target.offset().top - 2;
					$('html,body').animate({scrollTop: targetOffset}, 'fast');
					return false;
				}
			});
			//console.log('sitewide functions initialized');
		},
		label: function(el) {
			$(el).hover(
				function() {
					$(this).prev().removeClass('labelHide');
				},
				function() {
					$(this).prev().addClass('labelHide');
				}
			);
		}
	};
};
$(document).ready(cb.init);