﻿	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: 3147483646; POSITION: absolute;  width:80px; height:0px;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()
		{
			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.documentElement.scrollLeft+followObj_x)) {
					var dx=(document.documentElement.scrollLeft+followObj_x-followObj.offsetLeft)*0.15;
					dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));

					followObj.style.left=(followObj.offsetLeft+dx) + "px";
					//followObj.style.left = 600;

				}

				if(followObj.offsetTop!=(document.documentElement.scrollTop+followObj_y)) {
					var dy=(document.documentElement.scrollTop+followObj_y-followObj.offsetTop)*0.15;
					dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));

					followObj.style.top=(followObj.offsetTop+dy) + "px";
					//followObj.style.top = 600;
				}
				//followObj.style.display	= '';
			}
		}

	var theFloaters		= new floaters();
	theFloaters.addItem('followDiv1','document.documentElement.clientWidth - 110',30,'<TABLE cellSpacing=0 cellPadding=0 width=110 border=0><TBODY><TR><TD width=110><IMG height=70 src=http://www.gopro.com.cn/js/kefu_up.gif width=110></TD></TR><TR><TD vAlign=center background=http://www.gopro.com.cn/js/kefu_middle.gif><TABLE cellSpacing=1 cellPadding=1 width="100%" border=0><TBODY><TR><TD><DIV align=center>在线咨询顾问</DIV></TD></TR><TR><TD>&nbsp; <img src=http://www.gopro.com.cn/js/QQonline.gif border=0 align=middle><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=88e3b56aed1b3e813836cd09b6ede429b7cfb88803660b4de72d34cbae1c90f2"; target=_blank; onclick="var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=88e3b56aed1b3e813836cd09b6ede429b7cfb88803660b4de72d34cbae1c90f2\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><b style="color:#000">1390322801</b></a><br>&nbsp;&nbsp;<img src=http://www.gopro.com.cn/js/QQonline2.gif border=0 align=middle><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=98f0c60af43dc8e06ca932c860a512098fe5c164cdab584aff2e348b68951e08"; target=_blank; onclick="var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=98f0c60af43dc8e06ca932c860a512098fe5c164cdab584aff2e348b68951e08\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><b style="color:#000">1368951689</b></a><br />&nbsp;&nbsp;<img src=http://www.gopro.com.cn/js/onlinedot_06.gif border=0 align=middle><a href="msnim:chat?contact=gopro.service@hotmail.com" target=_blank style="color:#000">GoPro MSN</a></TD></TR></TBODY></TABLE></TD></TR><TR><TD width=110><IMG height=31 src=http://www.gopro.com.cn/js/kefu_down.gif width=110></TD></TR></TBODY></TABLE>');
	theFloaters.play();
	
	

	
	
	
	