var hrefstr = window.location.href;  
function parseWeb() 
{
 	if(hrefstr.indexOf("www.fgav.com")>=0 || hrefstr.indexOf("www.philcon.com.cn")>=0 ){
		return 1;//主站
     } 
   else if(hrefstr.indexOf("bb.")>=0 || hrefstr.indexOf("/bb")>=0  ){
		return 2;//和互联星空合作
    } 
	//else if(hrefstr.indexOf("shop")>=0 || hrefstr.indexOf("SHOP")>=0){
	//	return 3;//商城
    // }
	 else if(hrefstr.indexOf("da")>=0 || hrefstr.indexOf("DAYOO")>=0){
		return 4;//大洋
     }
  else return 1;//主站
  
}
var webType = parseWeb();

//########################################################33
function shopbottomString(){
var bottom="";
bottom=bottom+"<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>";
bottom=bottom+"<tr>";
bottom=bottom+"<td bgColor=#88b6e5 height='1'></td>";
bottom=bottom+"</tr>";
bottom=bottom+"<tr>";
bottom=bottom+"<td bgColor=#cadff3 height='3'></td>";
bottom=bottom+"</tr>";
bottom=bottom+"<tr>";
bottom=bottom+"<td height='24' bgColor=#006699 class='white12'><table width='777' border='0' cellspacing='0' cellpadding='0'>";
bottom=bottom+"<tr>";
bottom=bottom+"<td width='160'>&nbsp;</td>";
bottom=bottom+"<td width='394' align='right'><font style='color:#FFFFFF; size:12px '>热线：020-83498020（9:00-18:00) QQ:471084207</font></td>";
bottom=bottom+"<td width='223'>&nbsp;&nbsp;<a href='http://wpa.qq.com/msgrd?V=1&Uin=471084207&Site=&#31119;&#20809;&#23458;&#26381;&Menu=yes' target='_blank'><img src='/shop/images/qq.gif' width='75' height='18' border='0' align='absmiddle'></a></td>";
bottom=bottom+"</tr>";
bottom=bottom+"</table></td>";
bottom=bottom+"</tr>";
bottom=bottom+"<tr>";
bottom=bottom+"<td bgColor=#ffffff height='6'></td>";
bottom=bottom+"</tr>";
bottom=bottom+"</table>";
bottom=bottom+"<TABLE  cellSpacing=0 borderColorDark=#ffffff cellPadding=0 width=777 align=center borderColorLight=#cccccc border=1>";
bottom=bottom+"<TR>";
bottom=bottom+"<TD width=155 bgColor=#f0f0f0>";
bottom=bottom+"<P class=MsoNormal>◇<strong>常见问题</strong></P></TD>";
bottom=bottom+"<TD width=155 bgColor=#f0f0f0>";
bottom=bottom+"<P class=MsoNormal>◇<strong>订单处理</strong></P></TD>";
bottom=bottom+"<TD width=155 bgColor=#f0f0f0>";
bottom=bottom+"<P class=MsoNormal>◇<strong>送货方式</strong></P></TD>";
bottom=bottom+"<TD width=155 bgColor=#f0f0f0>";
bottom=bottom+"<P class=MsoNormal>◇<strong>支付方式</strong></P></TD>";
bottom=bottom+"<TD width=155 bgColor=#f0f0f0>";
bottom=bottom+"<P class=MsoNormal>◇<B>售后服务</B></P></TD>";
bottom=bottom+"</TR>";
bottom=bottom+"<TR>";
bottom=bottom+"<TD >";
bottom=bottom+"<P class=MsoNormal>·<a href='/shop/help/question.htm' target='_blank' class='blank12'>注册与登录</a><BR>";
bottom=bottom+"·<a href='/shop/help/question.htm' target='_blank'>会员拥有哪些权利</a><BR>";
bottom=bottom+"·<a href='/shop/help/question.htm' target='_blank'>收货时注意事项</a></P></TD>";
bottom=bottom+"<TD  width=155>";
bottom=bottom+"<P class=MsoNormal>·<a href='/shop/help/order.htm' target='_blank'>如何查询订单状态</a>　<BR>";
bottom=bottom+"·<a href='/shop/help/order.htm' target='_blank'>如何给朋友下订单</a><BR>";
bottom=bottom+"·<a href='/shop/help/order.htm' target='_blank'>怎样取消订单</a></P>      </TD>";
bottom=bottom+"<TD  width=155>";
bottom=bottom+"<P class=MsoNormal>·<a href='/shop/help/send.htm' target='_blank'>配送方式及附加费</a>　<BR>";
bottom=bottom+"·<a href='/shop/help/send.htm' target='_blank'>配送范围</a><BR>";
bottom=bottom+"·<a href='/shop/help/send.htm' target='_blank'>发货时间</a></P></TD>";
bottom=bottom+"<TD >";
bottom=bottom+"<P class=MsoNormal>·<a href='/shop/help/pay.htm' target='_blank'>付款方式</a><BR>";
bottom=bottom+"·<a href='/shop/help/pay.htm' target='_blank'>到帐时间</a><BR>";
bottom=bottom+"·<a href='/shop/help/pay.htm' target='_blank'>邮局汇款</a></P></TD>";
bottom=bottom+"<TD  width=155>";
bottom=bottom+"<P class=MsoNormal>·<a href='/shop/help/service.htm' target='_blank'>到款|发货通知</a><BR>";
bottom=bottom+"·<a href='/shop/help/service.htm' target='_blank'>退换货原则</a><BR>";
bottom=bottom+"·<a href='/shop/help/service.htm' target='_blank'>退换货方式</a></P></TD>";
bottom=bottom+"</TR>";
bottom=bottom+"</TABLE>";
bottom=bottom+"<table width='777' border='0' align='center' cellpadding='0' cellspacing='0'>";
bottom=bottom+"<tr>";
bottom=bottom+"<td bgColor=#ffffff height='10'></td>";
bottom=bottom+"</tr>";
bottom=bottom+"</table>";
return bottom;

}
function pubbottomString(){
var bottom="";
bottom=bottom+"<table width='700' border='0' align='center' cellpadding='0' cellspacing='5'>";
bottom=bottom+"<tr>";
bottom=bottom+"<td align='center' class=cpx12hei> <a href='/about/us.html' class=cpx12hei target=_blank>关于我们 </a> | <a href='#' class=cpx12hei>版权声明 </a> | <a href='/about/contact.html' class=cpx12hei target=_blank>广告业务 </a> | <a href='http://www.fgav.com/shop/link.html' target=_blank class=cpx12hei>友情链接 </a> | <a href='/about/contact.html' class=cpx12hei target=_blank>联系我们 </a></td>";
bottom=bottom+"</tr>";
bottom=bottom+"<tr>";
bottom=bottom+"<td align='center' class=cpx12hei>广东福光影音发展有限公司 版权所有</td>";
bottom=bottom+"</tr>";
bottom=bottom+"<tr>";
bottom=bottom+"<td align='center' class=cpx12hei> 互联网出版许可证号： <a href='/images/ww.JPG' target='_blank' class=cpx12hei>网文许可证[2005]040号</a></td>";
bottom=bottom+"</tr>";
bottom=bottom+"<tr>";
bottom=bottom+"<td align='center' class=cpx12hei> 经营许可证号： <a href='http://www.miibeian.gov.cn' target='_blank'>粤B2-20050480 </a></td>";
bottom=bottom+"</tr>";
bottom=bottom+"</table>";
return bottom;
}
function tongjiString(id){
var bottom="";
bottom=bottom+"<center><table width='700' border='0' align='center' cellpadding='0' cellspacing='5'>";
bottom=bottom+"<tr>";
bottom=bottom+"<td align='center' class=cpx12hei>";
bottom=bottom+"<script language=javascript>";
bottom=bottom+"var m_tc_server='vip7.t2t2.com';";
bottom=bottom+"var m_tc_website='"+id+"';";//52937 52938
bottom=bottom+"var m_tc_parent_website='0';";
bottom=bottom+"var m_tc_style='0';";//3为 “本站统计”
bottom=bottom+"</script>";
bottom=bottom+"<script language=javascript src='http://vip7.t2t2.com/visit.js'></script>";
bottom=bottom+"<a href=\"http://report1.textclick.com/?website_id="+id+"\" target=_blank title=\"福光网统计中心\"><img src=\"/images/fgavtongji.gif\" align=absmiddle border=0></a>";
bottom=bottom+"</td></tr>";
bottom=bottom+"<tr>";
bottom=bottom+"<td align='center' class=cpx12hei>";
bottom=bottom+"<script src='http://s18.cnzz.com/stat.php?id=79928&web_id=79928&show=pic' language='JavaScript' charset='gb2312'></script>";
bottom=bottom+"<script language=\"javascript\" src=\"http://bn.fgav.com/tongji.jsp?url="+document.referrer+"\"></script></td></tr>";
bottom=bottom+"</table></center>";
return bottom;
}
function chinavnetbuttomString(){
	var bottom="";
bottom=bottom+"<TABLE cellSpacing=0 cellPadding=0 width=1000 align=center bgColor=#d9d9d9 border=0>";
bottom=bottom+"<TBODY>";
bottom=bottom+"<TR>";
bottom=bottom+"<TD>";
bottom=bottom+"<TABLE height=45 cellSpacing=0 cellPadding=0 width=1000 border=0>";
bottom=bottom+"<TBODY>";
bottom=bottom+"<TR>";
bottom=bottom+"<TD align=right width=106 height=45><A  href=\"http://www.chinatelecom.com.cn/\" target=_blank><IMG height=45 ";
bottom=bottom+" src=\"/js/top/1_163.jpg\" width=95 border=0></A></TD>";
bottom=bottom+"<TD align=middle height=45><A ";
bottom=bottom+"style=\"FONT-SIZE: 12px; COLOR: black; TEXT-DECORATION: none\" ";
bottom=bottom+"href=\"http://a1.gd.chinavnet.com/customer/about/about.html\" ";
bottom=bottom+"target=_blank>关于互联星空</A> | <A ";
bottom=bottom+"style=\"FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none\" ";
bottom=bottom+"href=\"http://a1.gd.chinavnet.com/partner/\" target=_blank>畅游星空</A> | ";
bottom=bottom+"<A style=\"FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none\" ";
bottom=bottom+"href=\"http://a1.gd.chinavnet.com/customer/intro/Links.htm\" ";
bottom=bottom+"target=_blank>地方站点</A> | <A ";
bottom=bottom+"style=\"FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none\" ";
bottom=bottom+"href=\"http://a1.gd.chinavnet.com/sitemap/index.html\" ";
bottom=bottom+"target=_blank>网站地图</A> | <A ";
bottom=bottom+"style=\"FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none\" ";
bottom=bottom+"href=\"http://vnetservice.gdcn.com/v2/guide/user_guide.htm\" ";
bottom=bottom+"target=_blank>使用指南</A> | <A ";
bottom=bottom+"style=\"FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none\" ";
bottom=bottom+"href=\"http://vnetservice.gdcn.com/v2/faq/faq.htm#banner\" ";
bottom=bottom+"target=_blank>常见问题</A> | <A ";
bottom=bottom+"style=\"FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none\" ";
bottom=bottom+"href=\"http://a1.gd.chinavnet.com/customer/yingsi/yingsi.html\" ";
bottom=bottom+"target=_blank>隐私保护</A> | <A ";
bottom=bottom+"style=\"FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none\" ";
bottom=bottom+"href=\"mailto:vnetuser@gddc.com.cn\">联系我们</A> | <A ";
bottom=bottom+"style=\"FONT-SIZE: 9pt; COLOR: black; TEXT-DECORATION: none\" ";
bottom=bottom+"href=\"http://www.chinavnet.com/hezuo/\" target=_blank>合作申请</A> ";
bottom=bottom+"<BR><FONT ";
bottom=bottom+"style=\"FONT-SIZE: 9pt; COLOR: black; ";
bottom=bottom+" TEXT-DECORATION: none\">";
bottom=bottom+"互联星空24小时客服热线：10000　　经营许可证编号：粤B2－20040001</FONT></TD>";
bottom=bottom+"<TD width=10>&nbsp;</TD></TR></TBODY></TABLE></TD></TR>";
bottom=bottom+"<TR>";
bottom=bottom+"<TD ";
bottom=bottom+"style=\"FONT-SIZE: 12px; COLOR: #ffffff; LINE-HEIGHT: 18px; TEXT-DECORATION: none\" ";
bottom=bottom+"align=middle bgColor=#41c1f3 height=21>";
bottom=bottom+"<MARQUEE onmouseover=scrollAmount=0; onmouseout=scrollAmount=3 ";
bottom=bottom+"scrollAmount=3 width=740 height=21>免责申明: ";
bottom=bottom+"本（栏目、频道等）内容由SP提供，中国电信不承担由于内容的合法性及健康性所引起的一切争议和法律责任。 ";
bottom=bottom+"欢迎大家对不合法及不健康内容进行监督和举报。 ";
bottom=bottom+"互联星空客服电话：10000 24小时客服热线：010-58511111</MARQUEE></TD>";
bottom=bottom+"</TR>";
bottom=bottom+"<TR>";
bottom=bottom+"<TD style=\"FONT-SIZE: 12px; COLOR: white\" align=middle bgColor=#727272 ";
bottom=bottom+"height=15>　　　　　广东省电信有限公司</TD></TR></TBODY></TABLE>";
return bottom;
}
function chinavnettopString(){
	var top="";
top=top+"<table width='996' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td>";
top=top+"<iframe style='Z-INDEX:1' width='996' height='65' marginwidth='0' marginheight='0' hspace='0' vspace='0' frameborder='0' scrolling='no' src='http://a1.gd.chinavnet.com/head/new/head.htm'></iframe>";
top=top+"</td></tr></table>";
return top;
}


function dayootopString(){
	var a="";

a=a+"<table width=\"777\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">";
a=a+"  <tr>";
a=a+"    <td width=\"160\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
a=a+"        <tr>";
a=a+"          <td height=\"44\" align=\"center\"><a href=\"http://www.dayoo.com/\" target=\"_blank\"><img src=\"http://www.dayoo.com/include/header/images/logo.gif\" width=\"116\" height=\"40\" border=\"0\"></a></td>";
a=a+"        </tr>";
a=a+"      </table></td>";
a=a+"    <td valign=\"top\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
a=a+"        <tr>";
a=a+"          <td width=\"8\" valign=\"top\" bgcolor=\"#1B1464\"><img src=\"http://www.dayoo.com/include/header/images/jiao.gif\" width=\"8\" height=\"8\"></td>";
a=a+"          <td bgcolor=\"#1B1464\" class=\"navtop\"><a href=\"http://www.dayoo.com/\" target=\"_blank\" class=\"navwhite\">首页</a>　<a href=\"http://news.dayoo.com/\" target=\"_blank\" class=\"navwhite\">新闻</a>　<a href=\"http://bookcity.dayoo.com/\" target=\"_blank\" class=\"navwhite\">书城</a>　<a href=\"http://job.dayoo.com/\" target=\"_blank\" class=\"navwhite\">求职</a>　<a href=\"http://985k.dayoo.com/\" target=\"_blank\" class=\"navwhite\">唱Ｋ</a>　<a href=\"http://game.dayoo.com/\" target=\"_blank\" class=\"navwhite\">游戏</a>　<a href=\"http://auto.dayoo.com/\" target=\"_blank\" class=\"navwhite\">汽车</a>　<a href=\"http://meal.dayoo.com/\" target=\"_blank\" class=\"navwhite\">美食</a>　<a href=\"http://health.dayoo.com/\" target=\"_blank\" class=\"navwhite\">健康</a>　<a href=\"http://service.dayoo.com/\" target=\"_blank\" class=\"navwhite\">便民</a>　<a href=\"http://edu.dayoo.com/\" target=\"_blank\" class=\"navwhite\">教育</a>　<a href=\"http://bookcity.dayoo.com/books/baokan.htm\" target=\"_blank\" class=\"navwhite\">订阅</a>　<a href=\"http://cnave.dayoo.com/\" target=\"_blank\" class=\"navwhite\">音像</a>　<a href=\"http://house.dayoo.com/\" target=\"_blank\" class=\"navwhite\">房产</a>　<a href=\"http://classad.dayoo.com/\" target=\"_blank\" class=\"navwhite\">分类</a>　<a href=\"http://lottery.dayoo.com/\" target=\"_blank\" class=\"navwhite\">彩票</a>　<a href=\"http://enp.dayoo.com/\" target=\"_blank\" class=\"navwhite\">建站</a></td>";
a=a+"        </tr>";
a=a+"        <tr>";
a=a+"          <td height=\"1\" colspan=\"2\" bgcolor=\"#8ED8F8\"></td>";
a=a+"        </tr>";
a=a+"        <tr bgcolor=\"#00AEEF\">";
a=a+"          <td colspan=\"2\" class=\"navwhitetd\">　<a href=\"http://club.dayoo.com/\" target=\"_blank\" class=\"navwhite\">论坛</a>　<a href=\"http://zhuanti.dayoo.com/\" target=\"_blank\" class=\"navwhite\">专题</a>　<a href=\"http://ent.dayoo.com/\" target=\"_blank\" class=\"navwhite\">娱乐</a>　<a href=\"http://sports.dayoo.com/\" target=\"_blank\" class=\"navwhite\">体育</a>　<a href=\"http://photo.dayoo.com/\" target=\"_blank\" class=\"navwhite\">图片</a>　<a href=\"http://society.dayoo.com/\" target=\"_blank\" class=\"navwhite\">社会</a>　<a href=\"http://finance.dayoo.com/\" target=\"_blank\" class=\"navwhite\">财经</a>　<a href=\"http://tech.dayoo.com/\" target=\"_blank\" class=\"navwhite\">科技</a>　<a href=\"http://gz.dayoo.com/\" target=\"_blank\" class=\"navwhite\">广州</a>　<a href=\"http://gd.dayoo.com/\" target=\"_blank\" class=\"navwhite\">广东</a>　<a href=\"http://china.dayoo.com/\" target=\"_blank\" class=\"navwhite\">中国</a>　<a href=\"http://world.dayoo.com/\" target=\"_blank\" class=\"navwhite\">国际</a>　<a href=\"http://dailynews.dayoo.com/gb/node/gundong.shtml\" target=\"_blank\" class=\"navwhite\">滚动</a>　<a href=\"http://weather.dayoo.com/\" target=\"_blank\" class=\"navwhite\">天气</a>　<a href=\"http://bookcity.dayoo.com/books/baokan.htm\" target=\"_blank\" class=\"navwhite\">订阅</a>　<a href=\"http://travel.elong.com/ap/ap.asp?campaign_id=4201015\" target=\"_blank\" class=\"navwhite\">订房</a>　<a href=\"http://rss.dayoo.com/\" target=\"_blank\" class=\"navwhite\">RSS</a></td>";
a=a+"        </tr>";
a=a+"        <tr bgcolor=\"#ffffff\">";
a=a+"          <td colspan=\"2\" class=\"navwhitetd\" height=\"2\"></td>";
a=a+"        </tr>";
a=a+"      </table></td>";
a=a+"  </tr>";
a=a+"</table>";
a=a+"<table cellSpacing=\"0\" cellPadding=\"0\" width=\"777\" align=\"center\" border=\"0\">";
a=a+"  <tr>";
a=a+"    <td vAlign=\"top\" width=\"10\" bgColor=\"#4479c5\" rowSpan=\"2\"><IMG height=\"10\" src=\"http://bookcity.dayoo.com/books/bookcityimages/jiao1.gif\" width=\"10\"></td>";
a=a+"    <td vAlign=\"top\" width=\"142\" bgColor=\"#4479c5\" rowSpan=\"2\"><IMG height=\"22\" hspace=\"15\" src=\"http://bookcity.dayoo.com/books/bookcityimages/bookcity.gif\" width=\"75\"></td>";
a=a+"    <td bgColor=\"#4479c5\" colSpan=\"11\" height=\"3\"></td>";
a=a+"  </tr>";
a=a+"  <tr>";
a=a+"    <td vAlign=\"top\" width=\"11\" bgColor=\"#e5ebf3\"><IMG height=\"10\" src=\"http://bookcity.dayoo.com/books/bookcityimages/jiao2.gif\" width=\"11\"></td>";
a=a+"    <td align=\"center\" bgColor=\"#e5ebf3\" colSpan=\"10\"><A href=\"http://bookcity.dayoo.com/books/default.aspx\" class=\"navblack\" target=\"_blank\" >书城首页</A> &nbsp;<A href=\"http://bookcity.dayoo.com/books/secure/account.aspx\" class=\"navblack\" target=\"_blank\" >我的账户</A>&nbsp;&nbsp;<A href=\"http://bookcity.dayoo.com/books/search.aspx\" class=\"navblack\" target=\"_blank\" >商品搜索</A> &nbsp;<A href=\"http://bookcity.dayoo.com/books/secure/nobook.aspx\" class=\"navblack\" target=\"_blank\" >代客寻书</A>&nbsp;&nbsp;<A href=\"http://bookcity.dayoo.com/books/shoppingcart.aspx\" class=\"navblack\" target=\"_blank\" >购物车</A> &nbsp;<A href=\"http://bookcity.dayoo.com/books/secure/bag.aspx\" class=\"navblack\" target=\"_blank\" >暂存架</A>&nbsp;&nbsp;<A href=\"http://bookcity.dayoo.com/books/orderview.aspx\" class=\"navblack\" target=\"_blank\" >订单查询</A> &nbsp;<A href=\"http://bookcity.dayoo.com/books/leaveword.aspx\" class=\"navblack\" target=\"_blank\" >顾客留言</A>&nbsp;&nbsp;<A href=\"http://bookcity.dayoo.com/books/bookcityhelp.aspx\" class=\"navblack\" target=\"_blank\" >购书指南</A> &nbsp;<A href=\"http://ebook.dayoo.com\" target=\"_blank\" class=\"navblack\">E书</A> &nbsp;<A href=\"http://bookcity.dayoo.com/books/baokan.htm\" target=\"_blank\" class=\"navblack\">报刊</A> </td>";
a=a+"  <tr>";
a=a+"    <td colSpan=\"15\" height=\"5\"></td>";
a=a+"  </tr>";
a=a+"</table>";
return a;
}
//####################################################################
function getbottom()
{
   return  shopbottomString()+pubbottomString()+tongjiString(53007);
}
function getbottomav()
{
	switch(webType){
		case 1://main
			return pubbottomString()+tongjiString(53007);
		case 2://chinaVnet
			return pubbottomString()+tongjiString(53007)+chinavnetbuttomString();
		//case 3://shop
			//return  shopbottomString()+pubbottomString()+tongjiString(52938);
		default :
			return pubbottomString()+tongjiString(53007);
  }
}
function gettop(id)
{ 	switch(webType){
		case 1://main
			return "";
		case 2://chinaVnet
			return chinavnettopString();
		//case 3://shop
		//	return  "";
		case 4://dayoo
			return dayootopString();
		default :
			return "";
}
}

function fgavtop(id)//网站顶部
{
	document.write(gettop(id));
}
function fgavbottom()//商城底部
{
document.write(getbottom());
window.status='福光网欢迎您! www.fgav.com--衣、食、住、行、吃、喝、玩、乐尽在福光网';
}
function fgavbottomav()//宽频底部
{
document.write(getbottomav());
window.status='福光网欢迎您! www.fgav.com--衣、食、住、行、吃、喝、玩、乐尽在福光网';
}
	 

