// JavaScript Document
var speed=0;//scroll speed
var stageW = 580;
/*
 midStage holds the pixels located in the middle of the stage
*/
var midStage = stageW / 2;
var mouseBuffer=stageW/2;

function scrollClients(e)
{
	pos=getPosition(e).y-130;
	 if (mouseBuffer > pos) 
	 {
		  /*
		  If mouseBuffer is greater that means that you moved UP so move
		  so move menu UP . If the y pos is less than the middle of the stage increase scrolling speed.
		  */
		 speed = (pos < midStage) ? 400 : 200; 
		 dw_scrollObj.initScroll('wn',"up", speed);
	 }
	  else if (mouseBuffer < pos)
	 {
		 speed = (pos > midStage) ? 200 : 400; 
		 dw_scrollObj.initScroll('wn',"down", speed);
	 }     
     mouseBuffer = pos;
}

var Timer;
function ScrollLeft()
{
  	Timer = setInterval("document.getElementById('wnn').scrollLeft -= 3", 10);
}
function ScrollRight()
{
 	Timer = setInterval("document.getElementById('wnn').scrollLeft += 3", 10);
}
