//////////////////////////////////////////////////////////////////////////////
// $Id: hover.js,v 1.1.1.1 2001/03/06 09:51:15 claudiuc Exp $
//
// Descriere: cod JavaScript pentru bara de navigare grafica www.kangaroo.ro
//
//////////////////////////////////////////////////////////////////////////////

// variabile generale
var base = 'http://www.kangaroo.ro/';
var txt0 = 'normal';
var txt1 = 'livrare';
var txt2 = 'distributie';
var txt3 = 'publicitate';
var txt4 = 'mail';
var txt5 = 'floral';

// comuta imaginea curenta a textului-imagine in bara de navigare
function swapimg(position) {
    if (document.images) {
        document['hovertext'].src = eval("txtimage" + position + ".src");
    }
}

// incarc imaginile textelor din bara de navigare
function load_images() {
    if (document.images) {
	if (txt0) {
	    txtimage0 = new Image();
	    txtimage0.src = base + 'images/hover-' + txt0 + '.gif';
	}
	if (txt1) {
	    txtimage1 = new Image();
	    txtimage1.src = base + 'images/hover-' + txt1 + '.gif';
	}
	if (txt2) {
	    txtimage2 = new Image();
	    txtimage2.src = base + 'images/hover-' + txt2 + '.gif';
	}
	if (txt3) {
	    txtimage3 = new Image();
	    txtimage3.src = base + 'images/hover-' + txt3 + '.gif';
	}
	if (txt4) {
	    txtimage4 = new Image();
	    txtimage4.src = base + 'images/hover-' + txt4 + '.gif';
	}
	if (txt5) {
	    txtimage5 = new Image();
	    txtimage5.src = base + 'images/hover-' + txt5 + '.gif';
	}
    }
}

