// Sidebar: Newsletter Email Input
$(document).ready(function() {
	$("#semail").focus(function() {
		if ($(this).val() == "Email") {
			$(this).val("");
		}         
	});
	$("#semail").blur(function() {
		if ($(this).val() == "") {
			$(this).val("Email");
		}
	});
	
	//Random num captcha
	var num1 = Math.floor(Math.random()*10);
	var num2 = Math.floor(Math.random()*10);
	
	var msg = "What is "+num1+" + "+num2+"?";
	
	$("#captcha-label").html(msg);
	$("#hidden-answer").val(num1+num2);
	
});



// Services Show/Hide Effect
function initMenu() {
	$('#menu td a').click(
		function() {
				$('ul#list').slideToggle('normal');
		}
	);
}
$(document).ready(function() {initMenu();});



//	Header: Banner Cycle
$(document).ready(function() {
	$('.rotate').cycle({
		fx: 'fade',
		timeout: '5000',
		easeing: 'easeInExpo'
	});
});



// Rotating Background
$(document).ready(function() {
	var theDate = new Date();
	var month = theDate.getMonth();

	// March(2) - August(7)
	if (month >= 2 && month <= 7)
	{
		$('body').addClass('grass');
	}
	// September(8) - Novemeber(10)
	else if (month >=8 && month <= 10)
	{
		$('body').addClass('leaves');
	}
	// December(11), January(0), February(1)
	else
	{
		$('body').addClass('snow');
	}
});



// Lightbox Sidebar
$(function() {
	$('#gallery a').lightBox();
});

function randomize() {
	
	
}
