// SE, 2007JAN26
// Object to initialise a scrollable region.
WolvertonScroller = function(dynApiDocument, contentHeight, divName) {
        if (!divName) divName = "scrollContentDiv";
        var scrollContent = dynApiDocument.doc.getElementById(divName);
        // this needs to be the height to display all the content text.
        // todo: get it from the content.
        
        contentHeight = contentHeight || 1000; 

        var contentWidth = 228;
        var viewPortWidth = contentWidth+5;
        var viewPortHeight = 190;
       
        var wl = new DynLayer("ViewPort");
        wl.setSize(viewPortWidth, viewPortHeight);//w,h
        wl.setX(458); //465
        wl.setY(90);
        //wl.setBgColor('#Ff3f33');

        var l = new DynLayer("Content");
        l.setSize(contentWidth,contentHeight);
        l.setX(1);
        l.setY(1);
       // l.setBgColor('#FFFFFF');
        
        l.setHTML(scrollContent.innerHTML);
        l.setVisible(true);
        wl.setVisible(true);
       
        var h = viewPortHeight;
        var w = 0; //unused
        this.myscroll = new MiniScroll(h, w, l);
        
        wl.addChild(l);
        dynApiDocument.addChild(wl);
        
	this.bolPageLoaded = true;
}

WolvertonScroller.prototype = new Object;
WolvertonScroller.myscroll = null;
WolvertonScroller.bolPageLoaded = false;
    
