if(!window.JOE){var JOE={};} if(typeof JOE.fn=='undefined'){JOE.fn={};} JOE.fn.cookie={ get:function(key){ var tmp=document.cookie.match((new RegExp(key +'=[a-zA-Z0-9.()=|%/]+($|;)','g'))); if(!tmp||!tmp[0]) return null; else return unescape(tmp[0].substring(key.length+1,tmp[0].length).replace(';',''))||null; }, set:function(key,value,ttl,path,domain,secure){ var cookie=[key+'='+escape(value), 'path='+((!path||path=='')?'/':path), 'domain='+((!domain||domain=='')?window.location.hostname:domain)]; if(ttl) cookie.push(this.hoursToExpireDate(ttl)); if(secure) cookie.push('secure'); return document.cookie=cookie.join('; '); }, unset: function(key,path,domain){ path=(!path||typeof path!='string')?'':path; domain=(!domain||typeof domain!='string')?'':domain; if(this.get(key)) this.set(key,'','Thu, 01-Jan-70 00:00:01 GMT',path,domain); }, hoursToExpireDate:function(ttl){ if(parseInt(ttl)=='NaN')return ''; else{ var now=new Date(); now.setTime(now.getTime()+(parseInt(ttl)*3600000)); return now.toGMTString(); } }, test:function(){ this.set('b49f729efde9b2578ea9f00563d06e57','true'); if (this.get('b49f729efde9b2578ea9f00563d06e57')=='true'){ this.unset('b49f729efde9b2578ea9f00563d06e57'); return true; } return false; } }; // namespace declarations if(!window.JOE){var JOE={};} JOE.core={ importJS:function(src){ var script=document.createElement('script'); script.src=src; script.type='text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); }, // import with a random query parameter to avoid caching importJSnoCache:function(src){ var ms=new Date().getTime().toString(), seed="?"+ms; this.importJS(src+seed); }, nameSpace:function(){ var a=arguments, n, o=null; // for each namespace for(var ns=0;ns0?', ':'')+JOE.data.place[p]; }); return '('+(places.length==0?'none':places)+')'; }; JOE.fn.showPage=function(content){ $$('#listing','#listingHeader','#search','#searchControl','#searchResults').setStyle('display','none'); if(content=='listing'){ $$('#listing','#listingHeader').setStyle('display','block'); }else if(content=='search'){ $$('#search','#searchControl','#searchResults').setStyle('display','block'); } }; JOE.fn.showCurrentPlaceTags={}; // display or hide tags depending on current places var o=JOE.data.place; o[4]="Coast"; o[1]="Dargaville"; o[2]="Ruawai"; o[3]="Te Kopuru"; var o=JOE.data.company;o[236]=["A&S Repairs","Allan & Shirley Hildreth","Mobile Service, Dargaville",1,null,null,0,[],[]]; o[11]=["AD Focus","Anthony and Debra","Corner Kapia & Totara Streets, Dargaville",1,"adfocus@xtra.co.nz","www.adfocus.co.nz",1,[],[]]; o[12]=["Adams Trimmer Nauman Ltd",null,"97 Victoria Street, Dargaville",1,"eileen@atndargaville.co.nz",null,0,[],[]]; o[13]=["All About Floors","Brent or Sue King","91 Normanby St, Dargaville",1,"sales@aafloors.co.nz","www.aafloors.co.nz",1,[],[]]; o[14]=["AMP Stuart Sterling","Stuart Sterling","Poto Street,PO BOX 300, Dargaville",1,"stuart.sterling@clear.net.nz",null,1,[],[]]; o[15]=["Arcade Meats",null,"McKay Arcade,Victoria Street, Dargaville",1,null,null,1,[],[]]; o[16]=["Arkwright & Sons Ltd","","34 Victoria St, Dargaville",1,"LOIS38@xtra.co.nz","",1,[],[]]; o[19]=["Art and Soul",null,"103 Victoria St, Dargaville",1,null,null,1,[],[]]; o[262]=["ATS Property Maintenance & Repairs",null,"Dargaville",1,null,null,0,[],[]]; o[20]=["Autoland",null,"17 Gladstone St, Dargaville",1,null,null,0,[],[]]; o[22]=["Avoca Transport Ltd",null,"State Highway 14,Awakino Point, Dargaville",1,null,null,0,[],[]]; o[23]=["Awakino Point Boutique Motel",null,"address, Dargaville",1,"awakinopoint@xtra.co.nz",null,0,[],[]]; o[24]=["Barfoot and Thompson",null,"114 Victoria St, Dargaville",1,null,"www.barfoot.co.nz",0,[],[]]; o[25]=["Baty Thomas Engineering",null,"Pukeko Street, Dargaville",1,null,null,1,[],[]]; o[26]=["Baylys Beach Holiday Park",null,"22 Seaview Road, Dargaville",1,null,null,0,[],[]]; o[283]=["Baylys Beach Quad Bike Hire","Trish Rolfe","24 Seaview Road",4,"motorcamp@baylysbeach.co.nz","www.baylysbeach.co.nz",1,[],[]]; o[27]=["Beaurepaires",null,"32 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[246]=["Beebush Screenprints","Sue & Max","83 Beebush Rd, Arapohue, Dargaville",1,null,null,0,[],[]]; o[28]=["Better Care Auto Services","Brian & Christine Taylor","61 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[29]=["Big River Art Gallery","Jean Sircombe","Murdock Street, Dargaville",1,"","",1,[],[]]; o[244]=["Big River FM",null,"Hokianga Rd, Dargaville",1,null,null,0,[],[]]; o[30]=["Birch\'s B&B",null,"18 Kauri Street, Dargaville",1,"ewanandanneke@nettel.net.nz",null,0,[],[]]; o[31]=["Blah Blah Blah Cafe",null,"101 Victoria Street, Dargaville",1,"info@kauricoast.co.nz",null,1,[],[]]; o[32]=["Blockbuster",null,"48 Victoria St, Dargaville",1,null,null,0,[],[]]; o[33]=["Blondy\'z Hairdressing",null,"26 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[34]=["Brians Gym and Fitness Centre",null,"10 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[35]=["Brice & Barradell",null,"Victoria Street, Dargaville",1,"info@barradell.co.nz",null,0,[],[]]; o[36]=["Brown and Harper Panelbeating",null,"11 Normanby St, Dargaville",1,null,null,0,[],[]]; o[37]=["Butterfly Design",null,"122B Victoria Street, Dargaville",1,"butterflydesign@xtra.co.nz",null,1,[],[]]; o[38]=["C G Auto & Trade Supplies",null,"47 Edward Street, Dargaville",1,null,null,0,[],[]]; o[39]=["Cafe Fare","","75 Victoria Street, Dargaville",1,"","",1,[],[]]; o[41]=["Caltex Service Station",null,"Normanby Street, Dargaville",1,null,null,0,[],[]]; o[42]=["Canvas Town Shade Systems",null,"120 East Jervois St, Dargaville",1,null,null,0,[],[]]; o[43]=["Carters",null,"Normanby Street, Dargaville",1,null,null,0,[],[]]; o[44]=["Central Hotel",null,"Corner Victoria & Edward Street, Dargaville",1,null,null,0,[],[]]; o[274]=["Clyde Mitchell Electrician","Clyde and Christine Mitchell","12 Seaview Road, Baylys Beach RD7, Dargaville 0310",1,"clyde@maxnet.co.nz","",1,[],[]]; o[45]=["Comber & Seymour Ltd",null,"16 Normanby Street, Dargaville",1,null,null,1,[],[]]; o[46]=["Commercial Hotel","Robyn Arthur","75 River Road, Dargaville",1,"munkass@hotmail.com","",1,[],[]]; o[47]=["Compass Engineering / Agrispray Centre",null,"Jervois/Grey Street, Dargaville",1,null,null,0,[],[]]; o[48]=["Computer Worx","Brenden","22 Gladsone St, Dargaville",1,null,"www.cworx.co.nz",1,[],[]]; o[242]=["CQS Motorcycles",null,"20B Edward St, Dargaville",1,null,null,0,[],[]]; o[49]=["Crompton Engineering",null,"31 Jellicoe Street,Ruawai",2,null,null,0,[],[]]; o[51]=["Cuppa\'n\' a Cake",null,"57 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[52]=["Cuthbert Plumbers Ltd",null,"Corner Edward & Victoria Streets, Dargaville",1,null,null,0,[],[]]; o[53]=["DAE Automotive",null,"30 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[54]=["Dagaville Upholstery Services",null,"77 Gordon St, Dargaville",1,null,null,0,[],[]]; o[55]=["Dargaville Aluminium & Glass",null,"13 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[56]=["Dargaville Auto Electric",null,"Normanby Street, Dargaville",1,null,null,0,[],[]]; o[57]=["Dargaville Auto Spares and Repairs",null,"48 Beach Road, Dargaville",1,null,null,0,[],[]]; o[58]=["Dargaville Aztec Aluminium Co",null,"Beach Road, Dargaville",1,null,null,0,[],[]]; o[59]=["Dargaville Boarding Kennels",null,"Mititai Road, Dargaville",1,null,null,0,[],[]]; o[263]=["Dargaville Bobcat Services","Bernie","Dargaville",1,null,null,0,[],[]]; o[61]=["Dargaville Campervan Park and Cabins","Ray & Glenis Paxton","18 Gladstone Street, Dargaville",1,"rayglen@xtra.co.nz","www.dargavilleaccommodation.co.nz",1,[],[]]; o[62]=["Dargaville Carriers",null,"21 River Road, Dargaville",1,null,null,0,[],[]]; o[63]=["Dargaville Club",null,"53-55 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[64]=["Dargaville Dental Centre",null,"30 Hokianga Road, Dargaville",1,null,null,0,[],[]]; o[245]=["Dargaville Diesel Specialists",null,"Beach Rd, Dargaville",1,null,null,0,[],[]]; o[66]=["Dargaville Four Square Discount Supermarket",null,"Victoria Street, Dargaville",1,null,null,0,[],[]]; o[67]=["Dargaville Grain and Stockfoods",null,"5 Beach Rd, Dargaville",1,null,null,0,[],[]]; o[68]=["Dargaville Holiday Park",null,"10 Onslow Street, Dargaville",1,"dargavilleholidaypark@xtra.co.nz",null,0,[],[]]; o[69]=["Dargaville Honda",null,"Jervois Street, Dargaville",1,null,null,0,[],[]]; o[71]=["Dargaville ITM Building Centre","","40-42 Normanby Street,PO Box 221, Dargaville",1,"dargavilleitm@igrin.co.nz","www.itm.co.nz/dargaville/index.html",1,[],[]]; o[264]=["Dargaville Lawns","Marty","Dargaville",1,null,null,1,[],[]]; o[254]=["Dargaville Lions Club",null,"Box 314, Dargaville",1,null,null,0,[],[]]; o[72]=["Dargaville Motel",null,"217 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[73]=["Dargaville Motors Ford LMVD",null,"Normanby Street, Dargaville",1,"info@dargavillemotorsford.co.nz","www.dargavillemotorsford.co.nz",0,[],[]]; o[266]=["Dargaville On-Line Newsletter","John MacDonald","Dargaville",1,"dargavilleonline@yahoo.co.nz","",1,[],[]]; o[74]=["Dargaville Panel-beaters Ltd",null,"Beach Road, Dargaville",1,null,null,0,[],[]]; o[233]=["Dargaville Self Storage",null,"51 Beach Rd, Dargaville",1,null,"www.dargavillestorage.co.nz",0,[],[]]; o[75]=["Dargaville Sewing Centre",null,"118 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[76]=["Dargaville Tyre Service",null,"Parore Street, Dargaville",1,null,null,0,[],[]]; o[77]=["Dargaville United Travel",null,"87 Victoria St, Dargaville",1,null,null,0,[],[]]; o[78]=["Dargaville Veterinary Services",null,"97 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[1]=["Dargaville.NET Team","Joseph F. Douglas (Joe)","13 Cobham Ave, Dargaville",1,"jfdouglas2004@yahoo.com.au","dargaville.net",1,[],[]]; o[79]=["Dave Boyt Machinery Services Ltd",null,"Corner Edward & Normanby Streets, Dargaville",1,null,null,0,[],[]]; o[81]=["Davison Electrical Services","","15 Hokianga Rd, Dargaville",1,"","",0,[],[]]; o[247]=["Debz Photography",null,"Dargaville",1,null,null,0,[],[]]; o[82]=["Delta Produce Ltd",null,"Jervois Street, Dargaville",1,"deltapro@clear.net.nz",null,0,[],[]]; o[83]=["Distinction",null,"Victoria Street, Dargaville",1,null,null,0,[],[]]; o[84]=["Dormavilla Productions",null,"33 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[241]=["DR & BA Grant Engineering",null,"Beach Rd, Dargaville",1,null,null,0,[],[]]; o[85]=["Dreadon & Kelliher",null,"Beach Road, Dargaville",1,null,null,0,[],[]]; o[273]=["Driver Laser Drainage","Karl Driver","116 Station Road",1,"karl.driver@clear.net.nz","",1,[],[]]; o[86]=["Duck Creek Garden Centre",null,"29 Gladstone St, Dargaville",1,null,null,0,[],[]]; o[270]=["Dunsmore Gardens Ltd","Doug and Ann Nilsson","207 Baylys Coast Road, RD7, Dargaville 0377",1,"dunsmore@xtra.co.nz","",0,[],[]]; o[87]=["Ellehcim Ltd",null,"93 River Road, Dargaville",1,"info@ellehcim.co.nz","www.ellehcim.co.nz",0,[],[]]; o[88]=["Empire Liquor Centre",null,"81 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[89]=["Empire Luncheonette",null,"56 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[91]=["Ezy Roasts",null,"103 Victora St, Dargaville",1,null,null,0,[],[]]; o[237]=["Farmers of New Zealand Inc",null,"22 Normanby St, Dargaville",1,null,null,0,[],[]]; o[239]=["Farmlands",null,"1 River Rd, Dargaville",1,"dargaville@farmlands.co.nz","www.farmlands.co.nz",0,[],[]]; o[92]=["Farrand & Mason Ltd",null,"89 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[93]=["Fast Food Takeaways",null,"3 Murdoch Street, Dargaville",1,null,null,0,[],[]]; o[94]=["Firestone Direct",null,"Parore Street, Dargaville",1,null,null,0,[],[]]; o[95]=["First National Roper and Jones",null,"Victoria Street, Dargaville",1,"roper.jones@xtra.co.nz","www.roperandjones.co.nz",0,[],[]]; o[96]=["Firth Industries",null,"Day Street, Dargaville",1,null,null,0,[],[]]; o[97]=["Fosters Home Decorating",null,"40 Victoria Street, Dargaville",1,"fostershd@xtra.co.nz",null,0,[],[]]; o[98]=["Fosters Lawnmowing",null,"92 Parore St, Dargaville",1,null,null,0,[],[]]; o[235]=["Four Square Ruawai","","15 Freyberg Rd,Ruawai",1,"","",1,[],[]]; o[99]=["Fowlie Panelbeaters",null,"20 Edward Street, Dargaville",1,null,null,0,[],[]]; o[279]=["Frostline Refrigeration","Athol and Maryanne","19 Kelly Street",1,"","",1,[],[]]; o[101]=["Funky Fish",null,"34 Seaview Rd, Dargaville",1,null,null,0,[],[]]; o[102]=["Gas & Tyre Services",null,"148 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[103]=["Gillespe Panel & Paint Ltd",null,"(Panel shop) 36 Normanby St, (Paint shop) Beach Rd, Dargaville",1,null,null,1,[],[]]; o[104]=["Glendene Motel",null,"78 Jervois St, Dargaville",1,null,null,0,[],[]]; o[105]=["Glorias Flowers and Gifts",null,"84 Victoria St, Dargaville",1,null,null,0,[],[]]; o[106]=["Godfrey Motors","","2 Totara Street, Dargaville",1,"","",0,[],[]]; o[107]=["Godfreys Chainsaws and Mowers",null,"3 Parore St, Dargaville",1,null,null,0,[],[]]; o[108]=["Golden Lion Restaurant",null,"18 Hokianga Rd, Dargaville",1,null,null,0,[],[]]; o[109]=["Greenhouse Hostel",null,"13 Portland Street, Dargaville",1,null,null,0,[],[]]; o[234]=["Greenways Trust",null,"16 Edward St, Dargaville",1,null,null,0,[],[]]; o[111]=["Greg Smith Engineering",null,"Beach Road, Dargaville",1,null,null,0,[],[]]; o[231]=["Hammonds Lawyers",null,"11 Hokianga Rd, Dargaville",1,"hammonds.law@xtra.co.nz",null,1,[],[]]; o[112]=["Harcourts",null,"122 Victoria St, Dargaville",1,null,"www.harcourts.co.nz",0,[],[]]; o[113]=["Harrison Contracting","Melanie Harrison","Station Road",1,"harrisoncontracting@xtra.co.nz","",1,[],[]]; o[114]=["Health Options",null,"address, Dargaville",1,"pam.B@xtra.co.nz",null,0,[],[]]; o[280]=["High Norton B&B","Annette Scarf","79 Norton Street",3,"highnorton@ihug.co.nz","www.luxurycountrystay.co.nz",1,[],[]]; o[115]=["Hobsons\' Choice Motel",null,"212 Victoria Street, Dargaville",1,"hobsonschoice@xtra.co.nz",null,0,[],[]]; o[116]=["Hubands Retravision",null,"76 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[117]=["Huckleberry Cottage",null,"Pouto Road, Dargaville",1,"kumarabox@xtra.co.nz",null,0,[],[]]; o[243]=["HVS Ltd LMVD",null,"Jervois St, Dargaville",1,null,null,0,[],[]]; o[118]=["In 2 Safe Signs",null,"43 Portland Street North, Dargaville",1,null,null,0,[],[]]; o[119]=["Inder\'s Auto One Fishing & Gas",null,"Victoria Street, Dargaville",1,null,null,0,[],[]]; o[121]=["J De Boer Haulage",null,"Awakino Point East Road, Dargaville",1,null,null,0,[],[]]; o[122]=["Jack Fannon Ltd",null,"Victoria Street, Dargaville",1,null,null,0,[],[]]; o[123]=["Jon Matich Surfwear",null,"97 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[124]=["Just Jewellery",null,"99 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[125]=["K.D Spreaders",null,"26 Edward Street, Dargaville",1,null,null,0,[],[]]; o[126]=["Kai Iwi Lakes Country Cottage",null,"Kai Iwi Lakes Road",4,null,null,0,[],[]]; o[268]=["Kaihu Valley Electrical","Dale Robertson","2 Normanby Street",1,"dale@vos.co.nz","",0,[],[]]; o[127]=["Kaipara Agri Centre",null,"34 Beach Rd, Dargaville",1,null,null,0,[],[]]; o[128]=["Kaipara Landscape Supplies Ltd","","Beach Road, (Sand Yard. River Road) Dargaville",1,"","",0,[],[]]; o[228]=["Kaipara Lifestyler",null,"90 River Rd,PO BOX 474, Dargaville",1,"info@thelifestyler.co.nz","",1,[],[]]; o[129]=["Kaipara Livestock Ltd","","Beach Road, Dargaville",1,"kaiparalivestock@xtra.co.nz","www.kaiparalivestock.co.nz",1,[],[]]; o[248]=["Kaipara Physio","Wytse Dijkstra","77 Awakino Rd, Dargaville",1,null,null,0,[],[]]; o[269]=["Kaipara Water Transport Ltd","Morrie Eyles","River Road, PO Box 260, Dargaville 0310",1,"skiny@ihug.co.nz","",0,[],[]]; o[131]=["Kaipara Workwear",null,"43 Normanby St, Dargaville",1,null,null,0,[],[]]; o[132]=["Kauri Coast Cafe",null,"33 Normanby St, Dargaville",1,null,null,0,[],[]]; o[133]=["Kauri Coast Visitor Centre",null,"69 Normanby Street, Dargaville",1,"info@kauricoast.co.nz",null,0,[],[]]; o[134]=["Kauri Computers",null,"79 Victoria Street, Dargaville",1,"support@kauricomputer.co.nz","www.kauricomputer.co.nz",0,[],[]]; o[135]=["Kauri House Lodge",null,"Bowen Street, Dargaville",1,"kaurihouse@xtra.co.nz",null,0,[],[]]; o[136]=["Kaurivale",null,"Babylon Coast Rd, Dargaville",1,null,null,0,[],[]]; o[137]=["Kevin Le Noel Builders Ltd",null,"394 Mt Weseley Coast Road, Dargaville",1,null,null,0,[],[]]; o[138]=["King Bros Construction",null,"45 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[139]=["Kiwa Builders",null,"49 Hokianga Road, Dargaville",1,null,null,0,[],[]]; o[249]=["KTSA",null,"22 Gladstone St, Dargaville",1,null,null,1,[],[]]; o[65]=["Laser Electrical Services",null,"53 Normanby St, Dargaville",1,null,null,0,[],[]]; o[141]=["Le Noel Builders",null,"Mt Wesley Coast Rd, Dargaville",1,null,null,0,[],[]]; o[142]=["Le Noel Tractor and Machinery Services",null,"47 Edward Street, Dargaville",1,null,null,0,[],[]]; o[272]=["LeftHand N.Z.","Nikki Soames","4 Churchill Street, Dargaville",1,"mail@lefthandnz.com","www.lefthandnz.com",1,[],[]]; o[143]=["Leslies Lodge",null,"134 Colville Road, Dargaville",1,"dormavillakauri@actrix.co.nz",null,0,[],[]]; o[144]=["Lock Stock and Barrel",null,"34 Victoria St, Dargaville",1,null,null,0,[],[]]; o[145]=["Long Flat Bacon Co",null,"3 Freyberg Rd,Ruawai",2,null,null,0,[],[]]; o[146]=["Lynley\'s Lingerie & Linen",null,"100 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[147]=["Lyriks Family Restaurant",null,"138 Victoria St (corner Gladstone Ave), Dargaville",1,null,null,1,[],[]]; o[148]=["M.C. Yakas Builders",null,"197 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[259]=["Maasden Ltd","","Edward St, Dargaville",1,"","",1,[],[]]; o[149]=["Mags N More",null,"103 Victoria St, Dargaville",1,null,null,0,[],[]]; o[151]=["Main Street Interiors",null,"40 Victoria St, Dargaville",1,null,null,1,[],[]]; o[152]=["Marcel Motors Ltd",null,"142 Victoria Street, Dargaville",1,"marcel@xtra.co.nz","www.marcelmotors.co.nz",0,[],[]]; o[153]=["McBreen Jenkins Civil Engineering Contractors",null,"State Highway 14, Dargaville",1,null,null,0,[],[]]; o[154]=["McCoy and Thomas",null,"92 Victoria St, Dargaville",1,null,null,0,[],[]]; o[155]=["McKays Electrical 100%",null,"87 Victoria Street, Dargaville",1,null,"",1,[],[]]; o[156]=["McLeans Bed & Breakfast",null,"136 Hokianga Road, Dargaville",1,"mcleans@igrin.co.nz",null,0,[],[]]; o[276]=["MILFOS Dargaville","Jim and Heather Bond","59 Victoria Street",1,"heather.bond@xtra.co.nz","",1,[],[]]; o[157]=["Mitre 10",null,"62 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[158]=["Mobil Service Station",null,"71 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[159]=["Morans Bookshop",null,"68 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[161]=["Morfett Auto Services",null,"1 Parore St Street, Dargaville",1,"morfettauto@xtra.co.nz",null,0,[],[]]; o[162]=["Munns Carpet",null,"50 Normanby St, Dargaville",1,null,null,0,[],[]]; o[163]=["New Asian Restaurant",null,"73 Victoria St, Dargaville",1,null,null,0,[],[]]; o[252]=["New Image",null,"McKays Arcade, Victoria St, Dargaville",1,null,null,0,[],[]]; o[164]=["Newman Engineering Ltd",null,"14-16 Beach Road, Dargaville",1,"newmanengineering@xtra.co.nz","www.landplane.co.nz",0,[],[]]; o[275]=["Noel Remnant","","Dargaville",1,"nk.ejremnant@xtra.co.nz","",1,[],[]]; o[165]=["Nolas Wines & Spirits",null,"Victoria Street, Dargaville",1,null,null,0,[],[]]; o[166]=["Norfolk Court",null,"68 - 72 Normanby Street, Dargaville",1,null,null,0,[],[]]; o[167]=["North West Electrical",null,"30 Edward Street, Dargaville",1,null,null,0,[],[]]; o[168]=["Northern Wairoa Hire",null,"31 Gladstone St, Dargaville",1,null,null,1,[],[]]; o[169]=["Northern Wairoa Hotel","David & Gloria Ashdown","70 Victoria Street, PO Box 291, Dargaville",1,"northernwairoahotel@xtra.co.nz",null,0,[],[]]; o[171]=["Northern Wairoa RSA",null,"Hokianga Rd, Dargaville",1,null,null,0,[],[]]; o[172]=["Northland Laser Drainage",null,"116 Station Road, Dargaville",1,null,null,0,[],[]]; o[173]=["Northland Machinery",null,"104 Jervois St, Dargaville",1,null,null,0,[],[]]; o[174]=["Nu-Tone Drycleaners",null,"106 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[175]=["NZ Home Loans",null,"address, Dargaville",1,null,null,0,[],[]]; o[176]=["NZ Kumara Distributors",null,"Awakino Point East Road, Dargaville",1,"nzkd@xtra.co.nz",null,0,[],[]]; o[177]=["Ocean Beach Fisheries & Takeaways",null,"164 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[178]=["Orrs Unichem Pharmacy",null,"Hokianga Rd, Dargaville",1,null,null,0,[],[]]; o[179]=["PAD Thai Takeaways",null,"52 Normanby St, Dargaville",1,null,null,0,[],[]]; o[181]=["Parkview Motel",null,"36 Carrington St, Dargaville",1,null,null,0,[],[]]; o[278]=["Pegg Ayton Gordon","Gregg Clarke","Hokianga Road",1,"paglaw@xtra.co.nz","",1,[],[]]; o[182]=["Pennies From Heaven",null,"66a Victoria St, Dargaville",1,null,null,0,[],[]]; o[183]=["PGG Wrightson",null,"117 Victoria St, Dargaville",1,null,null,0,[],[]]; o[184]=["PK Contracting",null,"8 Edward Street, Dargaville",1,null,null,0,[],[]]; o[185]=["Plumbing & Heating Centre",null,"102 Jervois St,RD2,PO Box 377, Dargaville",1,"sales@plumbingandheat.co.nz",null,0,[],[]]; o[229]=["Polwarth Design",null,"78 Victoria St, Dargaville",1,null,null,0,[],[]]; o[186]=["Premier Restaurant",null,"95 Victoria St, Dargaville",1,null,null,0,[],[]]; o[187]=["Professionals - Jean Johnson Real Estate",null,"6 Poto St, Dargaville",1,"batthq@xtra.co.nz","jeanjohnsonrealty.co.nz",0,[],[]]; o[188]=["Pukeko Cottage",null,"189 Blong Road,Ruawai",2,null,null,0,[],[]]; o[253]=["Radich Contracting","Milan","Dargaville",1,null,null,0,[],[]]; o[251]=["Randall Architecture","Brian Randall","Dargaville",1,"randallarchitecture@hotmail.com","",0,[],[]]; o[238]=["Randells Suzuki",null,"8 Kapia St, Dargaville",1,null,null,0,[],[]]; o[255]=["Ravensdown Fertiliser","Trevor Gwillim","Day St, Dargaville",1,null,null,0,[],[]]; o[10]=["Rays Possum Posse","Ray Chapman","Dargaville",1,"ray@dargaville.biz","possum.dargaville.biz",1,[],[]]; o[189]=["RD1",null,"Edward Street, Dargaville",1,null,null,0,[],[]]; o[191]=["Redline Farm Machinery","Tyron Midgley","23 Normanby St, Dargaville",1,null,null,1,[],[]]; o[192]=["Ricks Paint and Panel","Rick & Maria Nelson","402 Baylys Coast Rd, Dargaville",1,null,null,0,[],[]]; o[193]=["Ritchies",null,"Normanby Street, Dargaville",1,null,null,0,[],[]]; o[194]=["River Road Dairy",null,"33 River Road, Dargaville",1,null,null,0,[],[]]; o[195]=["Robertson Plastics Ltd",null,"1 Logan St, Dargaville",1,null,null,0,[],[]]; o[196]=["Ruawai Collectables",null,"1 Jellicoe St,Ruawai",2,null,null,0,[],[]]; o[257]=["Ruawai Lions Club",null,"Ruawai",2,null,null,1,[],[]]; o[197]=["Ruawai Motorcycles and Mower Repairs",null,"30 Freyberg Rd,Ruawai",2,null,null,0,[],[]]; o[256]=["Salvation Army Family Shop",null,"42A Normanby St, Dargaville",1,null,null,0,[],[]]; o[198]=["Seekers Scene Ltd",null,"119 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[199]=["Sharky\'s Takeaways & Pizzas",null,"Seaview Road,Baylys Beach",1,null,null,0,[],[]]; o[201]=["Shiraz Restaurant",null,"17 Hokianga Rd, Dargaville",1,null,null,1,[],[]]; o[232]=["Shirleys Kitchen","Shirley","Aratapu Tavern",1,null,null,0,[],[]]; o[202]=["Skyline Garages",null,"14 Normanby St, Dargaville",1,null,null,0,[],[]]; o[203]=["Spotless Services (NZ) Ltd",null,"Clyde Street, Dargaville",1,null,null,0,[],[]]; o[204]=["Stringers Betta Electrical","Alan & Maxine Stringer","65 Victoria St, Dargaville",1,"stringer@infogen.net.nz",null,0,[],[]]; o[205]=["Subway",null,"85 Normanby St, Dargaville",1,null,null,0,[],[]]; o[281]=["Sunset View Lodge","Pam & Neil Sinclair","7 Alcemene Lane, R.D.7. Baylys Beach, Dargaville 0377",1,"stay@sunsetviewlodge.co.nz","www.sunsetviewlodge.co.nz",1,[],[]]; o[206]=["Tangowahine Rural Retreat","Hugh and Pauline Rose","Tangowahine Valley, Dargaville",1,"holiday@tangowahine.co.nz","www.tangowahine.co.nz",1,[],[]]; o[207]=["Taylor Made Tours","Anthony & Colleen Taylor","357 Cole Rd,Te Kopuru",3,"","www.taylormadetours.co.nz",1,[],[]]; o[208]=["The Noise Co","Ken Glamuzina","Colonial House, Victoria St, PO Box 46, Dargaville",1,"noiseco@igrin.co.nz","",1,[],[]]; o[209]=["The Woodturners Kauri Gallery & Working Studio","Rick Taylor","4 Murdoch Street, Dargaville",1,"kauri4u@xtra.co.nz","www.thewoodturnersstudio.co.nz",1,[],[]]; o[211]=["TMX Graphics",null,"47 Edward Street, Dargaville",1,null,null,0,[],[]]; o[265]=["Today FM 106.7","Brent Robertson","Dargaville",1,"albrent@xtra.co.nz","todayfm.dargaville.biz",1,[],[]]; o[212]=["Town and Around","Paul and Michelle Rae","Dargaville",1,"","",1,[],[]]; o[213]=["Turiwiri Bed and Breakfast",null,"address, Dargaville",1,"crawford@igrin.co.nz",null,0,[],[]]; o[214]=["United Carriers",null,"7 Tuna St, Dargaville",1,null,null,0,[],[]]; o[215]=["Vehicle Testing Station",null,"42 Beach Road, Dargaville",1,null,null,0,[],[]]; o[216]=["Victoria Street Traders",null,"98 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[217]=["Vuletich Construction",null,"Normanby Street, Dargaville",1,null,null,0,[],[]]; o[261]=["Wade Concrete Products Ltd",null,"Corner Edward & Day St, Dargaville",1,null,null,0,[],[]]; o[218]=["Wai Hou Oma Lodge",null,"357 Kai Iwi Lakes Road, Dargaville",1,"info@waihouomalodge.co.nz","www.waihouomalodge.co.nz",0,[],[]]; o[258]=["Waldens Shoes",null,"115 Victoria St, Dargaville",1,null,null,1,[],[]]; o[221]=["Warmans Passenger Transport",null,"6 Hospital Road,Te Kopuru",3,null,null,0,[],[]]; o[277]=["West Coast Consulting Ltd","Philippa Dally","PO Box 97. Dargaville",1,"info@westcoastconsulting.co.nz","www.westcoastconsulting.co.nz",1,[],[]]; o[271]=["West Coaster Bus Service","","Dargaville",1,"","",1,[],[]]; o[222]=["Western Blasting",null,"2 Day Street, Dargaville",1,null,null,0,[],[]]; o[224]=["Window and Door Services",null,"32 Gladstone Street, Dargaville",1,null,null,0,[],[]]; o[225]=["Woolworths","","129 Victoria Street, Dargaville",1,"","",1,[],[]]; o[226]=["Wrap It Up",null,"99 Victoria Street, Dargaville",1,null,null,0,[],[]]; o[227]=["Y Knot Autos",null,"23 Freyberg Rd,Ruawai",2,null,null,0,[],[]]; o[282]=["Zizania Paper","Christine Rope","225 Turkey Flat Road. RD1. Te Kopuru. 0391",3,"c.e.rope@clear.net.nz","www.zizania.co.nz/",1,[],[]]; o[10][7].push(["Hm 439 1585",null]); o[11][7].push(["439 8824",null]); o[11][7].push(["Fax 439 8087",null]); o[11][7].push(["0274 981 336",null]); o[12][7].push(["439 8897",null]); o[12][7].push(["Fax 439 8584",null]); o[12][7].push(["021 997759",null]); o[13][7].push(["439 4100",null]); o[13][7].push(["Fax 439 4100",null]); o[14][7].push(["439 8651",null]); o[14][7].push(["Fax 439 6500",null]); o[14][7].push(["021 985 108",null]); o[15][7].push(["439 8351",null]); o[16][7].push(["439 0475",null]); o[16][7].push(["Fax 439 0475",null]); o[19][7].push(["439 0934",null]); o[20][7].push(["439 3104",null]); o[22][7].push(["439 7005",null]); o[23][7].push(["439 7870",null]); o[24][7].push(["439 8880",null]); o[25][7].push(["439 7392",null]); o[25][7].push(["0274 141 250",null]); o[26][7].push(["439 6349",null]); o[27][7].push(["439 3060",null]); o[28][7].push(["439 7896",null]); o[30][7].push(["439 7565",null]); o[31][7].push(["439 6300",null]); o[32][7].push(["439 4800",null]); o[33][7].push(["439 7432",null]); o[34][7].push(["439 6360",null]); o[35][7].push(["439 3022",null]); o[36][7].push(["439 8298",null]); o[37][7].push(["439 6982",null]); o[37][7].push(["027 486 5205",null]); o[38][7].push(["439 8168",null]); o[41][7].push(["439 7529",null]); o[42][7].push(["439 0409",null]); o[43][7].push(["439 6189",null]); o[44][7].push(["439 8034",null]); o[45][7].push(["439 7270",null]); o[47][7].push(["439 6689",null]); o[48][7].push(["439 4405",null]); o[49][7].push(["439 2393",null]); o[51][7].push(["439 1081",null]); o[52][7].push(["439 7218",null]); o[53][7].push(["439 3089",null]); o[54][7].push(["439 7350",null]); o[55][7].push(["439 7102",null]); o[56][7].push(["439 6503",null]); o[57][7].push(["439 6352",null]); o[58][7].push(["439 8210",null]); o[59][7].push(["439 8464",null]); o[62][7].push(["439 8443",null]); o[63][7].push(["439 8211",null]); o[64][7].push(["439 8170",null]); o[65][7].push(["439 7172",null]); o[66][7].push(["439 8647",null]); o[67][7].push(["439 7866",null]); o[68][7].push(["439 8296",null]); o[69][7].push(["439 1089",null]); o[72][7].push(["439 7734",null]); o[73][7].push(["439 7315",null]); o[73][7].push(["0800 737 315","Tollfree"]); o[73][7].push(["Fax 439 5961",null]); o[74][7].push(["439 7299",null]); o[75][7].push(["439 8540",null]); o[76][7].push(["439 6574",null]); o[77][7].push(["439 8303",null]); o[78][7].push(["439 7117",null]); o[79][7].push(["439 3266",null]); o[82][7].push(["439 0717",null]); o[83][7].push(["439 8177",null]); o[84][7].push(["439 7373",null]); o[85][7].push(["439 6577",null]); o[86][7].push(["439 8386",null]); o[87][7].push(["439 1439",null]); o[88][7].push(["439 8786",null]); o[89][7].push(["439 7558",null]); o[91][7].push(["439 0605",null]); o[92][7].push(["439 7335",null]); o[93][7].push(["439 8497",null]); o[94][7].push(["439 6574",null]); o[95][7].push(["439 7295",null]); o[96][7].push(["439 6280",null]); o[97][7].push(["439 8266",null]); o[98][7].push(["439 8498",null]); o[99][7].push(["439 8817",null]); o[101][7].push(["439 8883",null]); o[102][7].push(["439 8189",null]); o[102][7].push(["0800 788 288",null]); o[103][7].push(["439 6532","Panel Shop"]); o[103][7].push(["439 7536","Paint Shop"]); o[103][7].push(["A/Hrs 439 7035",null]); o[104][7].push(["439 7424",null]); o[105][7].push(["439 7236",null]); o[107][7].push(["439 8881",null]); o[108][7].push(["439 8940",null]); o[109][7].push(["439 6342",null]); o[111][7].push(["439 6059",null]); o[112][7].push(["439 0430",null]); o[114][7].push(["439 4379",null]); o[115][7].push(["439 8551",null]); o[116][7].push(["439 7174",null]); o[117][7].push(["439 7018",null]); o[118][7].push(["439 7913",null]); o[119][7].push(["439 8219",null]); o[121][7].push(["439 8425",null]); o[122][7].push(["439 8946",null]); o[123][7].push(["439 8380",null]); o[124][7].push(["439 5507",null]); o[125][7].push(["439 7874",null]); o[126][7].push(["ref",null]); o[127][7].push(["439 6544",null]); o[131][7].push(["439 3030",null]); o[132][7].push(["439 0452",null]); o[133][7].push(["439 8360",null]); o[134][7].push(["439 4315",null]); o[134][7].push(["A/Hrs 027 271 2525",null]); o[134][7].push(["439 4216","Workshop"]); o[134][7].push(["439 0215","Training centre"]); o[135][7].push(["439 8082",null]); o[136][7].push(["439 5927",null]); o[137][7].push(["439 6556",null]); o[138][7].push(["439 5989",null]); o[139][7].push(["439 7405",null]); o[141][7].push(["439 6556",null]); o[142][7].push(["439 6436",null]); o[143][7].push(["439 7243",null]); o[144][7].push(["439 0475",null]); o[145][7].push(["439 2120",null]); o[146][7].push(["439 5119",null]); o[147][7].push(["439 7343",null]); o[148][7].push(["439 0562",null]); o[149][7].push(["439 5786",null]); o[151][7].push(["439 8277",null]); o[152][7].push(["439 7399",null]); o[152][7].push(["439 6968",null]); o[152][7].push(["021 504 487",null]); o[153][7].push(["439 5871",null]); o[154][7].push(["439 8520",null]); o[155][7].push(["439 8305",null]); o[156][7].push(["439 5915",null]); o[157][7].push(["439 7309",null]); o[158][7].push(["439 5599",null]); o[159][7].push(["439 6149",null]); o[161][7].push(["439 6377",null]); o[161][7].push(["439 6087","After Hours"]); o[162][7].push(["439 8868",null]); o[163][7].push(["439 8388",null]); o[164][7].push(["439 5065",null]); o[164][7].push(["Fax 439 5878",null]); o[165][7].push(["439 8624",null]); o[166][7].push(["439 6214",null]); o[167][7].push(["439 7958",null]); o[168][7].push(["439 6166",null]); o[169][7].push(["439 8923",null]); o[169][7].push(["439 8925",null]); o[171][7].push(["439 8164",null]); o[172][7].push(["439 7235",null]); o[173][7].push(["439 6099",null]); o[174][7].push(["439 7139",null]); o[175][7].push(["0800 627 892",null]); o[176][7].push(["439 6647",null]); o[177][7].push(["439 8055",null]); o[178][7].push(["439 8325",null]); o[179][7].push(["439 1315",null]); o[181][7].push(["439 8339",null]); o[182][7].push(["439 0692",null]); o[183][7].push(["439 3342",null]); o[183][7].push(["Fax 439 3029",null]); o[184][7].push(["439 5960",null]); o[184][7].push(["0274 519 015",null]); o[185][7].push(["439 6123",null]); o[185][7].push(["Fax 439 6124",null]); o[186][7].push(["439 8212",null]); o[187][7].push(["439 7575",null]); o[188][7].push(["439 2325",null]); o[189][7].push(["439 8253",null]); o[191][7].push(["439 3266",null]); o[192][7].push(["439 6037",null]); o[192][7].push(["027 207 2932",null]); o[193][7].push(["439 4902",null]); o[193][7].push(["Fax 439 4904",null]); o[193][7].push(["021 889 963",null]); o[194][7].push(["439 8693",null]); o[195][7].push(["439 7047",null]); o[196][7].push(["439 2735",null]); o[197][7].push(["439 2500",null]); o[198][7].push(["439 8795",null]); o[199][7].push(["439 4549",null]); o[201][7].push(["439 0024",null]); o[202][7].push(["439 4700",null]); o[203][7].push(["439 8127",null]); o[204][7].push(["439 7815",null]); o[204][7].push(["Fax 439 7815",null]); o[205][7].push(["439 3375",null]); o[211][7].push(["439 5455",null]); o[213][7].push(["439 6003",null]); o[214][7].push(["439 3446",null]); o[215][7].push(["439 6088",null]); o[216][7].push(["439 0003",null]); o[217][7].push(["439 4700",null]); o[218][7].push(["439 7282",null]); o[221][7].push(["439 1531",null]); o[222][7].push(["439 6330",null]); o[224][7].push(["439 6458",null]); o[224][7].push(["027 275 0918",null]); o[224][7].push(["Fax 439 6458",null]); o[226][7].push(["439 5596",null]); o[227][7].push(["439 2424",null]); o[228][7].push(["439 6933",null]); o[228][7].push(["0800 466 793",null]); o[228][7].push(["Fax 439 6930",null]); o[229][7].push(["439 7341",null]); o[231][7].push(["439 7099",null]); o[232][7].push(["439 5923",null]); o[232][7].push(["439 5460",null]); o[233][7].push(["439 1489",null]); o[234][7].push(["439 8133",null]); o[236][7].push(["Ph/Fax 439 5460",null]); o[237][7].push(["439 5219",null]); o[238][7].push(["439 6952",null]); o[239][7].push(["439 7693",null]); o[241][7].push(["439 8248",null]); o[242][7].push(["439 1494",null]); o[243][7].push(["439 8488",null]); o[244][7].push(["439 3003","Office"]); o[244][7].push(["439 3002","Studio"]); o[244][7].push(["Fax 439 3005",null]); o[245][7].push(["439 6586",null]); o[245][7].push(["439 6506","A/H"]); o[245][7].push(["027 522 0567",null]); o[246][7].push(["439 4249",null]); o[247][7].push(["439 2560",null]); o[248][7].push(["439 8079",null]); o[249][7].push(["439 4405",null]); o[252][7].push(["439 7123",null]); o[253][7].push(["439 4111",null]); o[253][7].push(["027 439 4111",null]); o[255][7].push(["0800 100 123",null]); o[255][7].push(["Fax 439 3141",null]); o[255][7].push(["439 6674","A/Hrs"]); o[256][7].push(["439 6802",null]); o[257][7].push(["439 2557","President Jim Simpson"]); o[257][7].push(["439 2281","Secretary Peter Joynt"]); o[258][7].push(["Ph/Fax 439 8227",null]); o[261][7].push(["Ph/Fax 439 8151",null]); o[261][7].push(["439 5213","A/Hrs"]); o[262][7].push(["Ph/Fax 439 8628",null]); o[262][7].push(["0274 557 750",null]); o[263][7].push(["439 6785",null]); o[264][7].push(["439 0460",null]); o[264][7].push(["021 173 6549",null]); o[251][7].push(["439 0099",""]); o[251][7].push(["027 5160 149",""]); o[268][7].push(["09 439 0733",""]); o[266][7].push(["021 174 4637",""]); o[269][7].push(["09 439 4858",""]); o[269][7].push(["09 439 4867 Fax",""]); o[269][7].push(["021 956 183",""]); o[128][7].push(["09 439 7005",""]); o[270][7].push(["Ph/Fax 09 439 0185",""]); o[81][7].push(["439 7184",""]); o[1][7].push(["Hm 439 4889",""]); o[1][7].push(["027 383 4778",""]); o[271][7].push(["021 380 187","Freight"]); o[265][7].push(["439 7798",""]); o[129][7].push(["439 7476",""]); o[129][7].push(["a/hrs 439 5114",""]); o[129][7].push(["021 944 920 ",""]); o[71][7].push(["439 8730",""]); o[71][7].push(["Fax 439 7385",""]); o[106][7].push(["439 7666",""]); o[274][7].push(["09 439 8993 ",""]); o[274][7].push(["021 439 899",""]); o[275][7].push(["027 481 04465",""]); o[275][7].push(["Fax: 09 439 0872",""]); o[275][7].push(["a/h 09 439 0830",""]); o[276][7].push(["Phone/Fax 09 439 8826",""]); o[276][7].push(["a/h 09 432 9600",""]); o[276][7].push(["Mobile: 027 495 2084",""]); o[212][7].push(["439 6306",""]); o[235][7].push(["439 2011",""]); o[225][7].push(["439 7269",""]); o[272][7].push(["09 439 7739",""]); o[272][7].push(["021 044 8482",""]); o[277][7].push(["439 0238",""]); o[277][7].push(["027 203 6480","Mobile"]); o[206][7].push(["439 1570","Phone"]); o[206][7].push(["439 5253 ","Fax"]); o[206][7].push(["027 439 1570","Mobile"]); o[208][7].push(["439 8870",""]); o[29][7].push(["439 0255",""]); o[278][7].push(["439 8155","Phone"]); o[278][7].push(["439 6309","After Hours"]); o[207][7].push(["439 1576","Phone Fax"]); o[279][7].push(["439 6326",""]); o[61][7].push(["439 8479",""]); o[61][7].push(["Mobile: 027 280 3214",""]); o[113][7].push(["439 4788","Phone/Fax"]); o[280][7].push(["439 5946","Phone/Fax"]); o[209][7].push(["439 4975","Phone"]); o[209][7].push(["027 4 48 9652","Mobile"]); o[46][7].push(["439 8018",""]); o[281][7].push(["439 4342","Phone"]); o[281][7].push(["021 231 4114","Mobile"]); o[281][7].push(["027 293 6201","Mobile"]); o[282][7].push(["439 0217",""]); o[259][7].push(["439 8415",""]); o[283][7].push(["439 6349",""]); o[39][7].push(["439 0393",""]); o[273][7].push(["(09) 439 7235 Mobile 027 493 2206",""]); var o=JOE.data.tag; o[2]=[0,"Retail",null,[],[],[],false]; o[4]=[0,"Services",null,[],[],[],false]; o[6]=[0,"Travel",null,[],[],[],false]; o[9]=[0,"Miscellaneous",null,[],[],[],false]; o[10]=[4,"Accommodation",null,[],[],[],false]; o[11]=[4,"Automotive & Machinery",null,[],[],[],false]; o[12]=[2,"Arts & Crafts",null,[],[],[],false]; o[13]=[4,"Animal Care & Services",null,[],[],[],false]; o[14]=[4,"Building, Construction & Maintenance",null,[],[],[],false]; o[15]=[4,"Business & Community Services",null,[],[],[],false]; o[16]=[2,"Books & Stationary",null,[],[],[],false]; o[17]=[2,"Clothing, Fabrics, Shoes",null,[],[],[],false]; o[18]=[4,"Cleaning",null,[],[],[],false]; o[19]=[2,"Computers, Electrical, Electronics",null,[],[],[],false]; o[20]=[4,"Education & Training",null,[],[],[],false]; o[21]=[4,"Entertainment, Broadcasting, Clubs",null,[],[],[],false]; o[22]=[2,"Agriculture & Forrestry",null,[],[],[],false]; o[23]=[4,"Finance & Legal",null,[],[],[],false]; o[24]=[2,"Food & Drink",null,[],[],[],false]; o[25]=[4,"Health, Fitness & Personal Care",null,[],[],[],false]; o[26]=[2,"Home & Garden",null,[],[],[],false]; o[27]=[4,"Industrial & Engineering",null,[],[],[],false]; o[28]=[4,"Printing, Publishing & Design",null,[],[],[],false]; o[29]=[4,"Real Estate & Property",null,[],[],[],false]; o[30]=[4,"Security",null,[],[],[],false]; o[31]=[2,"Jewelery & Accessories",null,[],[],[],false]; o[32]=[2,"Sports & Outdoors",null,[],[],[],false]; o[33]=[4,"Storage & Hire",null,[],[],[],false]; o[34]=[6,"Transport",null,[],[],[],false]; o[35]=[6,"Travel & Tourism",null,[],[],[],false]; o[40]=[2,"Used Goods",null,[],[],[],false]; o[101]=[10,"Bed & Breakfast",null,[],[],[],false]; o[102]=[10,"Backpackers",null,[],[],[],false]; o[103]=[10,"Farmstays, Cottages & Homestays",null,[],[],[],false]; o[104]=[10,"Holiday & Caravan Parks",null,[],[],[],false]; o[105]=[10,"Hostels",null,[],[],[],false]; o[106]=[10,"Hotels & Taverns",null,[],[],[],false]; o[109]=[10,"Motels & Lodges",null,[],[],[],false]; o[110]=[10,"Retreats",null,[],[],[],false]; o[121]=[11,"Accessories",null,[],[],[],false]; o[122]=[11,"Electrical",null,[],[],[],false]; o[123]=[11,"Parts & Supplies",null,[],[],[],false]; o[124]=[11,"Servicing & Repairs",null,[],[],[],false]; o[125]=[11,"Valuers",null,[],[],[],false]; o[126]=[11,"Tyres",null,[],[],[],false]; o[127]=[11,"Petrol & Gas",null,[],[],[],false]; o[128]=[11,"Vehicle Sales",null,[],[],[],false]; o[129]=[11,"Panel Beating",null,[],[],[],false]; o[130]=[13,"Boarding Kennels",null,[],[],[],false]; o[131]=[13,"Veterinary Services",null,[],[],[],false]; o[140]=[14,"Canvas & Awnings",null,[],[],[],false]; o[141]=[14,"Building Supplies",null,[],[],[],false]; o[142]=[14,"Plumbers",null,[],[],[],false]; o[143]=[14,"Electrical",null,[],[],[],false]; o[151]=[23,"Accountants",null,[],[],[],false]; o[152]=[15,"Agents & Brokers",null,[],[],[],false]; o[153]=[15,"Business Advice",null,[],[],[],false]; o[154]=[15,"Business Organisations",null,[],[],[],false]; o[155]=[15,"Communication Systems",null,[],[],[],false]; o[156]=[15,"Display & Design",null,[],[],[],false]; o[157]=[15,"Employment",null,[],[],[],false]; o[158]=[15,"Insurance & Brokers",null,[],[],[],false]; o[159]=[15,"Legal",null,[],[],[],false]; o[160]=[15,"Marketing",null,[],[],[],false]; o[161]=[28,"Printing & Publishing",null,[],[],[],false]; o[162]=[15,"Legal",null,[],[],[],false]; o[171]=[17,"Surfware",null,[],[],[],false]; o[172]=[17,"Dry Cleaning",null,[],[],[],false]; o[173]=[17,"Shoes",null,[],[],[],false]; o[191]=[19,"Electricans",null,[],[],[],false]; o[201]=[20,"Pre-School",null,[],[],[],false]; o[202]=[20,"Primary School",null,[],[],[],false]; o[203]=[20,"Secondary School",null,[],[],[],false]; o[204]=[20,"Tertiary/Technical",null,[],[],[],false]; o[205]=[20,"Swimming",null,[],[],[],false]; o[206]=[20,"Adult Education",null,[],[],[],false]; o[211]=[21,"Clubs & Bars",null,[],[],[],false]; o[212]=[21,"Video Libraries",null,[],[],[],false]; o[213]=[21,"Radio",null,[],[],[],false]; o[230]=[23,"Banks",null,[],[],[],false]; o[231]=[23,"Finance Institutions",null,[],[],[],false]; o[240]=[24,"Butchers",null,[],[],[],false]; o[241]=[24,"Cafe & Restaurant",null,[],[],[],false]; o[242]=[24,"Take-a-ways",null,[],[],[],false]; o[243]=[24,"Dairy",null,[],[],[],false]; o[244]=[24,"Supermarket",null,[],[],[],false]; o[250]=[25,"Hairdressers",null,[],[],[],false]; o[251]=[25,"Gyms & Fitness",null,[],[],[],false]; o[252]=[25,"Dentists",null,[],[],[],false]; o[253]=[25,"Chemists",null,[],[],[],false]; o[261]=[26,"Appliances",null,[],[],[],false]; o[262]=[26,"Furniture/Furnishings",null,[],[],[],false]; o[263]=[26,"Garden Services",null,[],[],[],false]; o[265]=[26,"Home Fittings & Appliances",null,[],[],[],false]; o[266]=[26,"Home General",null,[],[],[],false]; o[267]=[26,"Carpet & Flooring",null,[],[],[],false]; o[268]=[26,"Upholstery",null,[],[],[],false]; o[269]=[26,"Decoration",null,[],[],[],false]; o[270]=[26,"Lawn Mowing",null,[],[],[],false]; o[340]=[34,"Carriers",null,[],[],[],false]; o[341]=[34,"Passenger Service",null,[],[],[],false]; o[350]=[35,"Scenic Tours",null,[],[],[],false]; o[401]=[40,"Antiques",null,[],[],[],false]; o[402]=[40,"Auctions",null,[],[],[],false]; o[403]=[40,"Exchange",null,[],[],[],false]; o[404]=[40,"Second Hand",null,[],[],[],false]; o[500]=[2,"Specialist Goods","Specialist Goods",[],[],[],false]; o[1100]=[11,"Motorcycles",null,[],[],[],false]; o[4][3]=[10,11,13,14,15,18,20,21,23,25,27,28,29,30,33]; o[2][3]=[12,16,17,19,22,24,26,31,32,40,500]; o[6][3]=[34,35]; o[10][3]=[101,102,103,104,105,106,109,110]; o[11][3]=[121,122,123,124,125,126,127,128,129,1100]; o[13][3]=[130,131]; o[14][3]=[140,141,142,143]; o[23][3]=[151,230,231]; o[15][3]=[152,153,154,155,156,157,158,159,160,162]; o[28][3]=[161]; o[17][3]=[171,172,173]; o[19][3]=[191]; o[20][3]=[201,202,203,204,205,206]; o[21][3]=[211,212,213]; o[24][3]=[240,241,242,243,244]; o[25][3]=[250,251,252,253]; o[26][3]=[261,262,263,265,266,267,268,269,270]; o[34][3]=[340,341]; o[35][3]=[350]; o[40][3]=[401,402,403,404]; o[2][4].push(279); o[4][4].push(273); o[6][4].push(283); o[9][4].push(71); o[9][4].push(83); o[9][4].push(85); o[9][4].push(87); o[9][4].push(92); o[9][4].push(95); o[9][4].push(113); o[9][4].push(118); o[9][4].push(122); o[9][4].push(136); o[9][4].push(154); o[9][4].push(166); o[9][4].push(168); o[9][4].push(198); o[9][4].push(208); o[9][4].push(222); o[9][4].push(229); o[9][4].push(234); o[10][4].push(30); o[10][4].push(44); o[10][4].push(46); o[10][4].push(61); o[10][4].push(68); o[10][4].push(72); o[10][4].push(104); o[10][4].push(109); o[10][4].push(115); o[10][4].push(117); o[10][4].push(126); o[10][4].push(135); o[10][4].push(143); o[10][4].push(156); o[10][4].push(169); o[10][4].push(181); o[10][4].push(188); o[10][4].push(206); o[10][4].push(213); o[10][4].push(218); o[10][4].push(280); o[10][4].push(281); o[11][4].push(20); o[11][4].push(27); o[11][4].push(28); o[11][4].push(36); o[11][4].push(38); o[11][4].push(41); o[11][4].push(53); o[11][4].push(56); o[11][4].push(57); o[11][4].push(69); o[11][4].push(73); o[11][4].push(74); o[11][4].push(76); o[11][4].push(94); o[11][4].push(99); o[11][4].push(102); o[11][4].push(103); o[11][4].push(106); o[11][4].push(119); o[11][4].push(152); o[11][4].push(158); o[11][4].push(161); o[11][4].push(191); o[11][4].push(192); o[11][4].push(197); o[11][4].push(215); o[11][4].push(227); o[11][4].push(236); o[11][4].push(238); o[11][4].push(242); o[11][4].push(243); o[11][4].push(245); o[11][4].push(263); o[12][4].push(19); o[12][4].push(29); o[12][4].push(105); o[12][4].push(196); o[12][4].push(209); o[12][4].push(226); o[13][4].push(59); o[13][4].push(67); o[13][4].push(78); o[14][4].push(42); o[14][4].push(43); o[14][4].push(45); o[14][4].push(52); o[14][4].push(65); o[14][4].push(81); o[14][4].push(96); o[14][4].push(137); o[14][4].push(138); o[14][4].push(139); o[14][4].push(141); o[14][4].push(148); o[14][4].push(184); o[14][4].push(217); o[14][4].push(251); o[14][4].push(262); o[15][4].push(133); o[15][4].push(211); o[15][4].push(254); o[15][4].push(256); o[15][4].push(257); o[15][4].push(277); o[16][4].push(149); o[16][4].push(159); o[16][4].push(272); o[17][4].push(37); o[17][4].push(75); o[17][4].push(123); o[17][4].push(131); o[17][4].push(146); o[17][4].push(174); o[17][4].push(258); o[18][4].push(203); o[19][4].push(48); o[19][4].push(116); o[19][4].push(134); o[19][4].push(155); o[19][4].push(167); o[19][4].push(204); o[19][4].push(249); o[21][4].push(32); o[21][4].push(63); o[21][4].push(84); o[21][4].push(171); o[21][4].push(244); o[21][4].push(253); o[21][4].push(265); o[22][4].push(10); o[22][4].push(67); o[22][4].push(82); o[22][4].push(125); o[22][4].push(127); o[22][4].push(128); o[22][4].push(129); o[22][4].push(172); o[22][4].push(176); o[22][4].push(183); o[22][4].push(189); o[22][4].push(191); o[22][4].push(237); o[22][4].push(239); o[22][4].push(255); o[22][4].push(270); o[22][4].push(273); o[22][4].push(276); o[23][4].push(175); o[24][4].push(15); o[24][4].push(31); o[24][4].push(39); o[24][4].push(44); o[24][4].push(46); o[24][4].push(51); o[24][4].push(66); o[24][4].push(88); o[24][4].push(89); o[24][4].push(91); o[24][4].push(93); o[24][4].push(101); o[24][4].push(108); o[24][4].push(132); o[24][4].push(145); o[24][4].push(147); o[24][4].push(163); o[24][4].push(165); o[24][4].push(177); o[24][4].push(179); o[24][4].push(186); o[24][4].push(194); o[24][4].push(199); o[24][4].push(201); o[24][4].push(205); o[24][4].push(225); o[24][4].push(232); o[24][4].push(235); o[25][4].push(33); o[25][4].push(34); o[25][4].push(35); o[25][4].push(64); o[25][4].push(114); o[25][4].push(178); o[25][4].push(248); o[25][4].push(252); o[26][4].push(86); o[26][4].push(97); o[26][4].push(98); o[26][4].push(151); o[26][4].push(157); o[26][4].push(162); o[26][4].push(185); o[26][4].push(204); o[26][4].push(216); o[26][4].push(224); o[26][4].push(264); o[27][4].push(25); o[27][4].push(45); o[27][4].push(47); o[27][4].push(49); o[27][4].push(55); o[27][4].push(58); o[27][4].push(79); o[27][4].push(107); o[27][4].push(111); o[27][4].push(142); o[27][4].push(153); o[27][4].push(164); o[27][4].push(173); o[27][4].push(195); o[27][4].push(202); o[27][4].push(241); o[27][4].push(259); o[27][4].push(261); o[28][4].push(11); o[28][4].push(228); o[28][4].push(246); o[28][4].push(247); o[29][4].push(23); o[29][4].push(24); o[29][4].push(112); o[29][4].push(187); o[31][4].push(124); o[32][4].push(144); o[33][4].push(233); o[34][4].push(22); o[34][4].push(62); o[34][4].push(113); o[34][4].push(121); o[34][4].push(129); o[34][4].push(193); o[34][4].push(212); o[34][4].push(214); o[34][4].push(221); o[34][4].push(269); o[34][4].push(271); o[35][4].push(61); o[35][4].push(77); o[35][4].push(206); o[35][4].push(207); o[35][4].push(209); o[35][4].push(212); o[35][4].push(269); o[35][4].push(281); o[35][4].push(283); o[40][4].push(16); o[40][4].push(182); o[101][4].push(30); o[101][4].push(156); o[101][4].push(213); o[103][4].push(126); o[103][4].push(188); o[104][4].push(26); o[104][4].push(61); o[104][4].push(68); o[105][4].push(109); o[105][4].push(169); o[106][4].push(44); o[106][4].push(46); o[109][4].push(23); o[109][4].push(72); o[109][4].push(104); o[109][4].push(115); o[109][4].push(135); o[109][4].push(143); o[109][4].push(181); o[109][4].push(218); o[110][4].push(206); o[121][4].push(38); o[122][4].push(56); o[122][4].push(274); o[122][4].push(279); o[124][4].push(28); o[124][4].push(36); o[124][4].push(57); o[124][4].push(74); o[124][4].push(106); o[124][4].push(161); o[126][4].push(27); o[126][4].push(76); o[126][4].push(94); o[126][4].push(102); o[127][4].push(41); o[127][4].push(158); o[128][4].push(69); o[128][4].push(73); o[128][4].push(152); o[128][4].push(243); o[129][4].push(99); o[129][4].push(103); o[129][4].push(192); o[130][4].push(59); o[131][4].push(78); o[140][4].push(42); o[141][4].push(43); o[142][4].push(52); o[143][4].push(65); o[143][4].push(81); o[143][4].push(268); o[143][4].push(274); o[153][4].push(277); o[155][4].push(1); o[156][4].push(1); o[156][4].push(211); o[158][4].push(12); o[158][4].push(14); o[159][4].push(278); o[161][4].push(266); o[162][4].push(231); o[171][4].push(123); o[172][4].push(174); o[173][4].push(258); o[191][4].push(155); o[191][4].push(268); o[191][4].push(274); o[211][4].push(63); o[211][4].push(147); o[211][4].push(169); o[211][4].push(171); o[213][4].push(244); o[213][4].push(265); o[231][4].push(175); o[240][4].push(15); o[241][4].push(31); o[241][4].push(39); o[241][4].push(89); o[241][4].push(101); o[241][4].push(108); o[241][4].push(132); o[241][4].push(147); o[241][4].push(163); o[241][4].push(186); o[241][4].push(201); o[242][4].push(91); o[242][4].push(93); o[242][4].push(147); o[242][4].push(177); o[242][4].push(179); o[242][4].push(199); o[243][4].push(194); o[244][4].push(225); o[244][4].push(235); o[250][4].push(33); o[250][4].push(252); o[251][4].push(34); o[252][4].push(64); o[253][4].push(178); o[261][4].push(116); o[262][4].push(216); o[265][4].push(116); o[265][4].push(275); o[267][4].push(13); o[267][4].push(162); o[268][4].push(54); o[269][4].push(97); o[269][4].push(151); o[270][4].push(98); o[340][4].push(62); o[340][4].push(214); o[341][4].push(212); o[341][4].push(271); o[350][4].push(207); o[402][4].push(16); o[500][4].push(272); o[500][4].push(282); o[1100][4].push(197); o[1100][4].push(238); o[1100][4].push(242); var o=JOE.data.company; o[279][8]=[2,122]; o[273][8]=[4,22]; o[283][8]=[6,35]; o[71][8]=[9]; o[83][8]=[9]; o[85][8]=[9]; o[87][8]=[9]; o[92][8]=[9]; o[95][8]=[9]; o[113][8]=[9,34]; o[118][8]=[9]; o[122][8]=[9]; o[136][8]=[9]; o[154][8]=[9]; o[166][8]=[9]; o[168][8]=[9]; o[198][8]=[9]; o[208][8]=[9]; o[222][8]=[9]; o[229][8]=[9]; o[234][8]=[9]; o[30][8]=[10,101]; o[44][8]=[10,24,106]; o[46][8]=[10,24,106]; o[61][8]=[10,35,104]; o[68][8]=[10,104]; o[72][8]=[10,109]; o[104][8]=[10,109]; o[109][8]=[10,105]; o[115][8]=[10,109]; o[117][8]=[10]; o[126][8]=[10,103]; o[135][8]=[10,109]; o[143][8]=[10,109]; o[156][8]=[10,101]; o[169][8]=[10,105,211]; o[181][8]=[10,109]; o[188][8]=[10,103]; o[206][8]=[10,35,110]; o[213][8]=[10,101]; o[218][8]=[10,109]; o[280][8]=[10]; o[281][8]=[10,35]; o[20][8]=[11]; o[27][8]=[11,126]; o[28][8]=[11,124]; o[36][8]=[11,124]; o[38][8]=[11,121]; o[41][8]=[11,127]; o[53][8]=[11]; o[56][8]=[11,122]; o[57][8]=[11,124]; o[69][8]=[11,128]; o[73][8]=[11,128]; o[74][8]=[11,124]; o[76][8]=[11,126]; o[94][8]=[11,126]; o[99][8]=[11,129]; o[102][8]=[11,126]; o[103][8]=[11,129]; o[106][8]=[11,124]; o[119][8]=[11]; o[152][8]=[11,128]; o[158][8]=[11,127]; o[161][8]=[11,124]; o[191][8]=[11,22]; o[192][8]=[11,129]; o[197][8]=[11,1100]; o[215][8]=[11]; o[227][8]=[11]; o[236][8]=[11]; o[238][8]=[11,1100]; o[242][8]=[11,1100]; o[243][8]=[11,128]; o[245][8]=[11]; o[263][8]=[11]; o[19][8]=[12]; o[29][8]=[12]; o[105][8]=[12]; o[196][8]=[12]; o[209][8]=[12,35]; o[226][8]=[12]; o[59][8]=[13,130]; o[67][8]=[13,22]; o[78][8]=[13,131]; o[42][8]=[14,140]; o[43][8]=[14,141]; o[45][8]=[14,27]; o[52][8]=[14,142]; o[65][8]=[14,143]; o[81][8]=[14,143]; o[96][8]=[14]; o[137][8]=[14]; o[138][8]=[14]; o[139][8]=[14]; o[141][8]=[14]; o[148][8]=[14]; o[184][8]=[14]; o[217][8]=[14]; o[251][8]=[14]; o[262][8]=[14]; o[133][8]=[15]; o[211][8]=[15,156]; o[254][8]=[15]; o[256][8]=[15]; o[257][8]=[15]; o[277][8]=[15,153]; o[149][8]=[16]; o[159][8]=[16]; o[272][8]=[16,500]; o[37][8]=[17]; o[75][8]=[17]; o[123][8]=[17,171]; o[131][8]=[17]; o[146][8]=[17]; o[174][8]=[17,172]; o[258][8]=[17,173]; o[203][8]=[18]; o[48][8]=[19]; o[116][8]=[19,261,265]; o[134][8]=[19]; o[155][8]=[19,191]; o[167][8]=[19]; o[204][8]=[19,26]; o[249][8]=[19]; o[32][8]=[21]; o[63][8]=[21,211]; o[84][8]=[21]; o[171][8]=[21,211]; o[244][8]=[21,213]; o[253][8]=[21]; o[265][8]=[21,213]; o[10][8]=[22]; o[82][8]=[22]; o[125][8]=[22]; o[127][8]=[22]; o[128][8]=[22]; o[129][8]=[22,34]; o[172][8]=[22]; o[176][8]=[22]; o[183][8]=[22]; o[189][8]=[22]; o[237][8]=[22]; o[239][8]=[22]; o[255][8]=[22]; o[270][8]=[22]; o[276][8]=[22]; o[175][8]=[23,231]; o[15][8]=[24,240]; o[31][8]=[24,241]; o[39][8]=[24,241]; o[51][8]=[24]; o[66][8]=[24]; o[88][8]=[24]; o[89][8]=[24,241]; o[91][8]=[24,242]; o[93][8]=[24,242]; o[101][8]=[24,241]; o[108][8]=[24,241]; o[132][8]=[24,241]; o[145][8]=[24]; o[147][8]=[24,211,241,242]; o[163][8]=[24,241]; o[165][8]=[24]; o[177][8]=[24,242]; o[179][8]=[24,242]; o[186][8]=[24,241]; o[194][8]=[24,243]; o[199][8]=[24,242]; o[201][8]=[24,241]; o[205][8]=[24]; o[225][8]=[24,244]; o[232][8]=[24]; o[235][8]=[24,244]; o[33][8]=[25,250]; o[34][8]=[25,251]; o[35][8]=[25]; o[64][8]=[25,252]; o[114][8]=[25]; o[178][8]=[25,253]; o[248][8]=[25]; o[252][8]=[25,250]; o[86][8]=[26]; o[97][8]=[26,269]; o[98][8]=[26,270]; o[151][8]=[26,269]; o[157][8]=[26]; o[162][8]=[26,267]; o[185][8]=[26]; o[216][8]=[26,262]; o[224][8]=[26]; o[264][8]=[26]; o[25][8]=[27]; o[47][8]=[27]; o[49][8]=[27]; o[55][8]=[27]; o[58][8]=[27]; o[79][8]=[27]; o[107][8]=[27]; o[111][8]=[27]; o[142][8]=[27]; o[153][8]=[27]; o[164][8]=[27]; o[173][8]=[27]; o[195][8]=[27]; o[202][8]=[27]; o[241][8]=[27]; o[259][8]=[27]; o[261][8]=[27]; o[11][8]=[28]; o[228][8]=[28]; o[246][8]=[28]; o[247][8]=[28]; o[23][8]=[29,109]; o[24][8]=[29]; o[112][8]=[29]; o[187][8]=[29]; o[124][8]=[31]; o[144][8]=[32]; o[233][8]=[33]; o[22][8]=[34]; o[62][8]=[34,340]; o[121][8]=[34]; o[193][8]=[34]; o[212][8]=[34,35,341]; o[214][8]=[34,340]; o[221][8]=[34]; o[269][8]=[34,35]; o[271][8]=[34,341]; o[77][8]=[35]; o[207][8]=[35,350]; o[16][8]=[40,402]; o[182][8]=[40]; o[26][8]=[104]; o[274][8]=[122,143,191]; o[268][8]=[143,191]; o[1][8]=[155,156]; o[12][8]=[158]; o[14][8]=[158]; o[278][8]=[159]; o[266][8]=[161]; o[231][8]=[162]; o[275][8]=[265]; o[13][8]=[267]; o[54][8]=[268]; o[282][8]=[500]; window.onload=function(){ // // declarations // var jdc=JOE.data.company, jdp=JOE.data.place, jdt=JOE.data.tag, jfg=JOE.flag, jfn=JOE.fn, jmc=JOE.meta.company, jmt=JOE.meta.tag, listingHeader=$('listingHeader'), listing=$('listing'); // // DOM data // // tags // find all places for all branches of tags, used to determine if tags should be displayed with current selection of places for(var t in jdt){ // get place from each company jdt[t][jmt.companies].each(function(c){ var place=jdc[c][jmc.place]; if(jdt[t][jmt.places].indexOf(place)==-1) jdt[t][jmt.places].push(place); // if not exists add to array }); } // return tag childrens places // recursive call to merge places from child nodes jfn.consolidateTagPlaces=function(tag){ var a=[]; // places from each child and merge for(var t in jdt){ if(jdt[t][jmt.parent]==tag){ a.combine(jdt[t][jmt.places]); if(jdt[t][jmt.children].length>0) a.combine(jfn.consolidateTagPlaces(t)); } } if(typeof jdt[tag]!='undefined') jdt[tag][jmt.places].combine(a); return a; } // get all tag branch places, 0=root tag parent jfn.consolidateTagPlaces(0); // // accordion // var accordion=new Accordion('dt.toggler','dd.content',{ opacity:false, display:4, alwaysHide:true, onActive:function(toggler,content){toggler.addClass('open');}, onBackground:function(toggler,content){toggler.removeClass('open');} }); // // locations/places // var placehtml='', allChecked=true, placesCookie=jfn.cookie.get('places'), places=[]; // checked places if(placesCookie!=null) places=jfn.cookie.get('places').split(','); for(var p in jdp){ // default checked var checked='checked'; if(placesCookie!=null){ // cookie if(places.indexOf(p)==-1){ checked=''; allChecked=false; } } else places.push(p); placehtml+='
'; }; // create toggler & content accordion.addSection( new Element('dt',{'class':'toggler','html':'Locations'}), new Element('dd',{'class':'content','html':'
'+placehtml}), 1); // // build tag hierarchy // jfn.tagHierarchy=function(title,parent,level){ var html=level==1?'': '
\ '+title+'\
\
'; for(var t in jdt){ if(parent==jdt[t][jmt.parent]){ // if sub-tags exist if(jdt[t][jmt.children].length>0){ html+='
'+jfn.tagHierarchy(jdt[t][jmt.name],t,level+1)+'
'; }else html+='
'+jdt[t][jmt.name]+'
'; } } return html+'
'; } accordion.addSection( new Element('dt',{'class':'toggler search','html':'Search'}), new Element('dd',{'class':'content','html':'
Loading search...
'}), 2); accordion.addSection( new Element('dt',{'class':'toggler','html':'Retail'}), new Element('dd',{'class':'content','html':'
'+jfn.tagHierarchy('Retail',2,1)+'
'}), 2); accordion.addSection( new Element('dt',{'class':'toggler','html':'Services'}), new Element('dd',{'class':'content','html':'
'+jfn.tagHierarchy('Services',4,1)+'
'}), 2); accordion.addSection( new Element('dt',{'class':'toggler','html':'Travel'}), new Element('dd',{'class':'content','html':'
'+jfn.tagHierarchy('Travel',6,1)+'
'}), 2); // // sub-accordion if(window.ie6) var heightValue='100%'; else var heightValue=''; // Selectors of the containers for switches and content var togglerName='dt.toggler_'; var contentName='dd.content_'; // Position selectors var counter=2; var toggler=$$(togglerName+counter); var content=$$(contentName+counter); while(true){ new Accordion(toggler,content,{ opacity:false, display:-1, alwaysHide:true, onComplete:function(){ if(!this.elements[this.previous]) return; var element=$(this.elements[this.previous]); if(element&&element.offsetHeight>0) element.setStyle('height',heightValue); }, onActive:function(toggler,content){ toggler.addClass('open'); }, onBackground:function(toggler,content){ toggler.removeClass('open'); } }); // Set selectors for next level counter++; toggler=$$(togglerName+counter); // for some reason the while loop breaking early, replaced with a forever loop // no further toggles found if(!toggler.length) break; content=$$(contentName+counter); } // // configure // // // set place flags and cookie // places.each(function(p){jfg.places.push(parseInt(p));}); // ensure int if(!allChecked) $('placeAll').setProperty('checked',false); if(placesCookie==null&&places.length>0){ jfn.cookie.set('places',places.join(','),100); } // check or uncheck all places $('placeAll').addEvent('click',function(){ var checked=this.getProperty('checked'); $$('input.place').each(function(p){ if(p.getProperty('checked')!=checked) p.click(); // trigger click event }); }); // // functions // // display companies // triggered by click on place, listAZ or tag jfn.displayCompanies=function(){ var html='', companyFound=false, bg=false; // if not a listing page if(!jfg.listPage) return; for(var c in jdc) if(jfn.listFilter(c)){ var htmlCo=''; companyFound=true; // basic if(jfg.listType==0){ htmlCo+='
'+ (jdc[c][jmc.contacts].length>0?jdc[c][jmc.contacts][0][0]:'')+ '
'+ ''+ (jfn.exists(jdc[c][jmc.website]) ?''+jdc[c][jmc.name]+' ['+jdc[c][jmc.website]+']' :jdc[c][jmc.name] )+ ''; if(jfn.exists(jdc[c][jmc.manager])) htmlCo+=', '+jdc[c][jmc.manager]; if(jfn.exists(jdc[c][jmc.address])) htmlCo+=', '+jdc[c][jmc.address]; }else // detailed if(jfg.listType==1){ if(jdc[c][jmc.contacts].length>0){ htmlCo+='
'; for(var p=0,lp=jdc[c][jmc.contacts].length;p
'; } htmlCo+='
'; } htmlCo+='

'+ (jfn.exists(jdc[c][jmc.website]) ?''+jdc[c][jmc.name]+' ['+jdc[c][jmc.website]+']' :jdc[c][jmc.name] )+'

'; if(jfn.exists(jdc[c][jmc.manager])) htmlCo+='

'+jdc[c][jmc.manager]+'

'; if(jfn.exists(jdc[c][jmc.email])) htmlCo+='

'+jdc[c][jmc.email]+'

'; if(jfn.exists(jdc[c][jmc.address])) htmlCo+='

'+jdc[c][jmc.address]+'

'; if(jdc[c][jmc.description]==1) htmlCo+='
[description]
'; // include tags var tags=''; jdc[c][jmc.tags].each(function(t){tags+='•'+jdt[t][jmt.name]+' ';}); htmlCo+='

Tags: '+tags+'

'; } bg=!bg; // background color flag html+='
'+htmlCo+'
'; } if(jfg.places.length==0) jfg.listTitle='select a location'; // no places listingHeader.innerHTML= ' '+ jfg.listTitle+'
'+ jfn.placeNames()+''; // change list type $('listType').addEvent('change',function(){jfg.listType=this.value;jfn.displayCompanies();}); listing.innerHTML=companyFound ?html :'no records'; JOE.fn.showPage('listing'); // // apply events // // company descriptions $$('div.companyDescription').addEvent('click',function(){ this.innerHTML='getting description'; this.load('lib/fetch.php?co='+this.getProperty('ref')); this.removeClass('companyDescription'); }); }; // // click events // // click on place jfn.clickOnPlace=function(){ var pl=jfg.places, placeId=parseInt(this.getProperty('id').substring(5)), checked=this.getProperty('checked'); if(checked) pl.push(placeId); // add else pl.splice(pl.indexOf(placeId),1); // remove jfn.cookie.set('places',pl.join(','),100); // save // // correct placeAll flag // if(!checked) $('placeAll').setProperty('checked',false); // remove regardless else{ // if all checked check placeAll $('placeAll').setProperty('checked',true); $$('input.place').each(function(p){ if(!p.getProperty('checked')) $('placeAll').setProperty('checked',false); }); } jfn.showCurrentPlaceTags(); // display tags if contains any company with a current place jfn.displayCompanies(); // redisplay listing } // // click on listing a-z jfn.clickOnListAZ=function(){ var list=this.getProperty('id'), x=list.charAt(4), y=list.charAt(5); // // listing // jfg.listTitle='Listing '+x.toUpperCase()+'-'+y.toUpperCase(); jfg.listPage=true; jfn.listFilter=function(co){ return( jdc[co][0].charAt(0).toLowerCase()>=x&& jdc[co][0].charAt(0).toLowerCase()<=y&& jfn.isCurrentPlace(jdc[co][jmc.place]) ); }; jfn.displayCompanies(); } // // click on tag jfn.clickOnTag=function(){ var tag=parseInt(this.getProperty('id').substr(3)); // find all child tags function childTags(tag){ var arr=[]; function getTags(t){ arr.push(t); jdt[t][jmt.children].each(function(n){getTags(n)}); } getTags(tag); return arr; }; // get all tags including child tags var allTags=childTags(tag); // listing jfg.listTitle=jdt[tag][1]; jfg.listPage=true; listingHeader.innerHTML='Directory Listing'; jfn.listFilter=function(co){ // display any company tag in allTags return( jdc[co][jmc.tags].length>0&& // which has tags jfn.isCurrentPlace(jdc[co][jmc.place])&& // current place jdc[co][jmc.tags].some(function(t){return (allTags.indexOf(t)>=0);}) // display if company tags part of this tag branch ); }; jfn.displayCompanies(); }; // // show/hide current place tags jfn.showCurrentPlaceTags=function(){ for(var t in jdt){ var placesExist=jdt[t][jmt.places].some(function(p){return jfn.isCurrentPlace(p);}); if($('dt'+t)!=null){ // dd should exist for each dt if(placesExist&&jdt[t][jmt.hidden]){ $('dt'+t).removeClass('hide'); $('dd'+t).removeClass('hide'); jdt[t][jmt.hidden]=false; }else if(!placesExist&&!jdt[t][jmt.hidden]){ $('dt'+t).addClass('hide'); $('dd'+t).addClass('hide'); jdt[t][jmt.hidden]=true; } } if($('tag'+t)!=null){ if(placesExist&&jdt[t][jmt.hidden]){ $('tag'+t).removeClass('hide'); jdt[t][jmt.hidden]=false; }else if(!placesExist&&!jdt[t][jmt.hidden]){ $('tag'+t).addClass('hide'); jdt[t][jmt.hidden]=true; } } } } // // visits // do: implement return visitor ideas later var cookie_visits=jfn.cookie.get('visits'); if(!cookie_visits) cookie_visits=0; jfn.cookie.set('visits',++cookie_visits,100); // // trigger events // // places // change event caused delay in IE used click event instead $$('input.place').addEvent('click',jfn.clickOnPlace); // // AZ listings $$('a.listaz').addEvent('click',jfn.clickOnListAZ); // // tags $$('a.tag').addEvent('click',jfn.clickOnTag); $$('div.tag').addEvent('click',jfn.clickOnTag); // // search $$('dt.search').addEvent('click',function(){ jfg.listTitle='Search'; listingHeader.innerHTML=''; jfg.listPage=false; JOE.fn.showPage('search'); $('searchMessage').innerHTML='Search the web'; }); // // setup jfn.showCurrentPlaceTags(); // // new external links $$('a.linkExternal').setProperty('target','_blank'); // // link override $$('a.linkOverride').each(function(a){ // those with ref call page if($defined(a.getProperty('ref'))){ a.removeProperty('href'); a.addEvent('click',function(){ jfg.listTitle='Events'; listingHeader.innerHTML=''; jfg.listPage=false; var req=new Request({ url:'page.php?id='+a.getProperty('ref'), onRequest:function(){listing.set('text','retrieving information...');}, onFailure:function(){listing.set('text','page not found');}, onSuccess:function(responseText,responseXML){ listing.innerHTML=responseText; // external links $$('#listing a').setProperty('target','_blank'); } }).send(); JOE.fn.showPage('listing'); }); } }); } // // google CSE function cse(){ // Create a search control var searchControl=new google.search.SearchControl(), drawOptions=new google.search.DrawOptions(), searcherOptions=new google.search.SearcherOptions(); // config draw drawOptions.setSearchFormRoot($('searchControl')); // control div drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED); // config control searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF); // open in same window // config searcher searcherOptions.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN); // local business CSE var businessSearch=new google.search.WebSearch(); businessSearch.setUserDefinedLabel('Local Business'); businessSearch.setUserDefinedClassSuffix('siteSearch'); // css businessSearch.setSiteRestriction({crefUrl:'http://dargaville.biz/cse.php?listing=1'}); // linked cse // local geographic // add searchers searchControl.addSearcher(businessSearch,searcherOptions); searchControl.addSearcher(new google.search.WebSearch()); searchControl.addSearcher(new google.search.NewsSearch()); searchControl.addSearcher(new google.search.BookSearch()); searchControl.addSearcher(new google.search.BlogSearch()); searchControl.addSearcher(new google.search.VideoSearch()); // draw searcher and attachment searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET); searchControl.draw($('searchResults'),drawOptions); // clear loading message $('loading').dispose(); } function maps(){ } function loadGoogle(){ // invoke cse google.load('search','1',{'nooldnames':true,'callback':cse}); //google.load('maps','2',{'callback':maps}); } // // google JOE.core.importJS('http://www.google.com/jsapi?key=ABQIAAAAh0qPcwoRwXePiOSOU-rBCBQ2BY0p239HqcEsjUnLCAEofooCzBScqosqK-5fzf9S5X9kYiSfGgvIZw&callback=loadGoogle'); // // header image JOE.core.importJS('lib/img.js');