$(function() {
	
	// Maakt gebruik van Placeholder JS,
	// 2011 W3build (http://w3build.nl/)
	// Een snel script om alle inputs met een placeholder te bewerken..
	// Aangepast door Webbit der VGSD
	
	// Placeholder
	function placeHolders(ctx) {
		if ("placeholder" in document.createElement("input")) {
			return; // Native ondersteuning, dus niet nodig
		}
		ctx = ctx || document;
		$("*[placeholder]",ctx).filter(function() {
			return (!this._phstatus);
		}).each(function() {
			this._phstatus = true;
			if (this.value == "" || this.value == this.getAttribute("placeholder")) {
				this._inph = true;
				$(this).addClass("placeholder");
				this.value = this.getAttribute("placeholder");
			}
		}).focus(function() { // Als veld in placeholdermodus is, leeg het
			if (this._inph) {
				this._inph = false;
				$(this).removeClass("placeholder");
				this.value = ""
			}
		}).blur(function() { // Als veld leeg is, placehold het.
			if (this.value == "") {
				this._inph = true;
				$(this).addClass("placeholder");
				this.value = this.getAttribute("placeholder");
			}
		});
	};
	placeHolders();
	
	
});
