$(document).ready(function() {

$('.btn').mouseover(function () {
	$(this).css('opacity', '0.7');
});

$('.btn').mouseout(function () {
	$(this).css('opacity', '1');
});

$('button').mouseover(function () {
	$(this).css('background-color', '#800000');
});

$('button').mouseout(function () {
	$(this).css('background-color', '#000000');
});

$('img', '.gryImg').mouseover(function () {
	$(this).css('opacity', '1');
});

$('img', '.gryImg').mouseout(function () {
	$(this).css('opacity', '0.3');
});

$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel

});



var GB_ANIMATION = true;

function checkFrm(frm)
{
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i

	if (frm.name.value == '')
	{
	alert ('Enter your name!');
	return false;
	}
	else if (!filter.test(frm.email.value))
	{
	alert ('Your email is invalid!');
	return false;
	}
	else if (frm.message.value == '')
	{
	alert ('Enter your message!');
	return false;
	}		
	else
	{
	return true;
	}
}


