var arrPhotos = new Array;
arrPhotos[0] = new Image(12,12);
arrPhotos[0].src = "/images/basic/left_bullet_white.gif";
arrPhotos[1] = new Image(12,12);
arrPhotos[1].src = "/images/basic/left_bullet.gif";
arrPhotos[2] = new Image(5,5);
arrPhotos[2].src = "/images/basic/blue.gif";
arrPhotos[3] = new Image(9,45);
arrPhotos[3].src = "/images/basic/bg_plava_grad.jpg";
arrPhotos[4] = new Image(5,5);
arrPhotos[4].src = "/images/basic/gray.gif";
arrPhotos[5] = new Image(9,45);
arrPhotos[5].src = "/images/basic/links_bg.jpg";
arrPhotos[6] = new Image(132,5);
arrPhotos[6].src = "/images/basic/links_bg_right.jpg";
arrPhotos[7] = new Image(130,3);
arrPhotos[7].src = "/images/basic/links_bg_right2.jpg";
arrPhotos[8] = new Image(130,3);
arrPhotos[8].src = "/images/basic/links_bg_right3.jpg";
arrPhotos[9] = new Image(162, 1);
arrPhotos[9].src = "/images/basic/bg_bela_grad.jpg";
arrPhotos[10] = new Image(1, 1);
arrPhotos[10].src = "/images/basic/blank.gif";

function test_navBar( tableCellRef, hoverFlag) {
	if ( hoverFlag ) {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '#FFFFFF';
			tableCellRef.getElementsByTagName('img')[0].src = arrPhotos[0].src;
		}
		tableCellRef.setAttribute("background", arrPhotos[2].src);
	} else {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '';
			tableCellRef.getElementsByTagName('img')[0].src = arrPhotos[1].src;
		}
		tableCellRef.setAttribute("background", arrPhotos[9].src);
	}
}

function test_navBarIzdvojen( tableCellRef, hoverFlag) {
	if ( hoverFlag ) {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '#FFFFFF';
			tableCellRef.getElementsByTagName('img')[0].src = arrPhotos[0].src;
		}
		tableCellRef.setAttribute("background", arrPhotos[2].src);
	} else {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '';
			tableCellRef.getElementsByTagName('img')[0].src = arrPhotos[1].src;
		}
		tableCellRef.setAttribute("background", arrPhotos[3].src);
	}
}

function test_navBar3( tableCellRef, hoverFlag) {
	if ( hoverFlag ) {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '#FFFFFF';
			tableCellRef.getElementsByTagName('img')[0].src = arrPhotos[0].src;
		}
		tableCellRef.setAttribute("background", arrPhotos[2].src);
	} else {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '';
			tableCellRef.getElementsByTagName('img')[0].src = arrPhotos[1].src;
		}
		tableCellRef.setAttribute("background", arrPhotos[10].src);
	}
}

function links_navBar( tableCellRef, hoverFlag) {
	if ( hoverFlag ) {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '#FFFFFF';
		}
		tableCellRef.setAttribute("background", arrPhotos[4].src);
	} else {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '';
		}
		tableCellRef.setAttribute("background", arrPhotos[5].src);
	}
}

function links_navBar2( tableCellRef, hoverFlag, pozadina) {
	if ( hoverFlag ) {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '#FFFFFF';
		}
		tableCellRef.setAttribute("background", arrPhotos[4].src);
	} else {
		if ( document.getElementsByTagName ) {
			tableCellRef.getElementsByTagName('a')[0].style.color = '';
		}
		if (pozadina == "1"){
			tableCellRef.setAttribute("background", arrPhotos[6].src);
		} else if (pozadina == "2"){
			tableCellRef.setAttribute("background", arrPhotos[7].src);
		} else {
			tableCellRef.setAttribute("background", arrPhotos[8].src);
		}
	}
}