
function hasJS(){
	$('body').addClass('hasJS');
}

function nav(){
		
	$('#nav > li').hover(						 
		function(){
			$('#nav > li > ul').hide();
			$(this).find('> a').addClass('active').next().show();
			$(this).addClass('over');
		},
		function(){
			$(this).find('> a').removeClass('active').next().hide();
			$('#nav > li.on > ul').show();
			$(this).removeClass('over');
		}
		
	);
	$('#nav > li.on > ul').show();			
}

function toprint(a) {
	$('a.' + a).click(function(){
		window.print();
		return false;
	});
}

$(document).ready(function(){
	hasJS();
	nav();
	toprint('print');
	$('.target').attr("target","_blank");
});


