function equalHeight(group) {
   tallest = 0;
   group.each(function() {
      thisHeight = $(this).height();
      if(thisHeight > tallest) {
         tallest = thisHeight;
      }
   });
   group.height(tallest);
}


$(document).ready(function() {

	equalHeight($(".column"));	

	// HOMEPAGE
	if ( $('#news').length !== 0 )
	{
		$("#news ul").cycle({
			next: '#next',
			prev: '#prev',
			speed: 200,
			timeout: 6000,
			fx:   'scrollHorz',
			pause: 1,
			cleartypeNoBg: true,
			timeout: 8000
		});
	}

	if ( $('#quick-bar').length !== 0 )
	{
		$("#quick-bar li").hover(function() {	//On hover...
			$(this).find("img").stop().animate({ 
				marginTop: "-60" //Find the span tag and move it up 40 pixels
			}, 250);
		} , function() { //On hover out...
			$(this).find("img").stop().animate({
				marginTop: "0" //Move the span back to its original state (0px)
			}, 250);
		});
	}

	// HOMEPAGE
	if ( $("table.simple-table").length !== 0 )
		$("table.simple-table tr:even").addClass("alt-row");

	// VALIDATION
	if ( $('#contactform').length !== 0 )
		$("#contactform").validate();
	if ( $('#contactform2').length !== 0 )
		$("#contactform2").validate();
});