Help with some logic I'm stuck with

[SIZE=3]Hi guys,[/SIZE]
[SIZE=3][/SIZE][SIZE=3]
[/SIZE]
[SIZE=3][/SIZE][SIZE=3]I’ve got these classes and I’m trying to adapt them for something I’m trying to do, but there a couple of things I’m struggling with, if someone could take a look at the code and give me a hand or suggestion on how to go about it, i would appreciate.[/SIZE]
[SIZE=3][/SIZE][SIZE=3]The class is a scrollbar, and the user can click anywhere to drag it up or down, and what I’m trying to add is a “thumb” on the side, to be like a visual indicator of how far the user is on the page.[/SIZE]
[SIZE=3][/SIZE][SIZE=3]I’ve been able to add the thumb, and get it to move, but not in the right way or direction.[/SIZE]
[SIZE=3][/SIZE][SIZE=3]
[/SIZE]
[SIZE=3][/SIZE][SIZE=3]The other thing i’m trying to do is, add mouse wheel support, but i just can’t figure out how the class was done to implement it.[/SIZE]
[SIZE=3][/SIZE][SIZE=3]
[/SIZE]
[SIZE=3][/SIZE][SIZE=3]I’ve been working on this for a few days now and I’m just stuck at the moment, so some help would be appreciated.[/SIZE]
[SIZE=3][/SIZE][SIZE=3]
[/SIZE]
[SIZE=3][/SIZE][SIZE=3]Thanks, B.[/SIZE]