function Agent(){
}
Agent.prototype.getEmail=function(){
return this.email;
};
Agent.prototype.setEmail=function(_1){
this.email=_1;
};
Agent.prototype.getContactUsUri=function(){
return this.contactUsUri;
};
Agent.prototype.setContactUsUri=function(_2){
this.contactUsUri=_2;
};
Agent.prototype.getName=function(){
return this.name;
};
Agent.prototype.setName=function(_3){
this.name=_3;
};
Agent.prototype.getDescription=function(){
return this.description;
};
Agent.prototype.setDescription=function(_4){
this.description=_4;
};
Agent.prototype.getPrimaryContactNumber=function(){
return this.primaryContactNumber;
};
Agent.prototype.setPrimaryContactNumber=function(_5){
this.primaryContactNumber=_5;
};
Agent.prototype.getAgentContactNumber=function(){
return this.agentContactNumber;
};
Agent.prototype.setAgentContactNumber=function(_6){
this.agentContactNumber=_6;
};
Agent.prototype.getAddress=function(){
return this.address;
};
Agent.prototype.setAddress=function(_7){
this.address=_7;
};
Agent.prototype.getWebSiteUrl=function(){
return this.webSiteUrl;
};
Agent.prototype.setWebSiteUrl=function(_8){
this.webSiteUrl=_8;
};
function Room(){
}
Room.prototype.getIdentifier=function(){
return this.identifier;
};
Room.prototype.setIdentifier=function(_9){
this.identifier=_9;
};
Room.prototype.getDisplay=function(){
return this.display;
};
Room.prototype.setDisplay=function(_a){
this.display=_a;
};
function Feature(){
}
Feature.prototype.getIdentifier=function(){
return this.identifier;
};
Feature.prototype.setIdentifier=function(_b){
this.identifier=_b;
};
Feature.prototype.getDisplay=function(){
return this.display;
};
Feature.prototype.setDisplay=function(_c){
this.display=_c;
};
function PropImage(){
}
PropImage.prototype.getTitle=function(){
return this.title;
};
PropImage.prototype.setTitle=function(_d){
this.title=_d;
};
PropImage.prototype.getThumbHref=function(){
return this.thumbHref;
};
PropImage.prototype.setThumbHref=function(_e){
this.thumbHref=_e;
};
PropImage.prototype.getDisplayHref=function(){
return this.displayHref;
};
PropImage.prototype.setDisplayHref=function(_f){
this.displayHref=_f;
};
function Address(){
}
Address.prototype.getFirstLine=function(){
return this.firstLine;
};
Address.prototype.setFirstLine=function(_10){
this.firstLine=_10;
};
Address.prototype.getSecondLine=function(){
return this.secondLine;
};
Address.prototype.setSecondLine=function(_11){
this.secondLine=_11;
};
Address.prototype.getIntersection=function(){
return this.intersection;
};
Address.prototype.setIntersection=function(_12){
this.intersection=_12;
};
Address.prototype.getCode=function(){
return this.code;
};
Address.prototype.setCode=function(_13){
this.code=_13;
};
Address.prototype.getArea=function(){
return this.area;
};
Address.prototype.setArea=function(_14){
this.area=_14;
};
Address.prototype.getAreaDisplay=function(){
return this.areaDisplay;
};
Address.prototype.setAreaDisplay=function(_15){
this.areaDisplay=_15;
};
Address.prototype.getCity=function(){
return this.city;
};
Address.prototype.setCity=function(_16){
this.city=_16;
};
Address.prototype.getCityDisplay=function(){
return this.cityDisplay;
};
Address.prototype.setCityDisplay=function(_17){
this.cityDisplay=_17;
};
function PropertySpec(_18,_19,_1a,_1b){
this.operation=this.assignIfWellDefined(_18);
this.propertyType=this.assignIfWellDefined(_19);
this.bedroomsLivingRooms=this.assignIfWellDefined(_1a);
this.area=this.assignIfWellDefined(_1b);
}
PropertySpec.prototype.assignIfWellDefined=function(_1c){
var _1d=null;
if(this.isWellDefined(_1c)){
_1d=_1c.trim();
}else{
_1d=null;
}
return _1d;
};
PropertySpec.prototype.isWellDefined=function(_1e){
var _1f=false;
if(_1e){
_1f=(_1e!=null)&&(_1e.trim()!="");
}
return _1f;
};
PropertySpec.prototype.getOperation=function(){
return this.operation;
};
PropertySpec.prototype.getPropertyType=function(){
return this.propertyType;
};
PropertySpec.prototype.getBedroomsLivingRooms=function(){
return this.bedroomsLivingRooms;
};
PropertySpec.prototype.getArea=function(){
return this.area;
};
PropertySpec.prototype.equals=function(_20){
var _21=false;
if(_20&&(_20!=null)){
var _22=!this.isWellDefined(this.getOperation())||(this.getOperation()==_20.getOperation());
var _23=!this.isWellDefined(this.getPropertyType())||(this.getPropertyType()==_20.getPropertyType());
var _24=!this.isWellDefined(this.getBedroomsLivingRooms())||(this.getBedroomsLivingRooms()==_20.getBedroomsLivingRooms());
var _25=!this.isWellDefined(this.getArea())||(this.getArea()==_20.getArea());
_21=_22&&_23&&_24&&_25;
}else{
_21=false;
}
return _21;
};
function Property(){
}
Property.prototype.getId=function(){
return this.id;
};
Property.prototype.setId=function(_id){
this.id=_id;
};
Property.prototype.getOperation=function(){
return this.operation;
};
Property.prototype.setOperation=function(_27){
this.operation=_27;
};
Property.prototype.getOperationDisplay=function(){
return this.operationDisplay;
};
Property.prototype.setOperationDisplay=function(_28){
this.operationDisplay=_28;
};
Property.prototype.getPropertyType=function(){
return this.propertyType;
};
Property.prototype.setPropertyType=function(_29){
this.propertyType=_29;
};
Property.prototype.getPropertyTypeDisplay=function(){
return this.propertyTypeDisplay;
};
Property.prototype.setPropertyTypeDisplay=function(_2a){
this.propertyTypeDisplay=_2a;
};
Property.prototype.getBedroomsLivingRooms=function(){
return this.bedroomsLivingRooms;
};
Property.prototype.setBedroomsLivingRooms=function(_2b){
this.bedroomsLivingRooms=_2b;
};
Property.prototype.getBedroomsLivingRoomsDisplay=function(){
return this.bedroomsLivingRoomsDisplay;
};
Property.prototype.setBedroomsLivingRoomsDisplay=function(_2c){
this.bedroomsLivingRoomsDisplay=_2c;
};
Property.prototype.getPrice=function(){
return this.price;
};
Property.prototype.setPrice=function(_2d){
this.price=_2d;
};
Property.prototype.getPriceDisplay=function(){
return this.priceDisplay;
};
Property.prototype.setPriceDisplay=function(_2e){
this.priceDisplay=_2e;
};
Property.prototype.getBestImage=function(){
return this.bestImage;
};
Property.prototype.setBestImage=function(_2f){
this.bestImage=_2f;
};
Property.prototype.getDescription=function(){
return this.description;
};
Property.prototype.setDescription=function(_30){
this.description=_30;
};
Property.prototype.getBedrooms=function(){
return this.bedrooms;
};
Property.prototype.setBedrooms=function(_31){
this.bedrooms=_31;
};
Property.prototype.getBedroomsDisplay=function(){
return this.bedroomsDisplay;
};
Property.prototype.setBedroomsDisplay=function(_32){
this.bedroomsDisplay=_32;
};
Property.prototype.getSquareMetreage=function(){
return this.squareMetreage;
};
Property.prototype.setSquareMetreage=function(_33){
this.squareMetreage=_33;
};
Property.prototype.getTargetDate=function(){
return this.targetDate;
};
Property.prototype.setTargetDate=function(_34){
this.targetDate=_34;
};
Property.prototype.getExpenses=function(){
return this.expenses;
};
Property.prototype.setExpenses=function(_35){
this.expenses=_35;
};
Property.prototype.getExpensesDisplay=function(){
return this.expensesDisplay;
};
Property.prototype.setExpensesDisplay=function(_36){
this.expensesDisplay=_36;
};
Property.prototype.getTransport=function(){
return this.transport;
};
Property.prototype.setTransport=function(_37){
this.transport=_37;
};
Property.prototype.getRooms=function(){
return this.rooms;
};
Property.prototype.setRooms=function(_38){
this.rooms=_38;
};
Property.prototype.getFeatures=function(){
return this.features;
};
Property.prototype.setFeatures=function(_39){
this.features=_39;
};
Property.prototype.getSpecificFeatures=function(){
return this.specificFeatures;
};
Property.prototype.setSpecificFeatures=function(_3a){
this.specificFeatures=_3a;
};
Property.prototype.getAddress=function(){
return this.address;
};
Property.prototype.setAddress=function(_3b){
this.address=_3b;
};
Property.prototype.getImages=function(){
return this.images;
};
Property.prototype.setImages=function(_3c){
this.images=_3c;
};
Property.prototype.getPropertySpec=function(){
return new PropertySpec(this.getOperation(),this.getPropertyType(),this.getBedroomsLivingRooms(),this.getAddress().getArea());
};
Property.sortByPrice=function(_a,_b){
var _3f=0;
var _40=parseInt(_a.getPrice());
var _41=parseInt(_b.getPrice());
if(_40>_41){
_3f=1;
}else{
if(_40<_41){
_3f=-1;
}else{
_3f=0;
}
}
return _3f;
};
Property.sortByDate=function(_a,_b){
var _44=0;
var _45=parseInt(_a.getId());
var _46=parseInt(_b.getId());
if(_45>_46){
_44=1;
}else{
if(_45<_46){
_44=-1;
}else{
_44=0;
}
}
return _44;
};
Property.sortByBedroomsLivingRooms=function(_a,_b){
var _49=0;
if(_a.getBedroomsLivingRoomsDisplay()>_b.getBedroomsLivingRoomsDisplay()){
_49=1;
}else{
if(_a.getBedroomsLivingRoomsDisplay()<_b.getBedroomsLivingRoomsDisplay()){
_49=-1;
}else{
_49=0;
}
}
return _49;
};
Property.sortPlaceHolder=function(_a,_b){
return 0;
};
Property.prototype.getPropertyListDisplayNode=function(){
var _4c=createUnorderedListElement(null,"snapproperty");
var _4d=createListItemElement(null,"picproperty");
var _4e=this.getImages()&&(this.getImages()!=null)&&(this.getImages().length>0)?this.getImages().length:0;
var _4f=createImageElement(null,"picproperty",this.getBestImage().getThumbHref(),"alt");
if(_4e>0){
var _50=createLinkElement(null,this.getDisplayCompleteAdvertUri(this.getId()),null);
_50.appendChild(_4f);
_4d.appendChild(_50);
}else{
_4d.appendChild(_4f);
}
_4c.appendChild(_4d);
var _51=createListItemElement(null,"titleproperty");
var _52=document.createTextNode(this.getTitleDisplay());
_51.appendChild(_52);
_4c.appendChild(_51);
var _53=createListItemElement(null,"descriptionproperty");
var _54=createBoldElement(this.getPriceDisplay()+" - "+this.getAddress().getAreaDisplay());
var _55=createBrElement();
var _56="";
if(this.getTargetDate()){
_56=createBoldElement(" | "+LABEL_TARGET_DATE+" - "+this.getTargetDate());
}
_53.appendChild(_54);
_53.appendChild(_56);
_53.appendChild(_55);
_53.appendChild(document.createTextNode(this.getDescription()));
_4c.appendChild(_53);
var _57=createListItemElement(null,"bottomproperty");
var _58=createDivElement(null,"morephotos");
if(_4e>0){
var _59=createLinkElement(null,this.getDisplayCompleteAdvertUri(),MORE_PHOTOS+"("+_4e+")");
_58.appendChild(_59);
_57.appendChild(_58);
}
var _5a=createLinkElement("completeadvert",this.getDisplayCompleteAdvertUri(),VIEW_COMPLETE_ADVERT);
_5a.onclick=_57.appendChild(_5a);
_4c.appendChild(_57);
return _4c;
};
Property.prototype.getDisplayCompleteAdvertUri=function(){
return "javascript:showCompleteAdvert('"+this.getId()+"');";
};
Property.prototype.getTitleDisplay=function(){
var _5b="#"+this.getId()+" | "+this.getTitleText();
return _5b;
};
Property.prototype.getFullTitleDisplay=function(){
var _5c="#"+this.getId()+" | "+this.getPriceDisplay()+" - "+this.getTitleText();
return _5c;
};
Property.prototype.getTitleText=function(){
var _5d=this.getPropertyTypeDisplay()+" "+this.getOperationDisplay()+" "+this.getAddress().getAreaDisplay()+", "+this.getAddress().getCityDisplay()+" - "+this.getBedroomsLivingRoomsDisplay()+" "+MAIN_ROOMS;
return _5d;
};
Property.prototype.getRoomsDisplay=function(){
var _5e="";
if(this.rooms&&(this.rooms!=null)&&(this.rooms.length>0)){
for(var i=0;i<this.rooms.length;i++){
_5e+=this.rooms[i].getDisplay();
if(i<(this.rooms.length-1)){
_5e+=", ";
}
}
}else{
_5e="";
}
return _5e;
};
Property.prototype.getAllFeaturesDisplay=function(){
var _60="";
var _61=this.features&&(this.features!=null)&&(this.features.length>0);
if(_61){
for(var i=0;i<this.features.length;i++){
_60+=this.features[i].getDisplay();
if(i<(this.features.length-1)){
_60+=", ";
}
}
}
if(this.specificFeatures&&(this.specificFeatures!=null)&&(this.specificFeatures.length>0)){
if(_61){
_60+=", ";
}
for(var i=0;i<this.specificFeatures.length;i++){
_60+=this.specificFeatures[i].getDisplay();
if(i<(this.specificFeatures.length-1)){
_60+=", ";
}
}
}
return _60;
};
Property.prototype.getAddressParagraph=function(_63){
var _64=createParagraphElement(null,null,null);
_64.appendChild(document.createTextNode(_63.getFirstLine()));
_64.appendChild(document.createTextNode(" "));
_64.appendChild(document.createTextNode(_63.getSecondLine()));
_64.appendChild(document.createTextNode(", "));
_64.appendChild(document.createTextNode(_63.getAreaDisplay()));
_64.appendChild(document.createTextNode(", "));
_64.appendChild(document.createTextNode(_63.getCityDisplay()));
return _64;
};
Property.prototype.getPropertyFullDisplayNode=function(){
var _65=createDivElement(null,null);
var _66=createDivElement(null,"back");
var _67=createLinkElement(null,"javascript:showPropertiesListNode();",RETURN_TO_RESULTS);
_66.appendChild(_67);
_65.appendChild(_66);
var _68=createH1Element(null,"inproperty",this.getFullTitleDisplay());
_65.appendChild(_68);
var _69=createUnorderedListElement(null,"showproperty");
var _6a=createListItemElement(null,"description");
var _6b=createParagraphElement(null,"label",LABEL_DESCRIPTION);
_6a.appendChild(_6b);
var _6c=createParagraphElement(null,null,this.getDescription());
_6a.appendChild(_6c);
if(this.getTargetDate()){
var _6d=createParagraphElement(null,"label",LABEL_TARGET_DATE);
_6a.appendChild(_6d);
var _6e=createParagraphElement(null,null,this.getTargetDate());
_6a.appendChild(_6e);
}
var _6f=createParagraphElement(null,"label",LABEL_ROOMS);
_6a.appendChild(_6f);
var _70=createParagraphElement(null,null,this.getRoomsDisplay());
_6a.appendChild(_70);
var _71=createParagraphElement(null,"label",LABEL_SPECIFIC_FEATURES);
_6a.appendChild(_71);
var _72=createParagraphElement(null,null,this.getAllFeaturesDisplay());
_6a.appendChild(_72);
if(this.getSquareMetreage()){
var _73=createParagraphElement(null,"label",LABEL_SQUARE_METREAGE);
_6a.appendChild(_73);
var _74=createParagraphElement(null,null,this.getSquareMetreage());
_6a.appendChild(_74);
}
if(this.getExpensesDisplay()){
var _75=createParagraphElement(null,"label",LABEL_EXPENSES);
_6a.appendChild(_75);
var _76=createParagraphElement(null,null,this.getExpensesDisplay());
_6a.appendChild(_76);
}
if(this.getTransport()){
var _77=createParagraphElement(null,"label",LABEL_TRANSPORT);
_6a.appendChild(_77);
var _78=createParagraphElement(null,null,this.getTransport());
_6a.appendChild(_78);
}
var _79=createParagraphElement(null,"label",LABEL_PROPERTY_ADDRESS);
var _7a=this.getAddressParagraph(this.getAddress());
_6a.appendChild(_79);
_6a.appendChild(_7a);
var _7b=createParagraphElement(null,"label",LABEL_PERMALINK);
_6a.appendChild(_7b);
var _6e=createParagraphElement(null,null,getLocationUrlWithoutQueryString()+"?id="+this.getId());
_6a.appendChild(_6e);
_69.appendChild(_6a);
var _7c=createListItemElement(null,"photos");
var _7d=createUnorderedListElement(null,"propertyphotos");
var _7e=createListItemElement(null,"principalphoto");
var _7f=createImageElement("principalimage","principal",this.getBestImage().getDisplayHref(),"alt");
_7e.appendChild(_7f);
_7d.appendChild(_7e);
var _80=createListItemElement(null,"thumbphotos");
var _81=this.getImages();
var _82=createDivElement(null,"overflowcontainer");
for(var i=0;i<_81.length;i++){
var _84=createDivElement(null,null);
var _85=_81[i];
var _86=createLinkElement(null,"javascript:changePrincipalImage('"+_85.getDisplayHref()+"');",null);
var _87=createImageElement(null,"thumb",_85.getThumbHref(),"alt");
_86.appendChild(_87);
_84.appendChild(_86);
var _88=createLinkElement(null,"javascript:changePrincipalImage('"+_85.getDisplayHref()+"');",_85.getTitle());
_84.appendChild(createBrElement());
_84.appendChild(_88);
_82.appendChild(_84);
}
_80.appendChild(_82);
_7d.appendChild(_80);
_7c.appendChild(_7d);
_69.appendChild(_7c);
var _89=createListItemElement(null,"divider");
var _8a=createSpanElement(null,null,IMPORTANT);
var _8b=document.createTextNode(CONTACT_US);
_89.appendChild(_8a);
_89.appendChild(_8b);
_69.appendChild(_89);
var _8c=createListItemElement(null,"agentinfo");
var _8d=createParagraphElement(null,"label",ABOUT_AGENT+" "+g_agent.getName());
_8c.appendChild(_8d);
var _8e=createParagraphElement(null,null,g_agent.getDescription());
_8c.appendChild(_8e);
_69.appendChild(_8c);
var _8f=createListItemElement(null,"contact");
var _90=createParagraphElement(null,"label",ENQUIRY_ABOUT_THIS_PROPERTY);
_8f.appendChild(_90);
var _91=createParagraphElement(null,"label",CONTACT_US_BY_EMAIL);
var _92=createDivElement(null,"biglink");
var _93=createLinkElement(null,"mailto:"+g_agent.getEmail(),EMAIL_US);
_8f.appendChild(_91);
_92.appendChild(_93);
_8f.appendChild(_92);
var _94=createParagraphElement(null,"label",CONTACT_US_BY_FORM);
var _95=createDivElement(null,"biglink");
var _96=createLinkElement(null,CONTACT_US_URL,CONTACT_US);
_8f.appendChild(_94);
_95.appendChild(_96);
_8f.appendChild(_95);
var _97=createParagraphElement(null,"label",AGENT_ADDRESS+" "+g_agent.getName()+": ");
var _98=this.getAddressParagraph(g_agent.getAddress());
_8f.appendChild(_97);
_8f.appendChild(_98);
_69.appendChild(_8f);
_65.appendChild(_69);
return _65;
};
function getLocationUrlWithoutQueryString(){
var _99=null;
if(location.search){
_99=location.href.substring(0,location.href.length-location.search.length);
}else{
_99=location.href;
}
return _99;
}
