//left menu
var version = parseInt (navigator.appVersion) ;
NS4 = (document.layers) ? true : false ;
IE4 = ((document.all) && (version >= 4)) ? true : false ;
ver4 = (NS4 || IE4) ? true : false ;
if (NS4)
{
origWidth = innerWidth;
origHeight = innerHeight;
}
function reDo()
{
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();
}
if (NS4)
onresize = reDo;
var firstItem = 0 ;
var lastItem ;
if (NS4)
	lastItem = document.layers.length - 1 ;
if (IE4)
	lastItem = document.all.tags ("DIV").length - 1 ;
function onClicked (el) {}
function onExpandAll () {}
function onCollapseAll () {}
if (ver4)
{
with (document)
{
	write("<STYLE TYPE='text/css'>");
	write (".SXLP0,.SXP0 {}") ;
	write (".SXLR,.SXR {}") ;
	write (".SXLP1,.SXP1 {}") ;
	write (".SXLC0,.SXC0 {}") ;
	write (".SXLP2,.SXP2 {}") ;
	write (".SXLC1,.SXC1 {}") ;
if (NS4)
		{
		write (".below {position:absolute}") ;
		write (".SXP0 {position:absolute; visibility:hidden}") ;
		write (".SXR {position:absolute; visibility:hidden}") ;
		write (".SXP1 {position:absolute; visibility:hidden}") ;
		write (".SXC0 {position:absolute; visibility:hidden}") ;
		write (".SXP2 {position:absolute; visibility:hidden}") ;
		write (".SXC1 {position:absolute; visibility:hidden}") ;
		}
	else
		{
		write (".tbl {width='100%'}") ;
		}

	write("</STYLE>");
	}
}



var bOpenIcon = true ;
function getIndent (theItem)
	{
	end = theItem.id.indexOf ("SXE") ;
	if (end == -1)
		return -1 ;
	return parseInt (theItem.id.substring (1, end)) ;
	}
function getIndexNS (el)
	{
	ind = -1 ;
	for (i = 0 ; i < document.layers.length ; i++)
		{
		var theItem = document.layers [i] ;
		if (theItem == el)
{
ind = i ;
break ;
}
		}
	return ind ;
	}
function getIndexIE (el)
	{
	ind = -1 ;
	tempColl = document.all.tags ("DIV") ;
	for (i = 0 ; i < tempColl.length ; i++)
		{
		var theItem = tempColl (i) ;
		if (theItem == el)
{
ind = i ;
break ;
}
		}
	return ind ;
	}
function setPosition ()
	{
	nextY = document.layers [firstItem].pageY + document.layers [firstItem].document.height ;
	for (i = firstItem + 1 ; i <= lastItem && i < document.layers.length ; i++)
		{
		theItem = document.layers [i] ;
		if (theItem.visibility != "hide")
{
theItem.pageY = nextY ;
nextY += theItem.document.height ;
}
		}
	bel = document.layers["below"] ;
	if (bel)
		bel.pageY = nextY ;
	}
function initialize ()
	{
	if (NS4)
		{
		for (i = 0 ; i < document.layers.length ; i++)
{
theItem = document.layers [i] ;
if ((theItem.id.indexOf ("SXC") != -1) || (getIndent (theItem) > 0))
	theItem.visibility = "hide" ;
}
		setPosition () ;
		}
	else
		{
		tempColl = document.all.tags ("DIV") ;
		for (i = 0 ; i < tempColl.length ; i++)
{
if ((tempColl(i).id.indexOf ("SXC") != -1) || (getIndent (tempColl (i)) > 0))
	tempColl(i).style.display = "none" ;
}
		}
	}

function onClicked (el)
	{
	if (!ver4) return;
	if (IE4)
		onClickedIE(el)
	else
		onClickedNS(el)
	}
function getImageIndex (parentIndex)
	{
	return (parentIndex - 1) / 2 ;
	}
function switchVisibilityIE (theItem, image, image2)
	{
	if (theItem.style.display == "none")
		{
		theItem.style.display = "block" ;
		if (image)
image.src = "../common/sxc1.gif" ;
		if (image2)
image2.src = "../common/sxc3.gif" ;
		}
	else
		{
		theItem.style.display = "none" ;
		if (image)
image.src = "../common/sxc0.gif" ;
		if (image2)
image2.src = "../common/sxc2.gif" ;
		}
	}
function onClickedIE (el)
	{
	theItem = eval (el + "SXC") ;
	image = event.srcElement ;

	var image2 = null ;
	imColl2 = document.images.item("sxc2") ;
	if (bOpenIcon)
		image2 = imColl2 (getImageIndex (getIndexIE (eval (el + "SXP")))) ;
	var bShow = (theItem.style.display == "none") ;
	switchVisibilityIE (theItem, image, image2)
	var ind = getIndexIE (theItem) + 1 ;
	tempColl = document.all.tags("DIV") ;
	imColl = document.images.item("sxc") ;
	while (ind != -1 && ind < tempColl.length)
		{
		var retVal = 0 ;
		if (getIndent (tempColl (ind)) == (getIndent (theItem) + 1))
retVal = 1 ;
		else if (getIndent (tempColl (ind)) > (getIndent (theItem) + 1))
retVal = 2 ;
		if (retVal == 0)
break ;
		elem = tempColl (ind) ;
		if (bShow)
{
if (retVal == 1 && elem.id.indexOf ("SXP") != -1)
	switchVisibilityIE (elem, null, null) ;
}
		else
{
elem.style.display = "none" ;
if (elem.id.indexOf ("SXP") != -1)
	{
	imgInd = getImageIndex (ind) ;
	if (imgInd < imColl.length)
		imColl (imgInd).src = "../common/sxc0.gif" ;
	if (bOpenIcon)
		imColl2 (getImageIndex (getIndexIE (elem))).src = "../common/sxc2.gif" ;
	}
}
		ind++ ;
		}
	}
function switchVisibilityNS (theItem, image, image2)
	{
	if (theItem.visibility == "hide")
		{
		theItem.visibility = "show" ;
		if (image)
image.src = "../common/sxc1.gif" ;
		if (image2)
image2.src = "../common/sxc3.gif" ;
		}
	else
		{
		theItem.visibility = "hide" ;
		if (image)
image.src = "../common/sxc0.gif" ;
		if (image2)
image2.src = "../common/sxc2.gif" ;
		}
	}
function onClickedNS (el)
	{
	theItem = eval ("document." + el + "SXC") ;
	image = eval ("document." + el + "SXP.document.images['sxc']") ;
	var image2 = null ;
	if (bOpenIcon)
		image2 = eval ("document." + el + "SXP.document.images['sxc2']") ;
	var bShow = (theItem.visibility == "hide") ;
	switchVisibilityNS (theItem, image, image2) ;
	var ind = getIndexNS (theItem) + 1 ;
	while (ind != -1 && ind < document.layers.length)
		{
		var retVal = 0 ;
		if (getIndent (document.layers [ind]) == (getIndent (theItem) + 1))
retVal = 1 ;
		else if (getIndent (document.layers [ind]) > (getIndent (theItem) + 1))
retVal = 2 ;
		if (retVal == 0)
break ;
		elem = document.layers [ind] ;
		if (bShow)
{
if (retVal == 1 && elem.id.indexOf ("SXP") != -1)
	switchVisibilityNS (elem, null) ;
}
		else
{
elem.visibility = "hide" ;
if (elem.id.indexOf ("SXP") != -1)
	{
	elem.document.images ['sxc'].src = "../common/sxc0.gif" ;
	if (bOpenIcon)
		elem.document.images ['sxc2'].src = "../common/sxc2.gif" ;
	}
}
		ind++ ;
		}
	setPosition () ;
	}
function onExpandAll ()
	{
	newSrc = "../common/sxc1.gif" ;
	if (NS4)
		{
		for (i = firstItem ; i <= lastItem && i < document.layers.length ; i++)
{
theItem = document.layers [i] ;
if (theItem.id.indexOf ("SXP") != -1)
	{
	theItem.document.images ["sxc"].src = newSrc ;
	if (bOpenIcon)
		theItem.document.images ["sxc2"].src = "../common/sxc3.gif" ;
	}
theItem.visibility = "show" ;
}
		setPosition ();
		}
	else
		{
		divColl = document.all.tags ("DIV") ;
		for (i = firstItem ; i<= lastItem && i < divColl.length ; i++)
divColl(i).style.display = "block";
		imColl = document.images.item ("sxc") ;
		for (i = 0 ; i < imColl.length ; i++)
imColl (i).src = newSrc ;
		if (bOpenIcon)
{
imColl2 = document.images.item ("sxc2") ;
for (i = 0 ; i < imColl2.length ; i++)
	imColl2 (i).src = "../common/sxc3.gif" ;
}
		}
	}
function onCollapseAll ()
	{
	newSrc = "../common/sxc0.gif" ;
	if (NS4)
		{
		for (i = firstItem ; i <= lastItem && i < document.layers.length ; i++)
{
theItem = document.layers [i] ;
if (theItem.id.indexOf ("SXP") != -1)
	{
	theItem.document.images ["sxc"].src = newSrc ;
	if (bOpenIcon)
		theItem.document.images ["sxc2"].src = "../common/sxc2.gif" ;
	}
if (theItem.id.indexOf ("SXC") != -1 || getIndent (theItem) > 0)
	theItem.visibility = "hide" ;
}
		setPosition ();
		}
	else
		{
		divColl = document.all.tags ("DIV") ;
		for (i = firstItem ; i <= lastItem && i < divColl.length ; i++)
{
if (divColl (i).id.indexOf ("SXC") != -1 || getIndent (divColl (i)) > 0)
	divColl(i).style.display = "none" ;
}
		imColl = document.images.item ("sxc") ;
		for (i = 0 ; i < imColl.length ; i++)
imColl (i).src = newSrc ;
		if (bOpenIcon)
{
imColl2 = document.images.item ("sxc2") ;
for (i = 0 ; i < imColl2.length ; i++)
	imColl2 (i).src = "../common/sxc2.gif" ;
}
		}
	}
