// Slideshow front (http://www.htmldrive.net/items/show/582/jShowOff-jQuery-Content-Rotator.html)
	$(document).ready(function(){ 
	$('#slideshow').jshowoff({ 
			autoPlay : false,
			animatePause: false,
			changeSpeed : 600,
			controls : true,
			controlText:{ play:'Play', pause:'Pause', previous:'&lArr; Forrige', next:'Neste &rArr;' },
			effect : 'slideLeft',
			hoverPause : true,
			links : true,
			speed : 6000
	});
});
 // Select-meny ved smale vinduer (http://css-tricks.com/13303-convert-menu-to-dropdown/)
	   // To make dropdown actually work
	   // To make more unobtrusive: http://css-tricks.com/4064-unobtrusive-page-changer/
	$(function() {
	$(".narrow_nav select").change(function() {
		window.location = $(this).find("option:selected").val();
    }); 
});
	$(function() {
	$(".narrow_footer select").change(function() {
		window.location = $(this).find("option:selected").val();
    }); 
});

// Fullbredde hovedlinker på forside (https://github.com/davatron5000/FitText.js)
  $(".responsive_h").fitText(0.8);


// Masonry til Royksignaler (http://masonry.desandro.com/demos/fluid.html)
// var $container = $('#container');

// $(window).resize(function(){
//   $container.masonry({
//       itemSelector: '.box',
//       isResizable: false,
      // set columnWidth a fraction of the container width
//       columnWidth: $container.width() / 3
//   });
// trigger resize to set up masonry on start-up
// }).resize();
