// First off, let's check what brand of browser they're using.
var platform = navigator.platform;

var x = navigator.appName;
if (x == "Microsoft Internet Explorer") {
// If it's IE they're using, we check the version number
var n = parseFloat(navigator.appVersion);
// IE lies about its version, so we have to add 1 to get the
// correct result
n++;
//Now we send the right version to the right place
	if (n < 3) {
			// If it's less than 3, they need to upgrade
			document.write ("<b>You should upgrade your browser because many pages will not display properly.<\/b>");
	}
	else if (n >= 3 && n < 4) {
	// If it's 3.x, let's go deeper - see the "countup" function.
	countup();	
	} 
	else if (n >= 4 && n < 5) {
	// If it's IE 4 & up, we can read the version in 
	// more detail - we're looking for "MSIE" followed 
	// by a 4 or 5
	var v = navigator.appVersion;
		// If it's IE 4 we have one thing that works
		if (v.indexOf("MSIE 5",1) == -1) {
		IS_IE4(n);		
		}
		// if it's IE 5 we have another way to do it...
		else if (v.indexOf("MSIE 4",1) == -1) {
		IS_IE5(n);
		}
	}
	// Plan ahead!  5.x or anything greater than 5 will 
	//  need to be accounted for.  For now, we run the 5 
	// routine, but we would replace this if we wrote something 
	// for IE 6
	else if (n >= 5) {
	IS_IE5(n);
	}
}
else if (x == "Netscape") {
// If it's Netscape, we drill deeper in the readNetscape function
	readNetscape();
}
else if (x == "Mozilla") {
// Some versions of Netscape echo back "Mozilla" - we check for it
	readNetscape();
}
function doPreload() {
// Preload all the dropdown menu images so that users at 56K 
// don't have the page pause and load the first time they 
// access the dropdown menu.

// First, make an Array to store the images
	var the_images = new Array('http://www.state.ky.us/kystandards/templates/images/KYMainOff.gif','http://www.state.ky.us/kystandards/templates/images/KYMainOn.gif','http://www.state.ky.us/kystandards/templates/images/KYSearchOff.gif','http://www.state.ky.us/kystandards/templates/images/KYSearchOn.gif');
	preloadImages(the_images);
	}
// Next, loop through the image array loading them	
function preloadImages(the_images_array) {
	for(loop = 0; loop < the_images_array.length; loop++) {
		var an_image = new Image();
	    an_image.src = the_images_array[loop];
		}
	}
// How to translate DOM calls - some use "document.layers"
// and that means they use "show" & "hide" to work with layers	
if (document.layers) {
// Netscape
var myWidth = (screen.width - 100);
	visible = 'show';
	hidden = 'hide';
	} 
// And some call layers via "document.all" and use "visible" 
// and "hidden" to work with layers	
else if (document.all) {
// alert("IE Screen width = " + screen.width);
// IE
// var myWidth = (size.width - 100);
var myWidth = (screen.width - 100);
	visible = 'visible';
	hidden = 'hidden';
	}	
function reveal(menu, parent) {
// Let's handle the manipulation of layers
	if (document.layers) {
		// One DOM uses this syntax
		daMenu = document.layers[menu];
		} 
		else if (document.all) {
		// Another DOM uses this syntax
			daMenu = document.all(menu).style;
		}
		if (daMenu.visibility == visible) {
		// Hide menu at first and whenever it's 
		// visible and someone acts on it
			daMenu.visibility = hidden;
		}
		else {
		// Show menu when we hit this loop 
		// because it means someone's clicked on it
			daMenu.visibility = visible;
		}
	}
function init(){
// Set the layers' variables to specific status, size, etc.
	document.menuBar.top=document.layers[0].top+document.layers[0].document.height;
	document.moreMenu.top=document.layers[1].top;
	document.menuBar.visibility="show"; 
	document.moreMenu.visibility="show"; 
	}	
function changeMenu() {
// How to tell whether the menu needs to be shown/hidden:
// run the next function, then come back here and inherit it
	hideAllmenuLayers(); 
	document.layers["moreMenu"].visibility = "inherit"; 
	} 
function hideAllmenuLayers() {
// Set the drop-down to be hidden at first
	document.layers["moreMenu"].visibility = "hide";
	}
			
function IS_Netscape() {
// Now we check Netscape out, and go deeper.
// Netscape can't read screen width like IE, so 
// we use Java's variables instead of JavaScript
var tool = java.awt.Toolkit;
var size = new java.awt.Dimension(tool.getDefaultToolkit().getScreenSize());
var myWidth = (screen.width - 100);
// var myWidth = (size.width - 100);
var yourWidth = screen.width;
// var yourWidth = size.width;
var myHeight = screen.height;
// var myHeight = size.height;
// Check screen resolution; ballpark it to a range of possibilities
if (yourWidth < 640) {
// If it's less than 640 wide, give 'em narrow image.
// Here we feed code that uses Netscape's "<LAYER>" tags.
// For more info, see http://developer.netscape.com
	document.write("<STYLE TYPE=\"text/css\">");
	document.write("#menuBar { position: absolute; visibility: show; left: 0; top: 0; }");
	document.write("#moreMenu { position: absolute; visibility: hide; left: 0; top: 21; }");
	document.write("</style>");
	document.write("<LAYER NAME=\"menuBar\" LEFT=0 TOP=0 HEIGHT=20 WIDTH=" + myWidth + ">");
	document.write("<a href=\"#\" onClick=\"changeMenu(this.selectedIndex); return false;\">");
	document.write("<img border=0 src=\"http:\/\/www.state.ky.us/kystandards/templates/images/bnrbrand640.jpg\" width=" + myWidth + " alt=\"Offical Commonwealth of Kentucky web site\" longdesc=\"This image denotes an official site of the Commonwealth of Kentucky.  Selecting any of the items in the sub-menu will take you to one of the core pages central to the Kentucky Internet presence.\">");
	document.write("</a>");
	document.write("<br>");
	document.write("</LAYER>");
	document.write("<LAYER NAME=\"moreMenu\" LEFT=0 TOP=21 WIDTH=250 HEIGHT=30 visibility=\"hide\" onMouseOut=\"hideAllmenuLayers();\">");
	document.write("<a href=\"http:\/\/www.kydirect.net/\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYMainOff.gif\" height=15 width=250 border=0 name=\"menu1\" alt=\"Main KY Homepage\" longdesc=\"Selecting this link will take you to the main home page for the Commonwealth of Kentucky\">");
	document.write("</a><br>");
	document.write("<a href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYSearchOff.gif\" height=15 width=250 border=0 name=\"menu4\" alt=\"Search KY\" longdesc=\"Selecting this link will allow you to search all of Kentucky's web sites\">");
	document.write("</a><br>");
	document.write("</LAYER>");
	document.write("<br>");
	doPreload();
	}
else if (yourWidth >=640 && myWidth <=800) {
// If it's between 640 and 800, give 'em the 800-width image
	document.write("<STYLE TYPE=\"text/css\">");
	document.write("#menuBar { position: absolute; visibility: show; left: 0; top: 0; }");
	document.write("#moreMenu { position: absolute; visibility: hide; left: 0; top: 21; }");
	document.write("</style>");
	document.write("<LAYER NAME=\"menuBar\" LEFT=0 TOP=0 HEIGHT=20 WIDTH=\"100%\">");
	document.write("<a href=\"#\" onClick=\"changeMenu(this.selectedIndex); return false;\">");
	document.write("<img border=0 src=\"http:\/\/www.state.ky.us\/kystandards\/templates\/images\/bnrbrand800.jpg\" width=" + myWidth + " alt=\"Offical Commonwealth of Kentucky web site\" longdesc=\"This image denotes an official site of the Commonwealth of Kentucky.  Selecting any of the items in the sub-menu will take you to one of the core pages central to the Kentucky Internet presence.\">");
	document.write("</a>");
	document.write("<br>");
	document.write("</LAYER>");
	document.write("<LAYER NAME=\"moreMenu\" LEFT=0 TOP=21 WIDTH=250 HEIGHT=30 visibility=\"hide\" onMouseOut=\"hideAllmenuLayers();\">");
	document.write("<a href=\"http:\/\/www.kydirect.net/\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYMainOff.gif\" height=15 width=250 border=0 name=\"menu1\" alt=\"Main KY Homepage\" longdesc=\"Selecting this link will take you to the main home page for the Commonwealth of Kentucky\">");
	document.write("</a><br>");
	document.write("<a href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYSearchOff.gif\" height=15 width=250 border=0 name=\"menu4\" alt=\"Search KY\" longdesc=\"Selecting this link will allow you to search all of Kentucky's web sites\">");
	document.write("</a><br>");
	document.write("</LAYER>");
	document.write("<br>");
	doPreload();
	}
else if (yourWidth > 800) {
// If it's more than 800, we have an image that's 1200 wide...give them that
	document.write("<STYLE TYPE=\"text/css\">");
	document.write("#menuBar { position: absolute; visibility: show; left: 0; top: 0; width: " + myWidth + ";}");
	document.write("#moreMenu { position: absolute; visibility: hide; left: 0; top: 21; }");
	document.write("</style>");
	document.write("<LAYER NAME=\"menuBar\" LEFT=0 TOP=0 HEIGHT=20 WIDTH=" + myWidth + ">");
	document.write("<a href=\"#\" onClick=\"changeMenu(this.selectedIndex); return false;\">");
	document.write("<img border=0 src=\"http:\/\/www.state.ky.us/kystandards/templates/images/bnrbrand1024.jpg\" width=" + myWidth + " alt=\"Offical Commonwealth of Kentucky web site\" longdesc=\"This image denotes an official site of the Commonwealth of Kentucky.  Selecting any of the items in the sub-menu will take you to one of the core pages central to the Kentucky Internet presence.\">");
	document.write("</a>");
	document.write("<br>");
	document.write("</LAYER>");
	document.write("<LAYER NAME=\"moreMenu\" LEFT=0 TOP=21 WIDTH=250 HEIGHT=30 visibility=\"hide\" onMouseOut=\"hideAllmenuLayers();\">");
	document.write("<a href=\"http:\/\/www.kydirect.net/\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYMainOff.gif\" height=15 width=250 border=0 name=\"menu1\" alt=\"Main KY Homepage\" longdesc=\"Selecting this link will take you to the main home page for the Commonwealth of Kentucky\">");
	document.write("</a><br>");
	document.write("<a href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYSearchOff.gif\" height=15 width=250 border=0 name=\"menu4\" alt=\"Search KY\" longdesc=\"Selecting this link will allow you to search all of Kentucky's web sites\">");
	document.write("</a><br>");
	document.write("</LAYER>");
	document.write("<br>");
	doPreload();
	}
}
function IS_IE4() {
var myWidth = (screen.width - 100);
// If we have IE4, we can use Layers and IE's DOM with 
// Cascading Style Sheets (CSS).
// However, IE4 has a problem reading screen width, so I 
// can only serve IE 4.x users the middle option of images...
	document.write("<style type=\"text/css\">");
	document.write(" #menuBar {");
	document.write("	position: absolute; left: 0; top: 0; width: " + myWidth + "; height: 20px; border: 0px");
	document.write(" }");
	document.write(" .daMenu {");
	document.write(" position: absolute; width: 200px; height: 20px; border: 0px; top: 0");
	document.write(" }");
	document.write(" .moreMenu {");
	document.write("	position: absolute; width: 200px; border: 0px; visibility: hidden; top: 20px;");
	document.write(" }");
	document.write(" .itemAnchor {");
	document.write(" font-family: Verdana; font-size: 12px; text-decoration: none");
	document.write(" } .monkey {");
	document.write("	position: absolute; left:300px; top:150px; visibility: hidden");
	document.write(" }");
	document.write(" #webmonkey {");
	document.write(" left: 0");
	document.write(" } #moreMonkey {");
	document.write(" position: absolute; left: 0");
	document.write(" }");
	document.write("</style>");
	document.write("<span class=\"itemAnchor\"></span>");
	document.write("<div id=\"menuBar\"></div>");
	document.write("<div id=\"webmonkey\" class=\"daMenu\"><a href=\"#\" class=\"itemAnchor\" onClick=\"javascript: reveal('moreMonkey'); return false;\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/bnrbrand800.jpg\" width=" + myWidth + " border=0></a></div>");
	document.write("<div id=\"moreMonkey\" class=\"moreMenu\" onMouseOut=\"javascript: reveal('moreMonkey');return false\"><a href=\"http:\/\/www.kydirect.net/\" class=\"itemAnchor\">");
	document.write("<img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYMainOff.gif\" border=0 onMouseOver=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYMainOn.gif'; return true\" onMouseOut=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYMainOff.gif'; return true\" alt=\"Main KY Homepage\" longdesc=\"Selecting this link will take you to the main home page for the Commonwealth of Kentucky\"></a>");
	document.write("<br>");
	document.write("<a href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\" class=\"itemAnchor\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYSearchOff.gif\" border=0 onMouseOver=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYSearchOn.gif'; return true\" onMouseOut=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYSearchOff.gif'; return true\" alt=\"Search KY\" longdesc=\"Selecting this link will allow you to search all of Kentucky's web sites\"><\/a>");
	document.write("<br>");
	document.write("</div><br>");
				doPreload();
	}
function IS_IE5() {
var myWidth = (screen.width - 100);
// If it's IE 5, we can adjust the banner for 
// the width of the user's screen.  This code is *supposed* 
// to work in IE 4.x, but doesn't always do so; that's why we don't 
// let IE 4.x users have different widths.
var w = screen.Width;
	if (w < 640) {
	// If it's narrower than 640, give them the small image
		document.write("<style type=\"text/css\">");
		document.write(" #menuBar {");
		document.write("	position: absolute; left: 0; top: 0; width: " + myWidth + "; height: 20px; border: 0px");
		document.write(" }");
		document.write(" .daMenu {");
		document.write(" position: absolute; width: 200px; height: 20px; border: 0px; top: 0");
		document.write(" }");
		document.write(" .moreMenu {");
		document.write("	position: absolute; width: 200px; border: 0px; visibility: hidden; top: 20px;");
		document.write(" }");
		document.write(" .itemAnchor {");
		document.write(" font-family: Verdana; font-size: 12px; text-decoration: none");
		document.write(" } .monkey {");
		document.write("	position: absolute; left:300px; top:150px; visibility: hidden");
		document.write(" }");
		document.write(" #webmonkey {");
		document.write(" left: 0");
		document.write(" } #moreMonkey {");
		document.write(" position: absolute; left: 0");
		document.write(" }");
		document.write("</style>");
		document.write("<span class=\"itemAnchor\"></span>");
		document.write("<div id=\"menuBar\"></div>");
		document.write("<div id=\"webmonkey\" class=\"daMenu\"><a href=\"#\" class=\"itemAnchor\" onClick=\"javascript: reveal('moreMonkey'); return false;\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/bnrbrand640.jpg\" width=" + myWidth + " border=0></a></div>");
		document.write("<div id=\"moreMonkey\" class=\"moreMenu\" onMouseOut=\"javascript: reveal('moreMonkey');return false\"><a href=\"http:\/\/www.kydirect.net/\" class=\"itemAnchor\">");
		document.write("<img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYMainOff.gif\" border=0 onMouseOver=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYMainOn.gif'; return true\" onMouseOut=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYMainOff.gif'; return true\" alt=\"Main KY Homepage\" longdesc=\"Selecting this link will take you to the main home page for the Commonwealth of Kentucky\"></a>");
		document.write("<br>");
		document.write("<a href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\" class=\"itemAnchor\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYSearchOff.gif\" border=0 onMouseOver=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYSearchOn.gif'; return true\" onMouseOut=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYSearchOff.gif'; return true\" alt=\"Search KY\" longdesc=\"Selecting this link will allow you to search all of Kentucky's web sites\"></a>");
		document.write("<br>");
		document.write("</div><br>");
		doPreload();	
		}
	else if ((w >= 640) && (w <=800)) {
	// If it's the most common, between 640 and 800, 
	// give them the medium-width image
		document.write("<style type=\"text/css\">");
		document.write(" #menuBar {");
		document.write("	position: absolute; left: 0; top: 0; width: " + myWidth + "; height: 20px; border: 0px");
		document.write(" }");
		document.write(" .daMenu {");
		document.write(" position: absolute; width: 200px; height: 20px; border: 0px; top: 0");
		document.write(" }");
		document.write(" .moreMenu {");
		document.write("	position: absolute; width: 200px; border: 0px; visibility: hidden; top: 20px;");
		document.write(" }");
		document.write(" .itemAnchor {");
		document.write(" font-family: Verdana; font-size: 12px; text-decoration: none");
		document.write(" } .monkey {");
		document.write("	position: absolute; left:300px; top:150px; visibility: hidden");
		document.write(" }");
		document.write(" #webmonkey {");
		document.write(" left: 0");
		document.write(" } #moreMonkey {");
		document.write(" position: absolute; left: 0");
		document.write(" }");
		document.write("</style>");
		document.write("<span class=\"itemAnchor\"></span>");
		document.write("<div id=\"menuBar\"></div>");
		document.write("<div id=\"webmonkey\" class=\"daMenu\"><a href=\"#\" class=\"itemAnchor\" onClick=\"javascript: reveal('moreMonkey'); return false;\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/bnrbrand800.jpg\" width=" + myWidth + " border=0></a></div>");
		document.write("<div id=\"moreMonkey\" class=\"moreMenu\" onMouseOut=\"javascript: reveal('moreMonkey');return false\"><a href=\"http:\/\/www.kydirect.net/\" class=\"itemAnchor\">");
		document.write("<img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYMainOff.gif\" border=0 onMouseOver=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYMainOn.gif'; return true\" onMouseOut=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYMainOff.gif'; return true\" alt=\"Main KY Homepage\" longdesc=\"Selecting this link will take you to the main home page for the Commonwealth of Kentucky\"></a>");
		document.write("<br>");
		document.write("<a href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\" class=\"itemAnchor\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYSearchOff.gif\" border=0 onMouseOver=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYSearchOn.gif'; return true\" onMouseOut=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYSearchOff.gif'; return true\" alt=\"Search KY\" longdesc=\"Selecting this link will allow you to search all of Kentucky's web sites\"></a>");
		document.write("<br>");
		document.write("</div><br>");
		doPreload();
	}
	else if (w > 800) {
	// If it's really hi-res, use the widest image we've got
		document.write("<style type=\"text/css\">");
		document.write(" #menuBar {");
		document.write("	position: absolute; left: 0; top: 0; width: " + myWidth + "; height: 20px; border: 0px");
		document.write(" }");
		document.write(" .daMenu {");
		document.write(" position: absolute; width: 200px; height: 20px; border: 0px; top: 0");
		document.write(" }");
		document.write(" .moreMenu {");
		document.write("	position: absolute; width: 200px; border: 0px; visibility: hidden; top: 20px;");
		document.write(" }");
		document.write(" .itemAnchor {");
		document.write(" font-family: Verdana; font-size: 12px; text-decoration: none");
		document.write(" } .monkey {");
		document.write("	position: absolute; left:300px; top:150px; visibility: hidden");
		document.write(" }");
		document.write(" #webmonkey {");
		document.write(" left: 0");
		document.write(" } #moreMonkey {");
		document.write(" position: absolute; left: 0");
		document.write(" }");
		document.write("</style>");
		document.write("<span class=\"itemAnchor\"></span>");
		document.write("<div id=\"menuBar\"></div>");
		document.write("<div id=\"webmonkey\" class=\"daMenu\"><a href=\"#\" class=\"itemAnchor\" onClick=\"javascript: reveal('moreMonkey'); return false;\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/bnrbrand1024.jpg\" width=" + myWidth + " border=0></a></div>");
		document.write("<div id=\"moreMonkey\" class=\"moreMenu\" onMouseOut=\"javascript: reveal('moreMonkey');return false\"><a href=\"http:\/\/www.kydirect.net\/\" class=\"itemAnchor\">");
		document.write("<img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYMainOff.gif\" border=0 onMouseOver=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYMainOn.gif'; return true\" onMouseOut=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYMainOff.gif'; return true\" alt=\"Main KY Homepage\" longdesc=\"Selecting this link will take you to the main home page for the Commonwealth of Kentucky\"></a>");
		document.write("<br>");
		document.write("<a href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\" class=\"itemAnchor\"><img src=\"http:\/\/www.state.ky.us/kystandards/templates/images/KYSearchOff.gif\" border=0 onMouseOver=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYSearchOn.gif'; return true\" onMouseOut=\"this.src='http://www.state.ky.us/kystandards/templates/images/KYSearchOff.gif'; return true\" alt=\"Search KY\" longdesc=\"Selecting this link will allow you to search all of Kentucky's web sites\"></a>");
		document.write("<br>");
		document.write("</div><br>");
		doPreload();
	}
}		
function readNetscape() {
// If it's Netscape, let's drill deeper and find out what VERSION
var n = parseFloat(navigator.appVersion);
	if ((n < 4) && (n >= 3)) {
	// If it's 3.x, we use Java and an image map
	var tool = java.awt.Toolkit;
	var size = new java.awt.Dimension(tool.getDefaultToolkit().getScreenSize());
	var yourWidth = size.Width;
	var myWidth = (size.width-100);
		if (yourWidth <= 640) {
		// Netscape 3.x at 640 resolution or less
			document.write("<MAP NAME=\"brandmap\">");
			document.write("<area shape=\"rect\" coords=\"7,0,91,20\" href=\"http:\/\/www.kydirect.net\/\" alt=\"KY Home Page\">");
			document.write("<area shape=\"rect\" coords=\"92,0,175,20\" href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\" alt=\"Search KY\">");
			document.write("<\/MAP>");
			document.write("<img border=0 width=" + myWidth + " height=20 usemap=\"\#brandmap\" src=\"http:\/\/www.state.ky.us\/kystandards\/templates\/images\/bnrbrand640MAP.jpg\" alt=\"Official Commonwealth of Kentucky Page\">");
			doPreload();
		}
		else if ((yourWidth > 640) && (myWidth <= 800)) {
		// Netscape 3.x up to 800 resolution
			document.write("<MAP NAME=\"brandmap\">");
			document.write("<area shape=\"rect\" coords=\"7,0,91,20\" href=\"http:\/\/www.kydirect.net\/\" alt=\"KY Home Page\">");
			document.write("<area shape=\"rect\" coords=\"92,0,175,20\" href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\" alt=\"Search KY\">");
			document.write("<\/MAP>");
			document.write("<img border=0 width=" + myWidth + " height=20 usemap=\"\#brandmap\" src=\"http:\/\/www.state.ky.us\/kystandards\/templates\/images\/bnrbrand800MAP.jpg\" alt=\"Official Commonwealth of Kentucky Page\">");
			doPreload();
		}
		else if (yourWidth > 800) {
		// Netscape 3.x greater than 800 resolution
			document.write("<MAP NAME=\"brandmap\">");
			document.write("<area shape=\"rect\" coords=\"7,0,91,20\" href=\"http:\/\/www.kydirect.net\/\" alt=\"KY Home Page\">");
			document.write("<area shape=\"rect\" coords=\"92,0,175,20\" href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\" alt=\"Search KY\">");
			document.write("<\/MAP>");
			document.write("<img border=0 width=" + myWidth + " height=20 usemap=\"\#brandmap\" src=\"http:\/\/www.state.ky.us\/kystandards\/templates\/images\/bnrbrand1024MAP.jpg\" alt=\"Official Commonwealth of Kentucky Page\">");
			doPreload();
		}
}
else if ((n >= 4) && (n < 5)) {
// If it's Netscape 4.x, we can pass variables through to 
// the next step, IS_Netscape
IS_Netscape(n,x);
}
else if (n > 5) {
// If it's 5.x, we pass variables through - this area 
// will change for Netscape 6 if we ever write code for it
// IS_Netscape(n,x);

// Let's see if Netscape 6 uses the IE DOM
IS_IE5(n,x);

}
}
function countup() {
// I had to do this function because the lab computer's 
// version of IE 3.x was looping repeatedly.  It's at the 
// end of the file so that IE3 will quit, but we set up 
// a conditional loop of how many times to run the 
// appropriate function just to make sure it DOES quit!
	var I=0;
	for (I = 0; I < 1; I++) {
		if (I < 1) {
		I = I + 1;
			continue;
		}
		else {
		return false;
		}
	}
	return(I);		
}
function ReadIE() {
	document.write("<MAP NAME=\"brandmap\"><area shape=\"rect\" coords=\"7,0,91,20\" href=\"http:\/\/www.kydirect.net\/\" alt=\"KY Home Page\"><area shape=\"rect\" coords=\"92,0,175,20\" href=\"http:\/\/home.state.ky.us/searchky.asp?LKSYSID=0\" alt=\"Search KY\"><\/MAP><img border=0 width=" + myWidth + " height=20 usemap=\"\#brandmap\" src=\"http:\/\/www.state.ky.us\/kystandards\/templates\/images\/bnrbrand800MAP.jpg\" alt=\"Official Commonwealth of Kentucky Page\">");
	}


