//==============================MOVING ICONS======

	var scrollspd = 50;		//rate of function loop in milisecs
	var curpos1 = 0;		//style.top
	var curpos2 = divheight
	var pixtomove = 1;		//increments to move element from rst()
	var glide = 'Y';
	var divheight = 280;
	var maxtop = parseInt(pixtomove - divheight)

	function scroller(){
		
		if(glide == 'Y'){

			scrollL();scrollL2();

			}else{

			//clearTimeout(scrollL);clearTimeout(scrollL2);

			}
		
		}

	function scrollL(){

		if(glide == 'Y'){

		if(curpos1 >= 0 - divheight){

			moveobj('iconsdiv',curpos1 + pixtomove);

			curpos1 -= pixtomove;

			setTimeout(scrollL,scrollspd)

			}else{

			curpos1 = divheight - (pixtomove*2);

			moveobj('iconsdiv',curpos1 + pixtomove)

				if(curpos1 >= pixtomove){

					setTimeout(scrollL,scrollspd)

					}
				}

			}
			//readout();
		}


	function scrollL2(){

		if(glide == 'Y'){

		if(curpos2 >= 0 - divheight){

			moveobj('iconsdiv2',curpos2 + pixtomove);

			curpos2 -= pixtomove;

			setTimeout(scrollL2,scrollspd)

			}else{

			curpos2 = curpos1 + divheight ;

			moveobj('iconsdiv2',curpos2 + pixtomove)

				if(curpos2 >= pixtomove){

					setTimeout(scrollL2,scrollspd)

					}

				}

			}		
		}
		
	function moveobj(objid,styletop){
		window.document.getElementById(objid).style.top = styletop + 'px';
		}

	function readout(){
		//window.document.getElementById('scounter').innerHTML = 'curpos1:' + curpos1 + ', curpos2:' + curpos2 + ', scrollspd: ' + scrollspd + ', pixtomove: ' + pixtomove;
		}

	function toggler(){
		if (pixtomove == 2){
			pixtomove = 0
			window.document.getElementById('scollerbtn').innerHTML = 'Resume scroller';	
			}else{
			pixtomove = 2
			window.document.getElementById('scollerbtn').innerHTML = 'Pause scroller';
			}
		}




//==============================END MOVING ICONS===