/* Author: 

*/



$(document).ready(function() {
	
	$("a.video").click(function() {
	$.fancybox({
			'padding'		: 0,
			'overlayColor'	: '#000000',
			'overlayOpacity': 0.4,
			'autoScale'		: false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'title'			: this.title,
			'width'		: 840,
			'height'		: 500,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

		return false;
	});
	
	//$('a.video').trigger('click');
	
	$(".home a").hover(function() {
        $(this).stop().animate({bottom: "-21"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "0"}, 100);
    });
    
    $(".home a.current").hover(function() {
        $(this).stop().animate({bottom: "-21"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "-21"}, 100);
    });
    
    $(".line-up a").hover(function() {
        $(this).stop().animate({bottom: "-30"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "0"}, 100);
    });
    
    $(".line-up a.current").hover(function() {
        $(this).stop().animate({bottom: "-30"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "-30"}, 100);
    });
    
    $(".tickets a").hover(function() {
        $(this).stop().animate({bottom: "-24"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "0"}, 100);
    });
    
    $(".tickets a.current").hover(function() {
        $(this).stop().animate({bottom: "-24"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "-24"}, 100);
    });
    
    $(".locatie a").hover(function() {
        $(this).stop().animate({bottom: "-20"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "0"}, 100);
    });
    
    $(".locatie a.current").hover(function() {
        $(this).stop().animate({bottom: "-20"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "-20"}, 100);
    });
    
    $(".sponsors a").hover(function() {
        $(this).stop().animate({bottom: "-19"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "0"}, 100);
    });
    
    $(".sponsors a.current").hover(function() {
        $(this).stop().animate({bottom: "-19"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "-19"}, 100);
    });
    
    $(".huisregels a").hover(function() {
        $(this).stop().animate({bottom: "-17"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "0"}, 100);
    });
    
    $(".huisregels a.current").hover(function() {
        $(this).stop().animate({bottom: "-17"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "-17"}, 100);
    });
    
    $(".hello2010 a").hover(function() {
        $(this).stop().animate({bottom: "-28"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "0"}, 100);
    });
    
    $(".hello2010 a.current").hover(function() {
        $(this).stop().animate({bottom: "-28"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "-28"}, 100);
    });
    
    $(".contact a").hover(function() {
        $(this).stop().animate({bottom: "-17"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "0"}, 100);
    });
	
	$(".contact a.current").hover(function() {
        $(this).stop().animate({bottom: "-17"}, 140);
    }, function() {
        $(this).stop().animate({bottom: "-17"}, 100);
    });
    
    $("#accordion").accordion({ autoHeight: false });
    
    var randomnumber=Math.floor(Math.random()*17)
    
    $("#tabs").tabs({ selected: randomnumber });
    
	
	
});




















