// JavaScript Document
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
MM_preloadImages();




var popUpWin=0;
function popUpWindow(URLStr)
{

url=URLStr
	var width=450;
	var height=450;
	var left = (screen.width/2)-(width/2);
var top = (screen.height/2)-(height/2);

  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(url, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

 function PopWin(filename)
{
  winAtts="width=500,height=500,toolbar=no,directories=no,top=200,left=200,location=0,status=0,menubar=0,resizable=false,maximize=0";
  myChild = window.open(filename,"popup",winAtts);
}
 function goImgWin(filename)
{
  winAtts="toolbar=no,directories=no,top=0,left=0,location=0,status=1,menubar=yes,scrollbar=yes,resizable=yes,maximize=0,width=600,height=700";
  myChild = window.open(filename,"mychild",winAtts);
}


  

function clickCategory(CatIDStr) 
{
	
  var txtObj = document.all("t_" + CatIDStr);
  var imgObj = document.all("i_" + CatIDStr);
	if (txtObj != null)
	{
		if (txtObj.style.display == 'none') 
		{
			txtObj.style.display = '';
			imgObj.src = '<%=imgpath%>node_minus.gif';
		}
		else 
		{
			txtObj.style.display = 'none';
			imgObj.src = '<%=imgpath%>node_plus.gif';
		}
	}
	else
	{
		//alert("System Error" & CatIDStr);
		//for (i = 0; i < 5; i++)
		//{ alert(document.all.item(i).ID);}
	}
}

//-->
