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 = { '':'Wszystkie', '1': 'Dom jednorodzinny', '2': 'Kamienica/Dom w zabudowie szeregowej', '3': 'Mieszkanie własnościowe/spółdzielcze', '4': 'Dom z prefabrykatów/Dom przenośny', '7': 'Dom wielorodzinny', '5': 'Gospodarstwa', '6': 'Działki i grunty', '10': 'Biuro', '11': 'Centrum handlowe', '12': 'obiekty handlowe', '13': 'Obiekt przemysłowy', '15': 'Zakwaterowanie', '16': 'Działalności', '17': 'Specjalne przeznaczenie', '18': 'Działki komercyjne', '19': 'Dom wielorodzinny', '30': 'Domy i lokale mieszkalne', '31': 'Nieruchomości komercyjne', '32': 'Gospodarstwa', '33': 'Nieruchomości jeździeckie' }; //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 = { '':'Wszystkie', '1': 'Domy i lokale mieszkalne', '2': 'Wynajem na cele mieszkalne', '4': 'Sprzedaż powierzchni komercyjnych', '5': 'Wynajem powierzchni komercyjnych', '6': 'Grunty' };