// 
//	ASSORTED UTILITY FUNCTIONS
//	NetMediaOne - www.netmediaone.com
//

// =======================================================================
//    	MOUSEOVER EFFECTS
// =======================================================================
function imgOn(imgName)
{
  if (document.images)
	{
  	document[imgName].src = "images/" + imgName + "_on.gif";
  }
}

function imgOff(imgName)
{
	if (document.images)
	{
		document[imgName].src = "images/" + imgName + "_off.gif";
	}
}

function rollOver(imgID, imgURL)
{
	if (document.images)
	{
		document[imgID].src = "images/" + imgURL;
	}
}

function rollOverURL(id, url)
{
	if (document.getElementById(id))
	{
		document.getElementById(id).href = url;
	}
}
function ListItemHover(uid)
{
  var id = "listItem" + uid;
  if (document.getElementById(id))
	{
		document.getElementById(id).className = "SelectedListItem";
	  ShowItem("optionButtons" + uid);
	}  
}
function ListItemOut(uid)
{
  var id = "listItem" + uid;
  if (document.getElementById(id))
	{
		document.getElementById(id).className = "ListItem";
	  HideItem("optionButtons" + uid);
	}  
}
function ShowItem(id)
{
	if (document.getElementById(id))
	{
		document.getElementById(id).style.display = "block";
		document.getElementById(id).style.visibility = "visible";
	}
}
function HideItem(id)
{
	if (document.getElementById(id))
	{
		document.getElementById(id).style.display = "block";
		document.getElementById(id).style.visibility = "hidden";
	}
}

// =======================================================================
//    	POPUP WINDOW CONTROLS
// =======================================================================
function ShowSmallPopUp(target)
{
	var popUp = window.open(target, "PopUpWindow", "width=400,height=480,menubar=no,resizeable=no,scrollbars=no,status=no,toolbar=no");
	popUp.focus();
}
function ShowLargePopUp(target)
{
	var popUp = window.open(target, "PopUpWindow", "width=640,height=480,menubar=no,resizeable=no,scrollbars=no,status=no,toolbar=no");
	popUp.focus();
}