dropMenus = new Array('about','community','police','utilities','development','recCenter');

function dropShow(menu) {
  if (document.all) {
    document.all.menus.style.visibility = 'visible';
    document.all[menu+'Drop'].style.visibility = 'visible';
  } else if (document.getElementById) {
    document.getElementById('menus').style.visibility = 'visible';
    document.getElementById(menu+'Drop').style.visibility = 'visible';
  }
  dropHide(menu);
}

function dropHide(openMenu) {
  for (n=0; n<dropMenus.length; n++) {
    if (dropMenus[n] != openMenu) {
      if (document.all) {
        document.all[dropMenus[n]+'Drop'].style.visibility = 'hidden';
        document.all.menus.style.visibility = 'hidden';
      } else if (document.getElementById) {
        document.getElementById(dropMenus[n]+'Drop').style.visibility = 'hidden';
        document.getElementById('menus').style.visibility = 'hidden';
      }
    }
  }
}

function rollOver(button) {
  if (document.all) {
    document.all[button+'Btn'].className = 'navOver';
  } else if (document.getElementById) {
    document.getElementById(button+'Btn').className = 'navOver';
  }
}

function rollOut(button) {
  if (document.all) {
    document.all[button+'Btn'].className = 'navOut';
  } else if (document.getElementById) {
    document.getElementById(button+'Btn').className = 'navOut';
  }
}

function presentFlash(flashSource, bgColor, width, height, wmode, flashVars) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ width +'" height="'+ height +'" id="'+ flashSource +'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="movie" value="/images/'+ flashSource +'.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="'+ bgColor +'">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="wmode" value="'+ wmode +'">');
	document.write('<param name="flashvars" value="'+ flashVars +'">');
	document.write('<embed src="/images/'+ flashSource +'.swf" flashvars="'+ flashVars +'" menu="false" wmode="'+ wmode +'" quality="high" bgcolor="'+ bgColor +'" width="'+ width +'" height="'+ height +'" name="'+ flashSource +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</object>');
}