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()',10);
                  }
        }
        function play()
        {
            if(screen.width<=800)
            {
                for(var i=0;i<collection.length;i++)
                {
                    collection[i].object.style.display    = 'none';
                }
                return;
            }
            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    = '';
            }
        }  
        
        function compareproducts()
{
var pids = '';
	for(var i=0;i<document.Form1.elements.length;i++)
	{
		var e = document.Form1.elements[i];
		if(e.type=="checkbox")
		{
			if (e.checked)
		   	{
				pids += e.value + ','	
			}
		}
	}
	//alert(pids);
	if (pids=='')
	{
		alert('请选择要比较的产品!');
		return;
	}
	window.location.assign('Compare.aspx?pids=' + pids);
	return true;
}  
        
        <!--
function MM_swapImgRestore() { //v3.0
  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_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_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 theFloaters        = new floaters();
    //    theFloaters.addItem('followDiv1','document.body.clientWidth-106',80,'<img src=images2006/menuquicktou.jpg border=0 width="84"><a href=index.aspx><img src=images2006/menuquick01.jpg border=0 width="84"></a><img src=images2006/menuquickfg.jpg border=0 width="84"><a href=#><img src=images2006/menuquick02.jpg border=0 width="84"></a><img src=images2006/menuquickfg.jpg border=0 width="84"><a href=searchcondition.aspx><img src=images2006/menuquick03.jpg border=0 width="84"></a><img src=images2006/menuquickfg.jpg border=0 width="84"><a href=#><img src=images2006/menuquick04.jpg border=0 width="84"></a><img src=images2006/menuquickfg.jpg border=0 width="84"><a href=#><img src=images2006/menuquick05.jpg border=0 width="84"></a><img src=images2006/menuquickdi.jpg border=0 width="84">');
   
    //theFloaters.play();
