$(document).ready(function() {

	//SLIDESHOW
    $('.slideshow').cycle({
		cleartype: true,
        cleartypeNoBg: true,
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	
	//DROPDOWN
	//dropdown menu on click
	$('.dropdownMenu').click(function() {
		 $('.menuItems').toggle();
	});
	
	//NEWS/EVENTS
    $(".eventContentSection a").each(function(index) {
		  var a = $(this);
			a.attr("target", "_blank");
		});
	
	//IPAD SPECIFIC
	if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
		//skip rollovers
		$("a").click(function(){
			 $("a").bind('touchstart', function(){
       			 console.log("touch started");
   			 });
		});
		
	} else {
	
	//HOVER TRANSITIONS
	$('.fade').hover(function() {
		//hover in
		var div = $('> div', this);
			div.fadeIn(100);
		
		}, function() {
			//hover out
			var div = $('> div', this);
				div.fadeOut(250);
		});
	}
});





