$.metadata.setType("attr", "validate");

$(document).ready(function() {

	/*
	var timer = setInterval(loopFeature, 5000);
	
	function loopFeature() {
		var src = $('#feature img').attr('src');
		if (src == 'img/feature1.jpg') {
			$('#feature img').attr('src', 'img/feature2.jpg');
			}
		else {
			$('#feature img').attr('src', 'img/feature1.jpg');
			}
		}
	*/

	// Alternate table row colors
	$('.evenodd').evenodd();
	
	// Validate forms
	$('.validate').validate();
	
	$('.tip').qtip({ position: { at: 'bottom center', my: 'top center' }});
	
	$('img.captify').jcaption({
		animate: true,
		captionElement: 'p',
		show: { height: "show" },
		hide: { height: "hide" }
	});

});
