﻿Request = {
 QueryString : function(item){
  var svalue = location.search.match(new RegExp("[\?\&]" + item + "=([^\&]*)(\&?)","i"));
  return svalue ? svalue[1] : svalue;
 }
} 

window.onload = function ShowBack()
{
//	document.getElementById("sy").className="";
//	document.getElementById("wfsb").className="";
//    var IsNavigationBlack=document.getElementById("IsNavigationBlack");
//	if(IsNavigationBlack == null)
//		document.getElementById("sy").className="hover_1";
//	else
//	{
//		document.getElementById("wfsb").className="hover_1";
//		document.getElementById("wfsb").style.display="block";
//		if(IsNavigationBlack.title==1)
//		{
//		    document.getElementById("ca").innerHTML="文房四宝";
//		}
//		else if(IsNavigationBlack.title==2)
//		{
//		    document.getElementById("ca").innerHTML="工艺品";
//		}
//		else if(IsNavigationBlack.title==3)
//		{
//		    document.getElementById("ca").innerHTML="古旧图书";
//		}
//	}
		
    //获取搜索分类值
    var catalogid=Request.QueryString("ci");
    if(catalogid!=null)
    {
        var civalue = new Array("A","A01","A02","A05","A04");
        for(var i=0;i<civalue.length;i++)
        {
            if(civalue[i] == catalogid)
                document.getElementById("ci").selectedIndex=i;
        }
    }
}
// 搜索伪静态链接跳转
String.prototype.trim   =   function()
{
         //   用正则表达式将前后空格
         //   用空字符串替代。
         return   this.replace(/(^\s*)|(\s*$)/g,   "");
}

function ToSearchUrl()
{
	 
	var tsurl_Url="http://search.llc2010.com/KeyWordsSearch-";
	var tsurl_keyWord=document.getElementById("kw").value ;
	tsurl_keyWord=tsurl_keyWord.trim();
    tsurl_keyWord=encodeURI(tsurl_keyWord);
	
	var   tsurl_ddl   =    document.getElementById("ci") 
		
	var   tsurl_ddl_index   =   tsurl_ddl.selectedIndex; 

	var   tsurl_ddl_Value   =   tsurl_ddl.options[tsurl_ddl_index].value; 
	
	tsurl_Url+=tsurl_ddl_Value+"-";
	
	if(null!=tsurl_keyWord && ""!=tsurl_keyWord)
	{
	   tsurl_Url+=tsurl_keyWord;
	}
	tsurl_Url+=".html";
    	
		document.getElementById('SearchForm').action=tsurl_Url;
	return true;
}
// JavaScript Document
//document.writeln("<link href=\"http:\/\/www.llc2010.com\/css\/base.css\" type=\"text\/css\" rel=\"Stylesheet\" \/>");
document.writeln("<div class=\"header\">");
document.writeln("<div class=\"line_01\"><\/div>");
document.writeln("<!--nav begin-->");
document.writeln("<div class=\"nav_1\" >");
document.writeln("<ul>");

document.writeln("<li id=\"sy\"><a href=\"http:\/\/www.llc2010.com\">首页</a><div class=\"div\"></div></li>");
document.writeln("<li><a href=\"http://www.llc2010.com/gallery.html\">网上画廊<\/a><\/li>");
document.writeln("<li><a href=\"http:\/\/www.llc2010.com\/cultural_square.html\">文化广场</a><div class=\"div\"></div></li>");
document.writeln("<li style=\"cursor:hand;\" onmouseover=\"document.getElementById(\'allCategory\').style.display=\'block\'\" onmouseout=\"document.getElementById(\'allCategory\').style.display=\'none\'\"><a>所有商品</a><div class=\"div\"></div></li>");
var IsNavigationBlack=document.getElementById("IsNavigationBlack");
if(IsNavigationBlack.title==1)
//    document.writeln("<li id=\"wfsb\" style=\"display:none\"><a href=\"#\"><span id=\"ca\">文房四宝</span></a><div class=\"div\"></div></li>");
    document.writeln("<li class=\"hover_1\"><a href=\"#\">文房四宝</a><div class=\"div\"></div></li>");
else if(IsNavigationBlack.title==2)
    document.writeln("<li class=\"hover_1\"><a href=\"#\">工艺品</a><div class=\"div\"></div></li>");
else if(IsNavigationBlack.title==3)
    document.writeln("<li class=\"hover_1\"><a href=\"#\">中国书店</a><div class=\"div\"></div></li>");
else if(IsNavigationBlack.title==5)
    document.writeln("<li class=\"hover_1\"><a href=\"#\">书画作品</a><div class=\"div\"></div></li>");
document.writeln("<\/ul>");
document.writeln("<div class=\"clear\"><\/div>");
document.writeln("<form name=\"search\"  id=\"SearchForm\"  action=\"http:\/\/search.llc2010.com\/search.aspx\" method=\"post\" onsubmit=\"return ToSearchUrl()\">");
document.writeln("<!--search begin-->");
document.writeln("<div class=\"search\">");
document.writeln("<div><img src=\"http:\/\/www.llc2010.com\/images/search_icon.jpg\" align=\"absmiddle\" class=\"sImg\" alt=\"\" \/><\/div>");
document.writeln("<div><select id=\"ci\" name=\"ci\">");
document.writeln("<option value=\"A\" selected>-所有分类-<\/option>");
document.writeln("<option value=\"A01\">文房四宝<\/option>");
document.writeln("<option value=\"A02\">工艺品<\/option>");
document.writeln("<option value=\"A05\">书画作品<\/option>");
document.writeln("<option value=\"A04\">中国书店<\/option>");
document.writeln("<option value=\"A06\">民族乐器<\/option>");
document.writeln("<option value=\"A07\">金石篆刻<\/option>");
document.writeln("<option value=\"A08\">茶叶<\/option>");
document.writeln("<\/select>");
document.writeln("<input type=\"text\" class=\"sText\" name=\"kw\" id=\"kw\" /><\/div>");
document.writeln("<div><input type=\"image\" src=\"http:\/\/www.llc2010.com\/images\/button_001.jpg\" \/><\/div>");
document.writeln("<div><a href=\"http:\/\/search.llc2010.com\/AdvancedSearch.aspx\"><img src=\"http:\/\/www.llc2010.com\/images\/button_002.jpg\" \/><\/a><\/div>");
document.writeln("<div style='color:#fff; line-height:26px; padding-left:20px;'>全场满300元免费配送！</div>");
document.writeln("<div class=\"clear\"><\/div>");
document.writeln("<\/div>");
document.writeln("<\/form>");
document.writeln("<!--search end-->");
document.writeln("<\/div>");
document.writeln("<!--nav end-->");
document.writeln("<div class=\"layle\" style=\"display:none\" id=\"allCategory\" onmouseover=\"this.style.display=\'block\'\" onmouseout=\"this.style.display=\'none\'\">");
document.writeln("<ul>");
document.writeln("<li><a href=\"http://search.llc2010.com/SearchList-A01--0-0-0-40-1-1-0--.html\">文房四宝</a></li>");
document.writeln("<li><a href=\"http://www.llc2010.com/handiwork.html\">工艺品</a></li>");
document.writeln("<li><a href=\"http://search.llc2010.com/SearchList-A05--0-0-0-40-1-1-0--.html\">书画作品</a></li>");
document.writeln("<li><a href=\"http://search.llc2010.com/SearchList-A04--0-0-0-40-1-1-0--.html\">中国书店</a></li>");
document.writeln("<li><a href=\"http://www.llc2010.com/baishanzhan.html\">宏宝堂百扇展</a></li>");
document.writeln("<li><a href=\"http://search.llc2010.com/SearchList-A06--0-0-0-40-1-1-0--.html\">民族乐器</a></li>");
document.writeln("<li><a href=\"http://search.llc2010.com/SearchList-A07--0-0-0-40-1-1-0--.html\">金石篆刻</a></li>");
document.writeln("<\/ul>");
document.writeln("<div class=\"clear\"><\/div>");
document.writeln("<\/div>");
document.writeln("<!--hotSearch begin-->");
document.writeln("<div class=\"hotSearch\"  style=\"display:none\"><span class=\"bold\">热门搜索：<\/span><a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e6%af%9b%e7%ac%94.html\">毛笔<\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e5%a2%a8%e6%b1%81.html\">墨汁<\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e5%ae%a3%e7%ba%b8.html\">宣纸<\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e7%a0%9a%e5%8f%b0.html\">砚台<\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e6%96%87%e6%88%bf%e5%9b%9b%e5%ae%9d.html\">文房四宝<\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e7%ab%af%e7%a0%9a.html\">端砚<\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e9%95%87%e5%b0%ba.html\">镇尺<\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e6%ad%99%e7%a0%9a.html\">歙砚<\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e6%b9%96%e7%ac%94.html\">湖笔<\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e7%ac%94%e6%9e%b6.html\">笔架<\/a> | <a href=\"http:\/\/search.llc2010.com\/CatalogSearch-A01B01C07.html\">毛笔套装 <\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e5%ae%89%e5%be%bd%e5%ae%a3%e7%ba%b8.html\">安徽宣纸 <\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e9%9d%92%e9%93%9c%e5%99%a8.html\">青铜器");
document.writeln(" <\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e6%8b%93%e7%89%87.html\">拓片 <\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e9%a9%ac%e8%b8%8f%e9%a3%9e%e7%87%95.html\">马踏飞燕");
document.writeln(" <\/a> | <a href=\"http:\/\/search.llc2010.com\/KeyWordsSearch-A-1-%e4%b8%ad%e5%9b%bd%e4%b9%a6%e5%ba%97.html\">中国书店<\/a><\/div>");
document.writeln("<!--hotSearch end-->")
document.writeln("<div class=\"hotSearch\" ><span class=\"bold\">便捷入口：</span><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--%e4%bb%8a%e6%97%a5%e7%89%b9%e4%bb%b7.html\" target=\"_blank\"  style=\"color:#F00\">今日特价 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--.html\" target=\"_blank\">新品 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--%e7%bf%a1%e7%bf%a0.html\" target=\"_blank\" style=\"color:#f00\">翡翠 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--%e7%8e%9b%e7%91%99.html\" target=\"_blank\">玛瑙 </a><a href=\"http://search.llc2010.com/SearchList-A08--0-0-0-40-1-1-0--.html\" target=\"_blank\">茶叶 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--%e8%99%8e%e7%9c%bc%20%e6%9c%a8%e5%8f%98.html\" target=\"_blank\">虎眼 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--%e4%b8%9c%e9%99%b5.html\" target=\"_blank\">东陵 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--%e5%92%8c%e7%94%b0.html\" target=\"_blank\" style=\"color:#f00\">和田玉 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-2-40-1-1-0--%e5%af%bf%e5%b1%b1.html\" target=\"_blank\" style=\"color:#f00\">寿山石 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--%e6%8a%8a%e4%bb%b6.html\" target=\"_blank\">把件 </a><a href=\"http://search.llc2010.com/SearchList-A02B02C01--0-0-0-40-1-1-0--.html\" target=\"_blank\">摆件 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--%e6%89%8b%e4%b8%b2.html\" target=\"_blank\">手串 </a><a href=\"http://search.llc2010.com/SearchList-A02--0-0-0-40-1-1-0--%e6%9d%be%e7%9f%b3.html\" target=\"_blank\">松石 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-0-40-1-1-0--%e6%8c%82%e4%bb%b6.html\" target=\"_blank\">挂件 </a><a href=\"http://search.llc2010.com/SearchList-A01B01--0-0-0-40-1-1-0--.html\" target=\"_blank\">毛笔 </a><a href=\"http://search.llc2010.com/SearchList-A01B03--0-0-0-40-1-1-0--.html\" target=\"_blank\">宣纸 </a><a href=\"http://search.llc2010.com/SearchList-A01B04C04--0-0-0-40-1--0--.html\" target=\"_blank\">砚台 </a><a href=\"http://search.llc2010.com/SearchList-A05B09--0-0-0-40-1-1-0--.html\" target=\"_blank\">拓片 </a><a href=\"http://search.llc2010.com/SearchList-A--0-0-1-40-1-1-0--%e7%b4%ab%e7%a0%82%e5%a3%b6.html\" target=\"_blank\">紫砂壶 </a><a href=\"http://search.llc2010.com/SearchList-A05B02--0-0-1-40-1-1-0--.html\" target=\"_blank\">书法 </a><a href=\"http://search.llc2010.com/SearchList-A05B01--0-0-1-40-1-1-0--.html\" target=\"_blank\">国画 </a></div>");
document.writeln("<div class=\"line_01\"><\/div>");
document.writeln("<!--<div class=\"knot\"><\/div>-->");
document.writeln("<div id=\"knot\"><\/div>");
document.writeln("<!--logo begin-->");
document.writeln("<div class=\"logo\"><a href=\"http:\/\/www.llc2010.com\"><img src=\"http:\/\/www.llc2010.com\/images\/logo.jpg\" alt=\"logo\" \/><\/a><\/div>");
document.writeln("<!--logo end-->");
document.writeln("<!--topbar begin-->");
document.writeln("<div class=\"topbar_1\">");
document.writeln("<ul>");
//document.writeln("<li onmouseover=\"ShowImage(this,1,0)\" onmouseout=\"ShowImage(this,1,1)\"><a href=\"http:\/\/www.llc2010.com\/shop\/login.aspx\"><div><img src=\"http:\/\/www.llc2010.com\/images\/icon_001.jpg\" alt=\"\" id=\"img1\" \/><\/div>登录<\/a><\/li>");
//document.writeln("<li onmouseover=\"ShowImage(this,2,0)\" onmouseout=\"ShowImage(this,2,1)\"><a href=\"http:\/\/www.llc2010.com\/shop\/Register.aspx\"><div><img src=\"http:\/\/www.llc2010.com\/images\/icon_002.jpg\" alt=\"\" id=\"img2\" \/><\/div>注册<\/a><\/li>");
document.writeln("<li onmouseover=\"ShowImage(this,3,0)\" onmouseout=\"ShowImage(this,3,1)\"><a href=\"http:\/\/www.llc2010.com\/shop\/HouseKeeper\/CustomerHomePage.aspx\"><div><img src=\"http:\/\/www.llc2010.com\/images\/icon_003.jpg\" alt=\"\" id=\"img3\" \/><\/div>账户<\/a><\/li>");
document.writeln("<li onmouseover=\"ShowImage(this,4,0)\" onmouseout=\"ShowImage(this,4,1)\"><a href=\"http:\/\/www.llc2010.com\/shop\/generalcart.aspx\"><div><img src=\"http:\/\/www.llc2010.com\/images\/icon_004.jpg\" alt=\"\" id=\"img4\" \/><\/div>购物车<\/a><\/li>");
//document.writeln("<li onmouseover=\"ShowImage(this,5,0)\" onmouseout=\"ShowImage(this,5,1)\"><a href=\"http:\/\/www.llc2010.com\/shop\/HouseKeeper\/Orders.aspx\"><div><img src=\"http:\/\/www.llc2010.com\/images\/icon_005.jpg\" alt=\"\" id=\"img5\" \/><\/div>订单查询<\/a><\/li>");
document.writeln("<li onmouseover=\"ShowImage(this,6,0)\" onmouseout=\"ShowImage(this,6,1)\"><a href=\"http:\/\/www.llc2010.com\/shop\/HouseKeeper\/MyFavorite.aspx\"><div><img src=\"http:\/\/www.llc2010.com\/images\/icon_006.jpg\" alt=\"\" id=\"img6\" \/><\/div>收藏夹<\/a><\/li>");
document.writeln("<li onmouseover=\"ShowImage(this,7,0)\" onmouseout=\"ShowImage(this,7,1)\"><a href=\"http:\/\/www.llc2010.com\/help.shtml\"><div><img src=\"http:\/\/www.llc2010.com\/images\/icon_007.jpg\" alt=\"\" id=\"img7\" \/><\/div>帮助中心<\/a><\/li>");
document.writeln("<div class=\"clear\"><\/div>");
document.writeln("<\/ul>");
document.writeln("<\/div>");
document.writeln("<!--topbar end -->");
document.writeln("<\/div>");
document.writeln("<iframe id=\"loginFrame\" name=\"loginFrame\" marginHeight=\"0\" frameborder=\"no\" vspace=\"0\" marginwidth=\"0\" src=\"http:\/\/www.llc2010.com\/shop\/inc\/IndexLogin.aspx\" scrolling=\"no\" width=\"1000\" height=\"22\"><\/iframe>");


function ShowImage(obj,i,eventtype)
{
	if(eventtype==0)
	{
		obj.className="hover";
		document.getElementById("img"+i).src="http://www.llc2010.com/images/icon_001_"+i+".jpg";
	}
	else
	{
		obj.className="";
		document.getElementById("img"+i).src="http://www.llc2010.com/images/icon_00"+i+".jpg";
	}
}





