VoceMnu="";
VoceSub="";
VoceBlock="";
oldObj="";
MyTimeOut="";
mnuColorShadow="#AAAAAA";
mnuColorBorder="#C0C0C0";
mnuColorBack="#333333";
mnuColorBackHL="#777777";
mnuColorText="#FFFFFF";
subColorShadow="#AAAAAA";
subColorBorder="#C0C0C0";
subColorBack="#333333";
subColorBackHL="#777777";
subColorText="#FFFFFF";

document.write('<STYLE TYPE="text/css">');
document.write('.mnuShadow{left: 0; top: 0; height:11; border:1px solid '+mnuColorShadow+'; background-color:'+mnuColorShadow+'; position: relative}');
document.write('.mnuText{left: 1; top: 1; height:11; width:100%; border:1px solid '+mnuColorBorder+'; background-color:'+mnuColorBack+'; position: absolute}');
document.write('.subShadow{left: 0; top: 0; height:11; border:1px solid '+subColorShadow+'; background-color:'+subColorShadow+'; position: relative}');
document.write('.subText{left: 1; top: 1; height:11; width:100%; border:1px solid '+subColorBorder+'; background-color:'+subColorBack+'; position: absolute}');
document.write('.mytextfont{font-family: Arial, Tahoma;font-size: 9pt;color: #000000;}');
document.write('</STYLE>');

function mnuInit()
{
	document.write('<table border="0" width="99%">');
	document.write('<tr>');
	VoceMnu=0;
}

function openSub()
{
	document.write('<div style="left: 0; top: 0; height:12; width:100%; position: relative; visibility:visible">');
}

function closeSub()
{
	document.write('</div>');
}

function mnuEnd()
{
	document.write('</tr>');
	document.write('</table>');
}

function mnuOver(obj)
{
	if (oldObj!="")
	{
		oldObj.style.backgroundColor=mnuColorBack;
		eval('Block'+oldObj.target).style.visibility="hidden";
	}
	obj.style.backgroundColor=mnuColorBackHL;
	eval('Block'+obj.target).style.visibility="visible";
	oldObj=obj;
	self.clearTimeout(MyTimeOut);
}

function CleanSelection()
{
	if (oldObj!="")
	{
		oldObj.style.backgroundColor=mnuColorBack;
		eval('Block'+oldObj.target).style.visibility="hidden";
	}
}

function subOver(obj)
{
	obj.style.backgroundColor=subColorBackHL;
	self.clearTimeout(MyTimeOut);
}

function subOut(obj)
{
	obj.style.backgroundColor=subColorBack;
	MyTimeOut=self.setTimeout("CleanSelection()",1000);
}

function mnuItem(strMenu)
{
	document.write('<td align="center">');
	document.write('<div class="mnuShadow">');
	document.write('<font face="Verdana" size="1" color="'+mnuColorShadow+'">'+strMenu+'</font>');
	document.write('<div target="'+VoceMnu+'" id="IDmnu'+VoceMnu+'" class="mnuText" onmouseover="mnuOver(this);">');
	document.write('<font face="Verdana" size="1" color="'+mnuColorText+'">'+strMenu+'</font>');
	document.write('</div>');
	document.write('</div>');
	document.write('</td>');
	VoceMnu++;
}

function subInit(num)
{
	document.write('<div id="Block'+num+'" style="left: 0; top: 0; height:12; width:100%; position: absolute; visibility:hidden">');	
	document.write('<table border="0" width="99%">');
	document.write('<tr>');
	VoceBlock=num;
	VoceSub=0;
}

function subEnd()
{
	document.write('</tr>');
	document.write('</table>');
	document.write('</div>');	
}

function subItem(strMenu,src,target)
{
	document.write('<td align="center">');
	document.write('<div class="subShadow">');
	document.write('<font face="Verdana" size="1" color="'+subColorShadow+'">'+strMenu+'</font>');
	document.write('<div id="IDsub'+VoceBlock+'_'+VoceSub+'" src="'+src+'" target="'+target+'" class="subText" onmouseover="subOver(this);" onmouseout="subOut(this);" onclick="clickSub(this);">');
	document.write('<font face="Verdana" size="1" color="'+subColorText+'">'+strMenu+'</font>');
	document.write('</div>');
	document.write('</div>');
	document.write('</td>');
	VoceSub++;
}

function clickSub(obj)
{
	parent.frames(obj.target).location.href=obj.src;
	CleanSelection();
}