/***FloatObject***/
    var predelta=0.15
    var precollection;
    function prefloaters() {
        this.items = [];
        this.addItem = function(id,x,y,content)
        {
          document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');

          var newItem = {};
                                newItem.object = document.getElementById(id);
                                newItem.x = x;
                                newItem.y = y;

                this.items[this.items.length] = newItem;
        }
        this.play = function()
                  {
                    precollection = this.items
                    setInterval('play()',10);
                  }
        }
        function play()
        {
            if(screen.width<=800)
            {
                for(var i=0;i<precollection.length;i++)
                {
                    precollection[i].object.style.display    = 'none';
                }
                return;
            }
            for(var i=0;i<precollection.length;i++)
            {
                var followObj        = precollection[i].object;
                var followObj_x        = (typeof(precollection[i].x)=='string'?eval(precollection[i].x):precollection[i].x);
                var followObj_y        = (typeof(precollection[i].y)=='string'?eval(precollection[i].y):precollection[i].y);

                if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
                    var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*predelta;
                    dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
                    followObj.style.left=followObj.offsetLeft+dx;
                    }

                if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
                    var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*predelta;
                    dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
                    followObj.style.top=followObj.offsetTop+dy;
                    }
                followObj.style.display    = '';
            }
        }

    var theprefloaters = new prefloaters();
/*
    var display_info2='<table width="105" border="0" cellspacing="0" cellpadding="0">'
+'  <tr>'
+'    <td>'
+'       <div id="Layer91" style="position:absolute; width:105px; height:311px; z-index:1;CURSOR: hand;" onClick=javascript:{window.open("http://www.hbqyad.net","_blank","");}>'
+'         <table width="100%" border="0" cellspacing="0" cellpadding="0" height="311">'
+'           <tr>'
+'             <td valign="bottom" align="center" style="color:#FFFFFF"></td>'
+'            </tr>'
+'          </table>'
+'        </div>'
+'      </td>'
+'  </tr>'
+'  <tr>'
+'    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="105" height="311">'
+'        <param name=movie value="images/left.swf">'
+'        <param name=quality value=high>'
+'        <param name="wmode" value="opaque">'
+'        <param name="menu" value="false">'
+'        <embed src="images/left.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105" height="311">'
+'        </embed>'
+'      </object></td>'
+'  </tr>'
+'</table>';
*/
    var display_info2='<table width="105" border="0" cellspacing="0" cellpadding="0">'
+'  <tr>'
+'    <td>'
+'       <div id="Layer91" style="position:absolute; width:105px; height:311px; z-index:1;CURSOR: hand;" onClick=javascript:{window.open("http://www.hbqyad.net","_blank","");}>'
+'         <table width="100%" border="0" cellspacing="0" cellpadding="0" height="311">'
+'           <tr>'
+'             <td valign="bottom" align="center" style="color:#FFFFFF"></td>'
+'            </tr>'
+'          </table>'
+'        </div>'
+'      </td>'
+'  </tr>'
+'  <tr>'
+'    <td><img src="images/left.jpg" width="105" height="311">'
+'      </td>'
+'  </tr>'
+'</table>';
        ////theprefloaters.addItem('prediv1',5,160,display_info2);//强力推荐
/*
    var display_info1='<table width="105" border="0" cellspacing="0" cellpadding="0">'
+'  <tr>'
+'    <td>'
+'       <div id="Layer91" style="position:absolute; width:105px; height:311px; z-index:1;CURSOR: hand;" onClick=javascript:{window.open("http://www.hbqyad.net","_blank","");}>'
+'         <table width="100%" border="0" cellspacing="0" cellpadding="0" height="311">'
+'           <tr>'
+'             <td valign="bottom" align="center" style="color:#FFFFFF"></td>'
+'            </tr>'
+'          </table>'
+'        </div>'
+'      </td>'
+'  </tr>'
+'  <tr>'
+'    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="105" height="311">'
+'        <param name=movie value="images/right.swf">'
+'        <param name=quality value=high>'
+'        <param name="wmode" value="opaque">'
+'        <param name="menu" value="false">'
+'        <embed src="images/right.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="105" height="311">'
+'        </embed>'
+'      </object></td>'
+'  </tr>'
+'</table>';
*/
    var display_info1='<table width="105" border="0" cellspacing="0" cellpadding="0">'
+'  <tr>'
+'    <td>'
+'       <div id="Layer91" style="position:absolute; width:105px; height:311px; z-index:1;CURSOR: hand;" onClick=javascript:{window.open("http://www.hbqyad.net","_blank","");}>'
+'         <table width="100%" border="0" cellspacing="0" cellpadding="0" height="311">'
+'           <tr>'
+'             <td valign="bottom" align="center" style="color:#FFFFFF"></td>'
+'            </tr>'
+'          </table>'
+'        </div>'
+'      </td>'
+'  </tr>'
+'  <tr>'
+'    <td><img src="images/right.jpg" width="105" height="311">'
+'     </td>'
+'  </tr>'
+'</table>';
        ////theprefloaters.addItem('prediv2','document.body.clientWidth-115',160,display_info1);//强力推荐
        //theprefloaters.addItem('prediv3','0',60,'<img src="images/ad1.jpg" border=0 onclick="DoCall0()" style="cursor:hand;" />');//强力推荐
        //theprefloaters.addItem('prediv4','document.body.clientWidth-117',60,'<img src="images/ad2.jpg" border=0 onclick="DoCall1()" style="cursor:hand;" />');
        //theprefloaters.play();


function DoCall0()
{
        //链接相关网页
        window.open('show_custom_item_info.php?field_name=公司新闻&text=公司新闻&custom_name=公司新闻&disp_custom_item_id=399','_blank','top=0,left=0,width=795,height=550,scrollbars=yes,resizable=yes');
}
function DoCall1()
{
        //链接相关网页
        window.open('show_custom_item_info.php?field_name=公司新闻&text=公司新闻&custom_name=公司新闻&disp_custom_item_id=398','_blank','top=0,left=0,width=795,height=550,scrollbars=yes,resizable=yes');
}