function Browser() {
	var b=navigator.appName;
	if (b.indexOf('Netscape')!=-1) this.b="ns";
	else if ((b=="Opera") || (navigator.userAgent.indexOf("Opera")>0)) this.b = "opera";
	else if (b=="Microsoft Internet Explorer") this.b="ie";
	if (!b) alert('Unidentified browser.\nThis browser is not supported,');
	this.version=navigator.appVersion;
	this.v=parseInt(this.version);
	this.ns=(this.b=="ns" && this.v>=4);
	this.ns4=(this.b=="ns" && this.v==4);
	this.ns6=(this.b=="ns" && this.v==5);
	this.ie=(this.b=="ie" && this.v>=4);
	this.ie4=(this.version.indexOf('MSIE 4')>0);
	this.ie5=(this.version.indexOf('MSIE 5')>0);
	this.ie55=(this.version.indexOf('MSIE 5.5')>0);
	this.ie6=(this.version.indexOf('MSIE 6.0')>0);
	this.opera=(this.b=="opera");
	this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
	this.def=(this.ie||this.dom); // most used browsers, for faster if loops
	var ua=navigator.userAgent.toLowerCase();
	if (ua.indexOf("win")>-1) this.platform="win32";
	else if (ua.indexOf("mac")>-1) this.platform="mac";
	else this.platform="other";
}
is=new Browser();

function js_calcMainAreaH(){
	var scrH=document.body.clientHeight;
	scrH=(scrH>0) ? scrH : screen.availHeight;
	var space=is.ie ? 20 : 60;
	var newH=scrH-(20+87+88+space+20);
	if (newH>=200) document.getElementById('idMainArea').style.height=newH;
}
if (is.ns || is.ie)
{
  document.onmousemove = mouseMove;
  if (is.ns) document.captureEvents(Event.MOUSEMOVE);
}
function mouseMove(e)
{
  if (is.ns) {xMouse=e.pageX; yMouse=e.pageY;}
  if (is.ie) {xMouse=event.x; yMouse=event.y;}
  if (is.ie5 || is.ie6) {xMouse=event.x+document.body.scrollLeft; yMouse=event.y+document.body.scrollTop;}
}

function Toggle(node)
{
	// Unfold the branch if it isn't visible
	if (node.nextSibling.style.display == 'none')
	{
		// Change the image (if there is an image)
		if (node.childNodes.length > 0)
		{
			if (node.childNodes.item(0).nodeName == "IMG")
			{
				node.childNodes.item(0).src = "../images/minus.gif";
			}
		}

		node.nextSibling.style.display = 'block';
	}
	// Collapse the branch if it IS visible
	else
	{
		// Change the image (if there is an image)
		if (node.childNodes.length > 0)
		{
			if (node.childNodes.item(0).nodeName == "IMG")
			{
				node.childNodes.item(0).src = "../images/plus.gif";
			}
		}

		node.nextSibling.style.display = 'none';
	}

}
