$(document).ready(function() {
	nav_port();	
	$("a.volgende").click(function(){	
		$('#port> li:not(:hidden):first').hide("slide");
		
		nav_port();	
		$("a.vorige").css({'visibility':'visible' });
	});	
	$("a.vorige").click(function(){	
		$('#port> li:not(:visible):last ').show("slide");	
		nav_port();	
		$("a.volgende").css({'visibility':'visible' });
	});
	
	$('.tijdslijn_content:not(:first)').hide(0);
	$('.tijdslijn_sam > a').click(function(){
		//var re = /([_\\-\\w]+$)/i;
        //var target = $('#' + re.exec(this.href)[1]);
        //alert(target);
		alert('test');
	});
	
	
});
$(window).resize(function() {
	//screenpos(min_y,min_x,max_x, max_y);
});	
$(window).load(function() {
	//screenpos(min_y,min_x,max_x, max_y);	
});	
function move_pos(){

	    
		
}	

function nav_port(){
	var n=$('#port> li:not(:visible)').length;
	var n2=$('#port> li:not(:hidden)').length;
	//alert(n);
	//alert(n2);

	if(n==0){
		$("a.vorige").css({'visibility':'hidden' });
	}else{
		$("a.vorige").css({'visibility':'visible' });
	}
	if(n2==3){
		$("a.volgende").css({'visibility':'hidden' });
	}else{
		$("a.volgende").css({'visibility':'visible' });
	}
	
}



