$(document).ready(function(){	
						   
		$("ul.featured-ul li:nth-child(3n)").addClass("last");			   
						   
		$("#slider").easySlider({
				auto: true, 
				continuous: true,
				numeric: true
		});
			
		//On mouse over those thumbnail
		$('.mag-thumb').hover(function() {
		
			//Display the caption
			$(this).find('div.caption').stop(false,true).fadeIn(200);
			},
			function() {
			
			//Hide the caption
			$(this).find('div.caption').stop(false,true).fadeOut(200);
			
		});
		

		$('.each-box').hover(function () {
					// this is your mouse over section
	
			$(this).children('.the-box-slider').stop().animate({ top: '30' }, 500);
	
		}, function() {
			// this is your mouse off section
			
			$(this).children('.the-box-slider').stop().animate({ top: '230',}, 600);
		
		});
		
		
		$('.topmenu input#s').click(function() {
			
			$('.topmenu input#s').animate({ width: '150px' }, { duration: 500 });
			
		});
		
		
		$('#main-nav ul li.dropdown').hover(function () {
					// this is your mouse over section
	
			$(this).children('.dd').stop().animate({opacity: 1.0}, 300);
	
		}, function() {
			// this is your mouse off section
			
			$(this).children('.dd').stop().animate({opacity: 0}, 600);
		
		});
	
		$('.event-date .aika:contains(", 0:00 - 0:00")').remove();
		
		if($.trim($(".event-tickets").text()) == "") {
 		$(".event-tickets").remove();
		}else {
			$('p.event-tickets').prepend('<strong>Tickets:</strong> ');
		}
		
		
		if($.trim($(".event-age").text()) == "") {
 		$(".event-age").remove();
		}else {
			$('p.event-age').prepend('<strong>Age limit:</strong> ');
		}


});	


