function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i < a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a && i < a.length &&(x=a[i]) && x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x && i < d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x && d.layers && i < d.layers.length; i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) { if ((x=MM_findObj(a[i]))!=null){ document.MM_sr[j++]=x; if(!x.oSrc) { x.oSrc=x.src; } x.src=a[i+2]; } } } function populate_suburbs() { var Suburbs = new Array(6); var Suburbids = new Array(6); Suburbs[1] = new Array(32); Suburbids[1] = new Array(32); Suburbs[1][0] = "All"; Suburbids[1][0] = 0; Suburbs[1][1] = "Amsterdamhoek"; Suburbids[1][1] = "13"; Suburbs[1][2] = "Beachview"; Suburbids[1][2] = "15"; Suburbs[1][3] = "Blue Horizon Bay"; Suburbids[1][3] = "14"; Suburbs[1][4] = "Bluewaterbay"; Suburbids[1][4] = "43"; Suburbs[1][5] = "Central"; Suburbids[1][5] = "4"; Suburbs[1][6] = "Colleen Glen"; Suburbids[1][6] = "5"; Suburbs[1][7] = "Glendinningvale"; Suburbids[1][7] = "31"; Suburbs[1][8] = "Humerail"; Suburbids[1][8] = "44"; Suburbs[1][9] = "Humewood"; Suburbids[1][9] = "2"; Suburbs[1][10] = "Kini bay"; Suburbids[1][10] = "47"; Suburbs[1][11] = "Linkside"; Suburbids[1][11] = "7"; Suburbs[1][12] = "Linton Grange"; Suburbids[1][12] = "49"; Suburbs[1][13] = "Lovemore Heights"; Suburbids[1][13] = "20"; Suburbs[1][14] = "Lovemore Park"; Suburbids[1][14] = "9"; Suburbs[1][15] = "Maitlands"; Suburbids[1][15] = "28"; Suburbs[1][16] = "Malabar"; Suburbids[1][16] = "46"; Suburbs[1][17] = "Mill Park"; Suburbids[1][17] = "10"; Suburbs[1][18] = "Mount Croix"; Suburbids[1][18] = "11"; Suburbs[1][19] = "Newton Park"; Suburbids[1][19] = "27"; Suburbs[1][20] = "Parsons Hill /Greenacres"; Suburbids[1][20] = "16"; Suburbs[1][21] = "Redhouse"; Suburbids[1][21] = "30"; Suburbs[1][22] = "Sardinia Bay"; Suburbids[1][22] = "38"; Suburbs[1][23] = "Schoenmakerskop"; Suburbids[1][23] = "19"; Suburbs[1][24] = "Seaview"; Suburbids[1][24] = "18"; Suburbs[1][25] = "St George's Park"; Suburbids[1][25] = "26"; Suburbs[1][26] = "Summerstrand"; Suburbids[1][26] = "1"; Suburbs[1][27] = "Sunridge Park"; Suburbids[1][27] = "37"; Suburbs[1][28] = "Thornhill"; Suburbids[1][28] = "32"; Suburbs[1][29] = "Walmer"; Suburbids[1][29] = "3"; Suburbs[1][30] = "Walmer Heights"; Suburbids[1][30] = "29"; Suburbs[1][31] = "Westlands"; Suburbids[1][31] = "39"; Suburbs[1][32] = "Zwide"; Suburbids[1][32] = "45"; Suburbs[2] = new Array(2); Suburbids[2] = new Array(2); Suburbs[2][0] = "All"; Suburbids[2][0] = 0; Suburbs[2][1] = "All of Addo"; Suburbids[2][1] = "21"; Suburbs[2][2] = "N2 New Addo Gateway"; Suburbids[2][2] = "40"; Suburbs[3] = new Array(1); Suburbids[3] = new Array(1); Suburbs[3][0] = "All"; Suburbids[3][0] = 0; Suburbs[3][1] = "All of Sunlands"; Suburbids[3][1] = "22"; Suburbs[4] = new Array(1); Suburbids[4] = new Array(1); Suburbs[4][0] = "All"; Suburbids[4][0] = 0; Suburbs[4][1] = "All of Patterson"; Suburbids[4][1] = "23"; Suburbs[5] = new Array(1); Suburbids[5] = new Array(1); Suburbs[5][0] = "All"; Suburbids[5][0] = 0; Suburbs[5][1] = "All of Jeffery's Bay"; Suburbids[5][1] = "48"; Suburbs[6] = new Array(1); Suburbids[6] = new Array(1); Suburbs[6][0] = "All"; Suburbids[6][0] = 0; Suburbs[6][1] = "All of Storm's River"; Suburbids[6][1] = "25"; //var Townid = this.options[this.selectedIndex].value; var Townid = document.getElementById("towns").options[document.getElementById("towns").selectedIndex].value; var SelectedSuburb = 0; document.getElementById("suburbs").options.length = 0; ListLength = Suburbs[Townid].length; for(var i=0; i < ListLength; i++) { document.getElementById("suburbs").options[i] = new Option(Suburbs[Townid][i],Suburbids[Townid][i] ); if (document.getElementById("selectedsuburb").value == Suburbids[Townid][i]) $SelectedSuburb = i; } document.getElementById("suburbs").selectedIndex = $SelectedSuburb; } // window.onunload="GUnload()"; window.onload = function () { initializeGMap(); MM_preloadImages('navbar_pics/but_hom2.gif','navbar_pics/but_eve2.gif','navbar_pics/but_map2.gif','navbar_pics/but_acc2.gif','navbar_pics/but_con2.gif','navbar_pics/but_abo2.gif'); if (document.getElementById("towns") != null) { populate_suburbs(); document.getElementById("towns").onchange = populate_suburbs; } } //window.onload