$(document).ready(function() {
	/* ----------------------------------------------------- */
	/* TAB LOGIC JOB DESCRIPTION
	/* ----------------------------------------------------- */
	if($('#job-description').size() > 0)
	{
		$('#job-description ul li a').each(function() {
			$(this).bind('click', function(e) {
				var elActive = $(this).attr('href').split('/').pop();
				// RESET ALL TABS
				$('#job-description ul li a').each(function() {
					var el = $(this).attr('href').split('/').pop();
					$(this).removeClass('active');
					$(el).hide();
				});
				// SET ACTIVE ELEMENT
				$(this).addClass('active');
				$(elActive).show();
				e.preventDefault();
			});
		});
	}
	
	/* ----------------------------------------------------- */
	/* HIJACK PRINT CLASSES
	/* ----------------------------------------------------- */
	$('a.print').each(function(){
		$(this).bind('click', function(e) {
			window.print();
			e.preventDefault();
		});
	});
});
