document.write('<div id="cpms_float2" style="position:absolute;top:0px;left:-500px;width:120px;height:200px"><img src="http://choxaydung.vn/news/images/advertising.jpg"/></div>');

/*
document.write('<div id="cpms_float2" style="position:absolute;top:0px;left:-500px;width:120px;height:500px"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100px" height="500px" border="0"><param name="movie" value="http://choxaydung.vn/news/images/dathoaplastic.swf"/><param name="quality" value="high"/><param name="scale" value="noborder"/><param value="transparent" name="wmode"/><embed wmode="transparent" src="http://choxaydung.vn/news/images/dathoaplastic.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="500"></embed></object></div>');
*/
function GetWidth()
{
        var x = 0;
        if (self.innerHeight)
        {
                x = self.innerWidth;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
        {
                x = document.documentElement.clientWidth;
        }
        else if (document.body)
        {
                x = document.body.clientWidth;
        }
        return x;

}
new function() {
    var d="cpms_float2",g=0,c=970,f=100,e=0,o;

    var browser=navigator.appName;
    if (!(browser=="Microsoft Internet Explorer")) {
        c = 1000;
    }
    if(document.getElementById) {
        o=document.getElementById(d);
    } else if(document.all){ 
        o=document.all[d];
    } else if(document.layers){
        o=document[d];
    }
    if(!o)  return;

    if(typeof(e)=="undefined")  {e=0};

    function w(o,g,c,f,e) {
        var t,v,l,k,j,m;
        l=parseInt(GetWidth());
        k=parseInt(document.body.clientHeight);
        j=parseInt(o.style.width);
        if(g==0){
            t=(l-c)/2-j;
        }else{
            t=c+((l-c)/2);
        }
        if(typeof(o.x)=="undefined")    {o.x=t;o.y=0;}
        
        var n=(navigator.appName.indexOf("Netscape") != -1);
        
        if(((l-c)/2)<j){
            o.style.display="none";
        }else{o.style.display="";}
        if(document.documentElement && document.documentElement.scrollTop) {
            m=document.documentElement.scrollTop;
        }else if(document.body){m=document.body.scrollTop;}
        var r=n?pageYOffset:m;
        if(m>f){v=3}else{v=f-m};o.y+=(r+v-o.y)/8;
        o.style.left=t+"px";o.style.top=(o.y+e)+"px";
    };
    setInterval(function(){w(o,g,c,f,e)},15);
};

