var city_SuburbPairs=new Array();city_SuburbPairs.ADL=["ZTADLT01^^","ZTADLC02^^"];city_SuburbPairs.ABX=["ZTABXT01^^","ZTABXC03^^"];city_SuburbPairs.ASP=["ZTASPT01^^","ZTASPC02^^"];city_SuburbPairs.ARM=["ZTARMT01^^","ZTARMC51^^"];city_SuburbPairs.AKL=["ZTAKLT01^^","ZTAKLC02^^","ZTAKLC55^^"];city_SuburbPairs.AYQ=["ZTAYQT01^^","ZTAYQC01^^"];city_SuburbPairs.MEL=["ZTMELW03^^","ZTMELT02^^","ZTMELT01^^","ZTMELE03^^","ZTMELW02^^","ZTMELS03^^","ZTMELE02^^","ZTMELC02^^","ZTMELW04^^","ZTMELS01^^","ZTMELS02^^","ZTMELS06^^","ZTMELS05^^","ZTMELS07^^","ZTMELS59^^","ZTMELS04^^","ZTMELS08^^"];city_SuburbPairs.BNK=["ZTBNKT01^^"];city_SuburbPairs.BHE=["ZTBHET01^^"];city_SuburbPairs.BNE=["ZTBNET01^^","ZTBNEC54^^","ZTBNEC02^^","ZTBNES12^^","ZTBNES57^^","ZTBNES02^^","ZTBNEW01^^","ZTBNES01^^"];city_SuburbPairs.BHQ=["ZTBHQT01^^","ZTBHQC01^^"];city_SuburbPairs.BME=["ZTBMET01^^"];city_SuburbPairs.BUY=["ZTBUYC01^^"];city_SuburbPairs.BDB=["ZTBDBC52^^"];city_SuburbPairs.BWT=["ZTBWTT01^^"];city_SuburbPairs.CNS=["ztcnst01 ^^","ZTCNSC02^^"];city_SuburbPairs.CUD=["ZTCUDC52^^"];city_SuburbPairs.CBR=["ZTCBRT01^^","ZTCBRC02^^"];city_SuburbPairs.NTL=["ZTNTLT01^^","ZTNTLC02^^","ZTNTLS52^^"];city_SuburbPairs.CHC=["ZTCHCT01^^","ZTCHCC53^^"];city_SuburbPairs.CFS=["ZTCFST01^^","ZTCFSC02^^"];city_SuburbPairs.DRW=["ZTDRWT01^^","ZTDRWC02^^"];city_SuburbPairs.DPO=["ZTDPOT01^^","ZTDPOC02^^"];city_SuburbPairs.DBO=["ZTDBOT01^^"];city_SuburbPairs.DUD=["ZTDUDT01^^","ZTDUDC55^^"];city_SuburbPairs.EMD=["ZTEMDT01^^","ZTEMDC51^^"];city_SuburbPairs.GEX=["ZTGEXC01^^"];city_SuburbPairs.GET=["ZTGETT01^^"];city_SuburbPairs.GLT=["ztgltt01 ^^","ZTGLTC01^^"];city_SuburbPairs.OOL=["ZTOOLT01^^"];city_SuburbPairs.GFN=["ZTGFNT01^^","ZTGFNC01^^"];city_SuburbPairs.GFF=["ZTGFFT01^^","ZTGFFC01^^"];city_SuburbPairs.GUH=["ZTGUHC01^^"];city_SuburbPairs.HVB=["ZTHVBT01^^","ZTHVBC52^^"];city_SuburbPairs.HBA=["ZTHBAT01^^","ZTHBAC02^^"];city_SuburbPairs.IVR=["ZTIVRC01^^"];city_SuburbPairs.JAB=["ZTJABC01^^"];city_SuburbPairs.KGI=["ZTKGIT01^^","ZTKGIC01^^"];city_SuburbPairs.KTA=["ZTKTAT01^^","ZTKTAC01^^"];city_SuburbPairs.KTR=["ZTKTRC01^^"];city_SuburbPairs.KGY=["ZTKGYC01^^"];city_SuburbPairs.LST=["ZTLSTT01^^","ZTLSTC04^^"];city_SuburbPairs.LSY=["ZTLSYT01^^","ZTLSYC01^^"];city_SuburbPairs.MKY=["ZTMKYT01^^","ZTMKYC02^^"];city_SuburbPairs.MCY=["ZTMCYT01^^","ZTMCYC03^^"];city_SuburbPairs.MQL=["ZTMQLT01^^"];city_SuburbPairs.MRZ=["ZTMRZT01^^","ZTMRZC01^^"];city_SuburbPairs.MGB=["ZTMGBT01^^","ZTGGBC01^^"];city_SuburbPairs.DGE=["ZTDGET01^^","ZTDGEC01^^"];city_SuburbPairs.NPE=["ZTNPET01^^"];city_SuburbPairs.NSN=["ZTNSNT01^^"];city_SuburbPairs.ZNE=["ZTZNET01^^","ZTZNEC01^^"];city_SuburbPairs.NSA=["ZTNSAC02^^"];city_SuburbPairs.PBO=["ZTPBOT01^^"];city_SuburbPairs.PKE=["ZTPKET01^^","ZTPKEC01^^"];city_SuburbPairs.PER=["ZTPERT01^^","ZTPERN53^^","ZTPERC02^^","ZTPERS04^^","ZTPERN01^^","ZTPERE01^^"];city_SuburbPairs.PCN=["ZTPCNC01^^"];city_SuburbPairs.PHE=["ZTPHET01^^","ZTPHEC01^^"];city_SuburbPairs.PQQ=["ZTPQQT01^^","ZTPQQC01^^"];city_SuburbPairs.PTJ=["ZTPTJT01^^","ZTPTJC01^^"];city_SuburbPairs.ZQN=["ZTZQNT01^^"];city_SuburbPairs.ROK=["ZTROKT01^^","ZTROKC51^^"];city_SuburbPairs.ROT=["ZTROTT01^^"];city_SuburbPairs.SIX=["ZTSIXC01^^"];city_SuburbPairs.SFP=["ZTSFPC01^^"];city_SuburbPairs.SYD=["ZTSYDT01^^","ZTSYDN01^^","ZTSYDW09^^","ZTSYDC52^^","ZTSYDN02^^","ZTSYDS03^^","ZTSYDC54^^","ZTSYDC01^^","ZTSYDW01^^","ZTSYDW02^^","ZTSYDW10^^","ZTSYDE08^^"];city_SuburbPairs.TMW=["ZTTMWT01^^","ZTTMWC02^^"];city_SuburbPairs.TRO=["ZTTROT01^^"];city_SuburbPairs.TCA=["ZTTCAC01^^"];city_SuburbPairs.THG=["ZTTHGT01^^"];city_SuburbPairs.TWB=["ZTTWBO01^^","ZTTWBN01^^","ZTTWBW01^^"];city_SuburbPairs.TSV=["ZTTSVT01^^","ZTTSVC02^^"];city_SuburbPairs.WGA=["ZTWGAT01^^","ZTWGAC01^^"];city_SuburbPairs.WEI=["ZTWEIT01^^"];city_SuburbPairs.WLG=["ZTWLGT01^^","ZTWLGC52^^"];city_SuburbPairs.WOL=["ZTWOLC01^^"];var suburb_port=new Array();suburb_port.ZTABXT01="Airport";suburb_port.ZTABXC03="City";suburb_port.ZTADLT01="Airport";suburb_port.ZTADLC02="City";suburb_port.ZTAKLT01="Airport";suburb_port.ZTAKLC02="City Centre";suburb_port.ZTAKLC55="Pukekohe";suburb_port.ZTARMT01="Airport";suburb_port.ZTARMC51="City";suburb_port.ZTASPT01="Airport";suburb_port.ZTASPC02="City";suburb_port.ZTAXLC01="Alexandria";suburb_port.ZTAYQT01="Airport";suburb_port.ZTAYQC01="City";suburb_port.ZTBDBC52="City";suburb_port.ZTBHET01="Airport";suburb_port.ZTBHQT01="Airport";suburb_port.ZTBHQC01="City";suburb_port.ZTBHSN01="Hornsby";suburb_port.ZTBMET01="Airport";suburb_port.ZTBNET01="Airport";suburb_port.ZTBNEC54="Brendale";suburb_port.ZTBNEC02="City Centre";suburb_port.ZTBNES12="Cleveland ";suburb_port.ZTBNES57="Coorparoo ";suburb_port.ZTBNES02="Ipswich";suburb_port.ZTBNEW01="Rocklea";suburb_port.ZTBNES01="Woodridge";suburb_port.ZTBNKT01="Airport";suburb_port.ZTBUYC01="City";suburb_port.ZTBWTT01="Wynyard Airport";suburb_port.ZTCBRT01="Airport";suburb_port.ZTCBRC02="City";suburb_port.ZTCFST01="Airport";suburb_port.ZTCFSC02="City";suburb_port.ZTCHCT01="Airport";suburb_port.ZTCHCC53="City";suburb_port["ztcnst01 "]="Airport";suburb_port.ZTCNSC02="City";suburb_port.ZTCUDC52="City";suburb_port.ZTDBOT01="Airport";suburb_port.ZTDGET01="Airport";suburb_port.ZTDGEC01="City";suburb_port.ZTDPOT01="Airport";suburb_port.ZTDPOC02="City";suburb_port.ZTDRWT01="Airport";suburb_port.ZTDRWC02="City";suburb_port.ZTDUDT01="Airport";suburb_port.ZTDUDC55="City";suburb_port.ZTEMDT01="Airport";suburb_port.ZTEMDC51="City";suburb_port.ZTGETT01="Airport";suburb_port.ZTGEXC01="Geelong";suburb_port.ZTGFFT01="Airport";suburb_port.ZTGFFC01="City";suburb_port.ZTGFNT01="Airport";suburb_port.ZTGFNC01="City";suburb_port["ztgltt01 "]="Airport";suburb_port.ZTGLTC01="City";suburb_port.ZTGUHC01="City";suburb_port.ZTHBAT01="Airport";suburb_port.ZTHBAC02="City";suburb_port.ZTHVBT01="Airport";suburb_port.ZTHVBC51="City";suburb_port.ZTHVBC52="City";suburb_port.ZTIVRC01="City";suburb_port.ZTJABC01="City";suburb_port.ZTKGIT01="Airport";suburb_port.ZTKGIC01="City";suburb_port.ZTKGYC01="City";suburb_port.ZTKTAC01="City";suburb_port.ZTKTAT01="Airport";suburb_port.ZTKTRC01="City";suburb_port.ZTLSTT01="Airport";suburb_port.ZTLSTC04="City";suburb_port.ZTLSYT01="Airport";suburb_port.ZTLSYC01="City";suburb_port.ZTMBWC01="Moorabbin";suburb_port.ZTMCYT01="Airport";suburb_port.ZTMCYC03="City";suburb_port.ZTMELW03="Airport";suburb_port.ZTMELW04="City (Wendouree)";suburb_port.ZTMELT02="Airport (Avalon)";suburb_port.ZTMELT01="Airport (Tullamarine )";suburb_port.ZTMELE03="Bayswater";suburb_port.ZTMELW02="Bendigo ";suburb_port.ZTMELS03="Blackburn ";suburb_port.ZTMELE02="Caulfield";suburb_port.ZTMELC02="City (Centre)";suburb_port.ZTMELS01="Clayton";suburb_port.ZTMELS02="Dandenong";suburb_port.ZTMELS05="Frankston";suburb_port.ZTMELS06="Footscray";suburb_port.ZTMELS07="Preston";suburb_port.ZTMELS59="Richmond";suburb_port.ZTMELS04="South Melbourne";suburb_port.ZTMELS08="Tullamarine (Suburban)";suburb_port.ZTMGBT01="Airport";suburb_port.ZTGGBC01="City";suburb_port.ZTMKYT01="Airport";suburb_port.ZTMKYC02="City";suburb_port.ZTMQLT01="Airport";suburb_port.ZTMRZT01="Airport";suburb_port.ZTMRZC01="City";suburb_port.ZTNPET01="Airport (Hawkes Bay)";suburb_port.ZTNSAC02="City";suburb_port.ZTNSNT01="Airport";suburb_port.ZTNTLS52="Tumbi Umbi";suburb_port.ZTNTLC02="Charlestown";suburb_port.ZTNTLT01="Airport (Williamtown)";suburb_port.ZTOOLT01="Airport (Coolangatta)";suburb_port.ZTPBOT01="Airport";suburb_port.ZTPCNC01="Inter Island Ferry Terminal";suburb_port.ZTPERT01="Airport";suburb_port.ZTPERC02="City Centre";suburb_port.ZTPERS04="Fremantle";suburb_port.ZTPERN01="Osborne Park";suburb_port.ZTPERN53="Bassendean";suburb_port.ZTPERE01="Welshpool";suburb_port.ZTPHET01="Airport";suburb_port.ZTPHEC01="City";suburb_port.ZTPKEC01="City";suburb_port.ZTPKET01="Airport";suburb_port.ZTPQQT01="Airport";suburb_port.ZTPQQC01="City";suburb_port.ZTPTJT01="Airport";suburb_port.ZTPTJC01="City";suburb_port.ZTROKT01="Airport";suburb_port.ZTROKC51="City";suburb_port.ZTROTT01="Airport";suburb_port.ZTSFPC01="City";suburb_port.ZTSIXC01="City";suburb_port.ZTSYDT01="Airport";suburb_port.ZTSYDN01="Artarmon";suburb_port.ZTSYDW09="Blacktown";suburb_port.ZTSYDC52="Blakehurst";suburb_port.ZTSYDN02="Brookvale";suburb_port.ZTSYDS03="Campbelltown";suburb_port.ZTSYDC54="City (Centre)";suburb_port.ZTSYDC01="City (Kings Cross)";suburb_port.ZTSYDW02="Liverpool";suburb_port.ZTSYDW01="Granville";suburb_port.ZTSYDW10="Penrith";suburb_port.ZTSYDE08="West Ryde";suburb_port.ZTTCAC01="City";suburb_port.ZTTHGT01="Airport";suburb_port.ZTTMWT01="Airport";suburb_port.ZTTMWC02="City";suburb_port.ZTTROT01="Airport";suburb_port.ZTTSVT01="Airport";suburb_port.ZTTSVC02="City";suburb_port.ZTTWBO01="Airport";suburb_port.ZTTWBN01="Chinchilla ";suburb_port.ZTTWBW01="Murgon";suburb_port.ZTWEIT01="Airport";suburb_port.ZTWGAT01="Airport";suburb_port.ZTWGAC01="City";suburb_port.ZTWLGT01="Airport";suburb_port.ZTWLGC52="Inter Island Ferry Terminal";suburb_port.ZTWOLC01="City";suburb_port.ZTZNET01="Airport";suburb_port.ZTZNEC01="City";suburb_port.ZTZQNT01="Airport";var city_port=new Array();city_port.ADL="Adelaide";city_port.ABX="Albury";city_port.ASP="Alice Springs";city_port.ARM="Armidale";city_port.ARM="Armidale ";city_port.AKL="Auckland";city_port.AYQ="Ayers Rock ";city_port.AYQ="Ayers Rock  ";city_port.MEL="Ballarat";city_port.MEL="Ballarat Airport";city_port.BNK="Ballina";city_port.BHE="Blenheim";city_port.BNE="Brisbane";city_port.BHQ="Broken Hill";city_port.BHQ="Broken Hill ";city_port.BME="Broome ";city_port.BUY="Bunbury";city_port.BDB="Bundaberg";city_port.BWT="Burnie";city_port.CNS="Cairns";city_port.CUD="Caloundra";city_port.CBR="Canberra";city_port.NTL="Central Coast";city_port.CHC="Christchurch";city_port.CFS="Coffs Harbour";city_port.CFS="Coffs Harbour ";city_port.DRW="Darwin";city_port.DRW="Darwin ";city_port.DPO="Devonport";city_port.DBO="Dubbo ";city_port.DUD="Dunedin";city_port.EMD="Emerald";city_port.GEX="Geelong";city_port.GET="Geraldton";city_port.GLT="Gladstone ";city_port.GLT="Gladstone   ";city_port.OOL="Gold Coast";city_port.GFN="Grafton ";city_port.GFN="Grafton  ";city_port.GFF="Griffith";city_port.GFF="Griffith ";city_port.GUH="Gunnedah";city_port.HVB="Hervey Bay";city_port.HBA="Hobart";city_port.IVR="Inverell";city_port.JAB="Jabiru ";city_port.KGI="Kalgoorlie";city_port.KGI="Kalgoorlie ";city_port.KTA="Karratha";city_port.KTA="Karratha ";city_port.KTR="Katherine ";city_port.KGY="Kingaroy ";city_port.LST="Launceston";city_port.LSY="Lismore";city_port.MKY="Mackay";city_port.MKY="Mackay ";city_port.MCY="Maroochydore";city_port.HVB="Maryborough";city_port.MEL="Melbourne";city_port.MQL="Mildura ";city_port.MRZ="Moree";city_port.MGB="Mount Gambier";city_port.DGE="Mudgee";city_port.DGE="Mudgee ";city_port.NPE="Napier";city_port.NSN="Nelson";city_port.NTL="Newcastle";city_port.ZNE="Newman ";city_port.NSA="Noosa";city_port.PBO="Paraburdoo";city_port.PKE="Parkes";city_port.PKE="Parkes ";city_port.PER="Perth";city_port.PCN="Picton";city_port.PHE="Port Hedland";city_port.PHE="Port Hedland ";city_port.PQQ="Port Macquarie";city_port.PTJ="Portland";city_port.PTJ="Portland ";city_port.ZQN="Queenstown";city_port.ROK="Rockhampton";city_port.ROK="Rockhampton ";city_port.ROT="Rotorua";city_port.SIX="Singleton";city_port.SFP="Surfers Paradise";city_port.SYD="Sydney";city_port.TMW="Tamworth";city_port.TMW="Tamworth ";city_port.TRO="Taree";city_port.TCA="Tennant Creek ";city_port.THG="Thangool";city_port.TWB="Toowoomba";city_port.TSV="Townsville";city_port.WGA="Wagga Wagga";city_port.WGA="Wagga Wagga ";city_port.WEI="Weipa";city_port.WLG="Wellington";city_port.WOL="Wollongong";var headerConst=new Array();headerConst[0]=["Select a City","selectacity"];headerConst[1]=["---------------","separator"];var headerConstg=new Array();headerConstg[0]=["Select a Location","  "];headerConstg[1]=["---------------","  "];var carsPromoDropdown=new thrifty();function thrifty(){}thrifty.prototype.populateCarPromoPickupOptions=function(id){var citySuburbPair;var carSuburb;if(id=="carPickUp"){citySuburbPair="city_SuburbPairs";carSuburb="carPickUpSuburb"}if(id=="carDropOff"){citySuburbPair="city_SuburbPairs";carSuburb="carDropOffSuburb"}var pickupList=document.getElementById(id);var i=0;var m=0;var carPickupArray=new Array();var pickupCityCode;for(var pickupCityCode in eval(citySuburbPair)){pickupCityCode=pickupCityCode;carPickupArray[i++]=[eval("city_port")[pickupCityCode],pickupCityCode]}var singleCity=false;if(carPickupArray.length==1){singleCity=true}if(singleCity){pickupList.options[0]=new Option(carPickupArray[0][0],carPickupArray[0][1]);this.populatePickupCarPromoToOptions(carPickupArray[0][1],carSuburb)}else{for(i=0;i<headerConst.length;i++){pickupList.options[i]=new Option(headerConst[i][0],headerConst[i][1])}for(var j=0;j<carPickupArray.length;j++){pickupList.options[i++]=new Option(carPickupArray[j][0],carPickupArray[j][1])}this.populatePickupCarPromoToOptions(null,carSuburb)}};thrifty.prototype.populatePickupCarPromoToOptions=function(selected,id){var citySuburbPair;var carSuburb;if(id=="carPickUpSuburb"){citySuburbPair="city_SuburbPairs";carSuburb="carPickUpSuburb"}if(id=="carDropOffSuburb"){citySuburbPair="city_SuburbPairs";carSuburb="carDropOffSuburb"}var pickupList=document.getElementById(id);if(eval(pickupList)){pickupList.options.length=0;var singleCity=false;if(selected=="selectacity"||selected=="separator"||selected=="each"){selected=null}if(null!=selected){var toArray=new Array();var defaultValue=new Array();var m=0;if(eval(citySuburbPair)[selected].length>=1&&eval(citySuburbPair)[selected][0]!=null&&eval(citySuburbPair)[selected][0]!=""){for(var i=0;i<eval(citySuburbPair)[selected].length;i++){if(eval(citySuburbPair)[selected][i].split("^")[1]=="D"||eval(citySuburbPair)[selected][i].split("^")[1]=="d"){defaultValue[0]=[eval("suburb_port")[eval(citySuburbPair)[selected][i].split("^")[0]],eval(citySuburbPair)[selected][i]]}toArray[i]=[eval("suburb_port")[eval(citySuburbPair)[selected][i].split("^")[0]],eval(citySuburbPair)[selected][i]]}if(toArray!=null&&toArray.length==1){singleCity=true}}}if(singleCity){var k=0;for(k;k<headerConstg.length;k++){pickupList.options[k]=new Option(headerConstg[k][0],headerConstg[k][1])}pickupList.options[k]=new Option(toArray[0][0],toArray[0][1].split("^")[0]);if(defaultValue!=null&&defaultValue!=""){for(var i=0;i<pickupList.options.length;++i){if(pickupList.options[i].value==defaultValue[0][1].split("^")[0]){pickupList.options.selectedIndex=i;break}}}}else{var i=0;for(i;i<headerConstg.length;i++){pickupList.options[i]=new Option(headerConstg[i][0],headerConstg[i][1])}if(null!=toArray){for(var j=0;j<toArray.length;j++){pickupList.options[i++]=new Option(toArray[j][0],toArray[j][1].split("^")[0])}}if(defaultValue!=null&&defaultValue!=""){for(var i=0;i<pickupList.options.length;++i){if(pickupList.options[i].value==defaultValue[0][1].split("^")[0]){pickupList.options.selectedIndex=i;break}}}}}};function updateDropoffDropdown(a){carsPromoDropdown.populatePickupCarPromoToOptions(a.value,"carDropOffSuburb")}function updatePickupDropdown(a){carsPromoDropdown.populatePickupCarPromoToOptions(a.value,"carPickUpSuburb")}thrifty.prototype.populateCarVendorPickupOptions=function(e){var c=document.getElementById(e);var d=new Array();d[1]=["Thrifty","ZT"];var b=0;for(var a=1;a<d.length;a++){c.options[b++]=new Option(d[a][0],d[a][1])}};
