function newSep(vSep)
{	document.write("<td class=M"+vSUF+">"+vSep+"</td>")
}
function newI(text,action,url)
{	Mnr = Mnr + 1
	document.write("<td class=M"+vSUF+">")
	document.write("<div class=I"+vSUF+" onMouseOut=\"settmr()\" onMouseOver=\"onI('M"+Mnr+"')\" id=M"+Mnr+" onClick=\""+action+"('"+url+"')\">")
	document.write("<img border=0 src='"+icon+"'>")
	document.write(text)
	document.write("</div></td>")
}
function newM(text)
{	Mnr = Mnr + 1
	document.write("<td class=M"+vSUF+">")
	document.write("<div class=I"+vSUF+" onMouseOut=\"settmr()\" onMouseOver=\"onM(\'M"+Mnr+"\',\'S"+Mnr+"\')\" id=M"+Mnr+">")
	document.write("<img border=0 src='"+icon+"'>")
	document.write(text)
	document.write("</div><div class=SM"+vSUF+" id=S"+Mnr+">")
}
function newMI(text,action,url)
{	Mnr = Mnr + 1
	document.write("<div class=MI"+vSUF+" onMouseOut=\"settmr()\"  onMouseOver=\"onMI('M"+Mnr+"')\" id=M"+Mnr+" onClick=\""+action+"('"+url+"')\">")
	document.write(text)
	document.write("</div>")
}
function newSM(text)
{	Mnr = Mnr + 1
	document.write("<table cellspacing=0 cellpadding=0 border=0><tr><td>")
	document.write("<div class=MI"+vSUF+" onMouseOut=\"settmr()\" onMouseOver=\"onSM('M"+Mnr+"','S"+Mnr+"')\" id=M"+Mnr+">")
	document.write(text)
	document.write("</div></td><td>&shy;<div class=SSM"+vSUF+" id=S"+Mnr+">")
}
function newSMI(text,action,url)
{	Mnr = Mnr + 1
	document.write("<div class=SMI"+vSUF+" onMouseOut=\"settmr()\" onMouseOver=\"onSMI('S"+Mnr+"')\" id=S"+Mnr+" onClick=\""+action+"('"+url+"')\">")
	document.write(text)
	document.write("</div>")
}
function endSM()
{	document.write("</div></td></tr></table>")
}
function endM()
{	document.write("</div></td>")
}

Mnr = 0
timeoutid = 0
delay = 1000
var g1 = "dummy"
var g2 = "dummy"
var g3 = "dummy"
var g4 = "dummy"
var g5 = "dummy"
var w1 = "dummy"
var w2 = "dummy"
var w3 = "dummy"
var w4 = "dummy"
var w5 = "dummy"
var vOW = "ow"
var vCLK = "clk"

function onI(I)
{	if (timeoutid != 0) {clearTimeout(timeoutid);timeoutid = 0}
	w1 = I
	w2 = "dummy"
	w3 = "dummy"
	w4 = "dummy"
	w5 = "dummy"
	MakeItSo()
}
function onMI(MI)
{	if (timeoutid != 0) {clearTimeout(timeoutid);timeoutid = 0}
//	w1 = g1
//	w2 = g2
	w3 = MI
	w4 = "dummy"
	w5 = "dummy"
	MakeItSo()
}
function onSMI(SMI)
{	if (timeoutid != 0) {clearTimeout(timeoutid);timeoutid = 0}
//	w1 = g1
//	w2 = g2
//	w3 = g3
//	w4 = g4
	w5 = SMI
	MakeItSo()
}
function onM(M,SM)
{	if (timeoutid != 0) {clearTimeout(timeoutid);timeoutid = 0}
	w1 = M
	w2 = SM
	w3 = "dummy"
	w4 = "dummy"
	w5 = "dummy"
	MakeItSo()
}
function onSM(SM,SSM)
{	if (timeoutid != 0) {clearTimeout(timeoutid);timeoutid = 0}
//	w1 = g1
//	w2 = g2
	w3 = SM
	w4 = SSM
	w5 = "dummy"
	MakeItSo()
}
function settmr()
{	timeoutid=setTimeout("tmr()",delay) 
}
function tmr()
{	w1 = "dummy"
	w2 = "dummy"
	w3 = "dummy"
	w4 = "dummy"
	w5 = "dummy"
	MakeItSo()
}
function MakeItSo()
{
	if (g5 != w5) { document.getElementById(g5).className = document.getElementById(g5).className.substr(1) }
	if (g4 != w4) {	document.getElementById(g4).style.display = "none" }
	if (g3 != w3) { document.getElementById(g3).className = document.getElementById(g3).className.substr(1) }
	if (g2 != w2) { document.getElementById(g2).style.display = "none" }
	if (g1 != w1) { document.getElementById(g1).className = document.getElementById(g1).className.substr(1) }

	if (g1 != w1) { document.getElementById(w1).className = "X"+document.getElementById(w1).className }
	if (g2 != w2) { document.getElementById(w2).style.display = "block" }
	if (g3 != w3) { document.getElementById(w3).className = "X"+document.getElementById(w3).className }
	if (g4 != w4) { document.getElementById(w4).style.display = "block" }
	if (g5 != w5) { document.getElementById(w5).className = "X"+document.getElementById(w5).className }

	g1 = w1
	g2 = w2
	g3 = w3
	g4 = w4
	g5 = w5
}
function clk(vUrl)
{	if (vUrl.substr(0,1) == "/") {vLoc=vPrefix+vUrl;} else {vLoc=vUrl;};
	window.location = vLoc;
}
function ow(vUrl)
{	if (vUrl.substr(0,1) == "/") {vLoc=vPrefix+vUrl;} else {vLoc=vUrl;};
	x=window.open(vLoc,owname,owparm);
	x.focus()
}
function jw(vUrl)
{	if (vUrl.substr(0,1) == "/") {vLoc=vPrefix+vUrl;} else {vLoc=vUrl;};
	x=window.open(vLoc,owname,owparm);
	x.focus()
}
