function upMenu(){
	jQuery("ul#menu-toppLinje li").hover(function(){		
			jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).fadeIn(250);
				},function(){
					jQuery(this).find('ul:first').hide();
				});
}

function anythingSlider() {
		$('#slider1').anythingSlider({
			width           : 620,
			height          : 440,
			delay           : 8000,
			resumeDelay     : 10000,
			startStopped    : false,
			autoPlay        : true,
			autoPlayLocked  : false,
			easing          : "swing",
			onSlideComplete : function(slider){
				// alert('Welcome to Slide #' + slider.currentPage);
			}
		});
		$(".feature_video").hover(function(){
		    $('#slider1').data('AnythingSlider').startStop(false); // this stops the slideshow
		});
		$(".arrow").click(function(){
		    $('#slider1').data('AnythingSlider').startStop(true); // this starts the slideshow
		});
		
		
		$('#homeslider iframe').each(function() {
			var url = $(this).attr("src")
			$(this).attr("src",url+"&amp;wmode=Opaque")
		});
	
}



$(function() {
	upMenu();
	anythingSlider();
	
});
