//Menu.js

<!--//--><![CDATA[//><!--

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>

<!--
function openWindow(URL) {
alert('this is called')
if (!window.window2) {
// has not yet been defined
window2 = window.open(URL,'windowRef','width=842,height=646,resizable=no');
}
else {
// has been defined
if (!window2.closed) {
// still open
window2.focus();
window2.location = URL;
}
else {
window2 = window.open(URL,'windowRef','resizable=no,width=842,height=646');
}
}
}
//-->

function openDHTML(obj, anc) {
	var coord = findPos(anc);
	//alert(coord[0]);
	obj.style.left = coord[0]+'px';
	//alert(obj.style.left);
	obj.style.top = coord[1]+'px';
	obj.style.visibility='visible';
}
	
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

function move_to(url, index) {
	var CleanClass; 
	//alert(url);
	//url = "'" + url + "'";
	url = url.toString();
	
	var check = url.indexOf('#');
	CleanClass = url.substring(0,check);
	//alert(CleanClass);
	CleanClass += '#'+ index;
	//alert(CleanClass);
	window.location.href = CleanClass;
	
	}

function hideFlash()
{
	if ($('gallery')){ $('gallery').style.visibility = 'hidden' }
	if ($('JoinTeamMitt')){ $('ptvplayer').style.visibility = 'hidden' }
}
function showFlash()
{
	if ($('gallery')){ $('gallery').style.visibility = 'visible' }
	if ($('JoinTeamMitt')){ $('ptvplayer').style.visibility = 'visible' }
}
	
function navhover()
{
	lis = $('issuesList');
	lis.onmouseover=function(){ hideFlash(); };
	lis.onmouseout=function(){ showFlash(); };
	
	nlis = $('supportList');
	nlis.onmouseover=function(){ hideFlash(); };
	nlis.onmouseout=function(){ showFlash(); };
	
	news = $('newsList');
	news.onmouseover=function(){ hideFlash(); };
	news.onmouseout=function(){ showFlash(); };
}