<!-- Class Changer for Buttons

function ClassChange(obj, new_style) { //v2.7 by PVII
  obj.className=new_style;
}


<!-- MACROMEDIA NAVIGATION CODE

function MM_initTimelines() { //v4.0
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(2);
    document.MM_Time["MENUOFF"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "MENUOFF";
    document.MM_Time[0].fps = 10;
    document.MM_Time[0][0] = new String("behavior");
    document.MM_Time[0][0].frame = 5;
    document.MM_Time[0][0].value = "MM_showHideLayers('home','','hide','animalcontrol','','hide','building','','hide','environmental','','hide','complaints','','hide','Calendar','','hide')";
    document.MM_Time[0][1] = new String("behavior");
    document.MM_Time[0][1].frame = 6;
    document.MM_Time[0][1].value = "MM_showHideLayers('future1','','hide','future2','','hide','future3','','hide')";
    document.MM_Time[0].lastFrame = 6;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function P7_Snap() { //v2.5 by PVII
  var x,y,ox,oy,p,tx,a,b,k,d,da,e,el,args=P7_Snap.arguments;
  var bx,byy;a=parseInt(a);
  for (k=0; k<(args.length-3); k+=4)
   if ((g=MM_findObj(args[k]))!=null) {
    el=eval(MM_findObj(args[k+1]));
    a=parseInt(args[k+2]);b=parseInt(args[k+3]);
    x=0;y=0;ox=0;oy=0;p="";tx=1;da="document.all['"+args[k]+"']";
    if(document.getElementById) {
     d="document.getElementsByName('"+args[k]+"')[0]";
     if(!eval(d)) {d="document.getElementById('"+args[k]+"')";if(!eval(d)) {d=da;}}
    }else if(document.all) {d=da;} 
    if (document.all || document.getElementById) {
     while (tx==1) {p+=".offsetParent";
      if(eval(d+p)) {x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
      }else{tx=0;}}
     ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);var tw=x+ox+y+oy;
     if(tw==0 || (navigator.appVersion.indexOf("MSIE 4")>-1 && navigator.appVersion.indexOf("Mac")>-1)) {
      ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);
      }else{var w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;
      a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
      x=document.body.scrollLeft + event.clientX + bx;
      y=document.body.scrollTop + event.clientY;}}
   }else if (document.layers) {x=g.x;y=g.y;
    var q0=document.layers,dd="";
    for(var s=0;s<q0.length;s++) {dd='document.'+q0[s].name;
     if(eval(dd+'.document.'+args[k])) {
      x+=eval(dd+'.left');y+=eval(dd+'.top');break;}}}
   if(el) {e=(document.layers)?el:el.style;
   var xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
   if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)>4){xx+="px";yy+="px";}
   if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
    xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);
    xx+="px";yy+="px";}
   e.left=xx;e.top=yy;}}
}

function P7_autoLayers() { //v1.1 PVII
 var g,b,k,f,args=P7_autoLayers.arguments;
 if(!document.p7setc) {p7c=new Array();document.p7setc=true;}
 for(k=0; k<p7c.length; k++) {
  if((g=MM_findObj(p7c[k]))!=null) {
   b=(document.layers)?g:g.style;b.visibility="hidden";}}
 for(k=0; k<args.length; k++) {
  if((g=MM_findObj(args[k])) != null) {
   b=(document.layers)?g:g.style;b.visibility="visible";f=false;
   for(j=0;j<p7c.length;j++) {
    if(args[k]==p7c[j]) {f=true;}}
  if(!f) {p7c[p7c.length++]=args[k];}}}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_timelinePlay(tmLnName, myID) { //v1.2
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,myID,theObj,firstTime=false;
   if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j]; 
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function MM_timelineStop(tmLnName) { //v1.2
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  if (tmLnName == null)  //stop all
    for (var i=0; i<document.MM_Time.length; i++) document.MM_Time[i].ID = null;
  else document.MM_Time[tmLnName].ID = null; //stop one
}

function MM_timelineGoto(tmLnName, fNew, numGotos) { //v2.0
  //Copyright 1997 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,lastKeyFr,propNum,theObj;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (numGotos != null)
    if (tmLn.gotoCount == null) tmLn.gotoCount = 1;
    else if (tmLn.gotoCount++ >= numGotos) {tmLn.gotoCount=0; return}
  jmpFwd = (fNew > tmLn.curFrame);
  for (i = 0; i < tmLn.length; i++) {
    sprite = (jmpFwd)? tmLn[i] : tmLn[(tmLn.length-1)-i]; //count bkwds if jumping back
    if (sprite.charAt(0) == "s") {
      numKeyFr = sprite.keyFrames.length;
      firstKeyFr = sprite.keyFrames[0];
      lastKeyFr = sprite.keyFrames[numKeyFr - 1];
      if ((jmpFwd && fNew<firstKeyFr) || (!jmpFwd && lastKeyFr<fNew)) continue; //skip if untouchd
      for (keyFrm=1; keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]; keyFrm++);
      for (j=0; j<sprite.values.length; j++) {
        props = sprite.values[j];
        if (numKeyFr == props.length) propNum = keyFrm-1 //keyframes only
        else propNum = Math.min(Math.max(0,fNew-firstKeyFr),props.length-1); //or keep in legal range
        if (sprite.obj != null) {
          if (props.prop2 == null) sprite.obj[props.prop] = props[propNum];
          else        sprite.obj[props.prop2][props.prop] = props[propNum];
      } }
    } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
  }
  tmLn.curFrame = fNew;
  if (tmLn.ID == 0) eval('MM_timelinePlay(tmLnName)');
}

function chooser(district, location, blnChooser) {
var prefix = "";
var suffix = "";
var url = "";
var pattern = new RegExp("");
pattern.compile("/[Jj]obs/");
	if (pattern.test(location.pathname) && (blnChooser == false)){
		prefix = "/jobs/";
		switch(district){
			case 'D1':
				suffix = "Northwest_District/index.htm";
			break;
			case 'D2':
				suffix = "Northcentral_District/index.htm";
			break;
			case 'D3':
				suffix = "Northeast_District/index.htm";
			break;
			case 'D4':
				suffix = "Kansas_City_Area_District/index.htm";
			break;
			case 'D5':
				suffix = "Central_District_and_Headquarters/index.htm";
			break;
			case 'D6':
				suffix = "St_Louis_Area_District/index.htm";
			break;
			case 'D7':
				suffix = "Southwest_District/index.htm";
			break;
			case 'D8':
				suffix = "Springfield_Area_District/index.htm";
			break;
			case 'D9':
				suffix = "Southcentral_District/index.htm";
			break;
			case 'D10':
				suffix = "Southeast_District/index.htm";
			break;
		}
	}
pattern.compile("04map.htm$");
	if (pattern.test(location.pathname) && (blnChooser == false)){
		prefix = "/plansandprojects/stip2000-2004/program/";
		switch(district){
			case 'D1':
				suffix = "District1/Preview.htm";
			break;
			case 'D2':
				suffix = "District2/Preview.htm";
			break;
			case 'D3':
				suffix = "District3/Preview.htm";
			break;
			case 'D4':
				suffix = "District4/Preview.htm";
			break;
			case 'D5':
				suffix = "District5/Preview.htm";
			break;
			case 'D6':
				suffix = "District6/Preview.htm";
			break;
			case 'D7':
				suffix = "District7/Preview.htm";
			break;
			case 'D8':
				suffix = "District8/Preview.htm";
			break;
			case 'D9':
				suffix = "District9/Preview.htm";
			break;
			case 'D10':
				suffix = "District10/Preview.htm";
			break;
		}
	}
	pattern.compile("05map.htm$");
	if (pattern.test(location.pathname) && (blnChooser == false)){
		prefix = "/plansandprojects/stip2001-2005/program/";
		switch(district){
			case 'D1':
				suffix = "District1/District1.htm";
			break;
			case 'D2':
				suffix = "District2/District2.htm";
			break;
			case 'D3':
				suffix = "District3/District3.htm";
			break;
			case 'D4':
				suffix = "District4/District4.htm";
			break;
			case 'D5':
				suffix = "District5/District5.htm";
			break;
			case 'D6':
				suffix = "District6/District6.htm";
			break;
			case 'D7':
				suffix = "District7/District7.htm";
			break;
			case 'D8':
				suffix = "District8/District8.htm";
			break;
			case 'D9':
				suffix = "District9/District9.htm";
			break;
			case 'D10':
				suffix = "District10/District10.htm";
			break;
		}
	}
	pattern.compile("06map.htm$");
	if (pattern.test(location.pathname) && (blnChooser == false)){
		prefix = "/plansandprojects/stip2002-2006/program/";
		switch(district){
			case 'D1':
				suffix = "District1/District1.htm";
			break;
			case 'D2':
				suffix = "District2/District2.htm";
			break;
			case 'D3':
				suffix = "District3/District3.htm";
			break;
			case 'D4':
				suffix = "District4/District4.htm";
			break;
			case 'D5':
				suffix = "District5/District5.htm";
			break;
			case 'D6':
				suffix = "District6/District6.htm";
			break;
			case 'D7':
				suffix = "District7/District7.htm";
			break;
			case 'D8':
				suffix = "District8/District8.htm";
			break;
			case 'D9':
				suffix = "District9/District9.htm";
			break;
			case 'D10':
				suffix = "District10/District10.htm";
			break;
		}
	}
pattern.compile("08map.htm$");
	if (pattern.test(location.pathname) && (blnChooser == false)){
		prefix = "/pdf/plansandprojects/";
		switch(district){
			case 'D1':
				suffix = "D1HwyConstSched.pdf";
			break;
			case 'D2':
				suffix = "D2HwyConstSched.pdf";
			break;
			case 'D3':
				suffix = "D3HwyConstSched.pdf";
			break;
			case 'D4':
				suffix = "D4HwyConstSched.pdf";
			break;
			case 'D5':
				suffix = "D5HwyConstSched.pdf";
			break;
			case 'D6':
				suffix = "D6HwyConstSched.pdf";
			break;
			case 'D7':
				suffix = "D7HwyConstSched.pdf";
			break;
			case 'D8':
				suffix = "D8HwyConstSched.pdf";
			break;
			case 'D9':
				suffix = "D9HwyConstSched.pdf";
			break;
			case 'D10':
				suffix = "D10HwyConstSched.pdf";
			break;
		}
	}

	pattern.compile("/[Gg]eneral|[Ii]ndex|rcchooser|[Tt]est/");
	//This should catch if the chooser method is called from the root of the site
	//or the main index page.
	// MRD 08/23/04
	// Added '/test/' to chooser method for testing purposes... please delete after testing is finished
	if ((pattern.test(location.pathname)) ||	 (location.pathname == '/') || (blnChooser == true)){
		prefix = "/";
		switch(district){
			case 'D1':
				suffix = "northwest/";
			break;
			case 'D2':
				suffix = "northcentral/";
			break;
			case 'D3':
				suffix = "northeast/";
			break;
			case 'D4':
				suffix = "kansascity/";
			break;
			case 'D5':
				suffix = "central/";
			break;
			case 'D6':
				suffix = "stlouis/";
			break;
			case 'D7':
				suffix = "southwest/";
			break;
			case 'D8':
				suffix = "springfield/";
			break;
			case 'D9':
				suffix = "southcentral/";
			break;
			case 'D10':
				suffix = "southeast/";
			break;
		}
	}
    pattern.compile("/[Gg]eneral/modotchooser.htm");
	//This is for a specific page which links to the district news release pages. 
	if (pattern.test(location.pathname)){
		prefix = "/";
		switch(district){
			case 'D1':
				suffix = "northwest/news_and_information/District1News.shtml";
			break;
			case 'D2':
				suffix = "northcentral/news_and_information/District2News.shtml";
			break;
			case 'D3':
				suffix = "northeast/newsandinformation/District3News.shtml";
			break;
			case 'D4':
				suffix = "kansascity/newrelease/District4News.shtml";
			break;
			case 'D5':
				suffix = "central/news_and_information/District5News.shtml";
			break;
			case 'D6':
				suffix = "stlouis/news_and_information/District6News.shtml";
			break;
			case 'D7':
				suffix = "southwest/newsreleases/District7News.shtml";
			break;
			case 'D8':
				suffix = "springfield/news_and_information/District8News.shtml";
			break;
			case 'D9':
				suffix = "southcentral/news_and_information/District9News.shtml";
			break;
			case 'D10':
				suffix = "southeast/news_and_information/District10News.shtml";
			break;
		}
	}

	url = prefix + suffix;
	location.pathname=url;
	return url;
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	preloadImages();
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {

	if (document.images) {
		MapOfDistricts_SM_300x270_01_Northwest_over = newImage("/images/library/MapOfDistricts-SM-300x27-02.gif");
		MapOfDistricts_SM_300x270_01_NorthCentral_over = newImage("/images/library/MapOfDistricts-SM-300x27-03.gif");
		MapOfDistricts_SM_300x270_01_Northeast_over = newImage("/images/library/MapOfDistricts-SM-300x27-04.gif");
		MapOfDistricts_SM_300x270_01_KansasCity_over = newImage("/images/library/MapOfDistricts-SM-300x27-05.gif");
		MapOfDistricts_SM_300x270_01_Central_over = newImage("/images/library/MapOfDistricts-SM-300x27-06.gif");
		MapOfDistricts_SM_300x270_01_StLouis_over = newImage("/images/library/MapOfDistricts-SM-300x27-07.gif");
		MapOfDistricts_SM_300x270_01_Southwest_over = newImage("/images/library/MapOfDistricts-SM-300x27-08.gif");
		MapOfDistricts_SM_300x270_01_SpringfieldArea_over = newImage("/images/library/MapOfDistricts-SM-300x27-09.gif");
		MapOfDistricts_SM_300x270_01_Southcentral_over = newImage("/images/library/MapOfDistricts-SM-300x27-10.gif");
		MapOfDistricts_SM_300x270_01_Southeast_over = newImage("/images/library/MapOfDistricts-SM-300x27-11.gif");
		preloadFlag = true;
	}
}
//This function Hides all of the divs from Old Netscape Browsers
function hideFromNetscape(){
	if (document.getElementById) {
		// this is the way the standards work
		document.getElementById("selectBox").style.display = "block";
	}
	else if (document.all) {
		// this is the way old msie versions work
		document.all["selectBox"].style.display = "block";
	}
}
	function mapWindow(theURL) {
		//var webParams = document.location.search;
		//closeWindows();
		//theURL = "http://168.166.124.16/Website/modot/viewer.htm";
		//var scrWidth=670;
		//var scrHeight=500;
		//parent.document.mapWin = window.open(theURL,"mapWindow","width="+scrWidth+",height="+scrHeight+",menubar=no,toolbar=no,location=no,scrollbars=yes,status=no,resizable=yes,top=0,left=0");
		//parent.document.mapWin.focus();
		//var theURL = "http://168.166.124.16/Website/modot/";
		var scrWidth = screen.width;
		var scrHeight = screen.height;
		var dspWidth = scrWidth*0.95;
		var dspHeight = (scrHeight * 0.85);
		var option="width="+dspWidth+",height="+dspHeight+",menubar=yes,toolbar=no,location=no, scrollbars=yes,status=yes,resizable=yes,top=0,left=0"
		parent.document.mapWin = window.open(theURL,"mapWindow",option);
		parent.document.mapWin.focus();

	}