var myrules = {
	'form.morph input' : function(el){
		element.onfocus = function(){
			if(this.type == 'text' || this.type == 'password'){
				$(el).morph('background-color:#C5E6EE;border:1px solid #40ACC7',{duration:0.5});
			}
		}
		element.onblur = function(){
			if(this.type == 'text' || this.type == 'password'){
				$(el).morph('background-color:#fff;border:1px solid #999',{duration:0.5});
			}
		}
	},
	'form.morph textarea' : function(el){
		element.onfocus = function(){
			$(el).morph('background-color:#C5E6EE;border:1px solid #40ACC7',{duration:0.5});
		}
		element.onblur = function(){
			$(el).morph('background-color:#fff;border:1px solid #999',{duration:0.5});
		}
	}
};
Behaviour.register(myrules);

