//Запись в память кэш всех неактивных кнопок
var offImgArray = new Array()
offImgArray["services"] = new Image (60,58)
offImgArray["dop_services"] = new Image (60,58)
offImgArray["info"] = new Image (60,58)
offImgArray["tarifs"] = new Image (60,58)
offImgArray["docs"] = new Image (60,58)
offImgArray["faq"] = new Image (60,58)
offImgArray["order"] = new Image (60,58)
offImgArray["links"] = new Image (60,58)
offImgArray["spec"] = new Image (240,64)

//Массив изображений - указывается путь к неактивному изображению для каждой кнопки
offImgArray["services"].src = "images/services_off.gif"
offImgArray["dop_services"].src = "images/services_off.gif"
offImgArray["info"].src = "images/info_off.gif"
offImgArray["tarifs"].src = "images/services_off.gif"
offImgArray["docs"].src = "images/docs_off.gif"
offImgArray["faq"].src = "images/faq_off.gif"
offImgArray["order"].src = "images/order_off.gif"
offImgArray["links"].src = "images/services_off.gif"
offImgArray["spec"].src = "images/spec_off.gif"

//Запись в память кэш всех активных кнопок
var onImgArray = new Array()
onImgArray["services"] = new Image (60,58)
onImgArray["dop_services"] = new Image (60,58)
onImgArray["info"] = new Image (60,58)
onImgArray["tarifs"] = new Image (60,58)
onImgArray["docs"] = new Image (60,58)
onImgArray["faq"] = new Image (60,58)
onImgArray["order"] = new Image (60,58)
onImgArray["links"] = new Image (60,58)
onImgArray["spec"] = new Image (240,64)

//Массив изображений - указывается путь к активному изображению для каждой кнопки
onImgArray["services"].src = "images/services_on.gif"
onImgArray["dop_services"].src = "images/services_on.gif"
onImgArray["info"].src = "images/info_on.gif"
onImgArray["tarifs"].src = "images/services_on.gif"
onImgArray["docs"].src = "images/docs_on.gif"
onImgArray["faq"].src = "images/faq_on.gif"
onImgArray["order"].src = "images/order_on.gif"
onImgArray["links"].src = "images/services_on.gif"
onImgArray["spec"].src = "images/spec_on.gif"


//Функция, которая выполняет подкачку изображений
function imageOn(imgName) {
    if (document.images) {
	    document.images[imgName].src = onImgArray[imgName].src
		}
}

function imageOff(imgName) {
    if (document.images) {
	    document.images[imgName].src = offImgArray[imgName].src
		}
}

function setMsg(msg) {
    window.status = msg
	return true
}

function showTime(){
    tm = new Date();
	hours =tm.getHours();
	if (hours <10) hours = "0" + hours;
	minutes =tm.getMinutes();
	if (minutes<10)minutes = "0" +minutes;
	seconds =tm.getSeconds();
	if (seconds<10)seconds= "0" + seconds;
		  document.all.clock.innerHTML= hours + ":" + minutes + ":" + seconds;
}
  
//showTime()
//setInterval("showTime()",1000);
  
