var stypeAvail = {}; stypeAvail.local = {'1': ['','1','2','3','4','5','6'],'4': [],'6': [],'2': ['','1','2','3','4','5','6'],'5': []}; stypeAvail.glex = {'1': ['','1','2','3','4','5','6'],'4': [],'6': [],'2': ['','1','2','3','4','5','6'],'5': []}; /*Immo.strings.*/ var propertySubtypes = { '':'全部', '1': '独栋家庭住宅', '2': '多栋联建住宅/联排式住宅', '3': '公寓/合作公寓/共管公寓', '4': '预制/活动', '7': '多户', '5': '农场及牧场', '6': '住宅地皮及用地', '10': '办事处', '11': '购物中心', '12': '零售业', '13': '工业', '15': '款待', '16': '现有商业 ', '17': '特殊用途', '18': '商业用地', '19': '多户', '30': '住宅', '31': '商用', '32': '农场及牧场', '33': '馬術' }; //TODO: polaczyc z tabela stypeAvail? function hideStypeSelect(searchType, type){ var propValue = { local: '', glex: '' }; if(propValue[searchType] == '' ){ return !(type == '1' || type == '2'); } var a = propValue[searchType]; return (propValue[searchType].indexOf(type) == -1); } var itypeOptions = {}; itypeOptions.local = {}; var itypeAvail = {}; itypeAvail.local = new Array(); itypeAvail.local[itypeAvail.local.length] = '1'; itypeAvail.local[itypeAvail.local.length] = '2'; itypeAvail.glex = new Array(); itypeOptions['glex'] = new Object(); itypeAvail.glex[itypeAvail.glex.length] = '1'; itypeAvail.glex[itypeAvail.glex.length] = '2'; itypeAvail.glex[itypeAvail.glex.length] = '4'; itypeAvail.glex[itypeAvail.glex.length] = '5'; itypeAvail.glex[itypeAvail.glex.length] = '6'; var propertyTypes = { '':'全部', '1': '住宅出售', '2': '住宅出租', '4': '商业面积采购', '5': '商业地产出租', '6': '土地' };