var city_SuburbPairs=new Array();city_SuburbPairs.adl=["zeadlt50^^","zeadlc60^^","zeadlc81^^","zeadlc83^^"];city_SuburbPairs.asp=["zeaspt50^^","zeaspc60^^"];city_SuburbPairs.ayq=["zeayqt50^^","zeayqc60^^"];city_SuburbPairs.bwu=["zebwuc60^^"];city_SuburbPairs.bne=["zebnet50^^","zebnen60^^","zebnec60^^","zebnew02^^","zebnec62^^"];city_SuburbPairs.cns=["zecnst50^^","zecnsc60^^"];city_SuburbPairs.cbr=["zecbrt50^^","zecbrc60^^","zecbrs61^^"];city_SuburbPairs.ool=["zeoolt50^^"];city_SuburbPairs.drw=["zedrwt50^^","zedrwc60^^"];city_SuburbPairs.emd=["zeemdt50^^","zeemdc60^^"];city_SuburbPairs.exm=["zeexmt50^^"];city_SuburbPairs.glt=["zegltt50^^"];city_SuburbPairs.kgc=["zekgct50^^","zekgcc60^^"];city_SuburbPairs.kta=["zektat50^^"];city_SuburbPairs.ktr=["zektrt50^^","zektrc60^^"];city_SuburbPairs.mky=["zemkyt50^^"];city_SuburbPairs.mcy=["zemcyt50^^","zemcyn60^^"];city_SuburbPairs.mel=["zemelt50^^","zemelc60^^"];city_SuburbPairs.ntl=["zentls60^^"];city_SuburbPairs.zne=["zeznet50^^"];city_SuburbPairs.noa=["zenoac60^^"];city_SuburbPairs.pbo=["zepbot50^^"];city_SuburbPairs.per=["zepert50^^","zeperc60^^"];city_SuburbPairs.phe=["zephet50^^"];city_SuburbPairs.rok=["zerokt50^^"];city_SuburbPairs.syd=["zesydt50^^","zesydc60^^","zesydw62^^","zesydw65^^","zesydw63^^","zesyds60^^"];city_SuburbPairs.twb=["zetwbc60^^"];city_SuburbPairs.tsv=["zetsvt50^^"];var suburb_port=new Array();suburb_port.zeadlt50="Airport";suburb_port.zeadlc60="City";suburb_port.zeadlc81="Klemzig";suburb_port.zeadlc83="Plymton";suburb_port.zeaspt50="Airport";suburb_port.zeaspc60="City";suburb_port.zeayqt50="Airport";suburb_port.zeayqc60="City";suburb_port.zebwuc60="City";suburb_port.zebnet50="Airport";suburb_port.zebnen60="Boondall";suburb_port.zebnec60="City";suburb_port.zebnew02="Slacks Creek";suburb_port.zebnec62="Surfers Paradise";suburb_port.zecnst50="Airport";suburb_port.zecnsc60="City";suburb_port.zecbrt50="Airport";suburb_port.zecbrc60="City";suburb_port.zecbrs61="Queanbeyan";suburb_port.zeoolt50="Airport";suburb_port.zedrwt50="Airport";suburb_port.zedrwc60="City";suburb_port.zeemdt50="Airport";suburb_port.zeemdc60="City";suburb_port.zeexmt50="Airport";suburb_port.zegltt50="Airport";suburb_port.zekgct50="Airport";suburb_port.zekgcc60="City";suburb_port.zektat50="Airport";suburb_port.zektrt50="Airport";suburb_port.zektrc60="City";suburb_port.zemkyt50="Airport";suburb_port.zemcyt50="Airport";suburb_port.zemcyn60="Noosa";suburb_port.zemelt50="Airport";suburb_port.zemelc60="City";suburb_port.zentls60="Gosford";suburb_port.zeznet50="Airport";suburb_port.zenoac60="City";suburb_port.zepbot50="Airport";suburb_port.zepert50="Airport";suburb_port.zeperc60="City";suburb_port.zephet50="Airport";suburb_port.zerokt50="Airport";suburb_port.zesydt50="Airport";suburb_port.zesydc60="City";suburb_port.zesydw62="Five Dock";suburb_port.zesydw65="Granville";suburb_port.zesydw63="Smithfield";suburb_port.zesyds60="Wollongong";suburb_port.zetwbc60="City";suburb_port.zetsvt50="Airport";var city_port=new Array();city_port.adl="Adelaide ";city_port.asp="Alice Springs";city_port.ayq="Ayers Rock";city_port.bwu="Bankstown";city_port.bne="Brisbane";city_port.cns="Cairns";city_port.cbr="Canberra";city_port.ool="Coolangatta";city_port.drw="Darwin";city_port.emd="Emerald";city_port.exm="Exmouth";city_port.glt="Gladstone";city_port.kgc="Kangaroo Island";city_port.kta="Karratha";city_port.ktr="Kartherine";city_port.ktr="Katherine";city_port.mky="Mackay";city_port.mcy="Maroochydore";city_port.mel="Melbourne";city_port.ntl="Newcastle";city_port.zne="Newman";city_port.noa="Nowra";city_port.pbo="Paraburdoo";city_port.per="Perth";city_port.phe="Port Headland";city_port.rok="Rockhampton";city_port.syd="Sydney";city_port.twb="Toowoomba";city_port.tsv="Townsville";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 rent_3_days_get_1_free();function rent_3_days_get_1_free(){}rent_3_days_get_1_free.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)}};rent_3_days_get_1_free.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")}rent_3_days_get_1_free.prototype.populateCarVendorPickupOptions=function(e){var c=document.getElementById(e);var d=new Array();d[1]=["Hertz","ZE"];var b=0;for(var a=1;a<d.length;a++){c.options[b++]=new Option(d[a][0],d[a][1])}};
