/** * (c) 2008, Wacko-Wacko!
 * @author daclip * @version 0.22;
 */
 function WHighLight(ref, v_min, v_max) {	var hlContainer = null;	var timer = null;	var timerSpeed = 5;	var timerValue = 0.05;	var maxValue = 0;	var minValue = 0;	var stepValue = 0.05;		var bfin = false;	var bfout = false;	this.hide = function(url) {		set_state(0.2);		this.fadeout(url);	}		this.show = function() {		set_state(0.2);		showLayer();		this.fadein();	}	this.getSelf = function() {		return hlContainer;	}		var hideLayer = function() {		hlContainer.style.visibility = "hidden";	}	var showLayer = function() {		hlContainer.style.visibility = "visible";	}	var set_state = function(value) {		hlContainer.style.opacity = value;		hlContainer.style.filter = 'alpha(opacity=' + value*100 + ')';		timerValue = value;	}		var set_hl_container = function(objectRef) {		(typeof(objectRef) == String) ?			hlContainer = objectRef :			hlContainer = document.getElementById(objectRef);	}	 	var init = function() { 		set_hl_container(ref);		v_max == null ? maxValue = 1 : maxValue = v_max;		v_min == null ? minValue = 0.03 : minValue = v_min; 	} 	this.fadein = function(url) { 		var __backref = this; 		timerValue += stepValue;// 		timerValue = Math.round(timerValue * 100) /100; 		 		if (timerValue >= maxValue) { 			clearTimeout(timer); 			timerValue = maxValue; 			if (url != null) window.location.href = url; 			return false; 		} 		set_state(timerValue); 		timer = setTimeout(function() { __backref.fadein(); }, timerSpeed); 	} 	this.fadeout = function(url) { 		var __backref = this; 		timerValue -= stepValue; 		 		if (timerValue <= minValue) { 			clearTimeout(timer); 			timerValue = minValue; 			hideLayer(); 			if (url != null) window.location.href = url; 			return false; 		} 		set_state(timerValue); 		timer = setTimeout(function() { __backref.fadeout(url); }, timerSpeed); 	} 	init(); 		// End of class}