function CorrigeerMenu()
	{
	var MenuList = document.getElementById("Frame-Menu");
	var browser = navigator.appName;
	
	for (i = 0; i < MenuList.childNodes.length; i++)
		{
		if(browser == "Microsoft Internet Explorer")
			{
			MenuList.childNodes[0].className = "Correctie";
			}
		else
			{
			MenuList.childNodes[1].className = "Correctie";
			}
		}
	}

function OpenView(IMG)
	{
		document.getElementById('Gallery').style.display = "block";
		//document.getElementById('Photo').innerHTML = '<img src="'+ IMG +'" border="0" />';
		JavaPostSend('Display=AView&GFX='+ IMG +"&screenheight="+ screen.height, 'PhotoFrame');
		document.getElementById('low-rez').value = IMG;
		if(document.getElementById('high-rez') != null)
			{
			document.getElementById('high-rez').value = IMG.replace("low-rez", "high-rez");
			}
	}

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 setFlashObject(OBJ,Container)
	{
	var OBJoutput = "";
	var OBJpar = "";
	var OBJsrc = "";
	var OBJver = "";
	
	for(i in OBJ)
		{
		if(i == "movie")
			{
			OBJsrc = "src=\""+ OBJ[i] +"\"";
			//OBJoutput += i +"=\""+ OBJ[i] +"\" ";
			}
		if(i == "version")
			{
			OBJver = OBJ[i];
			}
		else
			{
			OBJpar += "<param name=\""+ i +"\" value=\""+ OBJ[i] +"\" />";
			OBJoutput += i +"=\""+ OBJ[i] +"\" ";
			}
		}
	
	iHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" ";
	iHTML += "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+ OBJver +"\" id=\"Loader\" width=\""+ OBJ.width +"\" ";
	iHTML += "height=\""+ OBJ.height +"\">\n";
	iHTML += OBJpar +"\n";
	iHTML += "<embed "+ OBJsrc +" width=\""+ OBJ.width +"\" height=\""+ OBJ.height +"\" wmode=\""+ OBJ.wmode +"\" ";
	iHTML += "type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">\n";
	iHTML += "</embed>\n";
	iHTML += "</object>\n";
	
	document.getElementById(Container).innerHTML = iHTML;
	}

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("webusers") != null)
		{
		obj = document.getElementById('webusers');
		
		for(i = 0; i < obj.elements.length; i++)
			{
			if(obj.elements[i].name == "username")
				{
				obj.elements[i].value = "gebruikersnaam";
	
				obj.elements[i].onfocus = function()
					{
					if(this.value == "gebruikersnaam")
						{
						this.value = "";
						}
					}
				
				obj.elements[i].onblur = function()
					{
					if(this.value == "")
						{
						this.value = "gebruikersnaam";
						}
					}
				}
			if(obj.elements[i].name == "password")
				{
				obj.elements[i].value = "wachtwoord";
	
				obj.elements[i].onfocus = function()
					{
					if(this.value == "wachtwoord")
						{
						this.value = "";
						}
					}
				
				obj.elements[i].onblur = function()
					{
					if(this.value == "")
						{
						this.value = "wachtwoord";
						}
					}
				}
			}
		}
	}

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