/*****************************************
      BEGIN CUSTOM PAGE STYLE CODE
******************************************/
// Convert location.search into an array of values
// indexed by name.
function getSearchAsArray() {
	var minNav3 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3)
	var minIE4 = (navigator.appName.indexOf("Microsoft") >= 0 && parseInt(navigator.appVersion) >= 4)
	var minDOM = minNav3 || minIE4   // baseline DOM required for this function
	var results = new Array()
	if (minDOM) {
		var input = unescape(location.search.substring(1))
		if (input) {
			var srchArray = input.split("&")
			var tempArray = new Array()
			for (i = 0; i < srchArray.length; i++) {
				tempArray = srchArray[i].split("=")
				results[tempArray[0]] = tempArray[1]
			}
		}
	}
	return results
}


FCArray = ["000000", "000099", "FFFFFF", "990000", "003300", "000066", "808080", "C0C0C0", "FFFF99", "FFFFCC", "CCFFCC", "FF66FF"]

var srchData = getSearchAsArray()

// Write style sheets with data passed in with location.search,
// or use default values if no data has been passed.
document.write("<STYLE TYPE='text/css'>")
//document.write("BODY {font-family:" + ((srchData["FFamily"]) ? srchData["FFamily"] : "Ariel") +"; background-color:" +
//   ((srchData["bgColor"]) ? srchData["bgColor"] : "red") + "; color:" + 
//   ((srchData["textColor"]) ? srchData["textColor"] : "#000000") + "}")
//document.write("H1 {text-align:left; font-size:" + 
//   ((srchData["h1Size"]) ? srchData["h1Size"] : "24") + "pt}")
document.write("#SMALLTEXT { font-size: 12pt }")
document.write("#MIDIUMTEXT { font-size: 14pt }")
document.write("#LARGETEXT { font-size: 16pt }")
document.write(".GENERAL1 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[0]+";}")
document.write(".GENERAL2 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[1]+";}")
document.write(".GENERAL3 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[2]+";}")
document.write(".GENERAL4 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[3]+";}")
document.write(".GENERAL5 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[4]+";}")
document.write(".GENERAL6 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[5]+";}")
document.write(".GENERAL7 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[6]+";}")
document.write(".GENERAL8 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[7]+";}")
document.write(".GENERAL9 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[8]+";}")
document.write(".GENERAL10 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[9]+";}")
document.write(".GENERAL11 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[10]+";}")
document.write(".GENERAL12 { background-color: "+srchData["bgColor"]+";font-family: "+srchData["FFamily"]+"; color: "+FCArray[11]+";}")
document.write(".GENERAL13 { background-color: \"#FFFFCC\" ;font-family: "+srchData["FFamily"]+";color: "+FCArray[0]+";}")

document.write("#MAINTEXT { font-family: "+((srchData["FFamily"]) ? srchData["FFamily"] : "Arial")+" ;color: "+((srchData["textColor"]) ? srchData["textColor"] : "#000099")+"; font-size: "+((srchData["h1Size"]) ? srchData["h1Size"] : "12")+"pt }")
document.write(".MAINBG { background-color: "+((srchData["bgColor"]) ? srchData["bgColor"] : "FFFFCC")+";}")
document.write("A:internal { color: "+srchData["textColor"]+" }")
document.write("A.internal:visited { color: "+srchData["textColor"]+" }")

document.write(".BGIMG{ background-image: url(./img/"+((srchData["bgColor"]) ? srchData["bgColor"] : "FFFFCC")+".jpg); }")

document.write(":link { color: "+((srchData["textColor"]) ? srchData["textColor"] : "#000099")+" }")
document.write(":visited { color: "+((srchData["textColor"]) ? srchData["textColor"] : "#000099")+" }")

document.write(".TEXT1 { font-family: "+((srchData["FFamily"]) ? srchData["FFamily"] : "Arial")+" ;color: #DCE4AB")

document.write(".HEADTEXT { font-family: "+((srchData["FFamily"]) ? srchData["FFamily"] : "Arial")+" }")


//DCE4AB
document.write("</STYLE>")
/*****************************************
      END CUSTOM PAGE STYLE CODE
******************************************/

