$(function() {
	$("#comp-entry :text").labelify();
	function updateTimeDisplay(text) {
		$("#time").html(text);
	}
	function updateTime() {
		$.ajax({
		  url: '/time.php',
		  data: "null",
		  cache: false,
		  success: updateTimeDisplay,
		  dataType: 'text'
		});
		setTimeout(updateTime, 10000);
	}
	updateTime();
	$("#showcase").cycle();
	/*
	if ($('#articles').is(":visible")) {
		$("#articles").jcarousel({
			vertical: true,
			scroll: 1,
			show: 1,
			auto: 5,
			wrap: "circular",
		});
	}
	*/
	$(".lightbox").fancybox();
	$(".validate-me").validate();

});
