//-----------------------对联广告系统--------------------------------------
// 您可以任意传播，但是请保留代码完整性
// 并请不要删除本说明部分
// 当浏览器分辨率达到或超过 1024×768 时，广告才能够显示
// 您可以在本文件的第 60 行修改本分辨率
// 当浏览器滚动条移动时，广告跟随移动
// 此为GIF、JPG图片广告源码！小蝶修改QQ391521
// 最终修改：飞虫哥哥 QQ550393
// kissdtt2004@yahoo.com.cn
// www.kiss214.com
//----------------------------------------------------------------------------

    var delta=0.15
    var collection;
    function floaters() {
        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()
                 {
                    collection                = this.items
                    setInterval('play()',5);
                 }
        }
        function play()
        {

            for(var i=0;i<collection.length;i++)
            {
                var followObj        = collection[i].object;
                var followObj_x        = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
                var followObj_y        = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

                if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
                    var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
                    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)*delta;
                    dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
                    followObj.style.top=followObj.offsetTop+dy;
                    }
                followObj.style.display    = '';
            }
        }    
        
if (window.screen.width>=1024) //当分辨率达到 1024 时才显示广告
    {
    var theFloaters        = new floaters();


    theFloaters.addItem('followDiv1','document.body.clientWidth-240',180,'<a href=http://wpa.qq.com/msgrd?V=1&Uin=48814565&Site=&#30701;&#26399;&#31199;&#25151;&Menu=yes><img src=/images/a3.gif alt=短期租房-点击马上Q我 border=0></a><br><a href=/Issued/index.asp><img src=/images/a8.gif alt=发布房源 border=0></a><br>');
    theFloaters.addItem('followDiv2',6,80,'');
    theFloaters.play();
    }

//-------------------对联广告代码结束----------------------

