$(document).ready(function() {

$('img', '#menuTD').mouseover(function () {

	var currentSrc = $(this).attr('src');
	if (currentSrc.split('_over') == currentSrc) 
	{
		var newSrc = currentSrc.replace('_0', '_over_0');
		$(this).attr('src', newSrc);
	}
	else
	{
		$(this).attr('rel', '1');
	}

});

$('img', '#menuTD').mouseout(function () {
	if ($(this).attr('rel') != 1)
	{
	var currentSrc = $(this).attr('src');
	var newSrc = currentSrc.replace('_over_0', '_0');
	$(this).attr('src', newSrc);
	}
});


$('.imgBtn').mouseover(function () {
	$(this).css({ opacity: 0.5 });
});

$('.imgBtn').mouseout(function () {
	$(this).css({ opacity: 1 });
});

$('button').mouseover(function () {
	$(this).css('background-color','#A00000');
});

$('button').mouseout(function () {
	$(this).css('background-color','#1558AE');
});

$('.roundedTbl').mouseover(function () {
	$(this).css('border-color','#A00000');
});

$('.roundedTbl').mouseout(function () {
	$(this).css('border-color','#D5D5D5');
});


$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel

});



