/** * (c) 2008, Wacko-Wacko!
 */
function WSlideBox(longDivId, lcontrolId, rcontrolId, c_width) {	var self = null;	var pos = 0;	var lcontrol = null;	var rcontrol = null;		this.getSelf = function() { return self; }	this.right = function() { Slider.slideRight(); }	this.left = function() { Slider.slideLeft(); }		var set_slidebox_position = function(value) {		self.scrollLeft = value;	}		var lcontrol_active = function(m) {		if (m) {			lcontrol.style.visibility = "visible";		} else {			lcontrol.style.visibility = "hidden";		}	}	var rcontrol_active = function(m) {		if (m) {			rcontrol.style.visibility = "visible";		} else {			rcontrol.style.visibility = "hidden";		}	}		var checkControls = function() {		if (pos == 0) lcontrol_active(false);		if (pos > 0) lcontrol_active(true);		if (pos == c_width) rcontrol_active(false);		if (pos < c_width) rcontrol_active(true);	}		var initSlider = function() {		Slider = new WSlideProcess();		Slider.setScrollSize(c_width);		Slider.onStep = function(position) {			set_slidebox_position(position);			pos = position;		}		Slider.onComplete = function(direction) {			checkControls();		}			}		var init = function() {		initSlider();		self = document.getElementById(longDivId);		lcontrol = document.getElementById(lcontrolId);		rcontrol = document.getElementById(rcontrolId);	}	init();}