		sfHover = function() {
        var sfEls = document.getElementById("nav").getElementsByTagName("LI");
        for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
        this.className+=" ie_does_hover";
        }
        sfEls[i].onmouseout=function() {
        this.className=this.className.replace(new RegExp(" ie_does_hover\\b"), "");
        }
        }
        }
        if (window.attachEvent) window.attachEvent("onload", sfHover);

		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   	= 150;
			$.fn.cycle.defaults.timeout 	= 12000;
			$.fn.cycle.defaults.continuous	= 0;
			
			$(function() {
			    // run the code in the markup!
			    $('#banners_top').cycle();
			    $('#banners_0').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
		    		}
		    	});
			    $('#banners_1').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
			    	}
		    	});
			    $('#banners_2').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
			    	}
			    });
			    $('#banners_3').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
		    		}
		    	});
			    $('#banners_4').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
		    		}
		    	});	
			    $('#banners_5').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
		    		}
		    	});	
			    $('#banners_6').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
		    		}
		    	});			 
			    $('#voorkeur_banners_1').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
			    	}
		    	});
			    $('#voorkeur_banners_2').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
			    	}
			    });
			    $('#voorkeur_banners_3').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
		    		}
		    	});
			    $('#voorkeur_banners_4').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
		    		}
		    	});	
			    $('#voorkeur_banners_5').cycle({
		    		before: function(currSlideElement, nextSlideElement, options, forwardFlag) {
		    		$($(this).parent()).animate({
		    		height: $(nextSlideElement).height()
		    		}, 500);
		    		}
		    	});			    

			});
			
			$("a.group").fancybox({
				'hideOnContentClick': false,
				'frameWidth':480,
				'frameHeight':385,
				'overlayShow':true
			});
			$(".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;
			});
			$("#forgot_pass").fancybox({
				'width'				: 595,
				'height'			: 250,
		        'autoScale'     	: false,
				'hideOnContentClick': false,
				'overlayShow':true
			});
			$('A[rel="nofollow _blank"]').click(function(){
	            window.open($(this).attr('href'));
	        	return false;
	        });
			$('A[rel="_blank"]').click(function(){
	            window.open($(this).attr('href'));
	        	return false;
	        });

		});