		function onSelectChange(type, value){
			if ( type == 'land' ) {
				$.ajax({  
					type: "GET",  
					url: '/ajax/ajax.php',  
					data: "function=select_box&type="+type+"&land="+$("#categorie_land").val(),  
					success: function(msg){  
						$("#categorie_beurs").html( msg );
						$.ajax({  
							type: "GET",  
							url: '/ajax/ajax.php',  
							data: "function=select_box&type=beurs&land="+$("#categorie_land").val()+"&beurs="+$("#categorie_beurs").val(),  
							success: function(msg2){  
								$("#categorie_index").html( msg2 );
								$.ajax({  
									type: "GET",  
									url: '/ajax/ajax.php',  
									data: "function=select_box&type=index&land="+$("#categorie_land").val()+"&beurs="+$("#categorie_beurs").val()+"&index="+$("#categorie_index").val(),  
									success: function(msg3){  
										$("#productid").html( msg3 );
								    }
								});
						    }
						});
					}  
				});
			}else if ( type == 'beurs' ) {
				$.ajax({  
					type: "GET",  
					url: '/ajax/ajax.php',  
					data: "function=select_box&type="+type+"&land="+$("#categorie_land").val()+"&beurs="+$("#categorie_beurs").val(),  
					success: function(msg){  
						$("#categorie_index").html( msg );
						$.ajax({  
							type: "GET",  
							url: '/ajax/ajax.php',  
							data: "function=select_box&type=index&land="+$("#categorie_land").val()+"&beurs="+$("#categorie_beurs").val()+"&index="+$("#categorie_index").val(),  
							success: function(msg3){  
								$("#productid").html( msg3 );
						    }
						});
						
					}  
				});
			}else if ( type == 'index' ) {
				$.ajax({  
					type: "GET",  
					url: '/ajax/ajax.php',  
					data: "function=select_box&type="+type+"&land="+$("#categorie_land").val()+"&beurs="+$("#categorie_beurs").val()+"&index="+$("#categorie_index").val(),  
					success: function(msg){  
						$("#productid").html( msg );
					}  
				});
			}  
		}
		
		
		$(document).ready(function() {
			//Activate FancyBox
			$.fn.cycle.defaults.speed   	= 1000;
			$.fn.cycle.defaults.timeout 	= 4000;
			$.fn.cycle.defaults.continuous	= 0;

			$(function() {
				$('#events').cycle();
			});
			
			function onAfter(curr, next, opts) {
				//$('#slider .item').attr('style','display:block;width:100%;height:535px;');
			}

			
			$(window).resize(function() {
				var attr;
				/*attr = $('#slider').attr('style');
				$('#slider').attr('style',attr);*/
				$('#slider .item').attr('style','display:block;width:100%;height:535px;');
				$('#slider').attr('style','display:block;height:534px;text-align:center;');
				/*attr = $('#slider #2').attr('style');
				$('#slider #2').attr('style',attr);
				reloadStylesheets();*/
			});

			function reloadStylesheets() {
			    var stylesheets = $('link[rel="stylesheet"]');
			    var reloadQueryString = '?reload=' + new Date().getTime();
			    stylesheets.each(function () {
			        this.href = this.href.replace(/\?.*|$/, reloadQueryString);
			    });
			}


			$("a.group").fancybox({
				'hideOnContentClick': false,
				'frameWidth':480,
				'frameHeight':385,
				'overlayShow':true,
				'titlePosition':'over'
			});
			$("a.nieuwsbrief").fancybox({
				'hideOnContentClick': false,
				'width':725,
				'height':550,
				'overlayShow':true,
				'padding':0,
				'titlePosition':'inside'
			});
			$( "#logo_scroller" ).imageScroller( {loading:'Een moment geduld aub....'} );
			$(".youtube_video").click(function() {
				$.fancybox({
					'padding'		: 0,
					'autoScale'		: false,
					'transitionIn'	: 'none',
					'transitionOut'	: 'none',
					'title'			: this.title,
					'width'		: 680,
					'height'		: 495,
					'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
					'type'			: 'swf'
				});

				return false;
			});
			$("#youtube_video").click(function() {
				$.fancybox({
					'padding'		: 0,
					'autoScale'		: false,
					'transitionIn'	: 'none',
					'transitionOut'	: 'none',
					'title'			: this.title,
					'width'		: 680,
					'height'		: 495,
					'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
					'type'			: 'swf'
				});

				return false;
			});
			$('A[rel="_blank"]').click(function(){
	            window.open($(this).attr('href'));
	        	return false;
	        });

		});
		
		
		
