 function news(url){
  window.open(url, 'News', 'width=400, height=400')
 } 

function hmenu (item) {
 if (!document.getElementById(item)) return;
 document.getElementById(item).style.visibility = "hidden";
}

function smenu (item) {
 if (!document.getElementById(item)) return;
 document.getElementById(item).style.visibility = "visible";
}

function init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('tr');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgarr[i].onmouseover = function() {
		    this.style.backgroundColor = this.getAttribute('hsrc');            
        }
        imgarr[i].onmouseout = function() {
            this.style.backgroundColor = this.getAttribute('src');
        }
    }
  }
}
onload=init;


function em() {

 document.write("<a href='mailto:auto@r-car.ru'>auto@r-car.ru</a>");
}

function ems() {
 document.write("<a target=_blank href='http://www.r-car.ru/'>www.r-car.ru</a>");
}

function sh(div) {
  var el = document.getElementById(div);
  if ( el.style.display == "none") {
  el.style.visibility = "visible";
  el.style.display = "block";  
  } else {
    el.style.visibility = "hidden";
    el.style.display = "none";  
	location.href="http://www.j-car.ru/jstock.shtml";
  }
 }