var menuwidth='165px'
var menubgcolor='#D6D6CE'
var disappeardelay=250
//var horizontaloffset=2
var enableanchorlink="yes"
var hidemenu_onclick="yes"

// Menu 1

var menu1=new Array()
menu1[0]='<a href="http://secure.georgetowncountysc.org:8080/EGSV2GTown/Disclaimer.htm" target="_blank">E-Tax Payments</a>'
menu1[1]='<a href="http://secure.georgetowncountysc.org:8080/EGSV2GTown/Disclaimer.htm" target="_blank">Water and Sewer Assessment Payments</a>'
menu1[2]='<a href="http://secure.georgetowncountysc.org:8080/EGSV2GTown" target="_blank">Vehicle Tax Inquiry and Payments</a>'
//menu1[3]='<a href="http://secure.georgetowncountysc.org/CP" target="_blank">Magistrate/Traffic Court Payments</a>'
menu1[3]='<a href="http://secure.georgetowncountysc.org:8080/PnR" target="_blank">Parks & Recreation Schedule/Registration</a>'
menu1[4]='<a href="http://secure.georgetowncountysc.org:8080/EGSV2GTown/Disclaimer_RP.jsp" target="_blank">Real Property</a>'
menu1[5]='<a href="http://secure.georgetowncountysc.org:8080/EGSV2GTown/Disclaimer_CS.jsp" target="_blank">Comparable Sales</a>' 
menu1[6]='<a href="http://secure.georgetowncountysc.org:8080/EGSV2GTown/Disclaimer_PC.jsp" target="_blank">Property Cards</a>'
menu1[7]='<a href="http://secure.georgetowncountysc.org:8080/atyourrequest/" target="_blank">At Your Request</a>'
menu1[8]='<a href="http://secure.georgetowncountysc.org:8080/FalseAlarm/Home.do" target="_blank">Alarm Registrations</a>'

var menu2=new Array()
menu2[0]='<a href="http://www.georgetowncountysc.org/docs/aacpressrelease.pdf" target="_blank">All American County Press Release</a>'
menu2[1]='<a href="http://www.georgetowncountysc.org/docs/discprecprog.pdf" target="_blank">Prescription Drug Discount Card</a>'

var menu3=new Array()
menu3[0]='<a href="http://www.georgetowncountysc.org/administrator/default.html" title="County Administrator">Administrator</a>'
menu3[1]='<a href="http://www.georgetowncountysc.org/housing/default.html" title="Fair Housing Info">Fair Housing Information</a>'
menu3[2]='<a href="http://www.georgetowncountysc.org/finance/default.html" title="Finance">Finance</a>'
menu3[3]='<a href="http://www.georgetowncountysc.org/grants/default.html" title="Grants Administration">Grants Administration</a>'
menu3[4]='<a href="http://www.georgetowncountysc.org/hr/default.html" title="Human Resources">Human Resources</a>'
menu3[5]='<a href="http://www.georgetowncountysc.org/mis/default.html" title="Management Information Services">Management Information Services</a>'
menu3[6]='<a href="http://www.georgetowncountysc.org/procurement/default.html" title="County Procurement Department">Purchasing</a>'
menu3[7]='<a href="http://www.georgetowncountysc.org/risk/default.html" title="Risk Management">Risk Management</a>'
menu3[8]='<a href="http://www.georgetowncountysc.org/veteransaffairs/default.html" title="Vetrans Affairs">Veterans Affairs</a>'

var menu4=new Array()
menu4[0]='<a href="http://www.georgetowncountysc.org/newbusiness/default.html" title="New Business">New Business</a>'
menu4[1]='<a href="http://www.seegeorgetown.com" title="Economic Development" target="_blank">Economic Development</a>'
menu4[2]='<a href="http://www.georgetowncountysc.org/finance/atax.html#hospitalitytax" title="Hospitality Tax">Local Accommodations -<br>Hospitality Tax Reporting</a>'
menu4[3]='<a href="http://secure.georgetowncountysc.org:8080/FalseAlarm/Home.do" target="_blank">Alarm Registrations</a>'

var menu5=new Array()
menu5[0]='<a href="http://www.georgetowncountysc.org/courts/default.html" title="Clerk of Courts">Clerk of Courts</a>'
menu5[1]='<a href="http://www.georgetowncountysc.org/commonpleas/default.html" title="Common Pleas Court">Common Pleas Court</a>'
menu5[2]='<a href="http://www.georgetowncountysc.org/familycourt/default.html" title="Family Court">Family Court</a>'
menu5[3]='<a href="http://www.georgetowncountysc.org/gensessions/default.html" title="General Sessions Court">General Sessions Court</a>'
menu5[4]='<a href="http://www.georgetowncountysc.org/jury/default.html" title="Jury Duty">Jury Duty</a>'
menu5[5]='<a href="http://www.georgetowncountysc.org/magistrate/default.html" title="County Magistrates - Traffic Court">Magistrates - Traffic Court</a>'
menu5[6]='<a href="http://www.georgetowncountysc.org/mastersequity/default.html" title="Master in Equity">Master in Equity</a>'
menu5[7]='<a href="http://www.georgetowncountysc.org/probate/default.html" title="Probate Court">Probate Court</a>'
menu5[8]='<a href="http://www.georgetowncountysc.org/solicitor/default.html" title="County Solicitor">Solicitor</a>'

var menu6=new Array()
menu6[0]='<a href="http://www.georgetowncountysc.org/council/default.html" title="County Council News and Information">Council News and Information</a>'
menu6[1]='<a href="http://www.georgetowncountysc.org/officials/countycouncil.html" title="Meet Council Members">Meet Council Members</a>'
menu6[2]='<a href="http://docs.georgetowncountysc.org/agendamaestro/" target="_blank" "title="Agendas and Minutes">Agendas and Minutes</a>'

var menu7=new Array()
menu7[0]='<a href="http://www.georgetowncountysc.org/building/default.html" title="Building Department and Permits">Building Department and Permits</a>'
menu7[1]='<a href="http://www.georgetowncountysc.org/gis/default.html" title="Geological Inforamtion Services">GIS/Mapping</a>'
menu7[2]='<a href="http://www.georgetowncountysc.org/planning/default.html" title="Planning">Planning </a>'
menu7[3]='<a href="http://www.georgetowncountysc.org/deeds/default.html" title="Register of Deeds">Register of Deeds</a>'
menu7[4]='<a href="http://www.georgetowncountysc.org/zoning/default.html"  title="Zoning Department">Zoning</a>'
menu7[5]='<a href="http://secure.georgetowncountysc.org:8080/FalseAlarm/Home.do" target="_blank">Alarm Registrations</a>'

var menu8=new Array()
menu8[0]='<a href="http://www.georgetowncountysc.org/animalcontrol/default.html" title="Animal Control">Animal Control</a>'
menu8[1]='<a href="http://www.georgetowncountysc.org/communications/default.html" title="Communications and 911 Services">Communications/911</a>'
menu8[2]='<a href="http://www.georgetowncountysc.org/coroner/default.html" title="County Coroners Office">Coroner</a>'
menu8[3]='<a href="http://www.georgetowncountysc.org/detention/default.html" title="County Detention Center">Detention Center</a>'
menu8[4]='<a href="http://www.georgetowncountysc.org/emergencyprep/default.html" title="Emergency Management">Emergency Management</a>'
menu8[5]='<a href="http://www.georgetowncountysc.org/emergencysvcs/default.html" title="Emergency Services">Emergency Services</a>'
menu8[6]='<a href="http://www.georgetowncountysc.org/georgetownfire/default.html" title="County Fire/EMS">County Fire/EMS</a>'
menu8[7]='<a href="http://www.georgetowncountysc.org/midwayfire/default.html" title="Midway Fire Rescue">Midway Fire Rescue</a>'
menu8[8]='<a href="http://www.georgetowncountysc.org/sheriff/default.html" title="Georgetown County Sheriff\'s Department">Sheriff</a>'
menu8[9]='<a href="http://secure.georgetowncountysc.org:8080/FalseAlarm/Home.do" target="_blank">Alarm Registrations</a>'

var menu9=new Array()
menu9[0]='<a href="http://www.georgetowncountysc.org/publicservices/default.html"  title="Public Services Administration">Public Services Administration</a>'
menu9[1]='<a href="http://www.georgetowncountysc.org/plan-capprojects/default.html"  title="Capital Projects">Capital Projects</a>'
menu9[2]='<a href="http://www.georgetowncountysc.org/engineeringservices/default.html"  title="Engineering Services">Storm Water</a>'
menu9[3]='<a href="http://www.georgetowncountysc.org/facilitysvcs/default.html"  title="Facility Services">Facility Services</a>'
menu9[4]='<a href="http://www.georgetowncountysc.org/airport/default.html"  title="Airports">Georgetown County Airports</a>'
menu9[5]='<a href="http://www.georgetowncountysc.org/mosquitocontrol/default.html" title="Mosquito Control">Mosquito Control</a>'
menu9[6]='<a href="http://www.georgetowncountysc.org/recycling/default.html" title="Recycling/Collections">Recycling and Collections</a>'
menu9[7]='<a href="http://www.georgetowncountysc.org/roads/default.html" title="Roads and Streets">Roads/Streets & Drainage</a>'
menu9[8]='<a href="http://www.georgetowncountysc.org/solidwaste/default.html" title="Solid Waste and Landfill">Solid Waste/Landfill</a>'

var menu10=new Array()
menu10[0]='<a href="http://www.georgetowncountysc.org/library/default.html" title="Georgetown County Libraries">Georgetown County Library</a>'
menu10[1]='<a href="http://www.gcdigital.org/" target="_blank" title="Georgetown County Digital Library">Georgetown County Digital Library</a>'

var menu11=new Array()
menu11[1]='<a href="http://www.georgetowncountysc.org/assessor/default.html" title="Tax Assessor">Assessor</a>'
menu11[2]='<a href="http://www.georgetowncountysc.org/auditor/default.html" title="County Auditor">Auditor</a>'
menu11[3]='<a href="http://www.georgetowncountysc.org/taxcollector/default.html" title="County Tax Collector">Tax Collector</a>'
menu11[4]='<a href="http://www.georgetowncountysc.org/treasurer/default.html" title="Treasurer">Treasurer</a>'
menu11[5]='<a href="http://www.georgetowncountysc.org/finance/default.html#hospitalitytax" title="Hospitality Tax">Hospitality Tax</a>'

var menu12=new Array()
menu12[1]='<a href="http://www.georgetowncountysc.org/voterreg/default.html" title="Voter Registration">Voter Information</a>'

var menu13=new Array()
menu13[0]='<a href="http://www.georgetowncountysc.org/volunteer/default.html" title="Volunteer Opportunities">Volunteer Opportunities</a>'
menu13[1]='<a href="http://www.georgetowncountysc.org/county/links.html" title="Community Links">Community Links</a>'
menu13[2]='<a href="http://www.georgetowncountysc.org/county/legislative.html" title="County Legislative Delegation">County Legislative Delegation</a>'
menu13[3]='<a href="http://www.sctraffic.org" target="_blank" title="SC Dept of Transportation">SC Dept of Transportation</a>'
menu13[4]='<a href="http://www.gcsd.k12.sc.us/" title="Education" target="_blank">Education</a>'
menu13[5]='<a href="http://www.georgetowncountysc.org/county/faqs.html" title="Frequently Asked Questions">Frequently Asked Questions</a>'
menu13[6]='<a href="#" onclick="openMap(); return false;" title="Maps and Directions">Maps &amp; Directions</a>'
menu13[7]='<a href="http://www.visitgeorgetowncountysc.com" target="_blank" title="New Resident Information">New Resident Information</a>'
menu13[8]='<a href="http://www.visitgeorgetowncountysc.com" title="Visitors Information" target="_blank">Visitors Information</a>'
menu13[9]='<a href="http://www.srh.noaa.gov/data/forecasts/SCZ046.php?warncounty=SCC043&city=Georgetown" title="Weather" target="_blank">Weather</a>'


var menu14=new Array()
menu14[0]='<div class="divider">County Council</div>'
menu14[1]='<a href="http://www.georgetowncountysc.org/officials/countycouncil.html#joakley" title="Jerry Oakley">Jerry Oakley -  District 1</a>'
menu14[2]='<a href="http://www.georgetowncountysc.org/officials/countycouncil.html#rcharlton" title="Ron Charlton">Ron Charlton - District 2</a>'
menu14[3]='<a href="http://www.georgetowncountysc.org/officials/countycouncil.html#leonamyersmiller" title="Leona Myers-Miller">Leona Myers-Miller - District 3</a>'
menu14[4]='<a href="http://www.georgetowncountysc.org/officials/countycouncil.html#lilliejohnson" title="Lillie Johnson">Lillie Johnson - District 4</a>'
menu14[5]='<a href="http://www.georgetowncountysc.org/officials/countycouncil.html#abeard" title="Austin Beard">Austin Beard – District 5</a>'
menu14[6]='<a href="http://www.georgetowncountysc.org/officials/countycouncil.html#banderson" title="Bob Anderson">Bob Anderson - District 6</a>'
menu14[7]='<a href="http://www.georgetowncountysc.org/officials/countycouncil.html#jmorant" title="Johnny Morant">Johnny Morant - District 7</a>'
menu14[8]='<div class="divider">Public Safety Services</div>'
menu14[9]='<a href="http://www.georgetowncountysc.org/officials/publicsafety.html#lcribb" title="Lane Cribb">A. Lane Cribb - County Sheriff</a>'
menu14[10]='<a href="http://www.georgetowncountysc.org/officials/publicsafety.html#kjohnson" title="Kenneth M. Johnson">Kenneth M. Johnson - Coroner</a>'
menu14[11]='<div class="divider">Court Services</div>'
menu14[12]='<a href="http://www.georgetowncountysc.org/officials/courtservices.html#wmaring" title="Waldo A. Maring">Waldo A. Maring - Probate Judge</a>' 
menu14[13]='<a href="http://www.georgetowncountysc.org/officials/courtservices.html#awhite" title="Alma Y. White">Alma Y. White - Clerk of Court</a>'  
menu14[14]='<div class="divider">Tax Services</div>'
menu14[15]='<a href="http://www.georgetowncountysc.org/officials/taxservices.html#lmock" title="Linda Mock">Linda Mock - County Auditor</a>'
menu14[16]='<a href="http://www.georgetowncountysc.org/officials/taxservices.html#lwashington)" title="Loretta D. Washington">Loretta D. Washington - County Treasurer</a>'  

var menu15=new Array()
menu15[0]='<a href="http://www.georgetowncountysc.org/agingservices/default.html"  title="Bureau of Aging Services">Bureau of Aging Services</a>'
menu15[1]='<a href="http://www.georgetowncountysc.org/parks/default.html" title="Parks and Recreation">Parks & Recreation</a>'

var menu16=new Array()
menu16[0]='<a href="http://www.georgetowncountysc.org/procurement/default.html"  title="Purchasing">Purchasing</a>'
menu16[1]='<a href="http://www.georgetowncountysc.org/procurement/bids.html" title="Current Bids and & Specifications">Current Bids and & Specifications</a>'

/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

// var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
// var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting 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
}
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 // change to -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, hzoffset, vtoffset){
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")+hzoffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+vtoffset+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if ((ie4||ns6) && !enableanchorlink) 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

function openwin(d,w,h) {
tx = (screen.width - w) / 2;
ty = (screen.height - h)/ 2;

	 linkWindow = window.open(d,"linkwin","width="+w+",height="+h+",top="+ty+",left="+tx+",titlebar=0,resizable=1,status=0,menubar=0,scrollbars=1,fullscreen=0");
	 linkWindow.focus() 
}

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 soon () {
alert ('Coming Soon!');
}
var nWindow = 0
function pwin(d,w,h,s,p) {
// p position, s = scrollbars
// 1 = top left, 2 = top right, 3 = bottom left, 4 = bottom right, 0 = center
if (nWindow) {
if(!nWindow.closed) nWindow.close();
  }
if (p == 1) {
tx = 10; 
ty = 10;
}
else
if (p == 2) {
tx = (screen.width - (w+10));
ty = 0;
}
else
if (p == 3) {
tx = 10;
ty = (screen.height - (h+65));
}
else
if (p == 4) {
tx = tx = (screen.width - (w+10));
ty = (screen.height - (h+65));
}
else {
tx = (screen.width - w) / 2;
ty = (screen.height - h) / 2;
}
	 nWindow = window.open(d,"popup","width="+w+",height="+h+",top="+ty+",left="+tx+",titlebar=0,resizable=1,status=0,menubar=0,scrollbars="+s+",fullscreen=0");
	 nWindow.focus() 
}
function openMap() { 
var mapWindow = 0
d = "http://www.georgetowncountysc.org/map.html";
w = 895;
h = 680;
if (mapWindow) {
if(!mapWindow.closed) mapWindow.close();
  }
tx = (screen.width - w) / 2;
ty = (screen.height - h) / 2;
s = "yes";
mapWindow = window.open(d,"mapwin","width="+w+",height="+h+",top="+ty+",left="+tx+",menubar=no,toolbar=no,location=no,status=no, resizable=yes,titlebar=no,scrollbars="+s+"");
//history.go(-1);
mapWindow.focus() ;
}

