function flying (item, isVerticalScroll, isHorizontalScroll) {
   item.lastScrollX = item.lastScrollX || 0;
   item.lastScrollY = item.lastScrollY || 0;

   diffY = self.pageYOffset || document.body.scrollTop;
   diffX = self.pageXOffset || document.body.scrollLeft;

	if (isVerticalScroll && diffY != item.lastScrollY) {
		item.percent = .1*(diffY-item.lastScrollY);
		item.percent = (item.percent > 0) ? Math.ceil(item.percent) : Math.floor(item.percent);
                                				
		item.style.top = parseInt(item.style.top) + item.percent + "px";
                                		
		item.lastScrollY += item.percent;
	}
                                	
	if(isHorizontalScroll && diffX != item.lastScrollX) {
		item.percent = .1*(diffX-item.lastScrollX);
		item.percent = (item.percent>0) ? Math.ceil(item.percent) : Math.floor(item.percent);

		item.style.left = parseInt(item.style.left) + item.percent + "px";

		item.lastScrollX += item.percent;
	}
}

action = window.setInterval("flying(document.getElementById('QNewsTicker'), true, false)", 1);
