﻿document.write("<div id=\"hasIE_level2\" style=\"background:#EFF8FF; text-align: center; padding:1px 0 5px; border:0 solid #B2D1ED;border-width:1px 0; width:100%; z-index:9999;margin-top:1px;position: absolute;bottom:0;left:0;height:18px;\"><div id=\"iewarning\" style=\"float:left;margin:2px 9px 0 5px;\"><img align=\"absmiddle\" src=\"/images/kids.gif\" border=\"0\" /></div><div id=\"closeimg\" style=\"float:right;margin:2px 5px\"><a href=\"javascript:closediv('hasIE_level2');\" title=\"关闭提示\"><img src=\"/images/close.gif\" align=\"absmiddle\" border=\"0\" /></a></div><div style=\" margin-top:2px;font-size:12px;color:#006600\">你我同行,共创绿色湖南二手信息网！<font color=\"#0507E0\">信息力求真实有效,拒绝虚假、违法信息！如果你发布了信息请把2SwWw.COM推荐给你的朋友,你我同行！<font color=\"#ff0000\"><b>客服:<\/b><\/font><a href=\"http:\/\/sighttp.qq.com\/cgi-bin\/check?sigkey=0ea46afdd62c4dc4050658db62ca5b83f37953352c071d30dae4458bf8ec11ef193c298b8577127d41157736dd025640\"; target=_blank; onclick=\"var tempSrc=\'http:\/\/sighttp.qq.com\/wpa.js?rantime=\'+Math.random()+\'&sigkey=0ea46afdd62c4dc4050658db62ca5b83f37953352c071d30dae4458bf8ec11ef193c298b8577127d41157736dd025640\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text\/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC=\'http:\/\/wpa.qq.com\/pa?p=1:84978298:10\' alt=\"湖南二手网 http://www.2swww.com/\"><\/a>&nbsp;</font></div></div>");

function closediv(id) {
    document.getElementById(id).style.display = 'none';
}

var g_myBodyInstance = document.body;
var g_myBodyInstanceString = "document.body";
if(document.compatMode != "BackCompat"){
    // for looser.dtd
    g_myBodyInstance = document.documentElement;
    g_myBodyInstanceString = "document.documentElement";
}
var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
                parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
var isMinNS5 = (navigator.appName.indexOf("Netscape") >= 0 &&
                parseFloat(navigator.appVersion) >= 5) ? 1 : 0;
var isMinIE4 = (document.all) ? 1 : 0;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;
var isMacIE = (isMinIE4 && navigator.userAgent.indexOf("Mac") >= 0) ? 1 : 0;

var getFFVersion=navigator.userAgent.substring(
                    navigator.userAgent.indexOf("Firefox")).split("/")[1];
//extra height in px to add to iframe in FireFox 1.0+ browsers
var FFextraHeight=getFFVersion<1.5? 16 : 0;


function getLayer(name) {
  if (isMinNS5)
    return document.getElementById(name);
  else if (isMinIE4)
    return eval('document.all.' + name);
  else if (isMinNS4)
    return findLayer(name, document);

  return null;
}

function findLayer(name, doc) {

  var i, layer;

  for (i = 0; i < doc.layers.length; i++) {
    layer = doc.layers[i];
    if (layer.name == name)
      return layer;
    if (layer.document.layers.length > 0) {
      layer = findLayer(name, layer.document);
      if (layer != null)
        return layer;
    }
  }

  return null;
}

function moveLayerTo(layer, x, y) {
  if (isMinIE4) {
    layer.style.left = x;
    layer.style.top  = y;
  }
  else if (isMinNS5) {
    layer.style.left = x+'px';
    layer.style.top  = y+'px';
  }
  else if (isMinNS4)
    layer.moveTo(x, y);
}

function getPageLeft(layer) {

  if (isMinIE4||isMinNS5)
    return(layer.offsetLeft);
  else if (isMinNS4)
    return(layer.pageX);
  return(-1);
}

function getPageTop(layer) {

  if (isMinIE4||isMinNS5)
    return(layer.offsetTop);
  else if (isMinNS4)
    return(layer.pageY);
  return(-1);
}

function getPageScrollX() {

  if (isMinIE4||isMinNS5)
    return(g_myBodyInstance.scrollLeft);
  else if (isMinNS4)
    return(window.pageXOffset);
  return(-1);
}

function getPageScrollY() {

  if (isMinIE4||isMinNS5)
    return(g_myBodyInstance.scrollTop);
  else if (isMinNS4)
    return(window.pageYOffset);
  return(-1);
}

function getHeight(layer) {

  if (isMinIE4||isMinNS5) {
    if (false && layer.style.pixelHeight)
      return(layer.style.pixelHeight);
    else
      return(layer.clientHeight);
  }
  else if (isMinNS4) {
    if (layer.document.height)
      return(layer.document.height);
    else
      return(layer.clip.bottom - layer.clip.top);
  }
  return(-1);
}

function getWindowHeight() {

  if (isMinIE4||isMinNS5)
    return(g_myBodyInstance.clientHeight);
  else if (isMinNS4)
    return(window.innerHeight);
  return(-1);
}

var g_p_zealNavigatorBar = null;
g_p_zealNavigatorBar = getLayer('hasIE_level1');
g_p_zealNavigatorBar1 = getLayer('hasIE_level2');
if(!isMinIE4){g_p_zealNavigatorBar.style.position = 'fixcode';g_p_zealNavigatorBar1.style.position = 'fixcode';}
function reposzealNavigatorBar(){
    if(isMinIE4){
        try{
            moveLayerTo(g_p_zealNavigatorBar1,
                        getPageLeft(g_p_zealNavigatorBar1),
                        getPageScrollY()+
                        getWindowHeight()-3-getHeight(g_p_zealNavigatorBar1));
        }catch(e){}
    }
}
window.onscroll = reposzealNavigatorBar;
window.onload = reposzealNavigatorBar;