function hover(obj)
{
  if(document.all)
  {
    UL = obj.getElementsByTagName('ul');
    if(UL.length > 0)
    {
      UL[0].style.display = 'block';
    }
  }
}

function hout(obj)
{
  if(document.all)
  {
    UL = obj.getElementsByTagName('ul');
    if(UL.length > 0)
    {
      UL[0].style.display = 'none';
    }
  }
}

function setHover()
{
  LI = document.getElementById('nav1').getElementsByTagName('li');
  nLI = LI.length;
  for(i=0; i < nLI; i++)
  {
    LI[i].onmouseover = function()
    {
      hover(this);
    }
    LI[i].onmouseout = function()
    {
      hout(this);
    }
  }
}

function preloadIMG()
{
	var doc = document;
	if (doc.images)
	{
		if (!doc.tab_img)
		{
			doc.tab_img = new Array();
		}
		var i,j = doc.tab_img.length, args = preloadIMG.arguments;
		for(i=0; i<args.length; i++)
		{ 
			if (args[i].indexOf("#")!=0)
			{
				doc.tab_img[j] = new Image;
				doc.tab_img[j++].src = args[i];
			}
		}
	}
}
