function initMenu()
{
    var test = document.getElementById("menu");
    var nodes;
	if(test == null)
	{
	    nodes = document.getElementById("menuHome").getElementsByTagName("li");
	}
	else
	{
	    nodes = document.getElementById("menu").getElementsByTagName("li");
	}
	
	
	for (var i=0; i<nodes.length; i++)
	{
		nodes[i].onmouseover = function()
		{
			this.className += " hover";
		}
		nodes[i].onmouseout = function()
		{
			this.className = this.className.replace(" hover", "");
		}
	}
}
if (document.all && !window.opera) attachEvent("onload", initMenu);

function openPopUp(whichFile) {
  try{
	var silverswan = "scrollbars=no,resizable=no,menu=no,status=no,location=no";
  var myWidth2 = 20;
	var myHeight2 = 20;
  
	if (window.photo) { photo.close(); }
	if(window.screen){
    	var myLeft2 = 10;
   		var myTop2 = 10;
    	silverswan += ',left='+myLeft2+',top='+myTop2;
  	} 
  	window.open('popup.aspx?image='+whichFile,'image',silverswan+',width='+myWidth2+',height='+myHeight2);
    }
    catch(err)
    {
      alert(err.message);
    }
}

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=600,height=400,scrollbars=yes');
return false;
}
