<!--
//<![CDATA[
// variables set on entry to calculate browser type
if(self.name == "")
	self.name = "maincat";
var xcompliant=1;
var ie=0;
var net= 0;
var opera=0;
var scriptname=location.pathname;
var ua = navigator.userAgent.toLowerCase();
var today = new Date();
// flag for displaying return to vlib button
var entry_by;
if(location.href.indexOf("s0=VLIB")>0)
		entry_by = "vlib";
// check for ie 5 or netscape 6 
if (ua.indexOf('msie 4')!=-1 || ua.indexOf('msie 3')!=-1)
{
		ie=0;
		net=0;
		xcompliant=1; 
}
else
{
	if(ua.indexOf('opera/7') != -1)
		opera=1;
	else
	{
		if ( navigator.appName=="Microsoft Internet Explorer"
			&& ua.indexOf('opera')==-1)
		{
			if (ua.indexOf('msie 5')!= -1 || ua.indexOf('msie 6')!= -1 )
			{
				ie=1;
				net=0;
				xcompliant=0; 
			}
		}
		else
		{
			if (ua.indexOf('netscape6') != -1 || ua.indexOf('netscape/7') != -1 )
			{	net=1;
				ie=0; 
				xcompliant=0; 
			}
			else
			{	 
				net=0;
				ie=0;
				xcompliant=1;
			}
		}	
	}
}

function bg_on(obj)
{
	var o=eval("document.getElementById('"+obj+"')");
	o.style.backgroundColor='yellow';
}

function bg_off(obj)
{
	var o=eval("document.getElementById('"+obj+"')");
	o.style.backgroundColor='white';
}

function do_popup(oPath,oName,oQry)
{
	var openme = oPath+oQry;
	var winatt = 'scrollbars=yes,resizable=yes,height=450,width=600,';
	if(net==1)
		winatt += 'screenX=25,screenY=25';
	else
		winatt += 'top=25,left=55';
	window.open(openme,oName,winatt);
}

function toggle_child(currMenu, subMenu, x)
{
	if(document.getElementById)
	{
		var thisMenu = eval("document.getElementById('"+currMenu+"')");
		var objMenu = eval("document.getElementById('"+subMenu+"')");
		if(objMenu.className=='off')
		{
			objMenu.className='on';
			objMenu.style.display='block';
			if(x)
				window.scrollBy(0,50);
//			thisMenu.scrollIntoView();
		}
		else 
		{
			objMenu.className='off';
			objMenu.style.display='none';
		}
	}
	return(true);
}

function change_bg(sel,type)
{
	var obj = eval("document.getElementById('"+sel+"')");
	if(type=="on")
	{
		obj.style.backgroundColor = "yellow";
		obj.style.cursor="cursorpointer";
	}
	else
	{
		obj.style.backgroundColor = "white";
		obj.style.cursor="auto";
	}
}

function closePop(url,closeIt)
{
	if(url != null)
		self.opener.location=url;
	self.opener.focus();
	if(closeIt)
		self.close();
}

function popModUrl(popUrl,mainUrl,doFocus)
{
	var newWin = window.open('');
	newWin.location=popUrl;
	if(mainUrl == "back")
		self.history.back();
	else
		self.location=mainUrl;
	if(doFocus)
	{
		if(doFocus == 'main')
			self.focus()
		else
			newWin.focus();
	}
	else
		newWin.focus();
}

//]]>
-->

