/**
 * Extend the mootools element
 **/
	Element.implement({
		/* Toggles 'selected' style on me and another object. */
		wlp_toggle: function(el){
			// If I am selected, close, otherwise open
				if(this.hasClass('selected')){ this.removeClass('selected'); $(el).removeClass('selected'); }
				else{ this.addClass('selected'); $(el).addClass('selected'); }
			return this;
		},
		/* Nudges an element to the left or right. If positive, right, if negative, left. */
		wlp_nudge_by: function(nudge_by){
			// Figure out left
				var l = Number.from(this.getStyle('left'));
				if(typeOf(l) == 'null') l = 0;
			// Set to 0 if not already set
				if(l == 0) this.setStyle('left', 0);
			// Limit n
				var n = l - nudge_by;
				if(n > 0) n = 0;
				if(n < -1*(this.getSize().x)+nudge_by) n = -1*(this.getSize().x)+nudge_by;			
			this.morph({ 'left' : n + 'px' });
			return this;
		},
		/* Nudges an element to a specific pixel. Measured by 'left' parameter. */
		wlp_nudge_to: function(nudge_to){
			this.setStyle('left', (-1)*nudge_to);
			return this;
		},
	});
 	

