$(document).ready(function() {
	
	// slider effects
	$('#slider').cycle({ 
   		fx:    'fade', 
   		delay: 2000,
   		sync: 0,
   		pause: 1
	});
	
	
		
	// hide servicesDescription 
	$(".dropDescription").hide();
	
	// toggle servicesDescription
	$(".dropHeader").click(function() {
		$(this).next(".dropDescription").slideToggle(500);
		return false;
	});
	
	
	
	//table row colring
	$("tr.rowA:odd, tr.rowB:odd, tr.rowC:odd").addClass("odd");
	
	// make jobs table row clickable
	$('tr.clickableRow').click(function() {
		window.location=$(this).find("a").attr("href");
		return false;
	});
	
	
	// equal height div
	var maxHeight = 0;
		$("#mainContent").each(function(){
	   if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
	});
	
	$("#sidebar").height(maxHeight);



	// validate signup form on keyup and submit	
	$("#addSubmit").click(function() {
		$("form#addJob").validate();
	});
	
	$(".modifySubmit").click(function() {
		$("form#modifyJob").validate();
	});
	
	

	
		
});
