		// <![CDATA[
			/***********************************************
			* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
			* This notice MUST stay intact for legal use
			* Visit http://www.dynamicdrive.com/ for full source code
			***********************************************/

			// Use rendered menus
			var about_us=new Array()
			about_us[0]='<a href="index.php?dept=1&action=25" class="menu_main_dropdown">Community Values</a>';
			about_us[1]='<a href="index.php?dept=1&action=24" class="menu_main_dropdown">Town History</a>';
			about_us[2]='<a href="index.php?dept=1&action=23" class="menu_main_dropdown">Govt. Structure</a>';
			about_us[3]='<a href="index.php?dept=1&action=22" class="menu_main_dropdown">Location</a>';
			about_us[4]='<a href="index.php?dept=1&action=14" class="menu_main_dropdown">Employee Directory</a>';
			about_us[5]='<a href="index.php?dept=1&action=21&official=1" class="menu_main_dropdown">Town Officials</a>';
		
			var departments=new Array()
			departments[0]='<a href="index.php?dept=10&action=1" class="menu_main_dropdown">Administrative Offices</a>';
			departments[1]='<a href="index.php?dept=3&action=1" class="menu_main_dropdown">Building & Engineering</a>';
			departments[2]='<a href="index.php?dept=8&action=1" class="menu_main_dropdown">Clerk Treasurer</a>';
			departments[3]='<a href="index.php?dept=11&action=1" class="menu_main_dropdown">Communications</a>';
			departments[4]='<a href="index.php?dept=6&action=1" class="menu_main_dropdown">Fire Department</a>';
			departments[5]='<a href="index.php?dept=14&action=1" class="menu_main_dropdown">Greenways</a>';
			departments[6]='<a href="index.php?dept=7&action=1" class="menu_main_dropdown">Human Resources</a>';
			departments[7]='<a href="index.php?dept=12&action=1" class="menu_main_dropdown">Parks & Recreation</a>';
			departments[8]='<a href="index.php?dept=2&action=1" class="menu_main_dropdown">Planning & Zoning</a>';
			departments[9]='<a href="index.php?dept=5&action=1" class="menu_main_dropdown">Police Department</a>';
			departments[10]='<a href="index.php?dept=4&action=1" class="menu_main_dropdown">Public Works</a>';
			departments[11]='<a href="http://townofplainfield.com/splash/index.htm" class="menu_main_dropdown">Splash Island</a>';
			departments[12]='<a href="index.php?dept=9&action=1" class="menu_main_dropdown">Town Court</a>';
		
			var news=new Array()
			news[0]='<a href="index.php?dept=1&action=7" class="menu_main_dropdown">Articles</a>';
			news[1]='<a href="index.php?dept=1&action=9" class="menu_main_dropdown">Calendar</a>';
			news[2]='<a href="index.php?dept=1&action=8" class="menu_main_dropdown">Events</a>';
			news[3]='<a href="index.php?dept=1&action=5/349" class="menu_main_dropdown">Recalls</a>';
		
			var resources=new Array()
			resources[0]='<a href="index.php?dsept=1&action=12" class="menu_main_dropdown">Meeting Minutes</a>';
			resources[1]='<a href="index.php?dept=1&action=13" class="menu_main_dropdown">FAQ</a>';
			resources[2]='<a href="index.php?dept=1&action=21&official=1" class="menu_main_dropdown">Town Officials</a>';
			resources[3]='<a href="index.php?dept=1&action=14" class="menu_main_dropdown">Employee Directory</a>';
			resources[4]='<a href="index.php?dept=1&action=15" class="menu_main_dropdown">Ordinances &amp; Resolutions</a>';
			resources[5]='<a href="index.php?dept=1&action=16" class="menu_main_dropdown">Applications &amp; Forms</a>';
			resources[6]='<a href="index.php?dept=1&action=31" class="menu_main_dropdown">Advertisement for Bids</a>';
		
			var classifieds=new Array()
			classifieds[0]='<a href="http://agency.governmentjobs.com/plainfieldin/default.cfm" class="menu_main_dropdown">Employment Opportunities</a>';
			classifieds[1]='<a href="index.php?dept=1&action=31" class="menu_main_dropdown">Advertisement for Bids</a>';

			var employeeLogin=new Array()
			employeeLogin[0]='<a href="../../plainfield_document/login.php" class="menu_main_dropdown">Secure Login</a>';


			var menuwidth = '150px'; //default menu width
			var menubgcolor = '#F3F3F3';  //menu bgcolor
			var disappeardelay = 250;  //menu disappear speed onMouseout (in miliseconds)
			var hidemenu_onclick = 'yes'; //hide menu when user clicks within menu?
			//No further editing needed

			var ie4 = document.all;
			var ns6 = document.getElementById && !document.all;

			if (ie4 || ns6) {
				document.write('<div id="dropmenudiv" style="visibility:hidden;width:' + menuwidth + ';background-color:' + menubgcolor + '" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>');
			}

			function getposOffset(what, offsettype) {
				var totaloffset = (offsettype == 'left') ? what.offsetLeft : what.offsetTop;
				var parentEl = what.offsetParent;

				while (parentEl != null) {
					totaloffset = (offsettype == 'left') ? totaloffset + parentEl.offsetLeft : totaloffset + parentEl.offsetTop;
					parentEl = parentEl.offsetParent;
				}

				return totaloffset;
			}

			function showhide(obj, e, visible, hidden, menuwidth) {
				if (ie4 || ns6) {
					dropmenuobj.style.left = dropmenuobj.style.top = -500;
				}

				if (menuwidth != '') {
					dropmenuobj.widthobj = dropmenuobj.style;
					dropmenuobj.widthobj.width = menuwidth + "px";
				}

				if (e.type == 'click' && obj.visibility == hidden || e.type == 'mouseover') {
					obj.visibility = visible;
				} else if (e.type == 'click') {
					obj.visibility = hidden;
				}
			}

			function iecompattest() {
				return (document.compatMode && document.compatMode != 'BackCompat') ? document.documentElement : document.body;
			}

			function clearbrowseredge(obj, whichedge) {
				var edgeoffset = 0;

				if (whichedge == 'rightedge') {
					var windowedge = ie4 && !window.opera ? iecompattest().scrollLeft + iecompattest().clientWidth - 15 : window.pageXOffset + window.innerWidth - 15;

					dropmenuobj.contentmeasure = dropmenuobj.offsetWidth;

					if (windowedge - dropmenuobj.x < dropmenuobj.contentmeasure) {
						edgeoffset = dropmenuobj.contentmeasure - obj.offsetWidth;
					}
				} else {
					var topedge = ie4 && !window.opera ? iecompattest().scrollTop : window.pageYOffset;
					var windowedge = ie4 && !window.opera ? iecompattest().scrollTop + iecompattest().clientHeight - 15 : window.pageYOffset + window.innerHeight - 18;

					dropmenuobj.contentmeasure = dropmenuobj.offsetHeight;

					if (windowedge - dropmenuobj.y < dropmenuobj.contentmeasure) { //move up?
						edgeoffset = dropmenuobj.contentmeasure + obj.offsetHeight;

						if ((dropmenuobj.y - topedge) < dropmenuobj.contentmeasure) { //up no good either?
							edgeoffset = dropmenuobj.y + obj.offsetHeight - topedge;
						}
					}
				}

				return edgeoffset;
			}

			function populatemenu(what) {
				if (ie4 || ns6) {
					dropmenuobj.innerHTML = what.join('');
				}
			}

			function dropdownmenu(obj, e, menucontents, menuwidth) {
				if (window.event) {
					event.cancelBubble = true;
				} else if (e.stopPropagation) {
					e.stopPropagation();
				}

				clearhidemenu();
				dropmenuobj = document.getElementById ? document.getElementById('dropmenudiv') : dropmenudiv;
				populatemenu(menucontents);

				if (ie4 || ns6) {
					showhide(dropmenuobj.style, e, 'visible', 'hidden', menuwidth);
					dropmenuobj.x = getposOffset(obj, 'left');
					dropmenuobj.y = getposOffset(obj, 'top');
					dropmenuobj.style.left = dropmenuobj.x - clearbrowseredge(obj, 'rightedge') + 'px';
					dropmenuobj.style.top = dropmenuobj.y - clearbrowseredge(obj, 'bottomedge') + obj.offsetHeight + 'px';
				}

				return clickreturnvalue();
			}

			function clickreturnvalue() {
				if (ie4 || ns6) {
					return false;
				} else {
					return true;
				}
			}

			function contains_ns6(a, b) {
				while (b.parentNode) {
					if ((b = b.parentNode) == a) {
						return true;
					}
				}

				return false;
			}

			function dynamichide(e) {
				if (ie4 && !dropmenuobj.contains(e.toElement)) {
					delayhidemenu();
				} else if (ns6 && e.currentTarget != e.relatedTarget && !contains_ns6(e.currentTarget, e.relatedTarget)) {
					delayhidemenu();
				}
			}

			function hidemenu(e) {
				if (typeof dropmenuobj != 'undefined') {
					if (ie4 || ns6) {
						dropmenuobj.style.visibility = 'hidden';
					}
				}
			}

			function delayhidemenu() {
				if (ie4 || ns6) {
					delayhide = setTimeout("hidemenu()", disappeardelay);
				}
			}

			function clearhidemenu() {
				if (typeof delayhide != 'undefined') {
					clearTimeout(delayhide);
				}
			}

			if (hidemenu_onclick == 'yes') {
				document.onclick = hidemenu;
			}
			// ]]>
