function getClassName(src){
		if(src.indexOf("_hover") !== -1)src = src.replace(/_hover/g, "")
		else src = src + "_hover";
		return src;
}

function addBehaviours() {
	var anchors = document.getElementsByTagName ('a');
	if(anchors.length > 0){
		for (var i = 0; i < anchors.length; i ++) {
			var a = anchors[i];
			if(a.className == "rollover") {
				a.onmouseover = function(){
					if(typeof getClassName == "function"){
						if(sec && ID){
							var ID = (this.id.substr(this.id.length-1,1) == 1) ? 2 : 1;
							var sec= document.getElementById(this.id.substr(0, (this.id.length-1))+ID);
							this.className = getClassName(this.className);
							if(sec !== undefined){
								sec.className = getClassName(sec.className);
							}
							return true;
						}else{
							return false
						}
					}
				};
				a.onmouseout = function(){
					if(typeof getClassName == "function"){
							var ID = (this.id.substr(this.id.length-1,1) == 1) ? 2 : 1;
							var sec = document.getElementById(this.id.substr(0, (this.id.length-1))+ID);
							if(sec && ID){
								this.className = getClassName(this.className);
							if(sec !== undefined){
								this.className = getClassName(this.className);
								sec.className = getClassName(sec.className);
							}
								return true;
							}else{
								return false
							}
					}
				}
				
			}
		}
	}
}
addLoadEvent(addBehaviours);
