(function($) {
	
	$(function() {
		
		$('.eventlisting > ul > li:last').addClass('last');
		
		$('#listen-live').click(function() {
			var url = 'http://christiannetcast.com/listen/player.asp?station=wrxt-fm';
			
			window.open(url, 'listen_live', 'width=760,height=390');
			
			return false;
		});
		
		if ($('#facebook-updates > p').length == 2) {
			$('#facebook-updates').cycle({
				fx: 'scrollUp',
				speed: 1000,
				timeout: 10500,
				height: 175
			});
			
			$('#facebook-updates > p span').css({
				'display': 'block',
				'padding-bottom': '5px'
			});
			
		} else {
			$('#facebook-updates').cycle({
				fx: 'scrollUp',
				speed: 1000,
				timeout: 10500,
				height: 53
			});
		}
		
		$(document.body).imageZoom();
		
		$('form.validate-form').each(function() {
			$(this).validate();
		});
		
		/*$('#give-now-animated-text').cycle({
			fx: 'scrollUp',
			speed: 1000,
			timeout: 3000,
			width: 205,
			height: 54
		});*/
		
	});
	
})(jQuery);

function show_now_playing()
{
	var $ = jQuery;
	$('#now-playing > span:last').load('/ajax/now-playing.php');
}

setInterval('show_now_playing();', 10000);
