sfHover = function() {
	var sfEls = document.getElementById("menuitems").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

$(document).ready(function(){
			
			//HOME UITSLAGEN EN AANKOMENDE WEDSTRIJDEN TABS SLIDER
		  	$("#hometabs li a").click(function(){
				$("#hometabs li a").removeClass("hide")						 
				$(this).addClass("hide")
		  	});
			
			$("#hometabs #tab2 a").click(function(){
				$(".AllTabs").animate({
						right: + 382+ "px"
					},500);
		  	});
			
			$("#hometabs #tab1 a").click(function(){
				$(".AllTabs").animate({
						right: + 0+ "px"
					},500);
		  	});
			
			// ALBUM TABS
	
			$(".boxrightitem").hide();
			$("#boxright ul li:first").addClass("current").show();
			$(".boxrightitem:first").show();
			
			$("#boxright ul li").click(function() {
		
				$("#boxright ul li").removeClass("current");
				$(this).addClass("current");
				$(".boxrightitem").hide();
		
				var activeTab = $(this).find("a").attr("href");
				$(activeTab).fadeIn(800);
				return false;
			});
			
			//FANCYBOX SETTINGS
			
			/* This is basic - uses default settings */
			
			$("a#single_image").fancybox({
				'hideOnContentClick': true,
				'overlayOpacity': 0.8,
				'padding': 5,
				'scrolling': 'no',
				'overlayColor': '#000'
			});
	
			$("a.wedstrijdverslag").fancybox({
				'hideOnContentClick': false,
				'overlayOpacity': 0.5,
				'padding': 0,
				'scrolling': 'no',
				'overlayColor': '#000'
			});
			
			$("a.spelerprofiel").fancybox({
				'hideOnContentClick': true,
				'overlayOpacity': 0.8,
				'padding': 0,
				'scrolling': 'no',
				'overlayColor': '#000'
			});
			
			/* Using custom settings */
			
			$("a#inline").fancybox({
				'hideOnContentClick': true
			});
		
			/* Apply fancybox to multiple items */
			
			$("a.group").fancybox({
				'transitionIn'	:	'elastic',
				'transitionOut'	:	'elastic',
				'speedIn'		:	600, 
				'speedOut'		:	200, 
				'overlayShow'	:	false
			});
		  
});
