function contentLoader(id, data) {
	
	$("#" + id).hide();
	$("#" + id + "_Loader").removeClass("throbber");
	$("#" + id + "_Loader").css("display", "none");
	$("#" + id).html(data);
	$("#" + id).show();
	$('.tooltip').tooltip({
				track: true,
				delay: 0,
				showURL: false,
				extraClass: "right"
			});
	};

$(function() {
	if (window.initGallery) { initGallery() }
	$(".showdate").each(updateMeetingDate);

	/* Indien ingelogd */
	var showGotoMyProfile = function(id) {
		if (!document.getElementById(id))
			return;
		var el = document.getElementById(id);
		el.innerHTML = '';
		el.style.visibility = "visible";
	}
	showGotoMyProfile('text_loggedin');

	$("li:has('#text_loggedin')").addClass("ingelogd");
	$(".login:has('#text_loggedin')").addClass("ingelogd");

	/* Linkermenu */
	$("#CCIPlaceHolder_Linkerkant:has('#level_3')").parent().addClass("bevat_menu");
	$(".bevat_menu #CCIPlaceHolder_Content.b8").removeClass("b8").addClass("b5");
	$(".bevat_menu #CCIPlaceHolder_Content .kolom.b8").removeClass("b8").addClass("b5");

	/* Poll Classes */
	$(".pollmax10textoptions_results_container div:nth-child(3n+0)").addClass("optie_procent");
	$(".pollmax10textoptions_results_container div:nth-child(3n+1)").addClass("optie_titel");
	$(".pollmax10textoptions_results_container div:nth-child(3n+2)").addClass("optie_balk");
	
	/*Twitter*/
	$(".tweet").tweet({
		template: "{avatar}{user}:{text} {time}"
	}).bind("empty", function () {
		$(this).append("Geen tweets aanwezig!");
	});

	/* Leeg = Weg */
	var removeEmptyOptionalElements = function(s) {
		if (typeof s == "undefined") s = $("body");
		/*
		s.find(".optieParent > .optieChild").each(
		function(){
		var t = "";
		removeEmptyOptionalElements($(this));
		t = $.trim( $(this).text().replace(/&nbsp;/g,' ') );
		if (t === "" && $(this).find("img,input,object").length == 0 )
		{
		$(this).parent.remove();
		}
		}
		);*/


		s.find(".afb, h2, .tekst, .extra, .item, #text_loggedin, li, .formulier").each(
	function() {
		var t = "";

		removeEmptyOptionalElements($(this));
		t = $.trim($(this).text().replace(/&nbsp;/g, ' '));
		if (t === "" && $(this).find("img,input,textarea,option,object").length == 0) {
			$(this).remove();
		}
	}
);
	}
	removeEmptyOptionalElements();
	/* Header afbeelding wijzigen */
	var html_class = $(".level_1 li.active, #level_1 li.active span").text().replace("'", "").replace(" ", "_").replace(" ", "_").replace(" ", "_").toLowerCase() + "_bg";
	$("html").addClass(html_class);

	/* Interactieve balk */
	$(".carousel").jCarouselLite({
		btnPrev: ".prev",
		btnNext: ".next",
		visible: 4.999, /* hier staat geen 5 omdat dan de border van het laatste li-tje zichtbaar is */
		easing: "easeinout",
		speed: 350,
		scroll: 1,
		start: 0/*,
		auto: 5000,
		circular: true*/
	});


	/* Sitemap */
	$("#sitemap0").children().appendTo($("#sitemap"));
	$("#sitemap0").remove();





});


/* Datum bijeenkomstmodule */

Date.prototype.showDate = function(endDate) {
	var d = this;

	var monthArray = ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sept', 'okt', 'nov', 'dec'];
	var y = this.getYear();

	var t = "";
	t += this.getDate() + " ";
	t += monthArray[this.getMonth()] + "  ";
	t += y > 1900 ? y : (y + 1900);
	t += ", ";

	var beginTime = "";
	var hours = this.getHours();
	if (hours < 10) {
		beginTime += "0";
	}
	beginTime += hours + ":";
	var minutes = this.getMinutes();
	if (minutes < 10) {
		beginTime += "0";
	}
	beginTime += minutes;

	t += beginTime;

	if (typeof endDate != "undefined") {
		var endTime = "";
		var hours = endDate.getHours();
		if (hours < 10) {
			endTime += "0";
		}
		endTime += hours + ":";
		var minutes = endDate.getMinutes();
		if (minutes < 10) {
			endTime += "0";
		}
		endTime += minutes;

		if (endTime != beginTime) {
			t += " - ";
			t += endTime;
		}
	}

	t += " uur";

	return t;
}
function updateMeetingDate() {
	var parse = function(iso8601) {
		var s = $.trim(iso8601);
		s = s.replace(/-/, "/").replace(/-/, "/");
		s = s.replace(/T/, " ").replace(/Z/, " UTC");
		s = s.replace(/([\+-]\d\d)\:?(\d\d)/, " $1$2"); // -04:00 -> -0400
		return new Date(s);
	}
	var begin = parse($(this).find(".begin").html());
	var einde = parse($(this).find(".einde").html());

	if (begin.toString().substring(0, 10) == einde.toString().substring(0, 10))// zelfde dag
	{
		$(this).find(".begin").html(begin.showDate(einde));

	} else {
		$(this).find(".begin").html(begin.showDate());
		$(this).find(".einde").html(einde.showDate());
		$(this).find(".eindeSpan").css("display", "");
	}
}


(function($) {                                          // Compliant with jquery.noConflict()
	$.fn.jCarouselLite = function(o) {
		o = $.extend({
			btnPrev: null,
			btnNext: null,
			btnGo: null,
			mouseWheel: false,
			auto: null,

			speed: 200,
			easing: null,

			vertical: false,
			circular: false,
			visible: 3,
			start: 0,
			scroll: 1,

			beforeStart: null,
			afterEnd: null
		}, o || {});

		return this.each(function() {                           // Returns the element collection. Chainable.

			var running = false, animCss = o.vertical ? "top" : "left", sizeCss = o.vertical ? "height" : "width";
			var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible;

			if (o.circular) {
				ul.prepend(tLi.slice(tl - v - 1 + 1).clone())
              .append(tLi.slice(0, v).clone());
				o.start += v;
			}

			var li = $("li", ul), itemLength = li.size(), curr = o.start;
			div.css("visibility", "visible");

			li.css({ overflow: "hidden", float: o.vertical ? "none" : "left" });
			ul.css({ margin: "0", padding: "0", position: "relative", "list-style-type": "none", "z-index": "1" });
			div.css({ overflow: "hidden", position: "relative", "z-index": "2", left: "0px" });

			var liSize = o.vertical ? height(li) : width(li);   // Full li size(incl margin)-Used for animation
			var ulSize = liSize * itemLength;                   // size of full ul(total length, not just for the visible items)
			var divSize = liSize * v;                           // size of entire div(total length for just the visible items)

			li.css({ width: li.width(), height: li.height() });
			ul.css(sizeCss, ulSize + "px").css(animCss, -(curr * liSize));

			div.css(sizeCss, divSize + "px");                     // Width of the DIV. length of visible images

			if (o.btnPrev)
				$(o.btnPrev).click(function() {
					return go(curr - o.scroll);
				});

			if (o.btnNext)
				$(o.btnNext).click(function() {
					return go(curr + o.scroll);
				});

			if (o.btnGo)
				$.each(o.btnGo, function(i, val) {
					$(val).click(function() {
						return go(o.circular ? o.visible + i : i);
					});
				});

			if (o.mouseWheel && div.mousewheel)
				div.mousewheel(function(e, d) {
					return d > 0 ? go(curr - o.scroll) : go(curr + o.scroll);
				});

			if (o.auto)
				setInterval(function() {
					go(curr + o.scroll);
				}, o.auto + o.speed);

			function vis() {
				return li.slice(curr).slice(0, v);
			};

			function go(to) {
				if (!running) {

					if (o.beforeStart)
						o.beforeStart.call(this, vis());

					if (o.circular) {            // If circular we are in first or last, then goto the other end
						if (to <= o.start - v - 1) {           // If first, then goto last
							ul.css(animCss, -((itemLength - (v * 2)) * liSize) + "px");
							// If "scroll" > 1, then the "to" might not be equal to the condition; it can be lesser depending on the number of elements.
							curr = to == o.start - v - 1 ? itemLength - (v * 2) - 1 : itemLength - (v * 2) - o.scroll;
						} else if (to >= itemLength - v + 1) { // If last, then goto first
							ul.css(animCss, -((v) * liSize) + "px");
							// If "scroll" > 1, then the "to" might not be equal to the condition; it can be greater depending on the number of elements.
							curr = to == itemLength - v + 1 ? v + 1 : v + o.scroll;
						} else curr = to;
					} else {                    // If non-circular and to points to first or last, we just return.
						if (to < 0 || to > itemLength - v) return;
						else curr = to;
					}                           // If neither overrides it, the curr will still be "to" and we can proceed.

					running = true;

					ul.animate(
                    animCss == "left" ? { left: -(curr * liSize)} : { top: -(curr * liSize) }, o.speed, o.easing,
                    function() {
                    	if (o.afterEnd)
                    		o.afterEnd.call(this, vis());
                    	running = false;
                    }
                );
					// Disable buttons when the carousel reaches the last/first, and enable when not
					if (!o.circular) {
						$(o.btnPrev + "," + o.btnNext).removeClass("disabled");
						$((curr - o.scroll < 0 && o.btnPrev)
                        ||
                       (curr + o.scroll > itemLength - v && o.btnNext)
                        ||
                       []
                     ).addClass("disabled");
					}

				}
				return false;
			};
		});
	};

	function css(el, prop) {
		return parseInt($.css(el[0], prop)) || 0;
	};
	function width(el) {
		return el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight');
	};
	function height(el) {
		return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom');
	};

})(jQuery);

/*
* jQuery Easing v1.1 - http://gsgd.co.uk/sandbox/jquery.easing.php
*/

jQuery.easing = {
	easein: function(x, t, b, c, d) {
		return c * (t /= d) * t + b; // in
	},
	easeinout: function(x, t, b, c, d) {
		if (t < d / 2) return 2 * c * t * t / (d * d) + b;
		var ts = t - d / 2;
		return -2 * c * ts * ts / (d * d) + 2 * c * ts / d + c / 2 + b;
	},
	easeout: function(x, t, b, c, d) {
		return -c * t * t / (d * d) + 2 * c * t / d + b;
	},
	expoin: function(x, t, b, c, d) {
		var flip = 1;
		if (c < 0) {
			flip *= -1;
			c *= -1;
		}
		return flip * (Math.exp(Math.log(c) / d * t)) + b;
	},
	expoout: function(x, t, b, c, d) {
		var flip = 1;
		if (c < 0) {
			flip *= -1;
			c *= -1;
		}
		return flip * (-Math.exp(-Math.log(c) / d * (t - d)) + c + 1) + b;
	},
	expoinout: function(x, t, b, c, d) {
		var flip = 1;
		if (c < 0) {
			flip *= -1;
			c *= -1;
		}
		if (t < d / 2) return flip * (Math.exp(Math.log(c / 2) / (d / 2) * t)) + b;
		return flip * (-Math.exp(-2 * Math.log(c / 2) / d * (t - d)) + c + 1) + b;
	},
	bouncein: function(x, t, b, c, d) {
		return c - jQuery.easing['bounceout'](x, d - t, 0, c, d) + b;
	},
	bounceout: function(x, t, b, c, d) {
		if ((t /= d) < (1 / 2.75)) {
			return c * (7.5625 * t * t) + b;
		} else if (t < (2 / 2.75)) {
			return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
		} else if (t < (2.5 / 2.75)) {
			return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
		} else {
			return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
		}
	},
	bounceinout: function(x, t, b, c, d) {
		if (t < d / 2) return jQuery.easing['bouncein'](x, t * 2, 0, c, d) * .5 + b;
		return jQuery.easing['bounceout'](x, t * 2 - d, 0, c, d) * .5 + c * .5 + b;
	},
	elasin: function(x, t, b, c, d) {
		var s = 1.70158; var p = 0; var a = c;
		if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3;
		if (a < Math.abs(c)) { a = c; var s = p / 4; }
		else var s = p / (2 * Math.PI) * Math.asin(c / a);
		return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
	},
	elasout: function(x, t, b, c, d) {
		var s = 1.70158; var p = 0; var a = c;
		if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3;
		if (a < Math.abs(c)) { a = c; var s = p / 4; }
		else var s = p / (2 * Math.PI) * Math.asin(c / a);
		return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;
	},
	elasinout: function(x, t, b, c, d) {
		var s = 1.70158; var p = 0; var a = c;
		if (t == 0) return b; if ((t /= d / 2) == 2) return b + c; if (!p) p = d * (.3 * 1.5);
		if (a < Math.abs(c)) { a = c; var s = p / 4; }
		else var s = p / (2 * Math.PI) * Math.asin(c / a);
		if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
		return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b;
	},
	backin: function(x, t, b, c, d) {
		var s = 1.70158;
		return c * (t /= d) * t * ((s + 1) * t - s) + b;
	},
	backout: function(x, t, b, c, d) {
		var s = 1.70158;
		return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
	},
	backinout: function(x, t, b, c, d) {
		var s = 1.70158;
		if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
		return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
	},
	linear: function(x, t, b, c, d) {
		return c * t / d + b; //linear
	}
};
  $.fn.tweet = function(o){
    var s = $.extend({
      username: ["noudjanssenlltb"],            // [string or array] required unless using the 'query' option; one or more twitter screen names
      list: null,                               // [string]   optional name of list belonging to username
      favorites: false,                         // [boolean]  display the user's favorites instead of his tweets
      query: null,                              // [string]   optional search query
      tag: null,								// [string]
      avatar_size: null,                        // [integer]  height and width of avatar if displayed (48px max)
      count: 3,                                 // [integer]  how many tweets to display?
      fetch: null,                              // [integer]  how many tweets to fetch via the API (set this higher than 'count' if using the 'filter' option)
      retweets: true,                           // [boolean]  whether to fetch (official) retweets (not supported in all display modes)
      intro_text: null,                         // [string]   do you want text BEFORE your your tweets?
      outro_text: null,                         // [string]   do you want text AFTER your tweets?
      join_text:  "auto",                         // [string]   optional text in between date and tweet, try setting to "auto"
      auto_join_text_default: "i said,",        // [string]   auto text for non verb: "i said" bullocks
      auto_join_text_ed: "i",                   // [string]   auto text for past tense: "i" surfed
      auto_join_text_ing: "i am",               // [string]   auto tense for present tense: "i was" surfing
      auto_join_text_reply: "i replied to",     // [string]   auto tense for replies: "i replied to" @someone "with"
      auto_join_text_url: "i was looking at",   // [string]   auto tense for urls: "i was looking at" http:...
      loading_text: null,                       // [string]   optional loading text, displayed while tweets load
      refresh_interval: null ,                  // [integer]  optional number of seconds after which to reload tweets
      twitter_url: "twitter.com",               // [string]   custom twitter url, if any (apigee, etc.)
      twitter_api_url: "api.twitter.com",       // [string]   custom twitter api url, if any (apigee, etc.)
      twitter_search_url: "search.twitter.com", // [string]   custom twitter search url, if any (apigee, etc.)
      template: "{avatar}{time}{join}{text}",   // [string or function] template used to construct each tweet <li> - see code for available vars
      comparator: function(tweet1, tweet2) {    // [function] comparator used to sort tweets (see Array.sort)
        return tweet2["tweet_time"] - tweet1["tweet_time"];
      },
      filter: function(tweet) {                 // [function] whether or not to include a particular tweet (be sure to also set 'fetch')
        return true;
      }
    }, o);

    $.fn.extend({
      linkUrl: function() {
        var returning = [];
        // See http://daringfireball.net/2010/07/improved_regex_for_matching_urls
        var regexp = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi;
        this.each(function() {
          returning.push(this.replace(regexp,
                                      function(match) {
                                        var url = (/^[a-z]+:/i).test(match) ? match : "http://"+match;
                                        return "<a href=\""+url+"\">"+match+"</a>";
                                      }));
        });
        return $(returning);
      },
      linkUser: function() {
        var returning = [];
        var regexp = /[\@]+(\w+)/gi;
        this.each(function() {
          returning.push(this.replace(regexp,"@<a href=\"http://"+s.twitter_url+"/$1\">$1</a>"));
        });
        return $(returning);
      },
      linkHash: function() {
        var returning = [];
        // Support various latin1 (\u00**) and arabic (\u06**) alphanumeric chars
        var regexp = /(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi;
        var usercond = (s.username && s.username.length == 1) ? '&from='+s.username.join("%2BOR%2B") : '';
        this.each(function() {
          returning.push(this.replace(regexp, ' <a href="http://'+s.twitter_search_url+'/search?q=&tag=$1&lang=all'+usercond+'">#$1</a>'));
        });
        return $(returning);
      },
      capAwesome: function() {
        var returning = [];
        this.each(function() {
          returning.push(this.replace(/\b(awesome)\b/gi, '<span class="awesome">$1</span>'));
        });
        return $(returning);
      },
      capEpic: function() {
        var returning = [];
        this.each(function() {
          returning.push(this.replace(/\b(epic)\b/gi, '<span class="epic">$1</span>'));
        });
        return $(returning);
      },
      makeHeart: function() {
        var returning = [];
        this.each(function() {
          returning.push(this.replace(/(&lt;)+[3]/gi, "<tt class='heart'>&#x2665;</tt>"));
        });
        return $(returning);
      },
       cleanUp:  function() {
        var returning = [];
        this.each(function() {
          returning.push(this.replace(/#cciitgroep/gi, ""));
        });
        return $(returning);
      }
    });

    function parse_date(date_str) {
      // The non-search twitter APIs return inconsistently-formatted dates, which Date.parse
      // cannot handle in IE. We therefore perform the following transformation:
      // "Wed Apr 29 08:53:31 +0000 2009" => "Wed, Apr 29 2009 08:53:31 +0000"
      return Date.parse(date_str.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i, '$1,$2$4$3'));
    }

    function relative_time(date) {
      var relative_to = (arguments.length > 1) ? arguments[1] : new Date();
      var delta = parseInt((relative_to.getTime() - date) / 1000, 10);
      var r = '';
      if (delta < 60) {
        r = delta + ' seconds ago';
      } else if(delta < 120) {
        r = 'a minute ago';
      } else if(delta < (45*60)) {
        r = (parseInt(delta / 60, 10)).toString() + ' minutes ago';
      } else if(delta < (2*60*60)) {
        r = 'an hour ago';
      } else if(delta < (24*60*60)) {
        r = '' + (parseInt(delta / 3600, 10)).toString() + ' hours ago';
      } else if(delta < (48*60*60)) {
        r = 'a day ago';
      } else {
        r = (parseInt(delta / 86400, 10)).toString() + ' days ago';
      }
      return 'about ' + r;
    }

    function build_url() {
      var proto = ('https:' == document.location.protocol ? 'https:' : 'http:');
      var count = (s.fetch === null) ? s.count : s.fetch;
      if (s.list) {
        return proto+"//"+s.twitter_api_url+"/1/"+s.username[0]+"/lists/"+s.list+"/statuses.json?per_page="+count+"&callback=?";
      } else if (s.favorites) {
        return proto+"//"+s.twitter_api_url+"/favorites/"+s.username[0]+".json?count="+s.count+"&callback=?";
      } else if (s.query === null && s.username.length == 1) {
        return proto+'//'+s.twitter_api_url+'/1/statuses/user_timeline.json?screen_name='+s.username[0]+'&count='+count+(s.retweets ? '&include_rts=1' : '')+'&callback=?';
      } else if (s.tag) {
        var query = (s.tag || 'from:'+s.username.join(' OR from:'));
        return proto+'//'+s.twitter_search_url+'/search.json?tag='+encodeURIComponent(query)+'&lang=all&rpp='+count+'&callback=?';
      }else {
        var query = (s.query || 'from:'+s.username.join(' OR from:'));
        return proto+'//'+s.twitter_search_url+'/search.json?&q='+encodeURIComponent(query)+'&lang=all&rpp='+count+'&callback=?';
      }
    }
    
    return this.each(function(i, widget){
      var list = $('<ul class="tweet_list">').appendTo(widget);
      var intro = '<p class="tweet_intro">'+s.intro_text+'</p>';
      var outro = '<p class="tweet_outro">'+s.outro_text+'</p>';
      var loading = $('<p class="loading">'+s.loading_text+'</p>');

      if(s.username && typeof(s.username) == "string"){
        s.username = [s.username];
      }
	 var is_user_in_username_list = function(username) {
			for (var i = 0; i < s.username.length; i++) {
				if (s.username[i].toLowerCase() == username.toLowerCase()) {
					return true;
				}
			}
			return false;
	    }

      var expand_template = function(info) {
        if (typeof s.template === "string") {
          var result = s.template;
          for(var key in info) {
            var val = info[key];
            result = result.replace(new RegExp('{'+key+'}','g'), val === null ? '' : val);
          }
          return result;
        } else return s.template(info);
      };

      if (s.loading_text) $(widget).append(loading);
      $(widget).bind("load", function(){
        $.getJSON(build_url(), function(data){
          if (s.loading_text) loading.remove();
          if (s.intro_text) list.before(intro);
          list.empty();

          var tweets = $.map(data.results || data, function(item){
            var join_text = s.join_text;

            // auto join text based on verb tense and content
            if (s.join_text == "auto") {
              if (item.text.match(/^(@([A-Za-z0-9-_]+)) .*/i)) {
                join_text = s.auto_join_text_reply;
              } else if (item.text.match(/(^\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+) .*/i)) {
                join_text = s.auto_join_text_url;
              } else if (item.text.match(/^((\w+ed)|just) .*/im)) {
                join_text = s.auto_join_text_ed;
              } else if (item.text.match(/^(\w*ing) .*/i)) {
                join_text = s.auto_join_text_ing;
              } else {
                join_text = s.auto_join_text_default;
              }
            }

            // Basic building blocks for constructing tweet <li> using a template
            var screen_name = item.from_user || item.user.screen_name;
            var source = item.source;
            var user_url = "http://"+s.twitter_url+"/"+screen_name;
            var avatar_size = s.avatar_size;
            var avatar_url = item.profile_image_url || item.user.profile_image_url;
            var tweet_url = "http://"+s.twitter_url+"/"+screen_name+"/status/"+item.id_str;
            var retweet = (typeof(item.retweeted_status) != 'undefined');
            var retweeted_screen_name = retweet ? item.retweeted_status.user.screen_name : null;
            var tweet_time = parse_date(item.created_at);
            var tweet_relative_time = relative_time(tweet_time);
            var tweet_raw_text = retweet ? ('RT @'+retweeted_screen_name+' '+item.retweeted_status.text) : item.text; // avoid '...' in long retweets
            var tweet_text = $([tweet_raw_text]).linkUrl().linkUser().linkHash()[0];

            // Default spans, and pre-formatted blocks for common layouts
            var user = '<a class="tweet_user" href="'+user_url+'">'+screen_name+'</a>';
            var join = ((s.join_text) ? ('<span class="tweet_join"> '+join_text+' </span>') : ' ');
            var avatar = (avatar_size ?
                          ('<a class="tweet_avatar" href="'+user_url+'"><img src="'+avatar_url+
                           '" height="'+avatar_size+'" width="'+avatar_size+
                           '" alt="'+screen_name+'\'s avatar" title="'+screen_name+'\'s avatar" border="0"/></a>') : '');
            var time = '<span class="tweet_time"><a href="'+tweet_url+'" title="view tweet on twitter">'+tweet_relative_time+'</a></span>';
            var text = '<span class="tweet_text">'+$([tweet_text]).makeHeart().capAwesome().capEpic().cleanUp()[0]+ '</span>';

            return { item: item, // For advanced users who want to dig out other info
                     screen_name: screen_name,
                     user_url: user_url,
                     avatar_size: avatar_size,
                     avatar_url: avatar_url,
                     source: source,
                     tweet_url: tweet_url,
                     tweet_time: tweet_time,
                     tweet_relative_time: tweet_relative_time,
                     tweet_raw_text: tweet_raw_text,
                     tweet_text: tweet_text,
                     retweet: retweet,
                     retweeted_screen_name: retweeted_screen_name,
                     user: user,
                     join: join,
                     avatar: avatar,
                     time: time,
                     text: text
                   };
          });

          tweets = $.grep(tweets, s.filter).sort(s.comparator).slice(0, s.count);
          list.append($.map(tweets,
                            function(t) { return "<li>" + expand_template(t) + "</li>"; }).join('')).
              children('li:first').addClass('tweet_first').end().
              children('li:odd').addClass('tweet_even').end().
              children('li:even').addClass('tweet_odd');

          if (s.outro_text) list.after(outro);
          $(widget).trigger("loaded").trigger((tweets.length === 0 ? "empty" : "full"));
          if (s.refresh_interval) {
            window.setTimeout(function() { $(widget).trigger("load"); }, 1000 * s.refresh_interval);
          }
        });
      }).trigger("load");
    });
  };

       // Content zoek informatie

       var standardSearchValidation = function (formId, errorId) {
       	// dus maar 1 tekst-input per zoekformulier:
       	var veld = $("#" + formId).find("input:text");
       	// de foutmelding:		
       	var error = $("#" + errorId);
       	// opdat een erover heen getoonde melding geen last heeft van de tekst-cursor verwijderen we de focus:
       	veld.blur();
       	// foutmelding tonen:
       	$(error).fadeIn();
       	// als muis of toetsenbord klik of scroll, verwijder de boodschap:
       	$(document).one('mousedown keydown scroll', function (event) {
       		$(error).fadeOut();
       		event.stopPropagation();
       		// focus terugzetten
       		veld.focus();
       	});
       }
