jQuery.noConflict();
jQuery(function() {
	jQuery('#home-slider').anythingSlider({
		autoPlay            : false,
		//delay				: 7000,
		buildNavigation     : false
	});
	jQuery('#home-slider-mask').show();
	jQuery('#home-slider-wrap').mouseenter(function() {
		jQuery('#home-slider-mask').hide();
	}).mouseleave(function() {
		jQuery('#home-slider-mask').show();
	});
	
	if(jQuery('#eighteen-warning').length > 0) {
		if(jQuery.cookie('eighteen-warning') == null) {
			jQuery("#eighteen-warning").overlay({

				// custom top position
				top: 100,

				// some mask tweaks suitable for facebox-looking dialogs
				mask: {

					// you might also consider a "transparent" color for the mask
					color: '#fff',

					// load mask a little faster
					loadSpeed: 200,

					// very transparent
					opacity: 0.5
				},

				// disable this for modal dialog-type of overlays
				closeOnClick: false,
				closeOnEsc: false,

				// load it immediately after the construction
				load: true

			});
		}
		
		jQuery('#eighteen-warning button').click(function() {
			jQuery.cookie('eighteen-warning', 'accept');
		});		
	}	
});
