﻿// JavaScript Document

function get_bottom(){
document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-size:12px;\" >");
document.write(" <tr>");
document.write("<td width=\"972\" height=\"81\" background=\"http://www.lieyingsc.com/images/i_16.jpg\"><table width=\"972\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("<tr>");
document.write("<td width=\"260\" height=\"81\"><img src=\"http://www.lieyingsc.com/images/i_17.jpg\" width=\"260\" height=\"81\" /></td>");
document.write("<td align=\"right\" valign=\"middle\" class=\"font_color f14\"><table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"  style=\"font-size:12px;\"   >");


document.write("<tr>");
document.write("<td height=\"25\" align=\"left\" style=\"font-size:12px;\" class=\"tab_style1\"   ><strong>版权所有:&nbsp;www.lieyingsc.com</strong></td>");
document.write("</tr>");


document.write("<tr>");
document.write("<td height=\"25\" align=\"left\" style=\"font-size:12px;\"><strong>联系人:&nbsp;蒲先生&nbsp;&nbsp;&nbsp;&nbsp;QQ咨询:&nbsp;409199434&nbsp;&nbsp;&nbsp;&nbsp;电话.短信联系:&nbsp;15816880789&nbsp;&nbsp;&nbsp;&nbsp;邮箱:&nbsp;<a href=\"mailto:lieyingsc@yahoo.cn\" class=\"font_color\">lieyingsc@yahoo.cn</a></strong></td>");
document.write("</tr>");



document.write("<tr>");
document.write("<td height=\"25\" align=\"left\" class=\"tab_style1\"><strong>备案序号:&nbsp;<a href=http://www.miibeian.gov.cn target=_blank class=\"font_color f13\" >粤ICP备07047894号</a></strong></td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr>");
document.write("</table></td>");
document.write("</tr>");
document.write("</table>");
document.write("<map name=\"Map\" id=\"Map\">");
document.write("<area shape=\"rect\" coords=\"-1,1,95,24\" href=\"https://www.alipay.com/\" target=\"_blank\" />");
document.write("</map>");
}
                  

function get_menu(){
document.write("<img src=\"http://www.lieyingsc.com/images/i_02.jpg\" width=\"969\" height=\"27\" border=\"0\" usemap=\"#Map\" />");	
document.write("<map name=\"Map\" id=\"Map\">");	
document.write("<area shape=\"rect\" coords=\"163,2,210,26\" href=\"http://www.lieyingsc.com\" target=\"_top\" title=\"Home\" />");	
document.write("<area shape=\"rect\" coords=\"231,1,303,26\" href=\"http://www.lieyingsc.com/aboutweb.html\" target=\"_top\" title=\"About us\"/>");	
document.write("<area shape=\"rect\" coords=\"326,1,404,30\" href=\"http://www.lieyingsc.com/goods.html?stu=3\" target=\"_top\" title=\"Latest collections\"/>");	
document.write("<area shape=\"rect\" coords=\"426,1,504,27\" href=\"http://www.lieyingsc.com/goods.html?stu=4\" target=\"_top\"  title=\"Recommend collection\" />");	
document.write("<area shape=\"rect\" coords=\"520,1,598,41\" href=\"http://www.lieyingsc.com/shopping.html\" target=\"_top\" title=\"Communicate Guide\"/>");	
document.write("<area shape=\"rect\" coords=\"625,0,698,38\" href=\"http://www.lieyingsc.com/user/myaccount.asp\" target=\"_top\"   title=\"Login account\"  />");
document.write("<area shape=\"rect\" coords=\"721,0,800,30\" href=\"http://www.lieyingsc.com/msg/mymsg.asp\" target=\"_top\" title=\"Guestbook\" />");
document.write("<area shape=\"rect\" coords=\"822,0,898,37\" href=\"http://www.lieyingsc.com/conus.html\" target=\"_top\" title=\"Contact us\" />");
document.write("</map>");

}

function get_sort(){

document.write("<td width=\"180\" align=\"left\" valign=\"top\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");	

for(i=0;i<sor_codeid.length;i++){
//只取读lev1的点	
if(parseInt(sor_lev[i])==1 && parseInt(sor_codeid[i])!=45 ){
document.write("<tr>");	
document.write("<td width=\"180\" height=\"26\" align=\"center\" background=\"http://www.lieyingsc.com/images/i_10.jpg\" >");

if(sor_isclick[i]=="y"){
document.write("<a href=\"goods.html?sorid="+sor_codeid[i]+"&stu=1 target=\"_top\" class=\"font_color f15_title\">"+sor_name[i]+"</a> ");
}
else{
document.write("<span class=\"font_color f15_title\" >"+sor_name[i]+"</span> ");		
}

document.write("</td>");		
document.write("</tr>");		
document.write("<tr>");		
document.write("<td   height=\"5\">");		
document.write("</td>");		
document.write("</tr>");		
document.write("<tr>");		
document.write("<td bgcolor=\"#080C08\">");		
document.write("<table width=\"180\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");	

//读下一级节点
for(j=0;j<sor_codeid.length;j++){
if(parseInt(sor_upid[j])==parseInt(sor_codeid[i])){
document.write("<tr><td>");		
document.write("<table width=\"180\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");		
document.write("<tr>");		
document.write("<td width=\"50\" height=\"40\" align=\"center\" valign=\"middle\">");	
document.write("<img src=\""+sor_picurl[j]+"\" width=\"40\" height=\"40\" border=\"1\"  style=\"border-color:#666666\"/>");		
document.write("</td>");		
document.write("<td><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");		
document.write("<tr>");		
document.write("<td><div class=\"w130_hid\" >");		

if(sor_isclick[j]=="y"){
document.write("<a href=\"goods.html?sorid="+sor_codeid[j]+"&stu=1\" target=\"_top\" class=\"font_color f12\"><strong>"+sor_name[j]+"</strong></a>");
}
else{
document.write("<strong  class=\"font_color f12\" >"+sor_name[j]+"</strong>");	
}

document.write("</div></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><div class=\"w130_hid\" >");

if(sor_isclick[j]=="y"){
document.write("<a href=\"goods.html?sorid="+sor_codeid[j]+"&stu=1\" target=\"_top\" class=\"font_color f12\"><strong>"+sor_ename[j]+"</strong></a>");
}
else{
document.write("<strong class=\"font_color f12\" >"+sor_ename[j]+"</strong>");	
}

document.write("</div></td>");
document.write("</tr>");
document.write("</table>");
document.write("</td>");
document.write(" </tr>");
document.write("</table></td></tr>");
document.write("<tr>");
document.write("<td   height=\"6\" align=\"center\"><img src=\"http://www.lieyingsc.com/images/i_20.jpg\" width=\"178\" height=\"6\"/></td>");
document.write("</tr>");
}	
}

document.write("</table>");
document.write("</td>")
document.write("</tr>")
document.write("<tr>")
document.write("<td   height=\"5\"></td>")
document.write("</tr>")
}
}

document.write("</table></td>");


}
  
function find_pro(){
var sorid=document.frm.sor.value;
var name=document.frm.name.value;
var stu="2";
window.open("goods.html?sorid="+sorid+"&stu="+stu+"&name="+name,"_self");
}

function get_search(){
document.write("<form name=\"frm\" method=\"post\" >");
document.write("<tr>");
document.write("<td  align=\"center\" valign=\"top\" bgcolor=\"#080C08\" style=\"line-height:30px; font-size:12px;color:#ffffff;\">			品&nbsp;&nbsp;&nbsp;牌:&nbsp;<select name=\"sor\"   style=\"width:120px;overflow:hidden;\">");
document.write("<option value=\"all\" selected=\"selected\" >所有收藏</option>");

for(i=0;i<sor_codeid.length;i++){
	if(parseInt(sor_lev[i])==2 && parseInt(sor_codeid[i])!=3 && parseInt(sor_codeid[i])!=55 ){
document.write("	 <option value=\""+sor_codeid[i]+"\"  >"+sor_name[i]+"</option>");
	}
}
document.write("</select><br>");

document.write("关键字:&nbsp;<input name=\"name\" type=\"text\" style=\"width:115px;overflow:hidden;\"  class=\"w100_text\" /><br>");
document.write("<a href=\"javascript:find_pro();\"><img src=\"http://www.lieyingsc.com/images/se1.jpg\" width=\"55\" height=\"20\" border=\"0\" /></a>");
document.write("</td>");
document.write("</tr>");
document.write("</form>");
document.write("");
}


//读取分类名
function get_sorname(id){
for(i=0;i<sor_codeid.length;i++){
if(sor_codeid[i]==id){ return sor_name[i];}
}
}


