
Bn = new Image();
Bn.src = "../x/bg.png";
Bh = new Image();
Bh.src = "../x/bb.png";

var u = new Array(3);
u[0] = new Image();
u[0].src = "../x/u0.png";
u[1] = new Image();
u[1].src = "../x/u1.png";
u[2] = new Image();
u[2].src = "../x/u2.png";
ut = new Image();
ut.src = "../x/ut.png";

var l = new Array(3);
l[0] = new Image();
l[0].src = "../x/l0.png";
l[1] = new Image();
l[1].src = "../x/l1.png";
l[2] = new Image();
l[2].src = "../x/l2.png";
lt = new Image();
lt.src = "../x/lt.png";

var r = new Array(3);
r[0] = new Image();
r[0].src = "../x/r0.png";
r[1] = new Image();
r[1].src = "../x/r1.png";
r[2] = new Image();
r[2].src = "../x/r2.png";
rt = new Image();
rt.src = "../x/rt.png";

var d = new Array(3);
d[0] = new Image();
d[0].src = "../x/d0.png";
d[1] = new Image();
d[1].src = "../x/d1.png";
d[2] = new Image();
d[2].src = "../x/d2.png";
dt = new Image();
dt.src = "../x/dt.png";

function up(nr)
	{
	if (window.document.uparrow.src != u[0].src)
		{
		if (nr == 1)
			{
			window.document.uparrow.src = u[2].src;
			window.document.map.src = ut.src;
			}
		if (nr == 0)
			{
			window.document.uparrow.src = u[1].src;
			window.document.map.src = map.src;
			}
		}
	}
function down(nr)
	{
	if (window.document.downarrow.src != d[0].src)
		{
		if (nr == 1)
			{
			window.document.downarrow.src = d[2].src;
			window.document.map.src = dt.src;
			}
		if (nr == 0)
			{
			window.document.downarrow.src = d[1].src;
			window.document.map.src = map.src;
			}
		}
	}

function right(nr)
	{
	if (window.document.rightarrow.src != r[0].src)
		{
		if (nr == 1)
			{
			window.document.rightarrow.src = r[2].src;
			window.document.map.src = rt.src;
			}
		if (nr == 0)
			{
			window.document.rightarrow.src = r[1].src;
			window.document.map.src = map.src;
			}
		}
	}

function left(nr)
	{
	if (window.document.leftarrow.src != l[0].src)
		{
		if (nr == 1)
			{
			window.document.leftarrow.src = l[2].src;
			window.document.map.src = lt.src;
			}
		if (nr == 0)
			{
			window.document.leftarrow.src = l[1].src;
			window.document.map.src = map.src;
			}
		}
	}

function viewdecay(name) {window.open("../d/"+name,"disp","dependent=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=2,resizable=1,copyhistory=0,screenx=200,screeny=100,width=450,height=300")}
function ls() {window.open("../legends.html","Legend","dependent=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=2,resizable=1,copyhistory=0,screenx=200,screeny=100,width=450,height=300")}
function li() {window.open("../legendi.html","Legend","dependent=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=2,resizable=1,copyhistory=0,screenx=200,screeny=100,width=450,height=300")}
function calc() {window.open("../calculator.html","Calc","dependent=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,copyhistory=0,width=310,height=260,screenx=100,screeny=10")}
