window.onload = site_start;
var x = 0;
var timer = "";
function site_start()
{
	var search = document.getElementById("search");
	search.onfocus = function()
	{
		search.value = "";
		window.clearTimeout(timer);
		x = 0;
	}
	search.onblur = function()
	{
		search_start();
	}
	if(search.value == "")
		search_start();
}
function search_start()
{
	x++;
	x = x > 3 ? 0 : x;
	var search = document.getElementById("search");
	if(x == 1)
	{
		search.value = "Deze site doorzoeken?";
	}
	else if(x == 2)
	{
		search.value = "Toets dan hier het woord,";
	}
	else
	{
		search.value = "gevolgd door een enter.";
	}
	timer = window.setTimeout("search_start()",3000)
}
function site_change(that)
{
	if(that.value == 'a')
	{
		window.open('http://www.mindtime.nl/doc/presentatie.php?resID=MTIy', 'pop', 'scrollbars=no,status=no,width=600,height=600');
	}
	else if(that.value == 'b')
	{
		window.open('http://www.mindtime.nl/demo.php?partnerId=MTIy');
	}
	else if(that.value == 'c')
	{
		window.open('http://www.mindtimebackup.nl?refid=122');
	}
	else
	{
		that.parentNode.submit();
	}
	that.selectedIndex = 0;
}
