$(document).ready(function() {

	$('a').mouseover(function() {
		var href = $(this).attr('href');
		this.marker = true;
		$(this).closest('.linkedlinks').find('a[href="' + href + '"]').each(function() {
			if (!this.marker) {
				$(this).children('img').trigger('mouseover');
				if (!$(this).hasClass('hdnlnk'))
					$(this).addClass('ahover');
			}
		});
		this.marker = false;
	});

	$('a').mouseout(function() {
		var href = $(this).attr('href');
		this.marker = true;
		$(this).closest('.linkedlinks').find('a[href="' + href + '"]').each(function() {
			if (!this.marker) {
				$(this).children('img').trigger('mouseout');
				if (!$(this).hasClass('hdnlnk'))
					$(this).removeClass('ahover');
			}
		});
		this.marker = false;
	});

	$('a img').each(function() {
		if ($(this).parents('.nohover').length == 0)
			$(this).mouseover(function() {
				$(this).clearQueue();
				$(this).fadeTo(100, 0.8);
			});
			$(this).mouseout(function() {
				$(this).clearQueue();
				$(this).fadeTo(100, 1.0);
			});
	});


});

