function xsn() {
	$("#subscribe form span select").easySelectBox();
	$("#menu li:last-child").css("border-bottom","none"); $("#fmenu li:last-child").css("border-right","none"); $("ul.stafflist li:nth-child(3n)").css("margin-right","0");
	$("#carousel").featureCarousel({
		autoPlay: 5000,
		carouselSpeed: 500,
		largeFeatureWidth: 217,
		largeFeatureHeight: 208,
		smallFeatureWidth: 186,
		smallFeatureHeight: 139,
		topPadding: 30,
		smallFeatureOffset: 30,
		trackerIndividual: false,
		trackerSummation: false,
		animationEasing: 'linear'
	});
	if ($('#employpop').length > 0) {
		$("#employpop .employpophed img").click(function() {
			var showed = $("#employpop .employpopwrap").is(':visible');
			if (showed) {
				$("#employpop .employpopwrap").slideUp();
			} else {
				$("#employpop .employpopwrap").slideDown();
			}
		});
		$("#employpop .employpopclose img").click(function() {
			$("#employpop .employpopwrap").slideUp();
		});
	}
	if ($("#mainarea.contactus").length > 0 || $("#mainarea.locations").length > 0) {
		$("a[href*='maps.google']").click(function(e) {
			$.modal('<iframe src="'+this.href+'&output=embed"></iframe>');
			return false;
		});
	}
	$(".ngg-galleryoverview .ngg-gallery-thumbnail a, .imagecol a").lightBox({
		imageLoading: '/wp-content/themes/davilia/js/images/lightbox-ico-loading.gif',
		imageBtnClose: '/wp-content/themes/davilia/js/images/lightbox-btn-close.gif',
		imageBtnPrev: '/wp-content/themes/davilia/js/images/lightbox-btn-prev.gif',
		imageBtnNext: '/wp-content/themes/davilia/js/images/lightbox-btn-next.gif',
		imageBlank: '/wp-content/themes/davilia/js/images/lightbox-blank.gif'
	});
}
