$(document).ready(function(){
	
	//Mainmenu Fade Effect
	$(function() {
		// set opacity to nill on page load
		$("ul#ul_mainmenu span").css("opacity","0");
		// on mouse over
		$("ul#ul_mainmenu span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "slow");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow");
		});
	});
	
	//Mainteaser Menu Fade Effect
	$(function() {
		// set opacity to nill on page load
		$("#ul_mainteaser-nav span").css("opacity","0");
		// on mouse over
		$("#ul_mainteaser-nav span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "fast");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "fast");
		});
	});
	
	//Subteaser Menu Fade Effect
	$(function() {
		// set opacity to nill on page load
		$("ul#ul_subteaser-nav span").css("opacity","0");
		// on mouse over
		$("ul#ul_subteaser-nav span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "fast");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "fast");
		});
	});
	
	
	//News Popups
	$("a.inline").fancybox({ 
		'hideOnContentClick': true,
		'zoomSpeedIn': 300, 
		'zoomSpeedOut': 300, 
		'overlayShow': false 
	}); 
	
	//Mainteaser Slider
	$("#mainteaser_pics").easySlider({
	});

	
}); 