$(document).ready( function(){
	
	$("#slides").slides({
		play: 5000,
		pause: 2500,
		slideSpeed: 650
	});
	$("#slides2").slides({
		play: 7500,
		pause: 6000,
		slideSpeed: 650
	});
	$("#show_images a").fancybox();
	$(".fancybox").fancybox();
	$(".ie .fancybox2").fancybox({
		width: 740,
		height: "100%"
	});
	
	var highest = 0;
	$(".galleryitem .title").each(function() {
		var height = $(this).height();
		if(height > highest) {
			highest = height;
		}
	});
	$(".galleryitem .title").height(highest);
	var highest = 0;
	$(".galleryitem .description").each(function() {
		var height = $(this).height();
		if(height > highest) {
			highest = height;
		}
	});
	$(".galleryitem .description").height(highest);
	
});

function popbillett(theurl) {
	popup(theurl, 'popup', 700, 800);
}
function popup(url, name, width, height)
{
  var options = "width=" + width + ",height=" + height + ",toolbar=0,menubar=0,status=0,scrollbars=yes,resizable=yes";
  var newwin = window.open(url, name, options);
  newwin.focus();
}
