var isActive;

var rules = {

		'img.img_mo' : function(element){

			element.onmouseover = function(){					

				//obj = this;
				//if (this.src.indexOf("_active.")>0) {
				if (this.src.indexOf("_active.")>0 && (!isActiveTop || isActiveTop!=this)) {
					if (!isActiveTop || isActiveTop!=this)
						isActive = this;
					//isActiveTop = this;
					this.src = this.src.replace(/_active/,"");
					
				}
				if (!isActiveTop || isActiveTop!=this)			
					this.src = this.src.substr(0,this.src.lastIndexOf("."))+'_over'+this.src.substr(this.src.lastIndexOf("."));

			}		
			element.onmouseout = function(){		
				//obj = this;
				
				if (this.src.indexOf("_over.")>0 && (isActive==this || isActiveTop==this))
					this.src =this.src.replace(/_over/,"_active");
				else if (this.src.indexOf("_over.")>0) 
					this.src = this.src.replace(/_over/,"");
			}			
		},
		'img#isActiveTB' : function(element){
			element.src = element.src.substr(0,element.src.lastIndexOf("."))+'_active'+element.src.substr(element.src.lastIndexOf("."));					
			isActive = element;
			noContainerOld = element;
		}		
	};
Behaviour.register(rules);

