/* 
 * Hovers li's in IE as it does not support CSS hovers on LI tags 
 * Requires the hover style to also apply to the class .over 
*/
function assignHoverNav()
{
try
{

	var menu = document.getElementById('menu-content');
	if (!menu) return false;
	var index=0

	var elems = menu.getElementsByTagName('li');
	if (!elems) return false;
	

	for(index=0;index<elems.length;index++)
	{
		var li = elems[index];
		li.onmouseover = function () 
		{
			this.className += " over";
			//if (this.parentNode.parentNode.tagName == 'LI')
			window.status = "Over";
		}

		li.onmouseout = function ()
		{
			//if (this.parentNode.parentNode.tagName != 'LI') 
			window.status = "Out";
			this.className=this.className.replace("over", "");
		}
	}
	}
	catch(err)
  {
  //Handle errors here
  }

	
}

function sp(url)
{
	var a=window.open('/popup.php?photo='+url,'pp','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=508');
}

if (window.attachEvent) window.attachEvent("onload", assignHoverNav);
	else window.onload = assignHoverNav;
