﻿
function NeatDialog(sHTML) {
    window.neatDialog = null;
    this.elt = null;
    if (document.createElement && document.getElementById) {
        var dg = document.createElement("div");
        dg.className = "neat-dialog";
        sHTML = '<a style="float:right;" href="javascript:void(0);" onclick="window.neatDialog.close()">关闭</a></div>\n' + sHTML;
        dg.innerHTML = sHTML;

        var dbg = document.createElement("div");
        dbg.id = "nd-bdg";
        dbg.className = "neat-dialog-bg";

        var dgc = document.createElement("div");
        dgc.className = "neat-dialog-cont";
        dgc.appendChild(dbg);
        dgc.appendChild(dg);

        if (document.body.offsetLeft > 0)
            dgc.style.marginLeft = document.body.offsetLeft + "px";

        document.body.appendChild(dgc);

        this.elt = dgc;
        window.neatDialog = this;
    }
}
function NeatDialogTwo(sHTML) {
    window.neatDialog = null;
    this.elt = null;
    if (document.createElement && document.getElementById) {
        var dg = document.createElement("div");
        dg.className = "neat-dialogTwo";
        sHTML = '<a style="float:right;" href="javascript:void(0);" onclick="window.neatDialog.closeTwo()">关闭</a></div>\n' + sHTML;
        dg.innerHTML = sHTML;
        var dbg = document.createElement("div");
        dbg.id = "nd-bdg";
        dbg.className = "neat-dialog-bgTwo";
        var dgc = document.createElement("div");
        dgc.className = "neat-dialog-contTwo";
        dgc.appendChild(dbg);
        dgc.appendChild(dg);        
        if (document.body.offsetLeft > 0) {            
            dgc.style.marginLeft = document.body.offsetLeft + "px";
        }
        document.body.appendChild(dgc);
        this.elt = dgc;
        window.neatDialog = this;
    }
}
function NeatDialogThree(sHTML) {
    window.neatDialog = null;
    this.elt = null;
    if (document.createElement && document.getElementById) {
        var dg = document.createElement("div");
        dg.className = "neat-dialogThree";
        sHTML = '<a style="float:right;" href="javascript:void(0);" onclick="window.neatDialog.closeThree()">关闭</a></div>\n' + sHTML;
        dg.innerHTML = sHTML;

        var dbg = document.createElement("div");
        dbg.id = "nd-bdg";
        dbg.className = "neat-dialog-bgTwo";

        var dgc = document.createElement("div");
        dgc.className = "neat-dialog-contTwo";
        dgc.appendChild(dbg);
        dgc.appendChild(dg);
        
        if (document.body.offsetLeft > 0) {
            
            dgc.style.marginLeft = document.body.offsetLeft + "px";
        }
        document.body.appendChild(dgc);
        this.elt = dgc;
        window.neatDialog = this;
    }
}
NeatDialog.prototype.close = function() {
    if (this.elt) {
        this.elt.style.display = "none";
        this.elt.parentNode.removeChild(this.elt);
    }
    window.neatDialog = null;
}
NeatDialogTwo.prototype.closeTwo = function() {
    if (this.elt) {
        this.elt.style.display = "none";
        this.elt.parentNode.removeChild(this.elt);
    }
    window.neatDialog = null;
}
NeatDialogThree.prototype.closeThree = function() {
    if (this.elt) {
        this.elt.style.display = "none";
        this.elt.parentNode.removeChild(this.elt);
    }
    window.neatDialog = null;
}

function openDialog() {
    var sHTML = '<div class="xumuj_maijia"><dl><dt>1</dt><dd><a href="http://www.xumuj.com/User/RegisterNow.aspx" target="_blank">免费注册</a><br/>一分钟进入中国畜牧街，开始网上贸易之旅。</dd><div class="blank_b"></div></dl><dl><dt>2</dt><dd><a href="http://www.xumuj.com/Office2/Product/Product_Now.aspx" target="_blank">发布供应信息</a><br/>向行业用户群集中展示您的产品，获得生意机会。</dd><dl><dt>3</dt><dd><a href="http://www.xumuj.com/Office2/cws/style.aspx" target="_blank">完善企业信息，免费建立企业网站</a><br/>在数百万客户面前宣传公司，让买家更了解您。</dd><div class="blank_b"></div></dl><dl><dt>4</dt><dd><a href="http://www.xumuj.com/Office2/APL/ReadingAndExecute.aspx" target="_blank">加入诚信商</a><br/>独享商务特权和超值推广:更多展示机会，更强网站功能。</dd><div class="blank_b"></div></dl><dl id="border_bottom"><dt>5</dt><dd><a href="http://www.xumuj.com/trust/index.html" target="_blank">创新商务应用，帮您找销路、做宣传</a><br/>新闻全国直通、品牌专用论坛、用户来访分析、商务智能配对等，多点高密度曝光，精准、有效。</dd><div class="blank_b"></div></dl><div class="blank_b"></div></dl></div>';
    new NeatDialog(sHTML);
}


function openDialogTwo() {
    var sHTML = '<div class="fuwu" ><table><thead><tr><th>知名厂商技术服务专区是中国畜牧街免费为活跃畜牧厂商提供的品牌宣传专用论坛。</th></tr></thead> <tbody><tr><th>方式：</th></tr><tr><td>在专区内您可使用自己的标识和品牌，以企业身份主持话题及用户问答，宣传核心技术、推广创新应用、分享开发成果、解答用户疑问——通过与行业用户的面对面交流，了解用户需求、扩大行业影响、树立品牌形象、开发潜在客户。</td></tr><tr><td> 该专区与您的企业网站对接，使用户在享受企业服务、感受企业魅力的同时，可随时切换了解您的产品和企业。</td></tr><tr><td> 中国畜牧街将提供强大技术支持和推广优化，与您充分共享海量商务点击和黄金流量。</td></tr><tr><th>优势：</th></tr><tr><td> ★影响大，关注度高，目标传达人群清晰、准确。</td></tr><tr><td>★以用户关心的问题为主要诉求，用户参与积极、易接受。</td></tr><tr><td>★以企业强大的技术资源和成果，为广大养殖户提供有价值的服务和指导，建立口碑，赢得信赖。</td> </tr><tr><td> ★完全自主管理，开放式交流，多层次、多角度主动把握问题和需求。</td></tr><tr><td> ★无成本、软推广，既承担了社会责任，又提升了企业形象。潜在影响大，用户忠诚度高。</td></tr><tr><th>建议：</th></tr><tr><td>您可以将自己的专家组成员、技术顾问、技术骨干、忠诚用户等纳入企业服务专区内，将自己的品牌专区打造成独具魅力的人脉商圈向外辐射，以高品质的话题和问答等，吸引行业用户的持续关注，扩大影响。</td></tr></tbody></table></div><div style="float:right;padding-top:5px;padding-right:20px;">如需开通，请联系客服。服务QQ：<a href="http://sighttp.qq.com/cgi-bin/check?sigkey=d55549a548f66a9871e8141a2e077098ce62a681fe630258a3be357d19b80805" ;="" target="_blank;" onclick="var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&amp;sigkey=d55549a548f66a9871e8141a2e077098ce62a681fe630258a3be357d19b80805\';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;">389757612</a> <a href="http://sighttp.qq.com/cgi-bin/check?sigkey=9dd9aefbe8d8d21eeb16ec316bf62d476119ef3efe280f64779705ce1af7f5f8" ;="" target="_blank;" onclick="var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&amp;sigkey=9dd9aefbe8d8d21eeb16ec316bf62d476119ef3efe280f64779705ce1af7f5f8\';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;">815515495</a></div>';
    new NeatDialogTwo(sHTML);
}
function openDialogThree() {
    var sHTML = '<div class="fuwu"><table><thead><tr><th>知名厂商技术服务专区是中国畜牧街免费为活跃畜牧厂商提供的品牌宣传专用论坛。</th></tr></thead> <tbody><tr><th>方式：</th></tr><tr><td>在专区内您可使用自己的标识和品牌，以企业身份主持话题及用户问答，宣传核心技术、推广创新应用、分享开发成果、解答用户疑问——通过与行业用户的面对面交流，了解用户需求、扩大行业影响、树立品牌形象、开发潜在客户。</td></tr><tr><td> 该专区与您的企业网站对接，使用户在享受企业服务、感受企业魅力的同时，可随时切换了解您的产品和企业。</td></tr><tr><td> 中国畜牧街将提供强大技术支持和推广优化，与您充分共享海量商务点击和黄金流量。</td></tr><tr><th>优势：</th></tr><tr><td> ★影响大，关注度高，目标传达人群清晰、准确。</td></tr><tr><td>★以用户关心的问题为主要诉求，用户参与积极、易接受。</td></tr><tr><td>★以企业强大的技术资源和成果，为广大养殖户提供有价值的服务和指导，建立口碑，赢得信赖。</td> </tr><tr><td> ★完全自主管理，开放式交流，多层次、多角度主动把握问题和需求。</td></tr><tr><td> ★无成本、软推广，既承担了社会责任，又提升了企业形象。潜在影响大，用户忠诚度高。</td></tr><tr><th>建议：</th></tr><tr><td>您可以将自己的专家组成员、技术顾问、技术骨干、忠诚用户等纳入企业服务专区内，将自己的品牌专区打造成独具魅力的人脉商圈向外辐射，以高品质的话题和问答等，吸引行业用户的持续关注，扩大影响。</td></tr><tr></tr></tbody></table></div><div style="float:right;padding-top:5px;padding-right:20px;">如需开通，请联系客服。服务QQ：<a href="http://sighttp.qq.com/cgi-bin/check?sigkey=d55549a548f66a9871e8141a2e077098ce62a681fe630258a3be357d19b80805" ;="" target="_blank;" onclick="var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&amp;sigkey=d55549a548f66a9871e8141a2e077098ce62a681fe630258a3be357d19b80805\';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;">389757612</a> <a href="http://sighttp.qq.com/cgi-bin/check?sigkey=9dd9aefbe8d8d21eeb16ec316bf62d476119ef3efe280f64779705ce1af7f5f8" ;="" target="_blank;" onclick="var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&amp;sigkey=9dd9aefbe8d8d21eeb16ec316bf62d476119ef3efe280f64779705ce1af7f5f8\';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;">815515495</a></div>';
    new NeatDialogThree(sHTML);
}

function Checkscroll() {
    if (document.documentElement.scrollTop > 940) {
        document.documentElement.scrollTop = 940;
    }
}
function CheckscrollTwo() {
    if (document.documentElement.scrollTop > 940) {
        document.documentElement.scrollTop = 940;
    }
    if(document.documentElement.scrollTop < 700) {
        document.documentElement.scrollTop = 700;
    }
}

 
