    $().ready(function(){
    //    getNewlist();
		getEventList();getMemberlist();getTFBlog();getIndexAds();getTwitter();getIndex2(); getIndex1();
    });
    function getIndexAds(){
    	 $.ajax({
            url: 'bk-ads.php',
            type: 'GET',
            data: 'action=index',
            error: function(){
                $('#banner').html('Er is iets mis, probeer opnieuw.');
            },
            success: function(data){
            	$('.banner').html(data);
            }
        });
    }
      function getIndex2(){
    	 $.ajax({
            url: 'bk-ads.php',
            type: 'GET',
            data: 'action=index2',
            error: function(){
                $('#index2').html('Er is iets mis, probeer opnieuw.');
            },
            success: function(data){
            	$('#index2').html(data);
            }
        });
    }
    function getIndex1(){
    	 $.ajax({
            url: 'bk-ads.php',
            type: 'GET',
            data: 'action=index1',
            error: function(){
                $('#adsBelowNews').html('Er is iets mis, probeer opnieuw.');
            },
            success: function(data){
            	$('#adsBelowNews').html(data);
            }
        });
    }
    function getEventList(){
        $.ajax({
            url: 'bk-events.php',
            type: 'GET',
            data: 'action=index',
            error: function(){
                $('#eventList').html('Er is iets mis, probeer opnieuw.');
            },
            success: function(data){
                $('#eventList').html(data);
            }
        });
    }
   	function getTFBlog(){
		$.ajax({
			url:'bk-events.php',
			type:'GET',
			data:'action=tf',
			//async: false,
			error:function(){$('#idxTFList').html('bad request');},
			success:function(data){
				$('#idxTFList').html(data);
			}
		});
	}
	   function getTwitter(){
        $.ajax({
            type: "GET",
            //async: false,
            url: 'bk-events.php',
            data: 'action=tw',
            error: function(){
                $('#ttt').html('Er is iets mis, probeer opnieuw.');
            },
            success: function(data){
                $('#ttt').html(data);
            }
        });
    }
   // Deze data wordt direct imgeladen
   function getNewlist(){
       $.ajax({
           type: "GET",
          async: false,
           url: 'bk-events.php',
           data: 'action=index3',
           error: function(){
               $('#showNews').html('Er is iets mis, probeer opnieuw.');
           },
           success: function(data){
               $('#showNews').html(data);
           }
       });
   }
       function getMemberlist(){
        $.ajax({
            type: "GET",url: 'bk-infomation.php',data: 'action=idxmember',//timeout: 1000,// async: false,
            error: function(){$('#idxmembers').html('Er is iets mis, probeer opnieuw.');},
            success: function(data){$('#idxmembers').html(data);}
        });
    }
    
