	// Browser Check
	function Is ()
	{
		var agt=navigator.userAgent.toLowerCase();
		this.major		= parseInt(navigator.appVersion);
		this.minor		= parseFloat(navigator.appVersion);
		this.nav		= ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
		this.nav4		= (this.nav && (this.major == 4));
		this.nav6up		= (this.nav && (this.major >= 5));
		this.ie		= ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
		this.ie4		= (this.ie && (this.major == 4) && (agt.indexOf("msie 5")==-1) );
		this.ie4up		= (this.ie && (this.major >= 4));
		this.mac		= (agt.indexOf("mac")!=-1);
	}
	var is = new Is();
	//alert(is.ie)
	// Page variables
	
	var head="display:''"
	var folder=""
	var openedObj = new Array();
	var num = 0;
	var flag = 0;
	var lastAction = "none";
	/*var folderOld=""
	var objPrevObj=""*/
	
	function expandit(curobj)
	{
		if(!is.nav4)
		{
			folder = getObj(curobj).style
			if (folder.display=="none")
			{
				/*if(objPrevObj!=""){
					folderOld = getObj(objPrevObj).style
					folderOld.display="none"
				}*/
				folder.display="";
				openedObj[curobj] = 1;
				num++;
				lastAction= "open";
				/*objPrevObj = curobj*/
			}
			else
			{
				folder.display="none"
				openedObj[curobj] = 0;
				num--;
				lastAction= "close";
				/*objPrevObj = ""*/
			}
		}
	}
	function getObj(id)
	{
		if(document.getElementById)
		{
			return document.getElementById(id);
		}
		else
		{
			return document.all[id];
		}
	}
	function clean_expandit()
	{
		if (num>0)
		{	/* SJB there are opened tables !!*/
//			if (enable_close_switch && lastAction=="close")
//			{	/* SJB we are on the closed state, yet there are opened tables which need to be 'sorted out' */
				/*do foreach loop in javascript*/
				for (var segment in openedObj)
				{
					var elem = document.getElementById(segment); // fetch once!
					var properties = openedObj[segment];
					if ( properties )
					{	/* SJB - 'sort it out!' - close any opened states */
						expandit(segment);
					}
				}
				/* SJB - clean the openedObj variable to save memory ??? haha, as if!*/
				openedObj=new Array();
//			}
		}
		else
		{	/*// SJB - clean the openedObj variable to save memory ??? haha, as if!*/
			openedObj=new Array();
		}
	}
