$(document).ready(function() {
	var api = $('#netopsfm').jScrollPane({
			showArrows:true,
			maintainPosition: false
		}).data('jsp');
	$.featureList(
		$("#tabs li a"),
		$("#output li"), {
		start_item	:	0
	}
);
	$('#nuopsfm').load('nuopsfm.php?randval='+ Math.random()).show("slide", { direction: "up" }, 1000);
	$('#nulivecontent').load('nulive.php?randval='+ Math.random()).show("slide", { direction: "up" }, 1000);
	//$('#netopsfm').load('zojuistgedraait.php?randval='+ Math.random()).show("slide", { direction: "up" }, 1000);
	api.getContentPane().load('zojuistgedraait.php?randval='+ Math.random(),function(){api.reinitialise();});

	var auto_refresh = setInterval( function() { 
	$('#nuopsfm').hide("slide", { direction: "down" }, 1000); 
	$('#nulivecontent').hide("slide", { direction: "down" }, 1000);
	//$('#netopsfm').hide("slide", { direction: "down" }, 1000); 
	$('#nuopsfm').load('nuopsfm.php?randval='+ Math.random()).show("slide", { direction: "up" }, 1000);
	$('#nulivecontent').load('nulive.php?randval='+ Math.random()).show("slide", { direction: "up" }, 1000);
	//$('#netopsfm').load('zojuistgedraait.php?randval='+ Math.random()).show("slide", { direction: "up" }, 1000);
	api.getContentPane().load('zojuistgedraait.php?randval='+ Math.random(),function(){api.reinitialise();});

} , 15000 )
});
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=40,left = 640,top = 485');");
}
$.fx.speeds._default = 1000;
$(function() {
	$( "#home" )
		.button()
		.click(function() {
			document.location = 'index.php';
		})
	$( "#nieuws" )
		.button()
		.click(function() {
			document.location = 'nieuws.php';
		})
	$( "#chat" )
		.button()
		.click(function() {
			document.location = 'chat.php';
		})
	$( "#verzoek" )
		.button()
		.click(function() {
			document.location = 'verzoek.php';
		})
	$( "#gastenboek" )
		.button()
		.click(function() {
			document.location = 'gastenboek.php';
		})
	$( "#medewerkers" )
		.button()
		.click(function() {
			document.location = 'medewerkers.php';
		})
	$( "#programmering" )
		.button()
		.click(function() {
			document.location = 'programmering.php';
		})
	$( "#artiesten" )
		.button()
		.click(function() {
			document.location = 'artiesten.php';
		})
			.parent()
				.buttonset();
	$( "#slide1" )
		.button()
		.click(function() {
		$( "#lees1" ).dialog( "open" );
		return false;
		})
	$( "#slide2" )
		.button()
		.click(function() {
		$( "#lees2" ).dialog( "open" );
		return false;
		})
	$( "#slide3" )
		.button()
		.click(function() {
		$( "#lees3" ).dialog( "open" );
		return false;
		})
	$( "#lees1" ).dialog({
		autoOpen: false,
		show: "fade",
		hide: "fade",
		modal: true,
		width: 660,
		height: 460
	});
	$( "#lees2" ).dialog({
		autoOpen: false,
		show: "fade",
		hide: "fade",
		resizable: false
	});
	$( "#lees3" ).dialog({
		autoOpen: false,
		show: "fade",
		hide: "fade",
		resizable: false
	});
	$( "#verzoekverzonden" ).dialog({
		autoOpen: false,
		show: "fade",
		hide: "fade",
		resizable: false
	});
	$( "#weekoverzicht" ).accordion({
		autoHeight: false,
		navigation: true
	});
});
