// // // // // // // // function scrollWAIconsClass(scrollParentId,speed1,speed2,step,iconsPath) { this.actualIndex = 0; this.targetIndex = 1; this.continueScrollWA = true; this.timer = null; this.scrollWASpeed1 = speed1; this.scrollWASpeed2 = speed2; this.scrollWAOriginalStep = step; this.scrollWAStep = step; this.firstRightScroll = true; this.scrollParentElement = document.getElementById(scrollParentId); this.parentChildsArray = this.scrollParentElement.childNodes; for(i=0;i ((-1)*scrollWAElement.contentArray[scrollWAElement.actualIndex].offsetWidth))) { for(i=0;i= scrollWAElement.actualIndex) { scrollWAElement.scrollWAStep = scrollWAElement.scrollWAOriginalStep*(scrollWAElement.targetIndex-scrollWAElement.actualIndex); scrollWAElement.timer = setTimeout(function (){setNewScrollLeftWAIconsPosition(scrollWAElement);},scrollWAElement.scrollWASpeed1); } else { scrollWAElement.scrollWAStep = scrollWAElement.scrollWAOriginalStep*(scrollWAElement.actualIndex-scrollWAElement.targetIndex); scrollWAElement.timer = setTimeout(function (){setNewScrollRightWAIconsPosition(scrollWAElement);},scrollWAElement.scrollWASpeed1); } }