$(document).ready(function(){
	var docWid = $(window).width();
	if (docWid < "1024" ) { 
		$("#flower").css({ display: 'none' });
	} else { 
		$("#flower").css({ display: 'block', top: '25%', right: '7%' }); 
	}
	$(window).resize(function() { 
		var resWin = $(window).width();
		if (resWin < "1024" ) { 
			$("#flower").css({ display: 'none' }); 
		} else { 
			$("#flower").css({ display: 'block', top: '25%', right: '7%' });
		}
	});
	$.fn.hoverClass = function(c) {
		return this.each(function(){
			$(this).hover( 
				function() { $(this).addClass(c);  },
				function() { $(this).removeClass(c); }
			);
		});
	};
	$("#navigation .item li:first-child a, #navigation li:first-child").each(function(){
	    $(this).addClass("first-of");
	});
	$("#navigation li").hover(function(){
		$("ul", this).fadeIn("fast");
	});
	if (document.all) {
		$("#navigation li").hoverClass("sfHover");
	}
	$("#scrollableGallery").scrollable({circular: true, easing: "linear"}).autoscroll({ autoplay: true, interval: 8000 });
	$("#edit-event-has-time").attr("checked","");
	$("#edit-event-has-time-wrapper").parent().hide();
});
