initMenu = function() {

	// onmouseover for the first level buttons
	
	document.getElementById("pocetna").onmouseover = function () {
		this.src = "../images/btn_pocetna_over.gif";
	}
	
	document.getElementById("pocetna").onmouseout = function () {
		this.src = "../images/btn_pocetna.gif";
	}
	
	document.getElementById("recenzije").onmouseover = function () {
		this.src = "../images/btn_recenzije_over.gif";
	}
	
	document.getElementById("recenzije").onmouseout = function () {
		this.src = "../images/btn_recenzije.gif";
	}
	
	document.getElementById("urednicka").onmouseover = function () {
		this.src = "../images/btn_urednicka_biljeska_over.gif";
	}
	
	document.getElementById("urednicka").onmouseout = function () {
		this.src = "../images/btn_urednicka_biljeska.gif";
	}
	
	document.getElementById("zavirite").onmouseover = function () {
		this.src = "../images/btn_zavirite_izmedju_korica_over.gif";
	}
	
	document.getElementById("zavirite").onmouseout = function () {
		this.src = "../images/btn_zavirite_izmedju_korica.gif";
	}
	
	document.getElementById("o_autoru").onmouseover = function () {
		this.src = "../images/btn_o_autoru_over.gif";
	}
	
	document.getElementById("o_autoru").onmouseout = function () {
		this.src = "../images/btn_o_autoru.gif";
	}
	
	document.getElementById("naruci").onmouseover = function () {
		this.src = "../images/btn_naruci_over.gif";
	}
	
	document.getElementById("naruci").onmouseout = function () {
		this.src = "../images/btn_naruci.gif";
	}
	
	document.getElementById("preporuci").onmouseover = function () {
		this.src = "../images/btn_preporuci_over.gif";
	}
	
	document.getElementById("preporuci").onmouseout = function () {
		this.src = "../images/btn_preporuci.gif";
	}
	
	document.getElementById("o_prethodnim").onmouseover = function () {
		this.src = "../images/btn_o_prethodnim_knjigama_over.gif";
	}
	
	document.getElementById("o_prethodnim").onmouseout = function () {
		this.src = "../images/btn_o_prethodnim_knjigama.gif";
	}

	document.getElementById("downloads").onmouseover = function () {
		this.src = "../images/btn_downloads_over.gif";
	}
	
	document.getElementById("downloads").onmouseout = function () {
		this.src = "../images/btn_downloads.gif";
	}
	
	
	// load frameset
	if (top.location == self.location) top.location="index.html";
	
}

window.onload = initMenu;


