function JS_MenuClick(sMenuName) 
{	
	top.Top_ResetMenu_Head(sMenuName) ;
	JS_PageLocation() ;
}
function OnMsOver_MuItem_Head(obj) 
{
	obj.style.border = "1px solid #ADAEFF" ;
	obj.style.backgroundColor = "#8687C5" ;
}
function OnMsOut_MuItem_Head(obj) 
{
	obj.style.border = "1px inset #9999CC" ;
	obj.style.backgroundColor = "#666699" ;
}
function Write_Menu_Space(iWidth, sCaption)
{
	document.write('<td class="headmenudef" nowrap width="' + iWidth + '" align="center"><font color="black">' + sCaption + '</font></td>') ;
}
function Write_Menu_Item(sID, sCaption, sImgFile, iEnd)
{
	with(document)
	{
		write('<td class="headmenuitem" nowrap>') ;
		write('<div class="headmenuitem" onmouseover="if(self.OnMsOver_MuItem_Head) OnMsOver_MuItem_Head(this)" onmouseout="if(self.OnMsOut_MuItem_Head) OnMsOut_MuItem_Head(this)">') ;
		write('<a href="#" onfocus="blur()" id="' + sID + '" onclick="JS_MenuClick(\'' + sID + '\')">') ;
		write('<img align="absmiddle" border="0" src="../cm_images/' + sImgFile + '"> <b>' + sCaption + '</b>') ;
		write('</a>') ;
		write('</div>') ;
		write('</td>') ;
		if(iEnd == 0)
			Write_Menu_Space(30, "|") ;
	}
}
function JS_PageLocation() 
{	
	switch(top.sHead_Menu)
	{	case "home"	: top.FrameView.location = "home.home.htm" ;			break ;
		case "product"	: top.FrameView.location = "../help_cs/eng/start.main.htm" ;	break ;
		case "manual"	: top.FrameView.location = "../help_cs/eng/capture.main.htm" ;	break ;
		case "download"	: top.FrameView.location = "download.download.htm" ;		break ;
		case "buynow"	: top.FrameView.location = "buynow.price.htm" ;			break ;
		case "support"	: top.FrameView.location = "../help_cs/eng/faq.main.htm" ;		break ;
	} 
}
function JS_Create_HeadMenu()
{
	Write_Menu_Space(40, "&nbsp;") ;

	Write_Menu_Item("home", 	"Home", 	"menu.head.home.gif",		0) ;
	Write_Menu_Item("product", 	"Products", 	"menu.head.product.gif",		0) ;
	Write_Menu_Item("manual", 	"Manual", 	"menu.head.manual.gif",		0) ;
	Write_Menu_Item("download", 	"Download", 	"menu.head.download.gif",	0) ;
	Write_Menu_Item("buynow", 	"Buy now", 	"menu.head.buynow.gif",		0) ;
	Write_Menu_Item("support", 	"Support", 	"menu.head.support.gif",		1) ;

	Write_Menu_Space(10, "&nbsp;") ;
}
function _Top_Head_BodyTopWorks() 
{	
	var iRes = 1 ;
	if(self._PageMove_WebTopPage)
		iRes = _PageMove_WebTopPage() ;
	return iRes ;
}
function OnLoad_TopHead() 
{	
	if(self._Exist_Properties_CommPages)
		sPage_TopPath = "" ;
	if(self.OnLoad_Comm)
	{	if(OnLoad_Comm() != 1)
			return ;
	}
	if(self._PageMove_LocalTopPage)
	{	if(_PageMove_LocalTopPage() != 1)
			return ;
	}
	if(navigator.appName != "Microsoft Internet Explorer")
	{
		top.document.getElementById("FrameView").frameBorder= "yes" ;
		top.document.getElementById("FrameView").scrolling= "yes" ;
	}
	if(top.Head_CurrMenuHighlight)
		top.Head_CurrMenuHighlight() ;
}