/* jQuery(document).ajaxStart(jQuery.blockUI).ajaxStop(jQuery.unblockUI); */
jQuery(document).ready(function(){

	jQuery('.blockOverlay').attr('title','Click to unblock').click(jQuery.unblockUI);

	jQuery('html').addClass('js');

	jQuery("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal',
		padding: 40,
		opacity: 0.35,
		showTitle: true,
		allowresize: true,
		counter_separator_label: '/',          
		theme: 'facebook' 
	});
	
	jQuery('.block-events .tabs1 li a').click(function(){
		if(!jQuery(this).hasClass('current')){
			jQuery('.block-events .tabs1 li a').removeClass('current');
			jQuery(this).addClass('current');
			jQuery('.block-events .contents .contents-tab1').removeClass('current');
			var whatIsId = jQuery(this).attr('id');
			jQuery('.block-events .contents #' + whatIsId + '-contents').addClass('current');
		}
	});
	
	jQuery('.block-events2 .tabs2 li a').click(function(){
		if(!jQuery(this).hasClass('current')){
			jQuery('.block-events2 .tabs2 li a').removeClass('current');
			jQuery(this).addClass('current');
			jQuery('.block-events2 .contents .contents-tab2').removeClass('current');
			var whatIsId = jQuery(this).attr('id');
			jQuery('.block-events2 .contents #' + whatIsId + '-contents').addClass('current');
		}
	});
	
});

