var _PDSMapFactory=function(){
this._mapPanes=new Object();
this.hostName=null;
this.build=300810;
this.appName="pdsmap-dev";
this.wmsAppName="pdswms-v32";
this.gapi=new Object();
this.gapi["www.mapshed.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAAed2KVRtOIxaLV89K00YzcRS-EHilOwu_eAStUOLx-B4e82pK7hRA9ZPNCvbGnojWY6v8K_dKt-AumQ";
this.gapi["localhost:8080"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAA1H27YJz007jrRDReyfnl7hTwM0brOpm-All5BF6PoaKBxRWWERTU1zCXcLpOCsS_CVvFVcGP418_1w";
this.gapi["maps02.pdslive.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xRb-rnmjXsvNqcGZ3wqfNFWG2UJKxQZGD0wxR0wBQKQb-nIe-i1gZDcAQ";
this.gapi["www.pdslive.com.au"]="http://maps.google.com/maps?oe=utf-8&file=api&v=2&key=ABQIAAAAHeIvQ-KDKu5DN_ftsOf-kxTKQ2visGQtQhwyPrT4cdrAwILynBSDMCxWZkdtPfLIYDpZ9jT1AikL5Q&client=gme-datasolutions&gl=us";
this.gapi["new.ljhooker.com"]="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAed2KVRtOIxaLV89K00YzcRReafvSyNUoxAsV-IxzRzu12WMjEBS-LQnBYIsuwUVS1IPLvqS-xzL3Mw";
this.gapi["testing02.ljhooker.com.au"]="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAARCqFhxF4r0bltgv676Kf1xSuj1uwUcktBTn1tWlNVhJyLibmzRRxMCL5aqPbAfVkKiKf9huNL6qsaw";
this.gapi["testing02.ljhooker.co.nz"]="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAARCqFhxF4r0bltgv676Kf1xT3PvGf1jXYDbUmesuc291O7hVOrRRPGlyfQPYRx2bOOKXfDJzg4Zg_gg";
this.gapi["dev.ljhooker.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xTTyWvKL6TwvR6A1U8COdIXAtDPGxSuF43O1eJemiwVHndMjDtugaD9TA";
this.gapi["dev.ljhooker.co.nz"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xSfcf0xF166HptUwPjSCa3uG3KC6xSlgSqac1aGFe4f2FuQ-PpGK7hyDA";
this.gapi["local.ljhooker.com.a"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xThAUeB6axBNx2PWPyIAObYSQ3a5xR9JzIjdvJMIbW3M7hX9koldzJclw";
this.gapi["local.ljhooker.co.nz"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xRB2MPegrqqUR8z5uSv9CUJclf6qxTPDoz3DE-pOR-tWimXmLnVwnfzng";
this.gapi["testing.ljhooker.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xQCak9j91KWZ5wjqCRKMuAq9I9ohBS2oA_DCeGlozcGmtMnqWIcl-vxcA";
this.gapi["testing.ljhooker.co.nz"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xRMa4DSTpQi2Ib5FtKXmDaG28LQ8BROPMTN8Iv1iddvOY8561swivWmuw";
this.gapi["www.ljhooker.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xRo2kousZrG-T4ElrIUTM1ywKzQChRf4WO2u7oj2RRlsL1zsORPyif3uA";
this.gapi["www.ljhooker.co.nz"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xRHumzXNYkGyUzfyz5UzhoD_O9IGRTPo5kjm5L-53-CoxZgyaG3ndzqiw";
this.gapi["new.ljhooker.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xReafvSyNUoxAsV-IxzRzu12WMjEBQ4lLeg2z5EKZNB50JZbBob1Hjbgw";
this.gapi["new.ljhooker.co.nz"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xQsoAsppOQ-w2mlOu3j3mcs7ZylGBSFz-VcisqsuwIWYwoLykO2MIKRMg";
this.gapi["realnet.shockmedia.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xQ-kJgpeCAB4drD4--9dTp9_uG-ZxQmPLTyhkjFxDK2PFaIspJW5it3AA";
this.gapi["maps.raisingchildren.net.au"]="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAed2KVRtOIxaLV89K00YzcRRQCCH3K_iyWqcezENUWQswzvPQcBRQ1Cij8ntVWviKJq5xlN-37bquQA";
this.gapi["raisingchildren.net.au"]="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA1H27YJz007jrRDReyfnl7hT_H2B-aA65DmKRHnYsXTN9lmm0ixSf0OcqDVzY45VlWPlN68FhdBLrNg";
this.gapi["myproperty.raywhite.com"]="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xSaY8t5aoiWfAer1tiV-5zfilKomRR9EXDpUG1hCBtnKIxusTYRSJfpUw";
this.gapi["raywhite.com"]="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xSL6WhTBynyj4cVGBz-54VOPPL9nRQsV6QfINBD7XI7BxbciU0MNloCDQ";
this.gapi["rh.com.au"]="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xRNOY9769nNVeAZXiM09zwjNglwxhTYHHsRIvogMZPNjh4BareeuMaBww";
this.gapi["pdslive.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xRtVMNrJxifUCNO2eeRZXs0mtC9vxQAjVgL5tELKzfdqkvhmU5GN2DbPw";
this.gapi["realnet.pdslive.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xQD-5Zb9VTm4HqRKTlVC3_v-sw6nhRELfcU-uT0LLPv5tMfWAVWopJSKA";
this.gapi["sameville.com"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xTSDqewWIZz87iyrx7amivAKvQyPRRohNl2W6EO6itdqxGstZOtEavXqQ";
this.gapi["reiwa.com"]="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAucEQWT_pg8QnH-4UcYLEAxSmCa9kjgIbgxTEiov8_b0raf9G4hShOep0L-aurYjlsY-0bEAmWbCb9A";
this.gapi["reiwa.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAA66ze8xi30r_0hh-7UNY2WBQrmKO4Oa7vkCMKy2I0ekondaAGCRS9fCPzbaO-rWSod16vlqcAkiAXhg";
this.gapi["reiwa.net"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAA66ze8xi30r_0hh-7UNY2WBTaFBIU-9n73ogT663dREFxHNo8dhTR-foRz-4mX6LUvV9L33JCx1D9KA";
this.gapi["myfootballclub.com.au"]="http://maps.google.com.au/maps?file=api&v=2&key=ABQIAAAARCqFhxF4r0bltgv676Kf1xQHTq42MFmMZ9BGVq29VrPJEJX2GhRvL54HQA9MPQ4yZyMkYzTCxQyfag";
this.gapi["realnetrealestate.com.au"]="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA1H27YJz007jrRDReyfnl7hTazCCnQdn1KK3QaEYrd0ORcLUSiRTgFIc0opkzi7ns0wZNIZ8WgddunQ";
this.gapi["vodafone.com.au"]="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAARCqFhxF4r0bltgv676Kf1xQTWMmGLOsYuOPLHqVdMwjXZYrmHxTVfcgNg72XGWRCFBfsi5_OFO1abA";
this.gapi["three.com.au"]="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAARCqFhxF4r0bltgv676Kf1xSjK6IG_vVHLRISdljSTfosL5YpoRRX7kIJQkhaplohVShkGc9kniizzQ";
this.gapi["vodafonechannel.com.au"]="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAARCqFhxF4r0bltgv676Kf1xQMNYr10_G-p-UsEirbXjPhr_wOaxTWWdBfHmLJcmi8aokYIeDOnJuCwA";
this.gapi["vhachannel.com.au"]="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAARCqFhxF4r0bltgv676Kf1xQNrloBcJ8zBqowfmXfzZa4x2dzJBRieMpZoh3oVjAM_5nC_DXSPp6A7w";
this.createMapPane=function(_1,_2){
if(_2==null){
_2=true;
}
if(PDSMapFactory._mapPanes==null){
PDSMapFactory._mapPanes=new Object();
}
_1.hostName=this.hostName;
if(_1.mapServerName==null||_1.mapServerName==""){
_1.mapServerName=this.hostName;
}
_1.appName=this.appName;
if(_1.wmsAppName==null||_1.wmsAppName==""){
_1.wmsAppName=this.wmsAppName;
}
_1.mapPaneDiv=document.getElementById(_1.mapPaneDivName);
_1.mapPaneDiv.style.visibility="hidden";
_1.mapPaneDiv.style.display="block";
try{
var s=document.createElement("div");
s.style.position="absolute";
s.style.top=_1.mapPaneDiv.offsetTop;
s.style.left=_1.mapPaneDiv.offsetLeft;
s.style.width=_1.mapPaneDiv.clientWidth;
s.style.height=_1.mapPaneDiv.clientHeight;
_1.mapPaneCoverDiv=s;
_1.mapPaneDiv.parentNode.appendChild(s);
if(_1.loadingMapPane){
_1.loadingMapPane(s);
}
}
catch(ex){
console.log("ERROR loading div creation - "+ex.message);
}
_1._autoInitialize=_2;
var _3=_1.getMapPaneFileName();
var _4=_1;
PDSMapFactory._mapPanes[_1.mapPaneDivName]=_1;
if(_1.mapPaneDiv!=null){
var _5=this.hostName+"/"+this.appName+"/getScript?file="+_3+"&callback=PDSMapFactory._createMapPane({'mapPane':'"+_1.mapPaneDivName+"',";
JSONscriptRequest.addScript(_5,false);
_1.mapPaneDiv.innerHTML="";
}
};
this.setApplicationConfiguration=function(){
this.hostName=window.location.protocol+"//"+window.location.host;
var _6="/base/PDSMapFactory";
var _7=document.getElementsByTagName("script");
for(var i=0;i<_7.length;i++){
var _8=_7[i].getAttribute("src");
if(_8){
var _9=_8.lastIndexOf(_6);
if(_9<0){
continue;
}
var _a=_8;
if(_a.substr(0,4)!="http"){
var _b=document.URL;
var i=_b.lastIndexOf("/");
_a=_b.substr(0,i)+"/"+_a;
}
var _c=_a.substr(0,_9);
if(_c.substr(0,4)=="http"){
_c=_a.substr(9);
var _d=_c.indexOf("/");
_d+=9;
this.hostName=_a.substr(0,_d);
_c=_a.substr(_d+1);
this.appName=_c.substr(0,_c.indexOf("/"));
}
}
}
};
this._createMapPane=function(_e){
var _f=_e.mapPane;
var _10=document.getElementById(_f);
_10.innerHTML=_e.htmlData;
var _11=PDSMapFactory._mapPanes[_f];
_11._mapPaneReady=true;
if(_11.preCreateMapPane!=null){
_11.preCreateMapPane();
}
if(_11._autoInitialize==true){
_11.open();
}
if(_11.onCreateMapPane!=null){
_11.onCreateMapPane();
}
};
this.loadResources=function(_12){
host=this.hostName+"/"+this.appName+"/";
var _13="";
for(var i=0;i<_12.length;i++){
var _14=host+_12[i];
if(_12[i].substr(0,4)=="http"){
_14=_12[i];
}
if(_12[i]=="GOOGLE_MAP_API"){
if(typeof GLog!="undefined"){
continue;
}
var gk=new Array();
var app=document.URL;
if(app.substr(0,4)=="http"){
var st=app.indexOf("://")+3;
var _15=app.substr(st);
var end=_15.indexOf("/");
if(end>0){
_15=_15.substr(0,end);
}
_14=this.gapi[_15];
if(_14==null){
var _16=_15.indexOf(".");
if(_16>0){
var _17=_15.substr(_16+1);
_14=this.gapi[_17];
if(_14==null){
var _18=_17.indexOf(":");
if(_18>0){
var _19=_17.substr(0,_18);
_14=this.gapi[_19];
}
}
}
}
}
if(_14==null){
continue;
}
document.write("<script type=\"text/javascript\" src=\""+_14+"\"></script>");
continue;
}
if(_14==null||_14==""){
continue;
}
if(/MSIE/.test(navigator.userAgent)||/Safari/.test(navigator.userAgent)){
var _1a="<script type=\"text/javascript\" src=\""+_14+"?b="+this.build+"\"></script>";
if(_14.indexOf(".css")>0){
_1a="<link rel=\"stylesheet\" href=\""+host+"getScript?file="+_12[i]+"&b="+this.build+"\"></link>";
}
_13+=_1a;
}else{
var s=null;
if(_12[i].indexOf(".css")>0){
s=document.createElement("link");
s.setAttribute("rel","stylesheet");
s.setAttribute("type","text/css");
s.setAttribute("href",host+"getScript?file="+_12[i]+"&b="+this.build);
}else{
s=document.createElement("script");
s.src=_14+"?b="+this.build;
var _1b="text/javascript";
s.setAttribute("type",_1b);
}
var h=document.getElementsByTagName("head").length?document.getElementsByTagName("head")[0]:document.body;
if(s!=null){
h.appendChild(s);
}
}
}
if(_13){
document.write(_13);
}
};
};
function JSONscriptRequest(_1c){
this.fullUrl=_1c;
this.noCacheIE="&noCacheIE="+(new Date()).getTime();
this.headLoc=document.getElementsByTagName("head").length?document.getElementsByTagName("head")[0]:document.body;
this.scriptId="YJscriptId"+JSONscriptRequest.scriptCounter++;
};
JSONscriptRequest.scriptCounter=1;
JSONscriptRequest.requests=new Object();
JSONscriptRequest.prototype.buildScriptTag=function(_1d){
this.scriptObj=document.createElement("script");
this.scriptObj.setAttribute("type","text/javascript");
if(_1d!=null&&_1d==true){
this.scriptObj.setAttribute("src",this.fullUrl);
}else{
this.scriptObj.setAttribute("src",this.fullUrl+this.noCacheIE);
}
};
JSONscriptRequest.prototype.onSuccess=function(){
};
JSONscriptRequest.prototype.removeScriptTag=function(){
if(this.scriptObj!=null&&this.headLoc!=null){
this.headLoc.removeChild(this.scriptObj);
}
};
JSONscriptRequest.prototype.addScriptTag=function(){
if(this.scriptObj!=null&&this.headLoc!=null){
this.headLoc.appendChild(this.scriptObj);
}
};
JSONscriptRequest.addScript=function(url,_1e){
if(_1e==null){
_1e=false;
}
var obj=new JSONscriptRequest(url);
obj.buildScriptTag(_1e);
obj.addScriptTag();
};
JSONscriptRequest.getData=function(url,cb){
var _1f=true;
var obj=new JSONscriptRequest(url);
obj.buildScriptTag(_1f);
obj.callback=cb;
var iq=url.indexOf("?");
var req=url.substr(iq+1);
JSONscriptRequest.requests[req]=obj;
obj.scriptObj.onreadystatechange=function(){
if(this.readyState=="complete"){
obj.removeScriptTag();
}
};
obj.scriptObj.onload=function(){
obj.removeScriptTag();
};
obj.addScriptTag();
return obj;
};
JSONscriptRequest.remoteCall=function(url,cb){
var _20=false;
var obj=new JSONscriptRequest(url);
obj.buildScriptTag(_20);
obj.callback=cb;
var iq=url.indexOf("?");
var req=url.substr(iq+1);
JSONscriptRequest.requests[req]=obj;
obj.addScriptTag();
return obj;
};
JSONscriptRequest.onReturn=function(url,_21,_22){
if(url==null){
return;
}
var iq=url.indexOf("?");
var req=url.substr(iq+1);
var _23=JSONscriptRequest.requests[req];
if(_23!=null&&_23.callback){
if(_22!=null){
_23.callback(_21,_22);
}else{
_23.callback(_21,url);
}
}
_21=null;
url=null;
JSONscriptRequest.requests[req]=null;
delete JSONscriptRequest.requests[req];
};
var PDSMapFactory=new _PDSMapFactory();
PDSMapFactory.setApplicationConfiguration();
PDSMapFactory.loadResources(["GOOGLE_MAP_API","OpenLayers-2.7/lib/Firebug/firebugx.js","OpenLayers-2.7/OpenLayers.js","base/PDSLayerSet.js","base/MapConfig.js","base/RealestateMapConfig.js","base/RealestateMapConfig2.js"]);


