
/***********************************************
* 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
***********************************************/
//Lists start here

//Contents for Online Services

var services =new Array()
services[0]='<a href="http://iwrorlando.cityoforlando.net/WebLiens/LienSearch.aspx">Access Lien</a>'
services[1]='<a href="http://www.cityoforlando.net/gis/locator.asp">Address Locator</a>'
services[2]='<a href="http://www.technologysurplusdepot.com/auctions.aspx?cons=7258">Auctions - Misc.</a>'
services[3]='<a href="http://www.technologysurplusdepot.com/auctions.aspx?cons=14734">Auctions - Vehicles</a>'
//services[3]='<a href="http://www.cityoforlando.net/public_works/benchmarks/BenchDisplay.aspx">Benchmarks</a>'
services[4]='<a href="http://www.crimereports.com/map/index/?search=100%20S.%20Hughey%20Ave.+Orlando+FL&agencyzoomlevel=">Crime Reports</a>'
services[5]='<a href="http://www.cityoforlando.net/sigma/">Jobs</a>'
services[6]='<a href="http://198.190.151.7/tm_bin/tmw_cmd.pl?tmw_cmd=QueryForm&tmw_query=Parcel">Land Parcel Search</a>'
services[7]='<a href="http://www.cityoforlando.net/admin/mbe/certification.html">MBE/WBE Certification</a>'
services[8]='<a href="http://www.cityoforlando.net/orlandostops">Orlando STOPS</a>'
services[9]='<a href="http://www.cityoforlando.net/police/reporting/report_main.htm">OPD Online Reporting</a>'
services[10]='<a href="http://www.cityoforlando.net/transportation/parking/pages/parking_citations.htm">Parking Tickets</a>'
services[11]='<a href="http://www.cityoforlando.net/permits/userhome.htm">Permits</a>'
services[12]='<a href="http://online.activecommunities.com/cityoforlando/">Recreation Registration</a>'
services[13]='<a href="mailto:SWcustomersvc@cityoforlando.net">Solid Waste Customer Service</a>'
services[14]='<a>..................................</a>'
services[15]='<a href="http://www.cityoforlando.net/services.htm">More...</a>'

//Contents for Departments

var depts=new Array()
depts[0]='<a href="http://www.cityoforlando.net/elected/mayor/index.htm">Mayor&#39s Office</a>'
depts[1]='<a href="http://www.cityoforlando.net/elected/council/index.htm">City Commissioners</a>'
depts[2]='<a href="http://www.cityoforlando.net/admin/cao/index.htm">Chief Administrative Office</a>'
depts[3]='<a href="http://www.cityoforlando.net/elected/mayor/cityattorney.htm">City Attorney&#39s Office</a>'
depts[4]='<a href="http://www.cityoforlando.net/admin/cfo/index.htm">Business & Financial Services</a>'
depts[5]='<a href="http://www.cityoforlando.net/cityclerk/index.htm">City Clerk</a>'
depts[6]='<a href="http://www.cityoforlando.net/executive/communications/index.htm">Communications & Neighborhood Relations</a>'
depts[7]='<a href="http://www.cityoforlando.net/executive/nca/index.htm">Community Affairs</a>'
depts[8]='<a href="http://www.cityoforlando.net/economic/index.htm">Economic Development</a>'
depts[9]='<a href="http://www.cityoforlando.net/fpr/net/index.aspx">Families, Parks & Recreation</a>'
depts[10]='<a href="http://www.cityoforlando.net/fire/index.htm">Fire</a>'
depts[11]='<a href="http://www.cityoforlando.net/housing">Housing & Community Development</a>'
depts[12]='<a href="http://www.orlandovenues.net">Orlando Venues</a>'
depts[13]='<a href="http://www.cityoforlando.net/police">Police</a>'
depts[14]='<a href="http://www.cityoforlando.net/public_works">Public Works</a>'
depts[15]='<a>..................................</a>'
depts[16]='<a href="http://www.cityoforlando.net/depts.htm">More...</a>'

//Contents for Publications and Reports

var pubs=new Array()
pubs[0]='<a href="http://www.cityoforlando.net/thecitybeautiful/email/current.html">City News</a>'
pubs[1]='<a href="http://www.cityoforlando.net/cityclerk/citycouncil/ag_min.html">City Agendas and Minutes</a>'
pubs[2]='<a href="http://www.municode.com/resources/gateway.asp?sid=9&pid=13349">City Code</a>'
pubs[3]='<a href="http://www.cityoforlando.net/executive/neighborhoods/pdf/ResourceGuide2011.pdf">City Resource Guide</a>'
pubs[4]='<a href="http://www.cityoforlando.net/admin/omb/budget1112/FY1112Budget.pdf">2011/2012 Budget</a>'
pubs[5]='<a href="http://www.cityoforlando.net/elected/safety/presentations.htm">Public Safety </a>'
pubs[6]='<a href="http://www.cityoforlando.net/elected/venues/presentations.htm">Community Venues</a>'
pubs[7]='<a href="http://www.cityoforlando.net/elected/parramore/pdf/Pathways_Newsletter.pdf">Pathways for Parramore Newsletter</a>'
pubs[8]='<a href="http://www.cityoforlando.net/elected/venues/pdf/blueprint_book.pdf">Blueprint</a>'
pubs[9]='<a>..................................</a>'
pubs[10]='<a href="http://www.cityoforlando.net/reports.htm">More...</a>'

//Contents for Top 10 - edit here 

var top10 =new Array()
top10[0]='<a href="http://www.cityoforlando.net/sigma">Job Search</a>'
top10[1]='<a href="http://www.cityoforlando.net/police">Orlando Police Department</a>'
top10[2]='<a href="http://www.cityoforlando.net/permits/default.htm">Permitting Services</a>'
top10[3]='<a href="http://www.cityoforlando.net/police/misc/recruiting.htm">Police Recruiting</a>'
top10[4]='<a href="http://www.cityoforlando.net/esp">City of Orlando en Espa&#241ol</a>'
top10[5]='<a href="http://www.cityoforlando.net/police/activecalls/index.htm">Police Active Calls</a>'
top10[6]='<a href="http://www.cityoforlando.net/thecitybeautiful/email/current.html">City News</a>'
top10[7]='<a href="http://www.cityoforlando.net/fire">Orlando Fire Department</a>'
top10[8]='<a href="http://www.cityoforlando.net/fpr/Html/parks.asp">Parks</a>'
top10[9]='<a href="http://www.cityoforlando.net/elected/mayor/index.htm">Mayor Buddy Dyer</a>'

//End of lists 

		
/////No further editting needed - ESPECIALLY BEYOND THIS POINT!!!	

	
var menuwidth='151px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=300  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

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="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
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


