function swapSearch(e) {
	if (!e) var e = window.event;
	if (e.type == 'focus') {
		if ( this.value == 'Suche' ) {
			this.value = '';
		}
	} else {
		if ( this.value == '' ) {
			this.value = 'Suche';
		}
	}
}

function ivents() {
	if ( document.getElementById('searchbox') ) {
		var search = document.getElementById('searchbox'); 
		search.onfocus = swapSearch;
		search.onblur = swapSearch;
	}
}

window.onload = ivents;
