var dark = {
		'.dark' : function(elm) {
			elm.onmouseover = function() {
				if(this.className == 'lineSelect') this.className = 'lineSelectHover';
				else this.className = 'lineHover';
				}
			
			elm.onmouseout = function() {
				if(this.className == 'lineSelectHover' || this.className == 'lineSelect') this.className = 'lineSelect';
				else this.className = 'dark';
				}
			
			elm.onclick = function() {
				if(this.className == 'lineSelectHover') this.className = 'dark';
				else this.className = 'lineSelect';
				}
			}
	};

var light = {
		'.light' : function(elm) {
			elm.onmouseover = function() {
				if(this.className == 'lineSelect') this.className = 'lineSelectHover';
				else this.className = 'lineHover';
				}
			
			elm.onmouseout = function() {
				if(this.className == 'lineSelectHover' || this.className == 'lineSelect') this.className = 'lineSelect';
				else this.className = 'light';
				}
			
			elm.onclick = function() {
				if(this.className == 'lineSelectHover') this.className = 'light';
				else this.className = 'lineSelect';
				}
			}
	};


Behaviour.register(dark);
Behaviour.register(light);
