﻿

/*--------------------------网站首页左右2个漂窗------------------------


lastScrollY = 0;
function heartBeat() {
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{ }

percent = .1 * (diffY - lastScrollY);
if (percent > 0) percent = Math.ceil(percent);
else percent = Math.floor(percent);
document.getElementById("lovexin12").style.top = parseInt(document.getElementById

("lovexin12").style.top) + percent + "px";
document.getElementById("lovexin14").style.top = parseInt(document.getElementById("lovexin12").style.top) + percent + "px";

lastScrollY = lastScrollY + percent;
//alert(lastScrollY);
}

function check() {
document.getElementById("lovexin12").style.display = "none";
}

function check1() {
document.getElementById("lovexin14").style.display = "none";
}


suspendcode12 = "<DIV id=\"lovexin12\" style='left:1px;POSITION:absolute;TOP:50px;'><a href='http://www.bfxd.com/shoesInfo/newsDetails.aspx?newsid=1493' target='_blank'><img src='img/book.jpg' width='97' height='322' border='0' /></a><br/><a href='http://www.bfxd.com/NetBar/'  target='_blank'><img  border='0'  src='img/lishiwangluo.jpg' /></a><br/><a href='http://www.bfxd.com/NetBar/dtt/'  target='_blank'><img  border='0'  src='img/datoutie.jpg' /></a><div align='right' style='background-color:lightblue;'><a onClick='check()' style='cursor:hand'>关闭</a></div></div>"
suspendcode14 = "<DIV id=\"lovexin14\" style='right:1px;POSITION:absolute;TOP:50px; border:1px solid #73b9ff;'><br>&nbsp;&nbsp;<a target='_blank' href='http://qun.qq.com/#jointhegroup/gid/17481188'><img border='0' src='img/qun.png' alt='点击这里加入此群' title='点击这里加入此群'></a><br>&nbsp;&nbsp;&nbsp;&nbsp;17481188<br>&nbsp;&nbsp;&nbsp;&nbsp;北方鞋都群<br>&nbsp;&nbsp;<a target='_blank' href='http://wpa.qq.com/msgrd?v=3&uin=8483398&site=北方鞋都客服&menu=yes'><img border='0' src='http://wpa.qq.com/pa?p=2:8483398:42 &r=0.6478050690571595' alt='点击这里给我发消息' title='点击这里给我发消息'></a><br>&nbsp;&nbsp;&nbsp;&nbsp;8483398<br>&nbsp;&nbsp;&nbsp;李氏客服一号<br>&nbsp;&nbsp;<a target='_blank' href='http://wpa.qq.com/msgrd?v=3&uin=70616111&site=北方鞋都客服&menu=yes'><img border='0' src='http://wpa.qq.com/pa?p=2:70616111:42 &r=0.6478050690571595' alt='点击这里给我发消息' title='点击这里给我发消息'></a><br>&nbsp;&nbsp;&nbsp;&nbsp;70616111<br>&nbsp;&nbsp;&nbsp;李氏客服二号<br>&nbsp;&nbsp;<a target='_blank' href='http://wpa.qq.com/msgrd?v=3&uin=76153111&site=北方鞋都客服&menu=yes'><img border='0' src='http://wpa.qq.com/pa?p=2:76153111:42 &r=0.6478050690571595' alt='点击这里给我发消息' title='点击这里给我发消息'></a><br>&nbsp;&nbsp;&nbsp;&nbsp;76153111<br>&nbsp;&nbsp;&nbsp;李氏客服三号<br>&nbsp;&nbsp;<a target='_blank' href='http://wpa.qq.com/msgrd?v=3&uin=37558222&site=北方鞋都客服&menu=yes'><img border='0' src='http://wpa.qq.com/pa?p=2:37558222:42 &r=0.6478050690571595' alt='点击这里给我发消息' title='点击这里给我发消息'></a><br>&nbsp;&nbsp;&nbsp;&nbsp;37558222<br>&nbsp;&nbsp;&nbsp;李氏客服四号&nbsp;&nbsp;<br/><br/><img src='img/right_buttom.jpg' /><div style='background-color:lightblue;'><a onClick='check1()' style='cursor:hand'>关闭</a></div></div>"
document.write(suspendcode12);
document.write(suspendcode14);
window.setInterval("heartBeat()", 1);


function $(o) {
var o = document.getElementById(o) ? document.getElementById(o) : '';
return o;
}
function createXMLHttpRequest() {
if (window.ActiveXObject) {
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
} else if (window.XMLHttpRequest) {
  xmlHttp = new XMLHttpRequest();
}
}
function startRequest(url, returnfun) {
createXMLHttpRequest();
xmlHttp.onreadystatechange = returnfun;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);

}
------*/










              var showsoft = false;
              function showsearch(n) {
                  if (n == 0) showindexhtml();
                  if (showsoft == false && n == 1) {
                      $("indexsoft").innerHTML = "正在加载中,请稍候……";
                      softinfo();
                      showsoft = true;
                  }
                  for (i = 0; i <= 4; i++) {
                      document.getElementById("searchs" + i).className = "blur";
                      document.getElementById("search" + i).style.display = "none";
                  }
                  document.getElementById("searchs" + n).className = "";
                  document.getElementById("search" + n).style.display = "block";
              }

              function softinfo() {
                  startRequest("apps/soft.html", showsoftinfo);
              }
              function showsoftinfo() {
                  if (xmlHttp.readyState == 4) {
                      $("indexsoft").innerHTML = xmlHttp.responseText;
                  }
              }
              var tmptxt = '';
              function gositesearch(keyword) {
                  oldkeyword = keyword;
                  if (tmptxt == '') {
                      tmptxt = $("indexhtml").innerHTML; // 保存临时变量
                  }
                  url = 'apps/insidesearch.php?keyword=' + encodeURIComponent(keyword) + '&t=' + (new Date()).getTime();
                  $("indexhtml").innerHTML = '<center><img src="images/loading.gif" />正在搜索中,请稍候...</center>';
                  startRequest(url, showsearchsite);
              }

              function showindexhtml() {
                  if (tmptxt != '') {
                      $("indexhtml").innerHTML = tmptxt;
                  }
              }
