﻿lastScrollY=0;
function colose1()
{document.getElementById("lovexin14").style.display="none";
}function colose2()
{document.getElementById("lovexin12").style.display="none";
}
function heartBeat(){ 
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
	diffY = document.documentElement.scrollTop;
else if (document.body)
	diffY = document.body.scrollTop
else
    {/*Netscape stuff*/}
	
//alert(diffY);
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);
}

document.write("<DIV id=\"lovexin12\" style='left:0px;POSITION:absolute;TOP:140px;'>");
document.write("<table width=\"85\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">");
document.write("  <tr>");
document.write("    <td width=\"85\" height=\"300\"><a href='http://www.jjiale.cn/jzgs/369/' target=_blank><img src=\"http://www.jjiale.cn/banner/zz.gif\" width=\"85\" height=\"300\" border=0/></a></td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"20\" align=\"center\" onclick=\"javascript:colose2();\"  style=\"cursor:hand;\">〖关闭〗</td>");
document.write("  </tr>");

document.write("</table></div>");


document.write("<DIV id=\"lovexin14\" style='text-align:left;background-color: #eeeeee;right:3px;POSITION:absolute;TOP:140px;'>");
document.write("<table width=\"85\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">");
document.write("  <tr>");
document.write("    <td width=\"85\" height=\"300\"><a href='http://www.xqgg.net' target='_blank'><img src=\"http://www.jjiale.cn/banner/myjz1.gif\" width=\"85\" height=\"300\" border=0/></a></td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"20\" align=\"center\" onclick=\"javascript:colose1();\"  style=\"cursor:hand;\">〖关闭〗</td>");
document.write("  </tr>");
/*document.write("  <tr>");
document.write("    <td height=\"300\"><img src=\"/banner/rightTop.gif\" width=\"85\" height=\"300\" /></td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"20\" align=\"center\"  onclick=\"javascript:colose1();\"  style=\"cursor:hand;\">〖关闭〗</td>");
document.write("  </tr>");*/
document.write("</table></div>");

/*document.write("<table width=\"100\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\" style=\"color:red; font-weight:bold; line-height:20px;\">");
document.write("  <tr>");
document.write("    <td><img src=\"/img/qqtop.gif\" width=\"111\" height=\"53\" /></td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"12\" align=\"center\" background=\"/img/qqbg.jpg\">&nbsp;</td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"34\" align=\"center\" background=\"/img/qqbg.jpg\"><a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=bb2f7db009afb050c4291e721d2e1c3189497404665d331ce174a7e6977ed451\"; target=\"_blank;\" onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&amp;sigkey=bb2f7db009afb050c4291e721d2e1c3189497404665d331ce174a7e6977ed451';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:1224242149:46' alt=\"\" /></a><br />");
document.write("    在线客服</td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"24\" align=\"center\" background=\"/img/qqbg.jpg\"><a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=80b9534c94321e09d461a2fb10dab0624b05253f28a8c30c2a9ec2a34ecf5a0b\"; target=\"_blank;\" onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&amp;sigkey=80b9534c94321e09d461a2fb10dab0624b05253f28a8c30c2a9ec2a34ecf5a0b';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:451589332:46' alt=\"\" /></a><a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=bb2f7db009afb050c4291e721d2e1c3189497404665d331ce174a7e6977ed451\"; target=\"_blank;\" onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&amp;sigkey=bb2f7db009afb050c4291e721d2e1c3189497404665d331ce174a7e6977ed451';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;\"></a><br />");
document.write("      广告服务</td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"24\" align=\"center\" background=\"/img/qqbg.jpg\"><a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=447458e92eac2e4ae16dca783c37a8ee0ef2b75d61630979c5e42fb0c919e8be\"; target=_blank; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=447458e92eac2e4ae16dca783c37a8ee0ef2b75d61630979c5e42fb0c919e8be';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:54663944:46' alt=\"\" /></a><br />");
document.write("    商务洽谈<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=bb2f7db009afb050c4291e721d2e1c3189497404665d331ce174a7e6977ed451\"; target=_blank; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=bb2f7db009afb050c4291e721d2e1c3189497404665d331ce174a7e6977ed451';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;\"></a></td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"34\" align=\"center\" background=\"/img/qqbg.jpg\"><a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=bb2f7db009afb050c4291e721d2e1c3189497404665d331ce174a7e6977ed451\"; target=\"_blank;\" onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&amp;sigkey=bb2f7db009afb050c4291e721d2e1c3189497404665d331ce174a7e6977ed451';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:1224242149:46' alt=\"\" /></a><br />");
document.write("      友情链接</td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"24\" align=\"center\" background=\"/img/qqbg.jpg\"><a href=\"/user/regpost.aspx\">我要加盟</a></td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"18\" align=\"center\" background=\"/img/qqbg.jpg\"><a href=\"/user/Infor4.aspx\">免费发布</a></td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"12\" align=\"center\" background=\"/img/qqbg.jpg\">&nbsp;</td>");
document.write("  </tr>");
document.write("  <tr>");
document.write("    <td height=\"12\" align=\"center\"><img src=\"/img/qqbot.gif\" width=\"111\" height=\"43\" onclick=\"javascript:colose1();\"  style=\"cursor:hand;\"/></td>");
document.write("  </tr>");
document.write("</table></div>");
*/window.setInterval("heartBeat()",1);


(function() {
    var $backToTopTxt = "返回顶部", $backToTopEle = $('<div class="backToTop"></div>').appendTo($("body"))
        .text($backToTopTxt).attr("title", $backToTopTxt).click(function() {
            $("html, body").animate({ scrollTop: 0 }, 120);
    }), $backToTopFun = function() {
        var st = $(document).scrollTop(), winh = $(window).height();
        (st > 0)? $backToTopEle.show(): $backToTopEle.hide();
        //IE6下的定位
        if (!window.XMLHttpRequest) {
            $backToTopEle.css("top", st + winh - 166);
        }
    };
    $(window).bind("scroll", $backToTopFun);
    $(function() { $backToTopFun(); });
})();

