	search = function(){
		top.location='/site/zoeken.html?search='+document.getElementById('zoek').value;
	}

	searchKey = function(e){
		var keycode;
		if (window.event) keycode = window.event.keyCode;
		else if (e) keycode = e.which;

		//if (keycode == 13) search();
		alert(keycode);
	}

	start = function(){
		var zoek=document.getElementById('zoek');

		zoek.addEventListener('focus',function(){
			if (zoek.value == "ZOEK") zoek.value = "";
		}, false);

		zoek.addEventListener('blur',function(){
			if (zoek.value == "") zoek.value = "ZOEK";
		}, false);

		zoek.addEventListener('keydown',function(e){
			if (e.keyCode == 13) search();
		}, false);

		// hide all tooltips
		$(".tooltip").hide();
	}

        if (document.addEventListener) document.addEventListener("DOMContentLoaded", start, false);

	function initTooltips(){
		$(".hover").each(function(){
			$(this).css('opacity',0);

			$(this).mouseover(function(){
				$(".hover").each(function(){
					$(this).removeClass($(this).attr('id') + "_on");
					$(this).css('opacity',0);
				});

				$(this).addClass($(this).attr('id') + "_on").show('slow');
				$(this).css({'opacity' : 1});
			});
		});


		$("#demo_image").mouseout(function(){
			$(".hover").each(function(){
				$(this).removeClass($(this).attr('id') + "_on");
				$(this).css('opacity',0);
			});
		});
	}

