$(document).ready(function(){

// dotted border removert
	$('a').focus(function() {this.blur();});
	
// neukende IE insect
	$(document).pngFix();

// plaatjes-die-heul-link-zijn fadert
	$('a.linkimage img').hover(
		function(){
			$(this).stop().animate({"opacity": .67});
	}, function(){
			$(this).stop().animate({"opacity": 1});
	});

// als links niet in markup mogen ivm worst-in-blik.
	$('a.linkhider').each(function(){
		var hiddenLink = $(this).text(),
			splitLink = hiddenLink.split('$'),
			emailLink = splitLink[0]+'@'+splitLink[1]+'.'+splitLink[2];
		$(this).attr('href', 'mailto:'+emailLink);
		$(this).text(emailLink);
	});
});

// 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); }
		});
	});
}
