// drop-down navigation
$("#main-nav li").has("ul").hover(function(){
	$(this).children("ul").css({visibility: "visible",display: "none"}).slideDown(400);
	}, 
	function() {
	$(this).children("ul").stop(true, true).css("display", "none");
});

// drop-down toggle for art fair exhibitors
$(document).delegate("#categories a", "click", function (e) {
  e.preventDefault();
  $("tbody").hide();
  $($(this).attr("href")).slideToggle();
  $("#categories li").removeClass("cur-select");
  $(this).parent().addClass("cur-select");
});

// iSpy stage performances
$('a[href*="perform"]').click(function(e){
	  e.preventDefault();
	$("#perform-sch").slideToggle(600);
});

// enlarge art fair exhibitor images
$("#exhibitors a").each(function(){
	$(this).attr({
		title: $(this).children('img').attr('title'),
		rel: 'prettyPhoto'
	});
});
$("#exhibitors a[rel^='prettyPhoto']").prettyPhoto({theme:'light_rounded'});

$("div.artist-images a[rel^='prettyPhoto']").prettyPhoto({theme:'light_rounded'});





