﻿//document.write("<link href=\"http://www.lenovomobile.com/0_xmwyi/css/public.css\" rel=\"stylesheet\" type=\"text/css\" />");
document.write("<style type=\"text/css\">");
document.write("* 	                    {margin:0px;padding:0px;list-style:none;}");
document.write(".Contain 	            {width:1002px;height:auto;margin:0px auto;}");
document.write(".TopIdx	                {width:1002px;height:6px;float:left;margin-top:14px;background:#FFFFFF;line-height:0px;}");

document.write(".TopEye					{width:962px;height:50px;float:left;background:#FFFFFF;padding:0px 20px;}");
document.write(".TopEye .Logo			{width:202px;height:50px;float:left;background:url(http://www.lenovomobile.com/0_xmwyi/images/logo.gif) no-repeat 0px center;}");

document.write(".TopEye .Lang			{width:400px;height:50px;float:left;}");
document.write(".TopEye .Lang ul		{width:100px;height:auto;float:left;padding:14px 0px;}");
document.write(".TopEye .Lang ul li 	{width:auto;height:22px;float:left;padding:0px 5px;color:#a5a2a5;}");
document.write(".TopEye .Lang ul li.l	{background:url(http://www.lenovomobile.com/0_xmwyi/images/line_grp.gif) no-repeat right 0px;}");

document.write(".TopEye .Sech			{width:320px;height:50px;float:right;}");

document.write(".TopEye .Sech ol		{width:170px;height:22px;float:left;margin-top:13px;}");
document.write(".TopEye .Sech ol li		{width:170px;height:22px;float:left;line-height:22px;color:#a4a2a5;}");

document.write(".TopEye .Sech dl		{width:146px;height:22px;float:right;margin-top:13px;background:url(http://www.lenovomobile.com/0_xmwyi/images/top_sech.gif) no-repeat 0px 0px;}");
document.write(".TopEye .Sech dt		{width:119px;height:20px;float:left;padding:1px 2px;}");
document.write(".TopEye .Sech dd		{width:23px;height:22px;float:right;padding:none;margin:none;cursor:pointer;}");

document.write("#txtKeyword			    {width:110px;height:20px;float:left;line-height:20px;border:none;color:#c2c3c2;font-size:12px;padding:0px 2px;margin:0px;background:url(http://www.lenovomobile.com/0_xmwyi/images/ipt_bg.gif) repeat-x;}");
document.write("#btnSech			    {width: 23px;height:22px;float:left;padding:none;margin:none;line-height:0px;border:none;}");

document.write(".TopMenu					{width:1002px;height:35px;float:left;border-top:1px solid #bdbebd;background:#000000;}");
document.write(".TopMenu ul					{width:1002px;height:35px;float:left;}");
document.write(".TopMenu ul li				{width:auto;height:auto;margin:0px 0px;float:left;}");
document.write(".TopMenu ul li a			{display:block;font-size:0px;line-height:0px;color:#000000;}");
document.write(".TopMenu ul li a.Idx		{width:120px;height:35px;float:left;background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat 0px 0px;}");
document.write(".TopMenu ul li a.Pro		{width:120px;height:35px;float:left;background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat 0px -35px;}");
document.write(".TopMenu ul li a.Fit		{width:120px;height:35px;float:left;background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat 0px -70px;}");
document.write(".TopMenu ul li a.Ser		{width:130px;height:35px;float:left;background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat 0px -105px;}");
document.write(".TopMenu ul li a.Exp		{width:130px;height:35px;float:left;background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat 0px -140px;}");
document.write(".TopMenu ul li a.Cst		{width:130px;height:35px;float:left;background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat 0px -175px;}");
document.write(".TopMenu ul li a.Shp		{width:130px;height:35px;float:left;background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat 0px -210px;}");
document.write(".TopMenu ul li a.Bbs		{width:120px;height:35px;float:left;background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat 0px -245px;}");

document.write(".TopMenu ul li a.Idx:hover	{background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat -130px 0px;}");
document.write(".TopMenu ul li a.Pro:hover	{background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat -130px -35px;}");
document.write(".TopMenu ul li a.Fit:hover	{background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat -130px -70px;}");
document.write(".TopMenu ul li a.Ser:hover	{background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat -130px -105px;}");
document.write(".TopMenu ul li a.Exp:hover	{background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat -130px -140px;}");
document.write(".TopMenu ul li a.Cst:hover	{background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat -130px -175px;}");
document.write(".TopMenu ul li a.Shp:hover	{background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat -130px -210px;}");
document.write(".TopMenu ul li a.Bbs:hover	{background:url(http://www.lenovomobile.com/0_xmwyi/images/MenuMst.gif) no-repeat -130px -245px;}");

document.write("</style>");




//===============================================================================================================
document.write("<div class=\"Contain\">");
document.write("  <div class=\"TopIdx\"></div>");
document.write("  <div class=\"TopEye\">");
document.write("    <div class=\"Logo\"></div>");
document.write("    <div class=\"Lang\">");
document.write("      <ul>");
document.write("        <li class=\"l\"><a href=\"http://www.lenovomobile.com/index.html\">简体</a></li>");
document.write("		<li><a href=\"http://www.lenovomobile.com/en\">English</a></li>");
document.write("      </ul>");
document.write("    </div>");
document.write("    <div class=\"Sech\">");
document.write("      <ol>");
document.write("	<li>产品订购热线：400-819-7777</li>");
document.write("      </ol>");
document.write("      <dl>");
document.write("	    <dt><input type=\"text\" id=\"txtKeyword\" name=\"txtKeyword\" value=\"搜索\"  autocomplete=\"off\"  onfocus=\"GoTopFocus();\" onblur=\"GoTopBlur();\" /></dt>");
document.write("	    <dd onclick=\"return GoTopSearch();\"><input type=\"image\" id=\"btnSech\"  onclick=\"return GoTopSearch();\" src=\"http://www.lenovomobile.com/0_xmwyi/images/space.gif\"/></dd>");
document.write("      </dl>");
document.write("    </div>");
document.write("  </div>");
//===============================================================================================================
document.write("  <div class=\"TopMenu\">");
document.write("    <ul>");
document.write("	<li><a class=\"Idx\" href=\"http://www.lenovomobile.com/index.html\">首页</a></li>");
document.write("	<li><a class=\"Pro\" href=\"http://www.lenovomobile.com/product/producthtml.aspx\">产品</a></li>");
document.write("	<li><a class=\"Fit\" href=\"http://www.lenovomobile.com/product/phoneFittList.aspx\">配件</a></li>");
document.write("	<li><a class=\"Ser\" href=\"http://www.lenovomobile.com/support/support.aspx\">服务支持</a></li>");
document.write("	<li><a class=\"Exp\" href=\"http://www.lenovomobile.com/newtaste/index.aspx\">最新体验</a></li>");
document.write("	<li><a class=\"Cst\" href=\"http://www.lenovomobile.com/websell/customize/index.html\">行业定制</a></li>");
document.write("	<li><a class=\"Shp\" href=\"http://shop.lenovomobile.com\">网上商城</a></li>");
document.write("	<li><a class=\"Bbs\" href=\"http://bbs.lenovomobile.com\">社区</a></li>");
document.write("    </ul>");
document.write("  </div>");
document.write("</div>");
//===============================================================================================================
//-------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------
function id(name){return document.getElementById(name);};
function tag(name,elem){return (elem||document).getElementsByName(name);}
//-------------------------------------------------------------------------------------
var ua      = navigator.userAgent;
var opera	= /opera [56789]|opera\/[56789]/i.test(ua);
var isIE    = !opera && /msie [56789]/i.test(ua);       // preventing opera to be identified as ie
var isMoz 	= !opera && /mozilla\/[56789]/i.test(ua);   // preventing opera to be identified as mz
var IEVerNum = getIEVerNum();
function getIEVerNum (){
	if (isIE){
		var ver = navigator.appVersion;
		var reg = /MSIE (\d+).(\d+)/;
        var m = ver.match(reg);
        return m[1];
	} else {
		return 99;
	};
};
//-------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------
//顶部搜索表单提交
function GoTopSearch(){
    var strKeyword = id("txtKeyword").value;
    if (strKeyword=="搜索") return false;
    if (strKeyword==""){
        alert("请输入搜索关键字！");
    } else {
        strGoUrl = "http://www.lenovomobile.com/search.aspx?key=" + escape(strKeyword)
        document.location.href = strGoUrl;
    };
    return false;
};

function GoTopFocus(){
    var objInput = id("txtKeyword");
    if (objInput.value == "搜索") {
        objInput.value = "";
    };
    EnterDownToDo(objInput,'GoTopSearch();');
};

function GoTopBlur(){
    var objInput = id("txtKeyword");
    if (objInput.value == "") {
        objInput.value = "搜索";
    };
};

function EnterDownToDo(obj,strFunName){
    obj.onkeydown = function(e){
        if(isIE){
            if(getkeyCode(event) == 13){
                eval(strFunName);
		        document.body.focus();
		        return false;
            }
        } else {
            if(getkeyCode(e) == 13){
                eval(strFunName);
		        document.body.focus();
		        return false;
            }
        }
    } 
}
function getkeyCode(e){
    var keynum = "";
    if(isIE) // window.event IE
    {
        keynum = e.keyCode;
    }
    else // Netscape/Firefox/Opera
    {
        keynum = e.which;
    }
    return keynum;
}