function setCSSfile(cssFile) {
  return("<link rel=stylesheet href=/silo/misc/silo.css>");                                   
  return("<link rel=stylesheet href=/silo/misc/silo" + cssFile + ".css type=text/css>");                                   
}

function getSize(cssFile) {
	switch ( cssFile ) {
		case "html/silo/misc/fontXXsmall.html":
			return "XXsmall"

		case "html/silo/misc/fontXsmall.html":
			return "Xsmall"

		case "html/silo/misc/fontSmall.html":
			return "Small"

		case "html/silo/misc/fontMedium.html":
			return "Medium"

		default:
			alert("program alert in font*.html, function getSize(cssFile), cssFile = " + cssFile)
	}
}

function getFontCookie() {
	var cookieArray=document.cookie.split("; ")
	for (var n = 0; n< cookieArray.length; n++) {
		cookiePair=cookieArray[n].split("=")
		if (cookiePair[0] == "siloFont") 
			return cookiePair[1]
	}
	return("Medium");
}

function firstTimeUser() {
	var cookieArray=document.cookie.split("; ")
	var n = 0

	for (var n = 0; n< cookieArray.length; n++) {
		cookiePair=cookieArray[n].split("=")
		if (cookiePair[0] == "siloFont") n++
		if (cookiePair[0] == "ppdDefault") n++
	}
	if (n==0){
		var showHelp = confirm ("SILO Cookie Alert\n"
			+ "\n"
			+ "The SILO web site depends on the use of cookies to communicate between various pages\n"
			+ "\n"
			+ "If you see this message more than once, click OK to look at the Cookie information\n"
			+ "\n"
			+ "Note: You will see this alert the very first time you use this site, click Cancel to continue" 
		)

		if (showHelp) window.parent.location.replace("/silo/misc/help_frameset.html")
	}
}
