function CorrigeerMenu()
	{
	var MenuList = document.getElementById("StartMenu");
	var browser = navigator.appName;
	
	for (i = 0; i < MenuList.childNodes.length; i++)
		{
		if(browser == "Microsoft Internet Explorer")
			{
			MenuList.childNodes[0].style.margin = "0px";
			MenuList.childNodes[0].style.width = "180px";
			}
		else
			{
			MenuList.childNodes[1].style.margin = "0px";
			MenuList.childNodes[1].style.width = "180px";
			}
		}
	}

function StartMenu()
	{
	if(document.getElementById("StartMenu") != null)
		{
		var PanelList = document.getElementById("StartMenu");
		var browser = navigator.appName;
		
		for (i=0; i < PanelList.childNodes.length; i++)
			{
			if(PanelList.childNodes[i].tagName == "LI")
				{
				PanelList.childNodes[i].onmouseover = function()
					{
					this.className = "Open";
					}
				PanelList.childNodes[i].onmouseout = function()
					{
					this.className = "Closed";
					}
				}
			
			for(p=0; p<PanelList.childNodes[i].childNodes.length; p++)
				{
				if(PanelList.childNodes[i].childNodes[p].tagName == "LI")
					{
					PanelList.childNodes[i].childNodes[p].onmouseover = function()
						{
						this.className = "Open";
						}
					PanelList.childNodes[i].childNodes[p].onmouseout = function()
						{
						this.className = "Closed";
						}
					}
				
				for(q=0; q<PanelList.childNodes[i].childNodes[p].childNodes.length; q++)
					{
					if(PanelList.childNodes[i].childNodes[p].childNodes[q].tagName == "LI")
						{
						PanelList.childNodes[i].childNodes[p].childNodes[q].onmouseover = function()
							{
							this.className = "Open";
							}
						PanelList.childNodes[i].childNodes[p].childNodes[q].onmouseout = function()
							{
							this.className = "Closed";
							}
						}
					}
				}
			}
		}
	}

function OpenView(IMG)
	{
		document.getElementById('Gallery').style.display = "block";
		document.getElementById('Photo').innerHTML = '<img src="'+ IMG +'" border="0" />';
	}

function CloseView()

	{
	document.getElementById('Gallery').style.display = "none";
	document.getElementById('Photo').innerHTML = "";
	}

function ShowFlashMov(TDID, _MOV)
	{
	document.documentElement.style.overflow = 'hidden';
	document.getElementById(TDID).style.display = 'block';
	StrMovObject = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	StrMovObject +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" title="Movie" width="383px" height="216px">';
	StrMovObject +='<param name="movie" value="'+ _MOV +'">';
	StrMovObject +='<param name="quality" value="high">';
	StrMovObject +='<embed src="'+ _MOV +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"';
	StrMovObject +='type="application/x-shockwave-flash" width="383px" height="216px">';
	StrMovObject +='</embed>';
	StrMovObject +='</object>';
	document.getElementById('AlbumMOV').innerHTML = StrMovObject;
	}

function HideFlashMov(TDID, _MOV)
	{
	document.documentElement.style.overflow = 'auto';
	document.getElementById(TDID).style.display = 'none';
	document.getElementById(_MOV).innerHTML = '';
	}
/*
function infoTab()
	{
	if(document.getElementById("infoTab") != null)
		{
		var infoTab = document.getElementById("infoTab");

		for (i=0; i < infoTab.childNodes.length; i++)
			{
			if(infoTab.childNodes[i].tagName == "LI")
				{
				infoTab.childNodes[i].onclick = function()
					{
					var infoTabII = document.getElementById("infoTab");
					for (p=0; p < infoTabII.childNodes.length; p++)
						{
						infoTabII.childNodes[p].className = "";
						}

					if(this.className == "Open")
						{
						this.className = "";
						}
					else
						{
						this.className = "Open";
						}
					}
				}
			}
		}
	}

function setTab()
	{
	if(document.getElementById("infoTab") != null)
		{
		var infoTab = document.getElementById("infoTab");
		if(navigator.appName == "Microsoft Internet Explorer")
			{
			infoTab.childNodes[0].className = "Open";
			}
		else
			{
			infoTab.childNodes[1].className = "Open";
			}
		}
	}
*/

function fillOut()
	{
	if(document.getElementById("callBack") != null)
		{
		var CallName = document.getElementById('name');
		var CallPhone = document.getElementById('phone');

		if(CallName.value == "")
			{
			CallName.value = "uw naam";
			}
		if(CallPhone.value == "")
			{
			CallPhone.value = "uw telefoonnummer";
			}

		CallName.onfocus = function()
			{
			if(CallName.value == "uw naam")
				{
				CallName.value = "";
				}
			}

		CallName.onblur = function()
			{
			if(CallName.value == "")
				{
				CallName.value = "uw naam";
				}
			}

		CallPhone.onfocus = function()
			{
			if(CallPhone.value == "uw telefoonnummer")
				{
				CallPhone.value = "";
				}
			}

		CallPhone.onblur = function()
			{
			if(CallPhone.value == "")
				{
				CallPhone.value = "uw telefoonnummer";
				}
			}
		}
	}

window.onload = function()
	{
	CorrigeerMenu();
	StartMenu();
	//infoTab();
	//setTab();
	fillOut();
	}
