
var d = document;
var ie4 = (d.all) ? true : false;
var ns4 = (d.layers) ? true : false;
var ns6 = (!d.all && d.getElementById) ? true : false;

var textHighlight		= "#EEA202";	//"#FDBA2F";
var textLowlight		= "#999999";
var textHtags			= "#333333";	//"#EEA202";
var Menu1Link			= "#ffffff";
var Menu1LinkSelected	= "#777777";
var VBarText			= "#FFFFFF";
var VBarTextSelected	= "#FFFFFF";
var Menu2Link			= "#888888";
var Menu2LinkSelected 	= "#555555";
var Level2bg			= "#FEF2D7";
var footertext			= "#666666";

	if ( ie4 ) {		//IE4+
		var ptrailsize = "xx-small";
		var h1_h2_size = "medium";
		var h3_h6_size = "small";
		if (screen.availWidth > 900) {
			var textSize = "x-small";
			var formSize = "xx-small";
		} else {
			var textSize = "xx-small";
			var formSize = "xx-small";
		}
	} else {
		if ( ns4 ) {		//NS4 browsers
			var ptrailsize = "x-small";
			var h1_h2_size = "large";
			var h3_h6_size = "medium";
			if (screen.availWidth > 900) {
				var textSize = "small";
				var formSize = "x-small";
			} else {
				var textSize = "x-small";
				var formSize = "xx-small";
			}
		} else {
			if ( ns6 ) {		//Gecko based browsers
			var ptrailsize = "xx-small";
			var h1_h2_size = "medium";
			var h3_h6_size = "small";
				if (screen.availWidth > 900) {
					var textSize = "small";
					var formSize = "x-small";
				} else {
					var textSize = "x-small";
					var formSize = "xx-small";
				}
			}
		}
	}

	d.write ("<style type=text/css>\n");

	d.write ("p {  font-family: Arial, Helvetica, sans-serif; font-size: "+ textSize +"}\n");
	d.write ("td {  font-family: Arial, Helvetica, sans-serif; font-size: "+ textSize +"; line-height: 110%}\n");
	d.write ("body {  font-family: Arial, Helvetica, sans-serif; font-size: "+ textSize +"; color: #333333}\n");
	
	d.write ("h1 {  font-family: Arial, Helvetica, sans-serif; font-size: "+ h1_h2_size +"; color: "+ textHtags +"; line-height: 140%}\n");
	d.write ("h2 {  font-family: Arial, Helvetica, sans-serif; font-size: "+ h1_h2_size +"; color:  "+ textHtags +"; line-height: 140%}\n");
	d.write ("h3 {  font-family: Arial, Helvetica, sans-serif; font-size: "+ h3_h6_size +"; color:  "+ textHtags +"; line-height: 140%}\n");
	d.write ("h4 {  font-family: Arial, Helvetica, sans-serif; font-size: "+ h3_h6_size +"; color:  "+ textHtags +"; line-height: 140%}\n");
	d.write ("h5 {  font-family: Arial, Helvetica, sans-serif; font-size: "+ h3_h6_size +"; color:  "+ textHtags +"; line-height: 140%}\n");
	d.write ("h6 {  font-family: Arial, Helvetica, sans-serif; font-size: "+ h3_h6_size +"; color:  "+ textHtags +"; line-height: 140%}\n");
	
	d.write (".cssform { border-color: #FFFFFF; background-color: #FFFFFF; border-style: groove; font-family: Verdana, Arial, Helvetica; font-size: "+ formSize +"; font-weight: bold; padding: 1px 1px 1px 1px; margin-top: 0px; margin-bottom: 0px; color: #000000 }");
	
	d.write ("a:active {  text-decoration: none; color: "+ textLowlight +"; font-weight: bold}\n");
	d.write ("a:link {  text-decoration: none; color: "+ textLowlight +"; font-weight: bold}\n");
	d.write ("a:visited { text-decoration: none; color: "+ textLowlight +"; font-weight: bold}\n");
	d.write ("a:hover {  text-decoration: underline; color: "+ textLowlight +"; font-weight: bold}\n");
	d.write (".main_menu {  color: "+ textLowlight +"; font-weight: bold; font-size: small }\n");
	d.write (".sub_menu_1 {  color: #0000FF; font-weight: normal; font-size: x-small }\n");
	d.write (".sub_menu_2 {  color: "+ textLowlight +"; font-weight: normal; font-size: x-small }\n");
	d.write (".sub_menu_3 {  color: "+ textLowlight +"; font-weight: normal; font-size: x-small }\n");
	d.write (".sub_menu_4 {  color: #999999; font-weight: normal; font-size: x-small }\n");
	d.write (".ptrail {  font-weight: normal; font-size: "+ ptrailsize +" }\n");
	d.write (".Small { font-size: "+ textSize +" }\n");
	d.write (".VerySmall { font-size: "+ formSize +" }\n");
	d.write (".Red {  color: red; }\n");
	d.write (".White {  text-decoration: none; color: #FFFFFF; font-weight: normal}\n");

	d.write (".Menu1Link {  color: "+ Menu1Link +"; font-weight: bold; font-size: "+ textSize +"}\n");
	d.write (".Menu1Link:active {  text-decoration: none; color: "+ Menu1Link +"; font-weight: bold}\n");
	d.write (".Menu1Link:link {  text-decoration: none; color: "+ Menu1Link +"; font-weight: bold}\n");
	d.write (".Menu1Link:visited { text-decoration: none; color: "+ Menu1Link +"; font-weight: bold}\n");
	d.write (".Menu1Link:hover {  text-decoration: none; color: #999999; font-weight: bold}\n");
	d.write (".Menu1LinkSelected { color:  "+ Menu1LinkSelected +"; font-weight: bold; font-size: "+ textSize +" }\n");
	d.write (".Menu1LinkSelected:active {  text-decoration: none; color: "+ Menu1LinkSelected +"; font-weight: bold}\n");
	d.write (".Menu1LinkSelected:link {  text-decoration: none; color: "+ Menu1LinkSelected +"; font-weight: bold}\n");
	d.write (".Menu1LinkSelected:visited { text-decoration: none; color: "+ Menu1LinkSelected +"; font-weight: bold}\n");
	d.write (".Menu1LinkSelected:hover {  text-decoration: none; color: #777777; font-weight: bold}\n");
	d.write (".Menu2Link {  color: "+ Menu2Link +"; font-weight: normal; font-size: "+ textSize +"}\n");
	d.write (".Menu2Link:active {  text-decoration: none; color: "+ Menu2Link +"; font-weight: bold}\n");
	d.write (".Menu2Link:link {  text-decoration: none; color: "+ Menu2Link +"; font-weight: bold}\n");
	d.write (".Menu2Link:visited { text-decoration: none; color: "+ Menu2Link +"; font-weight: bold}\n");
	d.write (".Menu2Link:hover {  text-decoration: none; color: "+ Menu2Link +"; font-weight: bold}\n");
	d.write (".Menu2LinkSelected {  color: "+ Menu2LinkSelected +"; font-weight: normal; font-size: "+ textSize +" }\n");
	d.write (".Menu2LinkSelected:active {  text-decoration: none; color: "+ Menu2LinkSelected +"; font-weight: bold}\n");
	d.write (".Menu2LinkSelected:link {  text-decoration: none; color: "+ Menu2LinkSelected +"; font-weight: bold}\n");
	d.write (".Menu2LinkSelected:visited { text-decoration: none; color: "+ Menu2LinkSelected +"; font-weight: bold}\n");
	d.write (".Menu2LinkSelected:hover {  text-decoration: none; color: "+ Menu2LinkSelected +"; font-weight: bold}\n");

	d.write (".News {  color: #20468C; font-weight: normal; font-size:  xx-small }\n");
	d.write (".makeWhite {  color: #ffffff;}\n");
	d.write (".News:active {  text-decoration: none; color: #20468C; font-weight: bold}\n");
	d.write (".News:link {  text-decoration: none; color: #20468C; font-weight: bold}\n");
	d.write (".News:visited { text-decoration: none; color: #20468C; font-weight: bold}\n");
	d.write (".News:hover {  text-decoration: underline; color: #20468C; font-weight: bold}\n");
	d.write (".VBar {  color: "+ VBarText +"; font-weight: normal; font-size: "+ textSize +"; line-height: 150% }\n");
	d.write (".VBarSelected {  color: "+ VBarTextSelected +"; text-decoration: underline; font-weight: normal; font-size: "+ textSize +" }\n");
	d.write (".VBar:active {  text-decoration: none; color: "+ VBarText +"; font-weight: bold}\n");
	d.write (".VBar:link {  text-decoration: none; color: "+ VBarText +"; font-weight: bold}\n");
	d.write (".VBar:visited { text-decoration: none; color: "+ VBarText +"; font-weight: bold}\n");
	d.write (".VBar:hover {  text-decoration: underline; color: "+ VBarText +"; font-weight: bold}\n");
	d.write (".header {  font-weight: normal; color: #ffffff}\n");
	d.write (".footer {  font-weight: normal; color: #"+footertext+"; font-size: "+ ptrailsize +"}\n");
	d.write (".footer {  color: "+ footertext +"; font-weight: normal; font-size: "+ ptrailsize +" }\n");
	d.write (".footer:active {  text-decoration: none; color: "+ footertext +"}\n");
	d.write (".footer:link {  text-decoration: none; color: "+ footertext +"}\n");
	d.write (".footer:visited { text-decoration: none; color: "+ footertext +"}\n");
	d.write (".footer:hover {  text-decoration: underline; color: "+ footertext +"}\n");
	d.write (".SubmitButton {  color: "+ textHighlight +"; font-weight: bold; font-size: "+ h3_h6_size +" }\n");
	d.write (".SubmitButton:active {  text-decoration: none; color: "+ h3_h6_size +"}\n");
	d.write (".SubmitButton:link {  text-decoration: none; color: "+ h3_h6_size +"}\n");
	d.write (".SubmitButton:visited { text-decoration: none; color: "+ h3_h6_size +"}\n");
	d.write (".SubmitButton:hover {  text-decoration: underline; color: "+ h3_h6_size +"}\n");
	d.write ("</style>");



