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 = { '':'Tutti', '1': 'Residenza monofamiliare', '2': 'Casa unifamiliare a schiera/Villa a schiera', '3': 'Appartamento ', '4': 'Mobile/Prefabbricata', '7': 'Multifamiliare', '5': 'Fattoria', '6': 'Terra e lotti', '10': 'Ufficcio', '11': 'Centro commerciale ', '12': 'locali commerciali', '13': 'Costruzione industriale', '15': 'Strutture ricettive', '16': 'Attività', '17': 'Uso speciale', '18': 'Terreno per usi commerciali', '19': 'Multifamiliare', '30': 'Residenziale', '31': 'Commerciale', '32': 'Fattoria', '33': 'Equestre' }; //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 = { '':'Tutti', '1': 'Residenziale', '2': 'Affitti residenziali', '4': 'Acquisto commerciale', '5': 'Affitto commerciale', '6': 'Terreno' };