﻿var qq = new Array();
qq[0]="397626069";
qq[1]="121436128";
qq[2]="394778930";

var htmlcode = "<span id=hichina_search style='left:1px;top:280px;position:absolute;visibility:visible;z-index:100;cursor:move;filter:' onMouseOver='this.style.cursor=\"move\";'>"
htmlcode = htmlcode + "<table width=110 border=0 cellspacing=0 cellpadding=0 align=center><tr><td><img border=\"0\" src=\"images/qq/kefu_up.gif\"></td></tr>";
for(i=0;i<3;i++){htmlcode = htmlcode + "<tr><td align=\"center\" background=\"images/qq/kefu_middle.gif\"><img src=\"images/qq/QQonline.gif\" border=\"0\" align=\"middle\"><a class=\"qqa\" target=\"_blank\" href=\"http://wpa.qq.com/msgrd?V=1&Uin="+qq[i]+"&Site=在线咨询&Menu=no\" title=\"在线即时交谈\">"+qq[i]+"</a></td></tr>";}
htmlcode = htmlcode + "<tr><td><img border=\"0\" src=\"images/qq/kefu_down.gif\"></td></tr></table>";
htmlcode = htmlcode + "</span>";
document.write(htmlcode);
        function swapImgRestore(){
          var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}
        function MM_findObj(n, d){
          var p,i,x;  if(!d) d=document; if((p=n.indexOf('?'))>0&&parent.frames.length) {
            d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
          if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
          for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
          if(!x && d.getElementById) x=d.getElementById(n); return x;}
        function swapImage(){
          var i,j=0,x,a=swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
           if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}       
        var hM=130,wM=110,tM=350,lM=1;       
        document.all.hichina_search.style.pixelTop=tM;
        document.all.hichina_search.style.pixelLeft=0;
        self.onError=null;
        currentX=currentY=0;
        whichIt=null;
        lastScrollX=0;lastScrollY=0;
        function followpic(){
        if(document.body.clientWidth<wM)document.all.hichina_search.style.pixelLeft=lM;
        else if(document.all.hichina_search.style.pixelLeft > document.body.clientWidth-wM)
        	document.all.hichina_search.style.pixelLeft = document.body.clientWidth-wM;
        if(document.body.clientHeight<hM)document.all.hichina_search.style.pixelTop=tM;
        diffY=document.body.scrollTop;diffX=document.body.scrollLeft;
        if(diffY!=lastScrollY)
        {	percent=.1 * (diffY-lastScrollY);
        	if(percent>0) percent=Math.ceil(percent);
        	else percent=Math.floor(percent);
            document.all.hichina_search.style.pixelTop+=percent;
        	lastScrollY=lastScrollY+percent;}
        if(diffX!=lastScrollX)
        {	percent=.1*(diffX-lastScrollX);
            if(percent>0) percent=Math.ceil(percent);
            else percent=Math.floor(percent);
            document.all.hichina_search.style.pixelLeft+=percent;
            lastScrollX=lastScrollX+percent;}}
        function grabIt(e){
        whichIt=event.srcElement;
        if(whichIt.id.indexOf('SearchKey') != -1){whichIt=null;return true;}
        while(whichIt.id.indexOf("hichina_search")==-1){
            whichIt=whichIt.parentElement;
            if(whichIt==null){return true;}}
        whichIt.style.pixelLeft=whichIt.offsetLeft;
        whichIt.style.pixelTop=whichIt.offsetTop;
        currentX=(event.clientX+document.body.scrollLeft);
        currentY=(event.clientY+document.body.scrollTop);
        return true;}
        function moveIt(e){
        if(whichIt==null){return true;}
        newX=(event.clientX+document.body.scrollLeft);
        newY=(event.clientY+document.body.scrollTop);
        distanceX=(newX-currentX);distanceY=(newY-currentY);
        currentX=newX;currentY=newY;
        whichIt.style.pixelLeft+=distanceX;
        whichIt.style.pixelTop+=distanceY;
        if(whichIt.style.pixelTop<document.body.scrollTop) whichIt.style.pixelTop=document.body.scrollTop;
        if(whichIt.style.pixelLeft<document.body.scrollLeft) whichIt.style.pixelLeft=document.body.scrollLeft;
        if(whichIt.style.pixelLeft>document.body.offsetWidth - document.body.scrollLeft-whichIt.style.pixelWidth-20) whichIt.style.pixelLeft=document.body.offsetWidth-whichIt.style.pixelWidth-20;
        if(whichIt.style.pixelTop>document.body.offsetHeight + document.body.scrollTop-whichIt.style.pixelHeight-5) whichIt.style.pixelTop=document.body.offsetHeight+document.body.scrollTop-whichIt.style.pixelHeight-5;
        event.returnValue=false;
        return false;}
        function dropIt(){whichIt=null;return true;}
        document.onmousedown=grabIt;
        document.onmousemove=moveIt;
        document.onmouseup=dropIt;
        action = window.setInterval("followpic()",1);

