// JavaScript Document

function returnObjById( id ) 
{ 
	if (document.getElementById) 
		var returnVar = document.getElementById(id); 
	else if (document.all) 
		var returnVar = document.all[id]; 
	else if (document.layers) 
		var returnVar = document.layers[id]; 
	return returnVar; 
}


function fixLeftNav(id)
{			
	var navID = returnObjById('navItemID_' + id);
	
	navID.setAttribute ('src', navID.src + "&state=over")
  
	
}


function clearSearch()
{
	var s = returnObjById('searchField');
	s.value = '';
	
	
}

function fixHomeBlack()
{
	
	var myID0 = returnObjById("middle");
	myID0.setAttribute('id', 'middleBlack');
	
	var myID1 = returnObjById("middleTop");
	myID1.setAttribute('id', 'middleBlackTop');
	
	var myID2 = returnObjById("middleContent");
	myID2.setAttribute('id', 'middleBlackContent');
		
	
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

var hideMe = false;

