function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
}

function changeBg( dv, sel ) {
	var thisDiv = new getObj( dv );
	if ( sel ) {
		thisDiv.style.backgroundImage = 'url(../../images/layout/menuBg.png)';
	} else {
		thisDiv.style.backgroundImage = 'url(../../images/layout/menuHoverBg.png)';
	}
}
function changeBg2( dv, sel ) {
	var thisDiv = new getObj( dv );
	if ( sel ) {
		thisDiv.style.backgroundImage = 'url(../../images/layout/menuDarkBg.png)';
	} else {
		thisDiv.style.backgroundImage = 'url(../../images/layout/menuHoverBg2.png)';
	}
}
