jQuery(document).ready(function(){
	jQuery('.hover-control')
		.click(function(){
			var href = jQuery(this).find('a.hover-link,.hover-link a').attr('href')
			/* Strip off http://site this will break if the hover-link really is an external link */
			if ( href.substr(0, 7) == 'http://') {
				href = href.substr(7);
				href = href.substr( href.indexOf('/'));
			}
			if ( href[0] != '/' ) href = '/' + href;
			document.location = href;
		})
		.hover(
			function(){ jQuery(this).addClass('hover'); },
			function(){ jQuery(this).removeClass('hover'); }
		)
		.find('.hover-link').hide();
	jQuery('li:last-child').addClass('ie-last-child');
	jQuery('#footer a[href=footer-menu/print/]').click(function() {
		window.print();
		return false;
	});
});
