function chgMTColor(obj, bOver){
	if(bOver==true){
		obj.style.color = "#FFFFFF";
	}else{
		obj.style.color = "";
	}
}


//Highline(or not) the menu item
function ItemHighline(oItemBox, bHighline){
	if(bHighline){
		oItemBox.bgColor = "#996600";
		//oItemBox.style.cursor = "hand";
	}else{
		oItemBox.bgColor = "";
		//oItemBox.style.cursor = "";
	}
}


//****** About Menu Action

var oCurMenu;
var MenuClock;

//Show the menu of the location project
function ShowSubMenu(oBtnImg, sLayer){
	if(!oBtnImg){
		alert("Please point out the Location-Button!");
		return false;
	}else{
		//if(sLayer) oBtnImg.menuLayer = sLayer;
	}
	
	var oLay = MM_findObj(sLayer);
	if( KeepSubMenu(oLay) ) return;
	
	if(oLay){
		var oAP = new AbsPosition(oBtnImg);
		oLay.style.top = oAP.bottom;
		oLay.style.left = oAP.left+10;
		oLay.style.display = "block";
		oCurMenu = oLay;
	}else{
		alert("Menu-Layer '" + sLayer + "' not found!");
	}
}


//Keep the menu(Cancel the clock for being ready to hide the menu)
function KeepSubMenu(oLayer){
	if(MenuClock!=0){
		clearTimeout(MenuClock);
		MenuClock = 0;
	}
	if(oLayer==oCurMenu){
		if(MenuClock!=0){
			return true;
		}else{
			return false;
		}
	}else{
		KillSubMenu();
		return false;
	}
}


//Ready to hide the menu
//function HideSubMenu(oBtnImg){
function HideSubMenu(){
	MenuClock = setTimeout("KillSubMenu()", 200);
}


//Hide(kill) the menu right now
//function KillSubMenu(oBtnImg){
function KillSubMenu(){
	//var sLayer, oLay;
	//if( (sLayer = oBtnImg.menuLayer) && (oLay = MM_findObj(sLayer)) ){
	if(oCurMenu){
		oCurMenu.style.display = "none";
		MenuClock = 0;
	}
}





var mainClmLoc = "../";
var serviceClmLoc = "service1/";
function checkLocation(){
	var i = location.href.toLowerCase().indexOf("/"+serviceClmLoc);
	if (i != -1){
		serviceClmLoc = "";
	}else{
		mainClmLoc = "";
	}
}
//attachEvent ("onload", checkLocation);
checkLocation();





//Output the menu
document.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("        <tr> ");
document.write("          <td width=\"51\"><a href=\"" + mainClmLoc + "\"><img src=\"" + mainClmLoc + "images/link1.gif\" width=\"51\" height=\"26\" border=\"0\"></a></td>");
document.write("          <td width=\"71\"><a href=\"" + mainClmLoc + "about.htm\"><img src=\"" + mainClmLoc + "images/link6.gif\" width=\"71\" height=\"26\" border=\"0\"></a></td>");
document.write("          <td width=\"71\"><a href=\"" + mainClmLoc + "integration.htm\"><img src=\"" + mainClmLoc + "images/link2.gif\" width=\"71\" height=\"26\" border=\"0\"></a></td>");
document.write("          <td width=\"71\"><a href=\"" + mainClmLoc + "services1.htm\" onmouseover=\"chgMTColor(this, true);ShowSubMenu(this, 'LayerConsultation')\" onmouseout=\"chgMTColor(this);HideSubMenu()\"><img src=\"" + mainClmLoc + "images/link3.gif\" width=\"71\" height=\"26\" border=\"0\"></a></td>");
document.write("          <td width=\"71\"><a href=\"" + mainClmLoc + "ebusiness.htm\" onmouseover=\"chgMTColor(this, true);ShowSubMenu(this, 'LayerEBusiness')\" onmouseout=\"chgMTColor(this);HideSubMenu()\"><img src=\"" + mainClmLoc + "images/link4.gif\" width=\"71\" height=\"26\" border=\"0\"></a></td>");
document.write("          <td width=\"71\"><a href=\"" + mainClmLoc + "parners.htm\"><img src=\"" + mainClmLoc + "images/link7.gif\" width=\"71\" height=\"26\" border=\"0\"></a></td>");
document.write("          <td width=\"71\"><a href=\"" + mainClmLoc + "job.htm\"><img src=\"" + mainClmLoc + "images/link8.gif\" width=\"71\" height=\"26\" border=\"0\"></a></td>");
document.write("          <td width=\"71\"><a href=\"" + mainClmLoc + "contact.htm\"><img src=\"" + mainClmLoc + "images/link9.gif\" width=\"71\" height=\"26\" border=\"0\"></a></td>");
document.write("          <td>&nbsp;<div id=\"LayerConsultation\" style=\"position:absolute; width:80; height:72px; z-index:2; display:none\" onmouseover=\"KeepSubMenu(this)\" onmouseout=\"HideSubMenu()\"> ");
document.write("              <table width=\"80\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" bgcolor=\"#333333\">");
document.write("                <tr> ");
document.write("                  <td align=\"center\" bgcolor=\"#CCCCCC\"> ");
document.write("                    <a href=\"" + serviceClmLoc + "consultation.htm\" class=\"title2\">咨询服务</a></td>");
document.write("                </tr>");
document.write("                <tr> ");
document.write("                  <td align=\"center\" bgcolor=\"#CCCCCC\"> ");
document.write("                    <a href=\"" + serviceClmLoc + "application.htm\" class=\"title2\">实施服务</a></td>");
document.write("                </tr>");
document.write("                <tr> ");
document.write("                  <td align=\"center\" bgcolor=\"#CCCCCC\"> ");
document.write("                    <a href=\"" + serviceClmLoc + "maintain.htm\" class=\"title2\">维护服务</a></td>");
document.write("                </tr>");
document.write("                <tr> ");
document.write("                  <td align=\"center\" bgcolor=\"#CCCCCC\"> ");
document.write("                    <a href=\"" + serviceClmLoc + "outsource.htm\" class=\"title2\">外包服务</a></td>");
document.write("                </tr>");
document.write("              </table>");
document.write("            </div>");
document.write("            <div id=\"LayerEBusiness\" style=\"position:absolute; width:70px; height:41px; z-index:1; display:none\" onmouseover=\"KeepSubMenu(this)\" onmouseout=\"HideSubMenu()\"> ");
document.write("              <table width=\"70\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" bgcolor=\"#333333\">");
document.write("                <tr> ");
document.write("                  <td align=\"center\" bgcolor=\"#CCCCCC\"><a href=\"crm2/main.htm\" class=\"title2\">CRM</a></td>");
document.write("                </tr>");
document.write("              </table>");
document.write("            </div></td>");
document.write("        </tr>");
document.write("      </table>");