function ConfirmGo()
{
	var agree = confirm("Weet je het zeker?");

	if (agree)
	{
		return true;
	}
	else
	{
		return false;
	}
}

window.onload = function()
{
	lists = document.getElementsByTagName("ul");
	for (var i = lists.length - 1; i >= 0; i--)
	{
		if (lists[i].className == "select")
		{
			sel = document.createElement("select");
			sel.onchange = function()
			{
				if (this.options[this.selectedIndex].value != '')
				{
					location.href = this.options[this.selectedIndex].value;
				}
			}

			items = lists[i].getElementsByTagName("li");

			for (var j = 0; j < items.length; j++)
			{
				optie = document.createElement("option");
				optie.value = "";
				
				if (par = items[j].getElementsByTagName("a")[0])
				{
					optie.value = par.href;
					optie.appendChild(document.createTextNode(par.firstChild.nodeValue));
				}
				else
				{
					optie.appendChild(document.createTextNode(items[j].firstChild.nodeValue));
				}
				
				sel.appendChild(optie);
			}
			lists[i].parentNode.insertBefore(sel, lists[i]);
			lists[i].parentNode.removeChild(lists[i]);
		}
	}
	
	$('#header_fade').cycle({ 
	    fx:    'fade', 
	    speed:  4000,
	    timeout: 3000,
	    random: 1,
	    pause: 	1 
	 });
	$('a[@rel*=lightbox]').lightBox();
}
