		
function imageOn(imageName) {
		if (document.images) {
			document[imageName].src = eval(imageName + "_on.src");
		}
	}
	function imageOff(imageName) {
		if (document.images) {
			document[imageName].src = eval(imageName + "_off.src"); 
		}
	}		

	function Is() {
		var agent = navigator.userAgent.toLowerCase();
		this.ns = (navigator.appName == "Netscape")
		this.ie = (navigator.appName == "Microsoft Internet Explorer")
		this.major = parseInt(navigator.appVersion);
		this.ns3 = (this.ns && (this.major == 3));
		this.ns4 = (this.ns && (this.major >= 4));
		this.ie3  = (this.ie && (this.major == 2));
		this.ie4  = (this.ie && (this.major >= 4));
		this.win   = (agent.indexOf("win")!= -1);
		this.mac   = (agent.indexOf("mac")!= -1);
		this.unix  = (agent.indexOf("x11")!= -1);
	}

	//document.write("navigator is " + navigator.appName)
	//document.write("version is " + parseInt(navigator.appVersion))
	var is = new Is()
	
	if (is.mac) {
		if (is.ie) {
			document.write("<link href='/cpnws/mac_style.css' rel='STYLESHEET' title='style1' type='text/css'>")
		} else if (is.ns) {
			document.write("<link href='/cpnws/mac_style_n.css' rel='STYLESHEET' title='style1' type='text/css'>")
		} else {
			document.write("<link href='/cpnws/mac_style_n.css' rel='STYLESHEET' title='style1' type='text/css'>")
		}
	}
	else {
		if (is.ie) {
			document.write("<link href='/cpnws/pc_style.css' rel='STYLESHEET' title='style1' type='text/css'>")
		} else if (is.ns) {
			document.write("<link href='/cpnws/pc_style_n.css' rel='STYLESHEET' title='style1' type='text/css'>")
		} else {
			document.write("<link href='/cpnws/pc_style.css' rel='STYLESHEET' title='style1' type='text/css'>")
		}

	}
	
	
	function goThere(list) {
	
		
		list.blur()
		
		loc = list.options[list.selectedIndex].value
		list.selectedIndex = 0
		if (loc != "") {
			window.location.href = loc
		}
	}

	if (document.images) {
		home = new Image(); home.src = "/cpnws/images/home.gif";
		home_on = new Image(); home_on.src = "/cpnws/images/home_on.gif";
		home_off = new Image(); home_off.src = "/cpnws/images/home_off.gif";
		about = new Image(); about.src = "/cpnws/images/about.gif";
		about_on = new Image(); about_on.src = "/cpnws/images/about_on.gif";
		about_off = new Image(); about_off.src = "/cpnws/images/about_off.gif";
		collections = new Image(); collections.src = "/cpnws/images/collections.gif";
		collections_on = new Image();collections_on.src = "/cpnws/images/collections_on.gif";
		collections_off = new Image(); collections_off.src = "/cpnws/images/collections_off.gif";
		search = new Image(); search.src = "/cpnws/images/search.gif";
		search_on = new Image(); search_on.src = "/cpnws/images/search_on.gif";
		search_off = new Image(); search_off.src = "/cpnws/images/search_off.gif";
		special = new Image(); special.src = "/cpnws/images/special.gif";
		programs = new Image(); programs.src = "/cpnws/images/programs.gif";
		programs_on = new Image(); programs_on.src = "/cpnws/images/programs_on.gif";
		programs_off = new Image(); programs_off.src = "/cpnws/images/programs_off.gif";
		publications = new Image(); publications.src = "/cpnws/images/publiations.gif";
		publications_on = new Image(); publications_on.src = "/cpnws/images/publications_on.gif";
		publications_off = new Image(); publications_off.src = "/cpnws/images/publications_off.gif";
	}	
	
	
	

		