var topbannnerh=0;
var div2in;
div2in=0;


/*
function topbannerover() {
	Obj=document.getElementById("topbanner");
	Obj.style.display="none";
	topbannnerh=0;
}
*/
function restr(num,str) {
	switch (num) {
		case 1://我的奇品网
		str=str+'<tr><td>　<a href="/my7cv/001.php" target="_top">用户登录/注册</a> <a href="/my7cv/002.php?" target="_top">修改个人资料</a> <a href="/my7cv/003.php" target="_top">修改密码</a>　<a href="/my7cv/004.php" target="_top">我的订单</a> <a href="/my7cv/005.php" target="_top">我的购物币</a> <a href="/my7cv/006.php" target="_top">我的留言</a> <a href="/my7cv/007.php" target="_top">收藏的商品</a> <a href="/my7cv/008.php?righttype=6" target="_top">浏览过的商品</a> <a href="/kfzx/e_print/e_print.htm" target="_top">奇品网E周刊</a></td></tr>';
				break;
		case 2://客服中心
			str=str+'<tr><td>　<a href="/kfzx/xinshou.php" target="_top">新手上路</a> <a href="/kfzx/dinggou.php" target="_top">订购方式</a> <a href="/kfzx/peisong.php" target="_top">配送方式</a> <a href="/kfzx/fukuan.php" target="_top">付款方式</a> <a href="/kfzx/dingdan.php" target="_top">订单信息</a> <a href="/kfzx/shouhou.php" target="_top">售后服务</a> <a href="/kfzx/youhui.php" target="_top">客户优惠</a> <a href="/kfzx/faq.php" target="_top">常见问题FAQ</a> <a href="/kfzx/lianxi.php" target="_top">联系我们</a> <a href="/kfzx/e_print/e_print.htm" target="_top">奇品网E周刊</a></td></tr>';
			break;
		case 10://保健品
			str=str+'<tr><td><a href="/sub_health.php?cid=1013" target="_top" class="ta1"><font color="#000000">内服减肥</font></a> <a href="/sub_health.php?cid=1015" target="_top" class="ta1"><font color="#000000">外用瘦身</font></a> <a href="/sub_health.php?cid=149" target="_top" class="ta1"><font color="#000000">丰胸美乳</font></a> <a href="/sub_health.php?cid=1682" target="_top" class="ta1"><font color="#000000">电视购物</font></a> <a href="/sub_health.php?cid=900" target="_top" class="ta1"><font color="#000000">美容养颜</font></a> <a href="/sub_health.php?cid=479" target="_top" class="ta1"><font color="#000000">运动营养</font></a> <a href="/sub_health.php?cid=625" target="_top" class="ta1"><font color="#000000">补钙系列</font></a> <a href="/sub_health.php?cid=624" target="_top" class="ta1"><font color="#000000">维生素系列</font></a> <a href="/sub_health.php?cid=153" target="_top" class="ta1"><font color="#000000">保肝</font></a> <a href="/sub_health.php?cid=152" target="_top" class="ta1"><font color="#000000">护肺</font></a> <a href="/sub_health.php?cid=147" target="_top" class="ta1"><font color="#000000">免疫力增强</font></a> <a href="/sub_health.php?cid=481" target="_top" class="ta1"><font color="#000000">保健器材</font></a> <a href="/sub_health.php?cid=145" target="_top" class="ta1"><font color="#000000">抗衰老抗疲劳</font></a></td></tr>';
			break;
		case 11://壮阳
			str=str+'<tr><td>  <a href="/sub_zengda.php?cid=862" target="_top"><font color="#FFFFFF">阴茎增大</font></a> <a href="/sub_zengda.php?cid=863" target="_top"><font color="#FFFFFF">速效壮阳</font></a> <a href="/sub_zengda.php?cid=864" target="_top"><font color="#FFFFFF">滋补强肾</font></a> <a href="/sub_zengda.php?cid=865" target="_top"><font color="#FFFFFF">延时持久</font></a> <a href="/sub_zengda.php?cid=1218" target="_top"><font color="#FFFFFF">功能套装</font></a> <a href="/sub_zengda.php?cid=1217" target="_top"><font color="#FFFFFF">优惠套装</font></a> <a href="/topthirty/pingce.php" target="_top"><font color="#FFFFFF">评测专题</font></a></td></tr>';
			break;
		case 12://内衣
			//str=str+'<tr><td><a href="/sub_neiyi.php?cid=273" target="_top"><font color="#FFFFFF">无底开裆</font></a> <a href="/sub_neiyi.php?cid=506" target="_top"><font color="#FFFFFF">露乳</font></a> <a href="/sub_neiyi.php?cid=975" target="_top"><font color="#FFFFFF">游戏装</font></a> <a href="/sub_neiyi.php?cid=270" target="_top"><font color="#FFFFFF">紧身衣</font></a> <a href="/sub_neiyi.php?cid=272" target="_top"><font color="#FFFFFF">超短裙</font></a> <a href="/sub_neiyi.php?cid=269" target="_top"><font color="#FFFFFF">长裙</font></a> <a href="/sub_neiyi.php?cid=426" target="_top"><font color="#FFFFFF">肚兜</font></a> <a href="/sub_neiyi.php?cid=268" target="_top"><font color="#FFFFFF">三点式</font></a> <a href="/sub_neiyi.php?cid=277" target="_top"><font color="#FFFFFF">文胸</font></a> <a href="/sub_neiyi.php?cid=267" target="_top"><font color="#FFFFFF">内裤</font></a> <a href="/sub_neiyi.php?cid=274" target="_top"><font color="#FFFFFF">丝袜吊袜带</font></a> <a href="/sub_neiyi.php?cid=697" target="_top"><font color="#FFFFFF">精品</font></a> <a href="/sub_neiyi.php?cid=271" target="_top"><font color="#FFFFFF">两件套</font></a> <a href="/sub_neiyi.php?cid=1673" target="_top"><font color="#FFFFFF">特别产品</font></a> <a href="/sub_neiyi.php?cid=276" target="_top"><font color="#FFFFFF">家居服</font></a></td></tr>';
			str=str+'<tr><td><a href="/sub_neiyi.php?cid=277" target="_top"><font color="#FFFFFF">文胸</font></a> <a href="/sub_neiyi.php?cid=1255" target="_top"><font color="#FFFFFF">开襟衫</font></a> <a href="/sub_neiyi.php?cid=1608" target="_top"><font color="#FFFFFF">角色扮演</font></a> <a href="/sub_neiyi.php?cid=273" target="_top"><font color="#FFFFFF">开裆衣</font></a> <a href="/sub_neiyi.php?cid=1620" target="_top"><font color="#FFFFFF">漆皮装</font></a> <a href="/sub_neiyi.php?cid=1061" target="_top"><font color="#FFFFFF">分体装</font></a> <a href="/sub_neiyi.php?cid=268" target="_top"><font color="#FFFFFF">三点式</font></a> <a href="/sub_neiyi.php?cid=269" target="_top"><font color="#FFFFFF">长裙</font></a> <a href="/sub_neiyi.php?cid=282" target="_top"><font color="#FFFFFF">丝袜</font></a><a href="/sub_neiyi.php?cid=274" target="_top"><font color="#FFFFFF">吊袜带</font></a> <a href="/sub_neiyi.php?cid=267" target="_top"><font color="#FFFFFF">内裤</font></a> <a href="/sub_neiyi.php?cid=272" target="_top"><font color="#FFFFFF">超短裙</font></a> <a href="/sub_neiyi.php?cid=975" target="_top"><font color="#FFFFFF">游戏服</font></a> <a href="/sub_neiyi.php?cid=506" target="_top"><font color="#FFFFFF">露乳装</font></a> <a href="/sub_neiyi.php?cid=1258" target="_top"><font color="#FFFFFF">SM服饰</font></a> <a href="/sub_neiyi.php?cid=270" target="_top"><font color="#FFFFFF">紧身衣</font></a> <a href="/sub_neiyi.php?cid=426" target="_top"><font color="#FFFFFF">肚兜</font></a> <a href="/sub_neiyi.php?cid=276" target="_top"><font color="#FFFFFF">家居服</font></a> <a href="/sub_neiyi.php?cid=1673" target="_top"><font color="#FFFFFF">特别产品</font></a></td></tr>';
			break;
		case 14://个人护理&化妆品
			str=str+'<tr><td> <a href="/sub_gerenhuli.php?cid=525" target="_top"><font color="#FFFFFF">止脱生发</font></a> <a href="/sub_gerenhuli.php?cid=527" target="_top"><font color="#FFFFFF">祛斑除疤</font></a> <a href="/sub_gerenhuli.php?cid=1185" target="_top"><font color="#FFFFFF">面部焕彩</font></a> <a href="/sub_gerenhuli.php?cid=1282" target="_top"><font color="#FFFFFF">洁阴洗液</font></a> <a href="/sub_gerenhuli.php?cid=924" target="_top"><font color="#FFFFFF">祛痘</font></a> <a href="/sub_gerenhuli.php?cid=1293" target="_top"><font color="#FFFFFF">男士护肤</font></a>  <a href="/sub_gerenhuli.php?cid=531" target="_top"><font color="#FFFFFF">特效护肤</font></a> <a href="/sub_gerenhuli.php?cid=528" target="_top"><font color="#FFFFFF">口腔护理</font></a>  <a href="/sub_gerenhuli.php?cid=526" target="_top"><font color="#FFFFFF">脱毛</font></a> <a href="/sub_gerenhuli.php?cid=1319" target="_top"><font color="#FFFFFF">送礼佳品</font></a> <a href="/sub_gerenhuli.php?cid=648" target="_top"><font color="#FFFFFF">优惠套装</font></a>  <a href="/sub_gerenhuli.php?cid=1318" target="_top"><font color="#FFFFFF">电视购物直销</font></a> <a href="/sub_gerenhuli.php?cid=532" target="_top"><font color="#FFFFFF">其它</font></a></td></tr>';
	break;
		case 15://避孕测孕
			str=str+'<tr><td align="center">　<a href="/aqt.php" target="_top">安全套</a> <a href="/sub_bycys.php?cid=883" target="_top">检测避孕</a> <a href="/sub_bycys.php?cid=1607" target="_top">情趣系列</a> <a href="/sub_bycys.php?cid=1606" target="_top">缩阴养阴</a> <a href="/sub_bycys.php?cid=877" target="_top">润滑剂</a> <a href="/sub_bycys.php?cid=884" target="_top">外用避孕</a> <a href="/sub_bycys.php?cid=861" target="_top">性病防护</a> <a href="/sub_bycys.php?cid=1193" target="_top">打折套装</a> <a href="/products.php" target="_top">成人用品</a> <a href="/zengda.php" target="_top">壮阳增大</a></td></tr>';
			break;
		case 16://成人用品
			str=str+'<tr><td><a href="/sub_product.php?cid=856" target="_top"><font color="#FFFFFF">女用器具</font></a>　<a href="/sub_product.php?cid=855" target="_top"><font color="#FFFFFF">男用器具</font></a>　<a href="/sub_product.php?cid=857" target="_top"><font color="#FFFFFF">女用助情</font></a>　<a href="/sub_product.php?cid=1735" target="_top"><font color="#FFFFFF">男用助情</font></a>　<a href="/sub_product.php?cid=858" target="_top"><font color="#FFFFFF">调情器具</font></a>　<a href="/sub_product.php?cid=973" target="_top"><font color="#FFFFFF">进口精品</font></a>　<a href="/sub_product.php?cid=1739" target="_top"><font color="#FFFFFF">同志精品</font></a>  <a href="/zengda.php?cid=409" target="_top"><font color="#FFFFFF">壮阳增大</font></a>　<a href="/bycys.php" target="_top"><font color="#FFFFFF">避孕测孕</font></a>　<a href="/sub_product.php?cid=860" target="_top"><font color="#FFFFFF">SM情趣</font></a></td></tr>';
break;
		case 17://精品街
			str=str+'<tr><td align=center>　<a href="http://www.china-gift.com/7cv.asp" target="_blank"><font color="#FFFFFF">鲜花速递</font></a>　<a href="http://www.autosup.com/wl/7cv.htm" target="_blank"><font color="#FFFFFF">汽车用品</font></a>　<a href="http://www.ecway.com.cn/index.php?AgentID=AG060011" target="_blank"><font color="#FFFFFF">Zippo·礼品 </font></a>　<a href="http://www.99mai.com" target="_blank"><font color="#FFFFFF">通讯</font></a> <a href="http://7cv-cobuy.cobuy.com.cn/" target="_blank"><font color="#FFFFFF">数字点卡</font></a></td></tr>';
			break;
		case 18://珠宝
			str=str+'<tr><td align=center>　<a href="/sub_jewelry.php?cid=1656" target="_top"><font color="#FFFFFF">翡翠</font></a> <a href="/sub_jewelry.php?cid=1655" target="_top"><font color="#FFFFFF">水晶</font></a> <a href="/sub_jewelry.php?cid=1678" target="_top"><font color="#FFFFFF">玛瑙</font></a>  </td></tr>';
			break;
		case 20://文字版
			str=str+'<tr><td>　<a target="_top"  href=/sub_text.php?productclass=004>成人用品</a>　<a target="_top"  href=/sub_text.php?productclass=007>情趣内衣</a>　<a target="_top"  href=/sub_text.php?productclass=003>保健品</a>　<a target="_top"  href=/sub_text.php?cid=854&productclass=001>壮阳增大</a>　<a target="_top"  href=/sub_text.php?cid=859&productclass=005>避孕测孕</a>　<a target="_top"  href=/sub_text.php?productclass=008>化妆品</a>　<a target="_top"  href=/sub_text.php?productclass=012>个人护理</a></tr></td>';
			break;
		case 21://男性专区
			str=str+'<tr><td>　<a target="_top"  href="/sub_product.php?cid=746">口服壮阳类</a> <a target="_top"  href="/sub_product.php?cid=747">外用延时壮阳类</a>  <a target="_top"  href="/sub_health.php?cid=749">自慰器具类</a> <a target="_top"  href="/sub_bycys.php?cid=750">安全套类</a> <a target="_top"  href="/sub_bycys.php?cid=751">性病防治类</a> <a target="_top"  href="/sub_gerenhuli.php?cid=752">修颜理容类</a> <a target="_top"  href="/sub_cosmetic.php?cid=753">男用性感香水</a> <a target="_top"  href="/sub_cosmetic.php?cid=1268">男用化妆品</a> <a target="_top"  href="/sub_health.php?cid=936">健美强身类</a> <a target="_top"  href="/sub_neiyi.php?cid=745">男士内衣类</a></td></tr>';
			break;
		case 22://女性专区
			str=str+'<tr><td>　<a target="_top"  href="/sub_product.php?cid=755">口服助情类</a> <a target="_top"  href="/sub_product.php?cid=756">外用助情润滑类</a> <a target="_top"  href="/sub_product.php?cid=757">女用器具类</a> <a target="_top"  href="/sub_gerenhuli.php?cid=759">女士健康护理类</a> <a target="_top"  href="/keepfat.php">减肥瘦身类</a> <a target="_top"  href="/sub_health.php?cid=761">丰胸美乳类</a> <a target="_top"  href="/sub_cosmetic.php?cid=765">女用彩妆、护肤品</a> <a target="_top"  href="/sub_neiyi.php?cid=754">女士性感内衣</a> <a target="_top"  href="/sub_cosmetic.php?cid=762">女用香水类</a></td></tr>';
			break;
		case 23://新品上架
			str=str+'<tr><td>　<a href="/newthirty/newarrival.php?cid=101&productclass=004" target="_top">成人用品</a>　<a href="/sub_neiyi_newarrival.php?cid=103" target="_top">情趣内衣</a>　<a href="/newthirty/newarrival.php?cid=102&productclass=003" target="_top">保健品</a>　<a href="/newthirty/newarrival.php?cid=854&productclass=001" target="_top">壮阳增大</a>　<a href="/newthirty/newarrival.php?cid=859&productclass=005" target="_top">避孕测孕</a>　<a href="/newthirty/newarrival.php?cid=108&productclass=012" target="_top">个人护理</a>　<a href="/newthirty/newarrival.php?cid=100&productclass=008" target="_top">化妆品</a>  <a href="/newthirty/newarrival.php?cid=1653&productclass=1653" target="_top">珠宝</a></td></tr>';
			break;
		case 24://清仓
			str=str+'<tr><td>　<a href="/qc/qclist.php?cid=101&productclass=004" target="_top">成人用品</a>　<a href="/qc/qclist_ny.php?cid=103&productclass=007" target="_top">情趣内衣</a>　<a href="/qc/qclist.php??cid=102&productclass=003" target="_top">保健品</a>　<a href="/qc/qclist.php?cid=108&productclass=012" target="_top">个人护理</a>　<a href="/qc/qclist.php?cid=100&productclass=008" target="_top">化妆品</a></td></tr>';
			break;
		case 25://排行榜
			str=str+'<tr><td>　<a href="/topthirty/productsthirty.php?productclass=004" target="_top">成人用品</a>　<a href="/topthirty/neiyi_top.php?productclass=007" target="_top">情趣内衣</a>　<a href="/topthirty/healthtop.php?productclass=003" target="_top">保健品</a>　<a href="/topthirty/topthirty_zengda.php?productclass=001" target="_top">壮阳增大</a>　<a href="/topthirty/topthirty_bycys.php?productclass=005" target="_top">避孕测孕</a>　<a href="/topthirty/grhltop.php?productclass=012" target="_top">个人护理</a></td></tr>';
			break;
		case 26://周周特价
			str=str+'<tr><td>　<a href="/promotion/market/20050425/vip.php" target="_top">VIP专区</a>　<a href="/promotion/market/20050425/youhui.php" target="_top">奇品网优惠券</a>　</td></tr>';
			break;
		}
		return str;
}
function toph(toph)
{
	var s,siteUrl,toph;
	toph=0;//默认
	s=document.location+"";
    	siteUrl=s.substring(7,s.indexOf('/',7));
	if (siteUrl == "maybud.qicv.com")
		toph=90;if (siteUrl == "igo5.qicv.com")
		toph=78;
	//if (siteUrl=="263.qicv.com")
	//	toph=130;
	if (siteUrl=="mm137.qicv.com")
		toph=100;
	if (siteUrl=="0556.qicv.com")
		toph=155;
	if (siteUrl=="7cv.cobuy.com.cn")
		toph=120;
	if (siteUrl=="7cv.yuliao.cn")
		toph=155;
	if (siteUrl=="tjonline.qicv.com")
		toph=155;
	if (siteUrl=="8848.qicv.com")
		toph=190;
	if (siteUrl=="7cv.beehot.com.cn" || siteUrl=="beehot.qicv.com")
		toph=50;
	if (siteUrl=="7cv.xjsohu.com")
		toph=150;
	if (siteUrl=="www.51eh.com")
		toph=133;
	if (siteUrl=="legovo.qicv.com")
		toph=95;
	if (siteUrl=="tingdong.qicv.com")
		toph=150;
	if (siteUrl=="cymedia.qicv.com")
	   toph=140;
	if (siteUrl=="51eh.qicv.com")
		toph=133;
	if (siteUrl=="e1988.qicv.com")
		toph=100;
	if (siteUrl=="7cv.online.sh.cn")
	toph=120;
	if (siteUrl=="7cv.elott.com.cn")
	toph=126;
	if (siteUrl=="wg.qicv.com")
	toph=160;
	toph+=topbannnerh;
	return toph;
}
function local(num,divflag)
{
	var str,toph1;
	toph1=toph(90);
	if (num < 10) {

		Obj.style.top=40+toph1;
		Obj.style.width=640;
		Obj.style.backgroundColor='#DFDFDF';
			str='<table width="640" height="30" border="0" cellspacing="0" cellpadding="0" class="table2">';
		if (screen.width == 1024)
			Obj.style.left=123+113;
		else
			Obj.style.left=11+113;
	}
	if (num >= 10 && num < 20){

		Obj.style.top=76+toph1;
		if (num==12)//内衣的宽
			Obj.style.width=778;
	  else
	  	Obj.style.width=703;
		if (divflag=='index') {
			if (num==12)//内衣的宽
				str='<table width="778" height="31" border="0" cellspacing="0" cellpadding="0" class="table2">';
			else
				str='<table width="703" height="31" border="0" cellspacing="0" cellpadding="0" class="table2">';
		} else {
				if (num==12)//内衣的宽
				  str='<table width="778" height="30" border="0" cellspacing="0" cellpadding="0">';
			  else
			  	str='<table width="703" height="30" border="0" cellspacing="0" cellpadding="0">';
		}
		if (screen.width == 1024)
		  if (num==12)//内衣的左边距
		   Obj.style.left=123;
		  else
		  	Obj.style.left=123+50;
		else
			Obj.style.left=11+50;
	}
	if (num >= 20){

		Obj.style.top=106+div2in+toph1;
		Obj.style.width=733;
		Obj.style.backgroundColor='#DFDFDF';
		str='<table width="733" height="30" border="0" cellspacing="0" cellpadding="0" class="table2">';
		if (screen.width == 1024)
			Obj.style.left=123+20;
		else
			Obj.style.left=11+20;
	}
	return str;
}
function colorchoose(num) {
	switch (num) {
		case 10://保健品
		    	Obj.style.backgroundColor='#ADDF00';
			break;
		case 11://壮阳
			Obj.style.backgroundColor='#FF5400';
			break;
		case 12://内衣
			Obj.style.backgroundColor='#FF4CA9';
			break;
		case 13://化妆品
			Obj.style.backgroundColor='#A800FF';
			break;
		case 14://个人护理
			Obj.style.backgroundColor='#45B4EC';
			break;
		case 15://避孕测孕
			Obj.style.backgroundColor='#CACA25';
			break;
	    case 16://成人用品
		   	Obj.style.backgroundColor='#D61400';
      break;
		case 17://精品街
		    Obj.style.backgroundColor='#00A8FF';
			break;
		case 18://珠宝
		    Obj.style.backgroundColor='#1BB7AD';
			break;
		}
}
function hide(me)
{
if (me.style.visibility=="show" || me.style.visibility=="visible")
		me.style.visibility=(bw.ns4)?'hide':'hidden';
}
function show(me)
{
if (me.style.visibility=="hide" || me.style.visibility=="hidden")
		me.style.visibility=(bw.ns4)?'show':'visible';
}
function con1(num) {
	Obj=document.getElementById("div1");

	var str;

	var divflag='index';

	str=local(num,divflag);
	show(Obj);

	str1=restr(num,str);
	colorchoose(num);
	str1=str1+'</table>';
	if (bw.ns4){
		Obj.document.write(str1);
		Obj.document.close();
	} else {
		Obj.innerHTML = str1;
	}
	/*if (num >=10 && num <=18) {

		for (i=10;i<=18;i++) {
			Objc=document.getElementById("channel"+i);
			alert(Objc.style.color);

		}
		Objc=document.getElementById("channel"+num);
		Objc.style.color="#000000";
	}*/

}
function con2()
{
	Obj=document.getElementById("div1");
	hide(Obj);


}
function con3()
{
	Obj=document.getElementById("div1");
	Obj.style.visibility=(bw.ns4)?'show':'visible';
}

//不显示select
function con4()
{
		//select遮挡div问题
	objsel1=document.getElementById("sel1");
	objsel1.style.visibility=(bw.ns4)?'show':'visible';

	objsel2=document.getElementById("mysel2");
	objsel2.style.visibility=(bw.ns4)?'show':'visible';
}

//显示select
function con5(sourc)
{
		//select遮挡div问题

	Obj=document.getElementById("div1");
	//alert(Obj.style.width);
	if (sourc=='layer'&&Obj.style.width=='733px'&&Obj.style.backgroundColor=='#dfdfdf'||sourc=='text')
	{
	objsel1=document.getElementById("sel1");
	objsel1.style.visibility=(bw.ns4)?'hide':'hidden';

	objsel2=document.getElementById("mysel2");
	objsel2.style.visibility=(bw.ns4)?'hide':'hidden';
}

}
function div2init(num)
{
	Obj=document.getElementById("div2");
	var str2;
	var divflag='other';
    	str2=local(num,divflag);
	str2=str2+restr(num,str2);
	str2=str2+"</table>";
	if (bw.ns4){
		Obj.document.write(str2);
		Obj.document.close();
	} else {
		Obj.innerHTML = str2;
	}
	show(Obj);
	div2in=22;
}