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 = { '':'Tümü', '1': 'Müstakil ev', '2': 'Sıra ev/sıralı ev', '3': 'Apartman dairesi/Kooperatif/Kondominyum', '4': 'Prefabrik/Portatif', '7': 'Çok ailelik ev', '5': 'Çiftlikler', '6': 'Konut arsaları ve arazileri', '10': 'İşyeri', '11': 'Alışveriş merkezi', '12': 'Perakende işletme', '13': 'Sanayi tesisi', '15': 'Ağırlama', '16': 'Mevcut faaliyet', '17': 'Özel amaç', '18': 'Ticari arazi', '19': 'Çok ailelik ev', '30': 'Konut', '31': 'İşyeri', '32': 'Çiftlikler', '33': 'Binicilik' }; //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 = { '':'Tümü', '1': 'Satılık konut', '2': 'Kiralık konut', '4': 'Satılık işyeri', '5': 'Kiralık işyeri', '6': 'Arazi' };