function IOScroller(content, container, scrollArea, scroll, drag, minHeight) {

  // Collect the variables

  this.docH        = document.getElementById(content   ).offsetHeight;

  this.contH       = document.getElementById(container ).offsetHeight;

  this.scrollAreaH = document.getElementById(scrollArea).offsetHeight;



  // What is the effective scroll distance once the scoller's height has been taken into account

  this.scrollDist = Math.round(this.scrollAreaH - 68);



  // Make the scroller div draggable

  if(this.docH > minHeight) {

    var scr = document.getElementById(scroll);

  

    scr.style.height = "68px";
    scr.style.display = "block";



    // Change scroller width here

    scr.style.width = "14px";

  

    scr.myContent = document.getElementById(content);



    drag.init(scr,null,0,0,0,this.scrollDist);

    var This = this;



    // Add ondrag function

    scr.onDrag = function (x,y) {

	  var scrollY = parseInt(scr.style.top);

	  var docY = 0 - (scrollY * (This.docH - This.contH) / This.scrollDist);

	  scr.myContent.style.top = docY + "px";

     }  

  } 

}

