// for the rollovers

if (document.images) {

	home0on = new Image();
	home0on.src = "images/nav-home1.gif";
	home0off = new Image();
	home0off.src = "images/nav-home0.gif";

	news0on = new Image();
	news0on.src = "images/nav-news1.gif";
	news0off = new Image();
	news0off.src = "images/nav-news0.gif";

	bird0on = new Image();
	bird0on.src = "images/nav-bird1.gif";
	bird0off = new Image();
	bird0off.src = "images/nav-bird0.gif";

	even0on = new Image();
	even0on.src = "images/nav-even1.gif";
	even0off = new Image();
	even0off.src = "images/nav-even0.gif";

	fiel0on = new Image();
	fiel0on.src = "images/nav-fiel1.gif";
	fiel0off = new Image();
	fiel0off.src = "images/nav-fiel0.gif";

	prog0on = new Image();
	prog0on.src = "images/nav-prog1.gif";
	prog0off = new Image();
	prog0off.src = "images/nav-prog0.gif";

	cons0on = new Image();
	cons0on.src = "images/nav-cons1.gif";
	cons0off = new Image();
	cons0off.src = "images/nav-cons0.gif";

	hist0on = new Image();
	hist0on.src = "images/nav-hist1.gif";
	hist0off = new Image();
	hist0off.src = "images/nav-hist0.gif";

	link0on = new Image();
	link0on.src = "images/nav-link1.gif";
	link0off = new Image();
	link0off.src = "images/nav-link0.gif";

	cont0on = new Image();
	cont0on.src = "images/nav-cont1.gif";
	cont0off = new Image();
	cont0off.src = "images/nav-cont0.gif";

}
function rollon(imgName) {
        if (document.images) {
        imgOn = eval(imgName + "on.src");
        document[imgName].src = imgOn;
        }
}
function rolloff(imgName) {
        if (document.images) {
        document[imgName].src = eval(imgName + "off.src");
        }
}



// for the popup windows

var newWindow

function makeNewWindow(mypage, myname, w, h, scroll) {
	if (!newWindow || newWindow.closed) { 
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

	} else {
		newWindow.close();
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	} 
}

function closeNewWindow() {
	if (newWindow) {
		newWindow.close()
	}
}
