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 = { '':'Todos', '1': 'Residência para uma única família', '2': 'Casa geminada (townhouse)/Casa de fila', '3': 'Apartamento', '4': 'Móvel/Pré-fabricada', '7': 'Casa multifamiliar', '5': 'Fazendas & Granja', '6': 'Terrenos e lotes', '10': 'Escritório', '11': 'Shopping center', '12': 'Comercial', '13': 'Estabelecimento industrial', '15': 'Hospitalidade', '16': 'Estabelecimentos comerciais', '17': 'Propósito especial', '18': 'Terreno comercial', '19': 'Casa multifamiliar', '30': 'Residencial', '31': 'Comercial', '32': 'Fazendas & Granja', '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.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 = { '':'Todos', '1': 'Residencial à venda', '2': 'Residencial para alugar', '4': 'Comercial à venda', '5': 'Comercial para alugar', '6': 'Land' };