

// Windows Onload functies

//$(document).ready(function() {
 
 	
function vulContainer(link) {
	 		if($.browser.msie) {  
	 			$("#TekstRechts").fadeTo(0, 0, function() {
      				$("#Ajaxload").show();
      				$("#TekstRechts").load("./includes/haalobject.php"+link, function() {
      				$("#Ajaxload").hide();
      				$("#TekstRechts").fadeTo(0, 1, function() {
      					if($.browser.msie) { this.style.removeAttribute('filter'); };
	  	  				var scrollDiv = document.getElementById('ZoekResultaat'); 
	  	  				if(scrollDiv.fleXcroll) scrollDiv.fleXcroll.updateScrollBars();
      				});
    			
    			});		
			
	 		 });
	 		} else {
	 	
	 			$("#TekstRechts").stop().animate({"opacity": 0 }, 150, function () {		
				$("#Ajaxload").show();
	     		$("#TekstRechts").load("./includes/haalobject.php"+link, function() {
	     		$("#Ajaxload").hide();
	     			$("#TekstRechts").animate({"opacity": 1 }, 100, function() {
	     		 		if($.browser.msie) { this.style.removeAttribute('filter'); };
	  	  				var scrollDiv = document.getElementById('ZoekResultaat');
	  	  				if(scrollDiv.fleXcroll) scrollDiv.fleXcroll.updateScrollBars();
	     				   					     		
	     			});
	     				     				     			
	     		}); 
	     });
	
	}
}

function vulOnderdeel(link) {
	 		if($.browser.msie) {  
	 			$("#TekstRechts").fadeTo(0, 0, function() {
      				$("#Ajaxload").show();
      				$("#TekstRechts").load("./includes/haalonderdeel.php"+link, function() {
      				$("#Ajaxload").hide();
      				$("#TekstRechts").fadeTo(0, 1, function() {
      					if($.browser.msie) { this.style.removeAttribute('filter'); };
	  	  				var scrollDiv = document.getElementById('ZoekResultaat'); 
	  	  				if(scrollDiv.fleXcroll) scrollDiv.fleXcroll.updateScrollBars();
      				});
    			
    			});		
			
	 		 });
	 		} else {
	 	
	 			$("#TekstRechts").stop().animate({"opacity": 0 }, 150, function () {		
				$("#Ajaxload").show();
	     		$("#TekstRechts").load("./includes/haalonderdeel.php"+link, function() {
	     		$("#Ajaxload").hide();
	     			$("#TekstRechts").animate({"opacity": 1 }, 100, function() {
	     		 		if($.browser.msie) { this.style.removeAttribute('filter'); };
	  	  				var scrollDiv = document.getElementById('ZoekResultaat');
	  	  				if(scrollDiv.fleXcroll) scrollDiv.fleXcroll.updateScrollBars();
	     				   					     		
	     			});
	     				     				     			
	     		}); 
	     });
	
	}
}
	
//	});
						
