window.defaultStatus = "Welcome to the Kankakee County Health Department"; /*---------------------------------VARIABLES----------------------------------*/ var dir; var menus = new Array( Array( Array("admin/index.htm","Administration","Administrative offices of the Kankakee County Health Department."), Array("eh/index.htm","Environmental Health","Provides services relating to environmental health."), Array("ccd/index.htm","Chronic/Communicable Diseases","Provides services relating to chronic and communicable diseases."), Array("mch/index.htm","Maternal/Child Health Services","Provides services related to the health of mothers and children."), Array("hp/index.htm","Health Promotion","Provides services related to the promotion of good health.")), Array( Array("contact_us.htm","Contact Information","Displays the contact information for the Kankakee County Health Department."), Array("links.htm","Health Related Links","Displays links related to the services provided by the Kankakee County Health Department."), Array("links_for_kids.htm","Links for Kids","Displays links designed for kids that are related to the services provided by the Kankakee County Health Department."), Array("site_map.htm","KCHD Site Map","Hierarchical index of all pages in the Kankakee County Health Department website."), Array("index.htm","KCHD Homepage","Homepage of the Kankakee County Health Department"))); /*---------------------------------FUNCTIONS----------------------------------*/ function changePage(url) { window.location = url; } function showDesc(dir, url) { for(var i = 0; i < descriptions.length; i++) if(url == dir + descriptions[i][0]) { document.getElementById("description").innerText = descriptions[i][1]; return; } document.getElementById("description").innerText = "No description is available at this time."; } function displayMainMenu(dir) { for(var i = 0; i < menus.length; i++) { if(i != 0) document.write("\n"); document.write("
\n"); for(var j = 0; j < menus[i].length; j++) { document.write(""+menus[i][j][1]+""); if(j < (menus[i].length - 1)) document.write("   |   "); } } document.write("
"); } function displayMenu(dir) { if(!dir) dir = ""; document.write("
\n"); if(menuItems[0][0] != "#") { document.write(""); } document.write(menuItems[0][1]); if(menuItems[0][0] != "#") document.write("\n"); document.write("
\n"); for(var i = 1; i < menuItems.length; i++) { if(menuItems[i][0] == "#") document.write("
"+menuItems[i][1]+"
\n"); else { document.write("
\n"+ menuItems[i][1] +"\n
\n"); } var filePos = menuItems[i][0].lastIndexOf("/"); var path = menuItems[i][0].substring(0, filePos+1); var loc = window.location.href.toString(); if((menuItems[i][2] != null) && ((loc.indexOf(path) > -1) || (loc.indexOf("Version/index.htm") > -1) || (loc.indexOf("/alerts/") > -1) || (loc.indexOf("/hp/") > -1) || (loc == "http://www.kankakeehealth.org/") || (loc == "http://www.kankakeehealth.org/index.htm"))) { document.write("
\n\n
"); } if((i+1) != menuItems.length) { document.write("\n"); } } } function printModDate() { var mod = new Date(document.lastModified); var days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday", "Friday","Saturday"); var months = new Array("January","February","March","April","May","June", "July","August","September","October","November","December"); var year = mod.getYear(); if(year < 1900) year += 1900; var date = days[mod.getDay()] + ", " + months[mod.getMonth()] + " " + mod.getDate() + ", " + year; //mod.substr(0,10); var hour = mod.getHours(); if(hour > 12) { hour -= 12; var timeOfDay = "PM"; } else { var timeOfDay = "AM"; if(hour == 0) hour = 12; } var min = mod.getMinutes(); if(min < 10) min = "0"+min; var sec = mod.getSeconds(); if(sec < 10) sec = "0"+sec; var dateStr = "This page was last modified on " + date + " at " + hour + ":" + min + ":" + sec + " " + timeOfDay; return dateStr; } function printerFriendly(heading, src, dir) { var ie5plusCSS = "\n"; if((navigator.appName != "Microsoft Internet Explorer") || (4 > parseInt(navigator.appVersion))) ie5plusCSS = ""; var printPage1 = "\n\n"+ "Kankakee County Health Department: Printer Friendly Page\n"+ "\n" + ie5plusCSS + "\n"+ "\n\n"+ "\n"+ "\n\n"+ "\n"+ "\n"+ "\n"+ "\n\n\n\n"+ "\n\n\n"+ "\n"+ "\n"+ "\n\n"+ "\n"+ "\n"+ "\n"+ "\n"+ "\n\n"+ "\n\n\n\n"+ "\n"+ "\n"+ "\n"+ "\n"+ "\n\n"+ "\n"+ "\n"+ "\n"+ "\n"+ "\n\n"+ "\n\n"+ ""+ "\n"+ "\n"+ "\n"+ "\n\n"+ "\n
\n"+ "\n\n"+ "\n\n\n
\n"+ "\n\n"+ "
"+ "Kankakee County Health Department
\n 2390 West Station Street
\n "+ "Kankakee, IL 60901
\n Phone: (815) 937-3560
\n TTY: 815-937-8520
\n "+ "Fax: (815) 937-3568
\n E-Mail: "+ "info@kankakeehealth.org\n
\n
\n
\n"+ "
\n"; var printPage2 = "
\n
\n
\n"+ "
\n"; var printPage3 = "\n
\n
\n
\n
"+printModDate()+"
\n"+ "\n\"; // top and left spacing around print window to center the window var top = (window.screen.height - 450) / 3; var left = (window.screen.width - 750) / 1.8; var newWin = window.open("about:blank","_blank", "width=700,height=450,top="+top+",left="+left+",menubar=1,status=0,location=0,scrollbars=1"); if(heading == null) heading = "Kankakee County Health Department"; newWin.document.write(printPage1 + heading + printPage2 + src + printPage3); } function mainPage(section, dir) { var ie5plusCSS = "\n"; if((navigator.appName != "Microsoft Internet Explorer") || (4 > parseInt(navigator.appVersion))) ie5plusCSS = ""; var mainPage1 = ie5plusCSS + "\n\n"+ "\n\n"+ "\n"+ "\n"+ "\n\n"+ "\n\n\n"+ "\n\n\n"+ "\n"+ "\n"+ "\n\n"+ "\n"+ "\n"+ "\n"+ "\n"+ "\n\n"+ "\n\n\n"+ "\n\n\n"+ "\n"+ "\n"+ "\n\n"+ "\n"+ "\n"+ "\n"+ "\n"+ "\n\n"+ "\n\n\n\n\n"+ "\n\n\n"+ "\n\n
\n"+ "\n\n"+ "\n\n\n
\n"+ "\n\n"+ "
\n"+ "Kankakee County Health Department
\n 2390 West Station Street
\n "+ "Kankakee, IL 60901
\n Phone: (815) 937-3560 | TTY: 815-937-8520
\n "+ "Fax: (815) 937-3568
\n E-Mail: "+ "info@kankakeehealth.org\n
\n
\n
\n"+ "\n"+ "\n\n\n"+ "\n\n
\n"; var mainPage2 = "
\n"+ " Click for a Printer Friendly Version\n
\n
"; var mainPage3 = "
\n"+ " Click for a Printer Friendly Version\n
"+ "
\n\n"+ "\n\n\n"+ "\n"+ "\n"+ "\n\n"+ "\n"+ "\n"+ "\n"+ "\n"+ "\n\n"+ "\n\n"+ "\n "+ "All pages listed as Brochures or Applications were available as paper "+ "copies for public distribution through the Kankakee County Health "+ "Department (KCHD) at the time the pages were constructed. No authorship or "+ "ownership is implied through their use, and this use is solely intended "+ "for the education and continuing health and safety of the public. Pages "+ "listed as Web Sites are outside links to content not maintained or "+ "monitored by the KCHD, and the KCHD cannot be liable for such content.\n"+ "\n\n\n"+ "\n"+ "\n"+ "\n\n"+ "\n"+ "\n"+ "\n"+ "\n"+ "\n\n"+ "\n\n"+ "\n "+ "This website is best viewed under Internet Explorer 5.0 or higher, with\n "+ "JavaScript enabled.
\nWebsite restructured by "+ "Jacob Kronika in "+ "June-August and December 2004 and January 2005
\n"+ printModDate()+"\n"+ "\n"+ "\n"+ "\n"+ "\n"+ "\n\n\n"+ "\n"; switch(section) { case 1: document.write(mainPage1); displayMainMenu(dir); document.write(mainPage2); break; case 2: document.write(mainPage3); break; default: break; } }