
	function DESemail(emailname,emailserver) {
		document.write("<a href='mailto:" + emailname + "@" + emailserver +"'>")
		document.write(emailname + "@" + emailserver)
		document.write("</a>")
	}


	function hasCSS() {
		$('<div class="css_test">&nbsp;</div>').appendTo('body')
		var _v = $('.css_test:hidden')[0] ? true : false;
		console.log(_v);
		$('.css_test').remove()
		return _v;
	}


	//	That's the anthem - get your damn hands up!
	$(function() {
		if ($('.calendar')[0]) Calendar.init()

		$('#main_nav li a').hover(
			function() {
				parent_class = $(this).parent().attr('class')

				if (!$('body').hasClass(parent_class)) {
					$(this)
						.stop()
						.animate({
							borderBottomWidth: 15,
							marginTop: 0
						}, 250)
				}
			},

			function() {
				if (!$('body').hasClass(parent_class)) {
					$(this)
						.stop()
						.animate({
							borderBottomWidth: 5,
							marginTop: 10
						}, 250)
				}
			}
		)


//		if (hasCSS()) {
			if ($('#slideshow')[0]) {
				$('#slideshow').cycle({timeout: 7500})
			}

			if ($('#home_news')[0]) {
				$('#home_news')
					.cycle({ speed: 500, timeout: 6000 })
					.hover(
						function() { $(this).cycle('pause')  },
						function() { $(this).cycle('resume') }
					)
			}

			if ($('.multi_master')[0]) {
				$('.multi_master')
					.cycle({
						speed: 250,
						timeout: 7000,
						pager: '.multi_thumbs',
						pagerAnchorBuilder: function(i) {
							return '.multi_thumbs li:eq('+i+') a';
						}
					})
					.hover(
						function() { $(this).cycle('pause')  },
						function() { $(this).cycle('resume') }
					)
			}
//		}


		$('.hide_inner').each(function() {
			$(this).removeClass('hide_inner').wrapInner('<span class="hide_this"></span>')
		})


		$('.remove_this').each(function() {
			$(this).remove()
		})
	})

