// JavaScript Documentfunction MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);function createCookie(name,value,minutes){	if (minutes)	{		var date = new Date();		date.setTime(date.getTime()+(minutes*60*1000));		var expires = "; expires="+date.toGMTString();	}	else var expires = "";	document.cookie = name+"="+value+expires+"; path=/";}function toggleDiv (id) {	var thisdiv = document.getElementById(id);	if ((thisdiv.style.display == "block") || (thisdiv.style.display == '')) {		thisdiv.style.display="none";		createCookie(id,"none","10");		createCookie("amsvisit","true","10");	} else {		thisdiv.style.display="block";		createCookie(id,"block","10");		createCookie("amsvisit","true","10");			}}function hideDiv (id) {	var thisdiv = document.getElementById(id);  thisdiv.style.display="none";	createCookie(id,"none","10");	createCookie("amsvisit","true","10");}function showDiv (id) {	var thisdiv = document.getElementById(id);  thisdiv.style.display="block";	createCookie(id,"block","10");	createCookie("amsvisit","true","10");}function readCookie(name){	var nameEQ = name + "=";	var ca = document.cookie.split(';');	for(var i=0;i < ca.length;i++)	{		var c = ca[i];		while (c.charAt(0)==' ') c = c.substring(1,c.length);		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);	}	return null;}function setDivs (flag) {/* if the erase flag set (only on index page) or there is no info stored about the site, hide all otherwise, set them to the remembered values */	if ((flag =="erase") || (readCookie('amsvisit') != "true")) {  	  		showDiv ('programs'); hideDiv ('artphot'); hideDiv ('film'); hideDiv ('compart'); hideDiv ('artvid'); hideDiv ('connections'); hideDiv ('compartcourses');  	} else {				var cookies = document.cookie.split("; ");				for (var i=0; i < cookies.length; i++) {					values = cookies[i].split("=");					if (values[0] != "amsvisit") {					  if (values[1] == "block") {						  showDiv (values[0]);						} else {						  hideDiv (values[0]);						}					  					}				}  }}