<!--  Welcome to www.cicro.com. -->
function killerrors() { 
return true; 
} 
window.onerror = killerrors;

function sleep(numberMillis) {
    var now = new Date();
    var exitTime = now.getTime() + numberMillis;
    while (true) {
        now = new Date();
        if (now.getTime() > exitTime)
            return;
    }
}

	var delta=0.2;
	var collection;
	var closeB=false;

	function insertTo(obj)
	{
		
	}

	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 newRadioButton = document.createElement('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:100px; height:120px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'"></DIV>');
					
					if(document.readyState!="complete")
					{
						sleep(500);
					}
				document.body.insertBefore(newRadioButton);

					var newItem				= {};
					newItem.object			= document.getElementById(id);
					newItem.object.innerHTML = content;
					newItem.x				= x;
					newItem.y				= y;

					this.items[this.items.length]		= newItem;
//alert(document.body.innerHTML);
				  }

			this.play	= function()
			  {
				collection				= this.items;			
				//alert(document.body.innerHTML);
				setInterval('play()',30);
			  }
		}
		function play()
		{
			if(screen.width<=1000 || closeB)
			{
				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 closeBanner()
		{
			closeB=true;
			return;
		}

var b = "/structure/qqonline.html";
var theFloaters		= new floaters();
function ad()
{
	//alert("111");
	//theFloaters.addItem('followDiv1','document.body.clientWidth-106',80,'<iframe src="/cws.files/js/AD.html"  width="100" height="150" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" ></iframe><img src=/cws.files/images/close.gif  onClick="closeBanner();">');

	//theFloaters.addItem('followDiv2',6,80,'<iframe src="/cws.files/js/AD.html"  width="100" height="150" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" ></iframe><img src=/cws.files/images/close.gif onClick="closeBanner();">');
//alert("222");

	var url = '/structure/qqonline.html';
	var pars = '';
	var myAjax = new Ajax.Request(
                    url,
                    {method: 'get', parameters: pars, onComplete: showResponse,onFailure:showResponse2}
                    );

	//alert("333");
	//theFloaters.play();
}

    function showResponse(originalRequest)
    {
		//alert(b.equals(""));
		//alert("444");
		if(b=="")
		{
		}
		else
		{
				theFloaters.addItem('followDiv3','document.body.clientWidth-106',300,'<iframe src="'+b+'" width="80" height="160" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" allowTransparency="true" scrolling="no" ></iframe>');
		}
		theFloaters.play();
    }

	 function showResponse2(originalRequest)
    {
		b = "";
    }


