var stypeAvail = {}; stypeAvail.local = {'1': ['','4','5','6'],'4': [],'6': [],'2': ['','1','2','3','4','5','6'],'5': []}; stypeAvail.glex = {'1': ['','1','2','3'],'4': [],'6': [],'2': ['','1','2','3'],'5': []}; /*Immo.strings.*/ var propertySubtypes = { '':'全て', '1': '一世帯一戸建て', '2': 'タウンハウス/連棟建築住宅', '3': 'アパート', '4': '可動式/プレハブ式', '7': '複数世帯', '5': '農場', '6': '地所とロット', '10': 'オフィス', '11': 'ショッピングセンター', '12': '小売り', '13': '工場等(業務用)\n', '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.local[itypeAvail.local.length] = '4'; itypeAvail.local[itypeAvail.local.length] = '5'; itypeAvail.local[itypeAvail.local.length] = '6'; 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': '土地' };