try{ Typekit.load(); } catch(e){};

function confirmSubmit()
{
var agree=confirm("Are you sure you wish to continue? Don't forget your mascarading!");
if (agree)
	return true ;
else
	return false ;
}

$(function() {

	$('a[rel=tipsy]').tipsy({opacity: 1, fade: true, gravity: 'n', html: true});
	
	$(".cta_camera").fancybox({
		'transitionIn' : 'elastic',
		'transitionOut' : 'elastic',
		'speedIn' : 600, 
		'speedOut' : 200, 
		'overlayShow' : false,
		'width' : 580,
		'height' : 326,
		'padding' : 16
	});
	
	$(".main-tabs").tabs({ 
		cache: false, 
		fx: { height: 'toggle', opacity: 'toggle' },
		ajaxOptions: {
			error: function( xhr, status, index, anchor ) {
				$(anchor.hash).html('<div id="page-1" class="main-tabbed-body">Something went wrong. Sorry. We know about it and will get it fixed ASAP!</div>');
			}
		}
	});

	$(".small-tabs").tabs({ 
		cache: false,
		fx: { height: 'toggle', opacity: 'toggle' }
	});
		
});
