
function getObj(nombre) {
  	this.obj = document.getElementById(nombre);
	this.style = document.getElementById(nombre).style;
}

function reemplazar(obj,y) {
	var x = new getObj(obj);
	x.obj.src = y;
	}

function cambiarestilo(objeto, clase) {
	var v = new getObj(objeto);
	if (v) {
		document.getElementById(objeto).className = clase;
	}
}

function rubros1() {
	cambiarestilo('rubros2','menu');
	cambiarestilo('rubros1','rubros');
	}

function rubros2() {
	cambiarestilo('rubros1','menu');
	cambiarestilo('rubros2','rubros');
	}
