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 FotoAlbum()
	{
	if(document.getElementById("FotoAlbum") != null)
		{
		var FotoList = document.getElementById("FotoAlbum");

		for (i=0; i < FotoList.childNodes.length; i++)
			{
			if(FotoList.childNodes[i].tagName == "LI")
				{
				FotoList.childNodes[i].onclick = function()
					{
					document.getElementById("Frame-Viewer").style.display = "block";
					openView(this.firstChild.id);
					}
				}
			}
		}
	}

function closeView()
	{
	document.getElementById("Frame-Viewer").style.display = "none";
	}

window.onload = function()
	{
	StartMenu();
	FotoAlbum();
	}