Behaviour.register({
	"p.button a img": {
		onmouseover : function(){
			this.src = this.src.replace(/\.gif/,"-on.gif");
		},
		onmouseout : function(){
			this.src = this.src.replace(/\-on.gif/,".gif");
		}
	},
	"a.button img": {
		onmouseover : function(){
			this.src = this.src.replace(/\.gif/,"-on.gif");
		},
		onmouseout : function(){
			this.src = this.src.replace(/\-on.gif/,".gif");
		}
	},
	"#Menu1 li": {
		over: function(e, manuallyCalled) {
			if(!manuallyCalled) {
				var imageObj = this.getImage(e);
				if(imageObj) imageObj.over(e, true);
			}
			Element.addClassName(this, 'hover');
		},
		out: function(e, manuallyCalled) {
			Element.removeClassName(this, 'hover');
			if(!manuallyCalled) {
				var imageObj = this.getImage(e);
				if(imageObj) imageObj.out(e, true);
			}
		},
		getImage: function(e) {
			var imageID = this.id.replace(/^([^\-]*)/,"image");
			return $(imageID);
		},
		onmouseover: function(e) {
			this.over(e);    
		},
		onmouseout: function(e) {
			this.out(e);    
		}
	},
	"#IconNav li": {
		over: function(e, manuallyCalled){
			if(!manuallyCalled) {
				var textObj = this.getText(e);
				if(textObj) textObj.over(e, true);
			}
			var anchors = this.getElementsByTagName('img');
			var anchor = anchors[0];
			anchor.src = anchor.src.replace(/\.gif/,"-on.gif");
		},
		out: function(e, manuallyCalled){
			if(!manuallyCalled) {
				var textObj = this.getText(e);
				if(textObj) textObj.out(e, true);
			}
			var anchors = this.getElementsByTagName('img');
			var anchor = anchors[0];
			anchor.src = anchor.src.replace(/\-on.gif/,".gif");
		},
		getText: function(e) {
			var textID = this.id.replace(/^([^\-]*)/,"text");
			return $(textID);
		},
		onmouseover: function(e) {
			this.over(e);    
		},
		onmouseout: function(e) {
			this.out(e);    
		}
	},
	"a.formPopup": {
		onclick: function(e) {
			window.open(this.href,'form','width=950,height=600,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes');
			Event.stop(e);
			return false;
		}
	},
	"img.menu-rollover": {
		onmouseover : function(){
			this.src = this.src.replace(/\.gif/,"-on.gif");
		},
		onmouseout : function(){
			this.src = this.src.replace(/\-on.gif/,".gif");
		}
	},
	"img.ro-jpg": {
		onmouseover : function(){
			this.src = this.src.replace(/\.jpg/,"-on.jpg");
		},
		onmouseout : function(){
			this.src = this.src.replace(/\-on.jpg/,".jpg");
		}
	},
	"img.ro-png": {
		onmouseover : function(){
			this.src = this.src.replace(/\.png/,"-on.png");
		},
		onmouseout : function(){
			this.src = this.src.replace(/\-on.png/,".png");
		}
	}
});
