function swapover(n) {

	if (document.images) {
		document.images['nav' + n].src = eval("navon" + n + ".src");
		}
	}

function swapout(n) {

	if (document.images) {
		document.images['nav' + n].src = eval("nav" + n + ".src");
		}
	}


if (document.images) {

	nav1 = new Image(84,18);
	nav1.src = "/pics/nav/nav1.png";
	navon1 = new Image(84,18);
	navon1.src = "/pics/nav/navon1.png";
	
	nav2 = new Image(84,18);
	nav2.src = "/pics/nav/nav2.png";
	navon2 = new Image(84,18);
	navon2.src = "/pics/nav/navon2.png";
	
}

function roll(text, b, bg) {
	if (document.getElementById){
		document.getElementById(b).style.backgroundColor = bg;
		document.getElementById(b).style.color = text;
		document.getElementById(b).style.cursor = 'pointer';
	}
}

function rollback(text, b, bgb) {
	if (document.getElementById){
		document.getElementById(b).style.backgroundColor = bgb;
		document.getElementById(b).style.color = text;
		document.getElementById(b).style.cursor = 'pointer';
	}
}

function show(id, type) {
	if (document.getElementById){
		document.getElementById(id).style.display = type;
	}
}

function hide(id) {
	if (document.getElementById){
		document.getElementById(id).style.display = 'none';
	}
}

function open_window1(url, width, height) {
	mywin1 = window.open(url,"win1",'alwaysRaised=1,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=' + width + ',height=' + height);
	mywin1.resizeTo(width, height);
	mywin1.focus();
}

function send_parent(href) {
	window.opener.location = href;
	window.close();
}