function scroll(pbDown)
 {
   var flex = document.getElementById('flex');
   addPadding(pbDown, flex);
 }
 
 var scrollY;
 var max=1000;
 function addPadding(pbDown, obj) // if not down, then up
 {
   scrollY = obj.scrollTop;
   if(pbDown)
   {
     var tmpValue = scrollY+201;
     if(tmpValue<max)
     	animate('flex',tmpValue);
   }
   else
   {
   	 var tmpValue = scrollY-201;
   	 if(tmpValue>=0)
     	animate('flex',tmpValue);
     else
       animate('flex',0);
   }
 }
 
 function top()
 {
 	animate('flex',0);
 }
 
 function dS( url )
 {
   var os = 'resizable=yes, toolbar=no, directories=no, status=no, scrollbars=no, menubar=no, height=290, width=400';
   var rt = window.open(url, "Therapists", os);
 }
 
 function d()
 {
    var os = 'resizable=yes, toolbar=no, directories=no, status=no, scrollbars=no, menubar=no, height=395, width=400';
    var rt = window.open("directions.html", "Directions", os);
 }
 
 function animate(id, Y) {
	var element = document.getElementById('flex'); 
    var myAnim = new YAHOO.util.Scroll(element, { 
 	    scroll: { to: [200, Y] }  
	}); 
	myAnim.animate();
 }

 
  

