menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
var agt = navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_gecko = (agt.indexOf('gecko') != -1);
var is_opera = (agt.indexOf('opera') != -1);
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie3 = (is_ie && (is_major < 4));
var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
var is_ie4up = (is_ie && (is_major >= 4));
var is_ie5up = (is_ie && !is_ie3 && !is_ie4);
var is_win2k = ((agt.indexOf("windows nt 5.0")!=-1) || (agt.indexOf("windows 2000")!=-1));
var is_winxp = ((agt.indexOf("windows nt 5.1")!=-1) || (agt.indexOf("windows xp")!=-1));
var is_java = window.navigator.javaEnabled()

var today = new Date();
var shortMonth = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
var today = today.getDate()+"-"+shortMonth[today.getMonth()]+"-"+today.getYear();

function replace(string,text,by) {
    // Replaces text with by in string
    var i = string.indexOf(text), newstr = '';
    if ((!i) || (i == -1))
        return string;
    newstr += string.substring(0,i) + by;
    if (i+text.length < string.length)
        newstr += replace(string.substring(i+text.length,string.length),text,by);
    return newstr;
}

var passed = replace(replace(location.search.substring(1),"+"," "),"=","&");

function split(string,text) {
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return;
    var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return;
    if (i == -1) {
        splitArray[splitIndex++] = string;
        return;
    }
    splitArray[splitIndex++] = string.substring(0,i);
    if (i+txtLength < strLength)
        split(string.substring(i+txtLength,strLength),text);
    return;
}

function split(string,text) {
    splitArray = string.split(text);
    splitIndex = splitArray.length;
}

var splitIndex = 0, splitArray = new Object();

split(passed,'&');

for (var i=0; i < splitIndex; i=i+2) {
    if (splitArray[i] == 'SearchText')
        document.SearchForm.SearchText.value = unescape(splitArray[i+1]);
}

timegap=500 
followspeed=5 
followrate=20 
suboffset_top=6; suboffset_left=12; effect = "fade(duration=0.3);Shadow(color='#777777', Direction=135, Strength=5)"
function openpop(url,popconfig)
{
winLeft=(screen.width-800)/4;
if (url.search(".pdf")!=-1||popconfig=="pdf"){
pop_pdf=window.open(url.replace(/ /g,""), "pop_pdf", config="scrollbars=yes,resizable=yes,toolbar=no,location=no,left="+winLeft+",top=20,height=550,width=750,status=yes,menubar=yes,");
pop_pdf.focus();
}else if (popconfig=="htm"){
pop_htm=window.open(url.replace(/ /g,""), "pop_htm", config="scrollbars=yes,resizable=yes,toolbar=no,location=yes,left="+winLeft+",top=20,height=550,width=750,status=yes,menubar=yes,");
pop_htm.focus();
}else if (popconfig=="scrollmap"){
if (screen.width<1000){w=screen.width-50}else{w=950}
if (screen.height<740){h=screen.height-80}else{h=680}
winLeft=(screen.width-w)/2;
pop_map1=window.open(url, "pop_map1", config="scrollbars=yes,resizable=yes,toolbar=no,location=no,left="+winLeft+",top=20,height="+h+",width="+w+",status=no,menubar=no,");
pop_map1.focus();
}else if (popconfig=="map"){
pop_map2=window.open(url, "pop_map2", config="scrollbars=no,resizable=no,toolbar=no,location=no,left="+winLeft+",top=20,height=600,width=800,status=no,menubar=no,");
pop_map2.focus();
}else{
pop_custom=window.open(url, "pop_custom", config=popconfig);
pop_custom.focus();
}
}
function maxLength(obj,i)
{if (obj.value.length >= i) {obj.value = obj.value.slice(0,i)}}
style1=["FFFFFF","003D6E","000000","F8E3A5","999999",11,"normal","normal","Arial,Verdana,Helvetica,Sans Serif",3,"/images/arrow_nav.gif",,"66C6FF","003D6E",,,,,,]
style_h1=["FFFFFF","E0AD12","000000","F8E3A5","FFFFFF",11,"bold","bold","Arial,Verdana,Helvetica,Sans Serif",3,,,"66C6FF","003D6E",,,,,,]
addmenu(menu=["mainmenu1",72,,,0,"left",style_h1,1,"center",,,1,,,,,,,,,,
,"&nbsp;&nbsp;Your&nbsp;Council&nbsp;&nbsp;","show-menu=yourcouncil","/yourcouncil/","",0
,"&nbsp;&nbsp;Services&nbsp;&nbsp;","show-menu=services","/services/","",0
,"&nbsp;&nbsp;Forms&nbsp;&nbsp;","show-menu=forms","/forms/","",0
,"&nbsp;&nbsp;Fees&nbsp;&nbsp;","show-menu=fees","/fees/","",0
,"&nbsp;&nbsp;Tenders&nbsp;&nbsp;","/contacts/tenders_contact.asp",,,0
,"&nbsp;&nbsp;Payments&nbsp;&nbsp;","show-menu=payments","/payments/","",0
,"&nbsp;&nbsp;Community&nbsp;Info&nbsp;&nbsp;","show-menu=community","/community/","",0
,"&nbsp;&nbsp;About&nbsp;Townsville&nbsp;&nbsp;","show-menu=about","/about/","",0
])
addmenu(menu=["yourcouncil",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"City Update","/yourcouncil/cityupdate.asp",,,1
,"Have Your Say","/yourcouncil/have_your_say/",,,1
,"People","show-menu=people","/yourcouncil/people/","",1
,"Committees","show-menu=committees","/yourcouncil/committees/","",1
,"Council and Committee Meetings","/yourcouncil/meetings.asp",,,1
,"Local Laws","/yourcouncil/local_laws.asp",,,1
,"Statement of Affairs","/yourcouncil/statement.asp",,,1
,"Documents Held","/yourcouncil/documents.asp",,,1
,"Available Literature","/yourcouncil/literature.asp",,,1
,"Access to Documents","/yourcouncil/access.asp",,,1
])
addmenu(menu=["community",,,160,1,"",style1,,,effect,,,,,,,,,,,,
,"Emergency&nbsp;Information","show-menu=emergency","/community/emergency/","",1
,"Community Information Centre","/community/cic/",,,1
,"Events Calendar","/calendar/",,,1
,"Community Directory","/community/cic/dir_search.asp",,,1
,"Local Web Directory","/webdir/",,,1
,"Accessing Townsville","show-menu=accesstsv","/community/accesstsv/","",1
,"National Sporting Teams","/community/sports.asp",,,1
,"Arts and Culture","show-menu=artsculture","/community/artsculture.asp","",1
,"Townsville Markets","/community/markets/",,,1
])
addmenu(menu=["emergency",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Counter Disaster Plan","/community/emergency/cntr_disaster/",,,1
,"Living with Cyclones","/community/emergency/cyclones.asp",,,1
,"SES","/community/emergency/ses.asp",,,1
,"Storm Surge Action Guide","/community/emergency/surge/",,,1
,"1990 Flood Map","javascript:openpop(\"/community/emergency/1990_floodmap.pdf\")",,,1
])
addmenu(menu=["services",,,150,1,"",style1,,,effect,,,,,,,,,,,,
,"A to Z of Services","/services/azservices.asp",,,1
,"Citiwaste","show-menu=citiwaste","/services/citiwaste/","",1
,"Citiwater","show-menu=citiwater","/services/citiwater/","",1
,"Citiworks","show-menu=citiworks","/services/citiworks/","",1
,"Community Development","show-menu=commdevt","/services/commdevt/","",1
,"Community Services","show-menu=commserv","/services/commserv/","",1
,"Environmental Health","show-menu=health","javascript:openpop(\'http://www.environmentalhealthtownsville.com.au/index.php?num=0\'\,\'htm\')","",1
,"Environmental Management","show-menu=envmgmt","/services/envmgmt/","",1
,"Infrastructure Development","show-menu=infradevt","/services/infradevt/","",1
,"Land Information","show-menu=landinfo","/services/landinfo/","",1
,"Libraries","/services/libraries/",,,1
,"Parks Services","show-menu=parks","/services/parks/","",1
,"Planning and Development","show-menu=plandevt","/services/plandevt/","",1
])
addmenu(menu=["about",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Townsville City Guide","javascript:openpop(\"/about/TCC_city map.pdf\")",,,1
,"Virtual Tour","/about/vtours/",,,1
,"Sister Cities","/about/sister_cities.asp",,,1
,"City Safe","show-menu=citysafe","/about/citysafe/","",1
,"Social Atlas","/about/atlas/",,,1
,"Natural Assets Database","javascript:openpop(\"/nad/\"\,\"scrollbars=yes,toolbar=yes,menubar=yes,resizable=yes,location=no,height=580,width=770\")",,,1
,"Townsville\'s Heritage","/about/heritage/",,,1
,"The Strand","show-menu=strand","/about/strand/","",1
,"Tourist Information","javascript:openpop(\"http://www.townsvilleonline.com.au/pages/index.cfm?MenuCategory=Tourism\"\,\"htm\")",,,1
,"Business Development","javascript:openpop(\"http://www.townsvilleonline.com.au/pages/index.cfm?MenuCategory=EconomicDevelopment\"\,\"htm\")",,,1
])
addmenu(menu=["fees",,,180,1,"",style1,,,effect,,,,,,,,,,,,
,"Citiwaste","javascript:openpop(\"/fees/Citiwaste_fees.pdf\")",,,1
,"Citiwater","javascript:openpop(\"/fees/Citiwater_fees.pdf\")",,,1
,"Civic Theatre","javascript:openpop(\"/fees/CivicTheatre_fees.pdf\")",,,1
,"Corporate Services","javascript:openpop(\"/fees/Corporate_fees.pdf\")",,,1
,"Environmental Services","javascript:openpop(\"/fees/Environmental_fees.pdf\")",,,1
,"Land Information","javascript:openpop(\"/fees/LandInfo_fees.pdf\")",,,1
,"Parking","javascript:openpop(\"/fees/Parking_fees.pdf\")",,,1
,"Parks","javascript:openpop(\"/fees/Parks_fees.pdf\")",,,1
,"Perc Tucker Regional Gallery","javascript:openpop(\"/fees/PercTucker_fees.pdf\")",,,1
,"Planning and Development","javascript:openpop(\"/fees/PlanningDevt_fees.pdf\")",,,1
,"Rates","javascript:openpop(\"/fees/Rates_fees.pdf\")",,,1
,"Townsville Library Service","javascript:openpop(\"/fees/Library_fees.pdf\")",,,1
,"Worinda Occasional Care Centre","javascript:openpop(\"/fees/Worinda_fees.pdf\")",,,1
])
addmenu(menu=["forms",,,160,1,"",style1,,,effect,,,,,,,,,,,,
,"Employment","/forms/default.asp?FilePath=/wwwdocs/TPL_Forms/Employment/",,,1
,"Planning & Development","/forms/default.asp?FilePath=/wwwdocs/TPL_Forms/PlanningandDevelopment/",,,1
,"Rates","/forms/default.asp?FilePath=/wwwdocs/TPL_Forms/Rates/",,,1
])
addmenu(menu=["payments",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Dog Registrations","/payments/animal_form.asp",,,1
,"Parking Infringements","/payments/parking_form.asp",,,1
,"Rates","/payments/rates_form.asp",,,1
,"Security","/privacy.asp",,,1
])
addmenu(menu=["people",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Councillors","/yourcouncil/people/councillors.asp",,,1
,"Directors","/yourcouncil/people/directors.asp",,,1
,"Managers/Coordinators","/yourcouncil/people/managers.asp",,,1
,"Local Members of Parliament","/yourcouncil/people/localmembers.asp",,,1
,"Queensland Government Ministerial Directory","javascript:openpop(\"http://www.qgd.qld.gov.au/nma/nma002.html\"\,\"htm\")",,,1
])
addmenu(menu=["committees",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Standing Committees","/yourcouncil/committees/standing.asp",,,1
,"Advisory Committees","/yourcouncil/committees/advisory.asp",,,1
,"Special Committees","/yourcouncil/committees/special.asp",,,1
,"Statutory Bodies","/yourcouncil/committees/statutory.asp",,,1
,"Other Organisations","/yourcouncil/committees/otherorgs.asp",,,1
])
addmenu(menu=["accesstsv",,,120,1,"",style1,,,effect,,,,,,,,,,,,
,"Free Things To Do","/community/accesstsv/free_things.asp",,,1
,"CBD / Strand maps","/community/accesstsv/CBD_map_ndx.asp",,,1
,"City-wide maps","/community/accesstsv/citywide_map_ndx.asp",,,1
,"People you can call","/community/accesstsv/info_call.asp",,,1
,"Request a map","/community/accesstsv/request_map.asp",,,1
])
addmenu(menu=["artsculture",,,160,1,"",style1,,,effect,,,,,,,,,,,,
,"Townsville Civic Theatre","/community/civictheatre/",,,1
,"Perc Tucker Regional Gallery","/community/perctucker/",,,1
,"Arts e-Bulletins","/community/cic/ebulletin.asp",,,1
])
addmenu(menu=["health",,,160,1,"",style1,,,effect,,,,,,,,,,,,
,"Fees","javascript:openpop(\"/fees/Environmental_fees.pdf\")",,,1
,"Contact Us","/contacts/health_contact.asp",,,1
])
addmenu(menu=["citiwaste",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Kerbside Recycling","/services/citiwaste/kerbside.asp",,,1
,"Landfill Acceptance Criteria", "javascript:openpop(\"/services/citiwaste/LandfillAcceptanceCriteria.pdf\")",,,1
,"Vantassel Street Landfill","/services/citiwaste/landfill.asp",,,1
,"Quick Reference","/services/citiwaste/reference.asp",,,1
,"Wheelie Bins","/services/citiwaste/bins.asp",,,1
,"Fees","javascript:openpop(\"/fees/Citiwaste_fees.pdf\")",,,1
,"Contact Us","/contacts/citiwaste_contact.asp",,,1
])
addmenu(menu=["citiwater",,,160,1,"",style1,,,effect,,,,,,,,,,,,
,"Current/Future Projects","/services/citiwater/projects.asp",,,1
,"Metered Standpipes","/services/citiwater/standpipes.asp",,,1
,"Customer Service Contract","javascript:openpop(\"/services/citiwater/docs/Customer_Service_Contract.pdf\")",,,1
,"Treatment Plants","/services/citiwater/plants.asp",,,1
,"Factsheets","/services/citiwater/factsheets.asp",,,1
,"Water Restrictions","/services/citiwater/water_days.asp",,,1
,"Divisions","/services/citiwater/divisions.asp",,,1
,"Fees","javascript:openpop(\"/fees/Citiwater_fees.pdf\")",,,1
,"Contact Us","/contacts/citiwater_contact.asp",,,1
])
addmenu(menu=["citiworks",,,160,1,"",style1,,,effect,,,,,,,,,,,,
,"Latest Roadworks","/services/citiworks/roadworks.asp",,,1
,"Road Network Survey","/services/citiworks/roadnetsurvey.asp",,,1
,"Current/Future Projects","/services/citiworks/projects.asp",,,1
,"Contact Us","/contacts/citiworks_contact.asp",,,1
])
addmenu(menu=["commdevt",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Cultural Development","/services/commdevt/development.asp",,,1
,"Neighbourhood Services","/services/commdevt/neighbourhood.asp",,,1
,"Social Planning &amp; Consultancy Unit","/services/commdevt/social_planning.asp",,,1
,"Community Relations Program","/services/commdevt/relations.asp",,,1
,"Sport &amp; Recreation","/services/commdevt/sport_recreation.asp",,,1
,"Youth Development","/services/commdevt/youth_development.asp",,,1
,"Community Centres","/services/commdevt/centres.asp",,,1
,"Events","/services/commdevt/events.asp",,,1
,"Facilities","/services/commdevt/facilities.asp",,,1
,"Grants","/services/commdevt/grants.asp",,,1
,"Programs","/services/commdevt/programs.asp",,,1
,"Publications","/services/commdevt/publications.asp",,,1
,"Contact Us","/contacts/commdevt_contact.asp",,,1
])
addmenu(menu=["commserv",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Aboriginal &amp; Torres Strait Islanders","/services/commserv/aboriginal_islander.asp",,,1
,"Advisory Committees","/services/commserv/advisory.asp",,,1
,"Children &amp; Family","/services/commserv/children_family.asp",,,1
,"Home Services and Home Modifications","/services/commserv/home_services.asp",,,1
,"Community Organisation Grants","/services/commserv/grant.asp",,,1
,"Pensioner Public Transport Subsidy","/services/commserv/pensioner.asp",,,1
,"Older Persons Net Project","/services/commserv/older.asp",,,1
,"Community Resources E-Bulletin","/services/commserv/ebulletin.asp",,,1
,"Contact Us","/contacts/commserv_contact.asp",,,1
])
addmenu(menu=["envmgmt",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Commitments","/services/envmgmt/commitments.asp",,,1
,"Environmental Programs","/services/envmgmt/operating_plan.asp",,,1
,"Services","/services/envmgmt/services.asp",,,1
,"Urban Storm Water Quality Management Plan","/services/envmgmt/usqmp/",,,1
,"Initiatives","/services/envmgmt/initiatives.asp",,,1
,"Rowes Bay Reserve","javascript:openpop(\"/services/envmgmt/docs/RowesBayBrochure.pdf\")",,,1
,"Wildlife Reflector Program","javascript:openpop(\"/services/envmgmt/docs/WildlifeReflectorBrochure.pdf\")",,,1
,"Townsville Plants","/services/envmgmt/plants.asp",,,1
,"Contact Us","/contacts/envmgmt_contact.asp",,,1
])
addmenu(menu=["infradevt",,,160,1,"",style1,,,effect,,,,,,,,,,,,
,"Roads and Stormwater Drainage","/services/infradevt/draft_specs.asp?FilePath=/wwwdocs/infra_devt/TPL_RoadsandStormwaterDrainage/",,,1
,"Water and Sewerage","/services/infradevt/draft_specs.asp?FilePath=/wwwdocs/infra_devt/TPL_WaterandSewerage/",,,1
,"Contact Us","/contacts/infradevt_contact.asp",,,1
])
addmenu(menu=["landinfo",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Geographic Information System","/services/landinfo/GIS.asp",,,1
,"Townsville Access Mapping","javascript:openpop(\"/services/landinfo/TAM.asp\"\,\"map\")",,,1
,"Request Products","/services/landinfo/request_products.asp",,,1
,"Fees","javascript:openpop(\"/fees/LandInfo_fees.pdf\")",,,1
,"Contact Us","/contacts/landinfo_contact.asp",,,1
])
addmenu(menu=["parks",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Current/Future Projects","/services/parks/parksworks.asp",,,1
,"Take a Tour","/services/parks/tours.asp",,,1
,"Fees","javascript:openpop(\"/fees/Parks_fees.pdf\")",,,1
,"Contact Us","/contacts/parks_contact.asp",,,1
])
addmenu(menu=["plandevt",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Building Certification","/services/plandevt/BC_unit.asp",,,1
,"Development Advice and Compliance","/services/plandevt/DA_section.asp",,,1
,"Land Development and Hydraulics Certification","/services/plandevt/LH_land_devt_hydraulics.asp",,,1
,"Policy and Planning","/services/plandevt/PP_policy_planning.asp",,,1 
,"News and Information","/services/plandevt/NI_newsinfo.asp",,,1
,"Forms","/forms/default.asp?FilePath=/wwwdocs/TPL_Forms/PlanningandDevelopment/",,,1
,"Fees","javascript:openpop(\"/fees/PlanningDevt_fees.pdf\")",,,1
,"Contact Us","/contacts/plandevt_contact.asp",,,1
])
addmenu(menu=["citysafe",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Crime Prevention Advice","show-menu=crime_prevention","/about/citysafe/crime.asp","",1
,"Handling Needles and Syringes","javascript:openpop(\"/about/citysafe/NeedleFlyer.pdf\")",,,1
,"Home Assist Secure","/services/commserv/home_services.asp#Home Assist Secure",,,1
,"Graffiti Action Plan","/about/citysafe/graffiti.asp",,,1
,"Published Papers","/about/citysafe/published_papers.asp",,,1
,"Links","show-menu=citysafe_links","/about/citysafe/other_links.asp","",1
,"Safety Audits","/about/citysafe/safety_audits.asp",,,1
,"Useful Phone Numbers","/contacts/citysafe_contact.asp",,,1
])
addmenu(menu=["crime_prevention",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Security at Home","/about/citysafe/home_security.asp",,,1
,"Property Marking","/about/citysafe/property.asp",,,1
,"Strangers at the Door","/about/citysafe/strangers.asp",,,1
,"If You are a Victim","/about/citysafe/victim.asp",,,1
,"Vehicle Security","/about/citysafe/vehicle_security.asp",,,1
,"Cash & Credit Cards","/about/citysafe/cash.asp",,,1
,"Workplace Security","/about/citysafe/workplace_security.asp",,,1
,"Personal Safety","/about/citysafe/personal_safety.asp",,,1
])
addmenu(menu=["citysafe_links",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Queensland Police Service","javascript:openpop(\"http://www.police.qld.gov.au/\"\,\"htm\")",,,1
,"Townsville Police Beats","javascript:openpop(\"http://www.police.qld.gov.au/pr/program/p_beat/region_nr.shtml\"\,\"htm\")",,,1
,"Australian Federal Police","javascript:openpop(\"http://www.afp.gov.au/\"\,\"htm\")",,,1
,"Queensland Neighbourhood Watch","javascript:openpop(\"http://www.police.qld.gov.au/pr/program/nhw/default.shtml\"\,\"htm\")",,,1
,"Crime Stoppers On Line","javascript:openpop(\"http://www.police.qld.gov.au/pr/program/crime/intro.shtml\"\,\"htm\")",,,1
,"Safety House","javascript:openpop(\"http://www.childsafe.net.au/SAFEHOUS/shhomep.htm\"\,\"htm\")",,,1
])
addmenu(menu=["atlas",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Historical Development","/about/atlas/history.asp",,,1
])
addmenu(menu=["strand",,,140,1,"",style1,,,effect,,,,,,,,,,,,
,"Whats On?","/calendar/searchresult.asp?PopVenue=Strand&StartDate="+today,,,1
,"Strand Foreshore Development","/about/strand/development.asp",,,1
,"Historical Landmarks","/about/strand/history.asp",,,1
,"Ten Things to do on The Strand","/about/strand/ten_things.asp",,,1
,"Strand Navigator","javascript:openpop(\"/about/strand/navigator.asp\"\,\"scrollbars=yes,resizable=yes,toolbar=no,location=no,left=160,top=20,height=550,width=320,status=no,menubar=no\")",,,1
])
dumpmenus()
