// form-value
	jQuery.fn.toggleVal = function(focusClass) {
		this.each(function() {
			$(this).focus(function() {
				// clear value if current value is the default
				if($(this).val() == this.defaultValue) { $(this).val(""); }
				
				// if focusClass is set, add the class
				if(focusClass) { $(this).addClass(focusClass); }
			}).blur(function() {
				// restore to the default value if current value is empty
				if($(this).val() == "") { $(this).val(this.defaultValue); }
				
				// if focusClass is set, remove class
				if(focusClass) { $(this).removeClass(focusClass); }
			});
		});
	}

$(document).ready(function(){

// pngfix
		$('body').pngFix();

// dotted border removert
		$('a').focus(function() {this.blur();});

// ruimte om plaatjes plaatsert
		$('img[align="left"]').css('margin','0 10px 10px 0');

// achtergrond van link bij plaatjes removert
		$('#middle a img').parent('a,a:hover').css('background','none');

// zoek
		$('input[type="text"]').addClass("idleField");
		$('input[type="text"]').focus(function() {
			$(this).removeClass("idleField").addClass("focusField");
			if (this.value == this.defaultValue){ 
				this.value = '';
			}
			if(this.value != this.defaultValue){
				this.select();
			}
		});
		$('input[type="text"]').blur(function() {
			$(this).removeClass("focusField").addClass("idleField");
			if ($.trim(this.value) == ''){
				this.value = (this.defaultValue ? this.defaultValue : '');
			}
		});

		$('#middle a img').hover(function(){
				$(this).css('opacity',.6);
		}, function(){
				$(this).css('opacity',1);
		});

});
