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 = { '':'Todas', '1': 'Casa unifamiliar', '2': 'Casa de tipo Town House/en serie', '3': 'Apartamento/Cooperativa/Condominio', '4': 'Prefabricada/Rodante', '7': 'Multifamiliar', '5': 'Chacras y Estancias', '6': 'Solares y tierras residenciales', '10': 'Oficina inmobiliaria', '11': 'Centro comercial', '12': 'Reventa', '13': 'Planta industrial', '15': 'Hospedaje', '16': 'Negocios', '17': 'Para propĆ³sito especial', '18': 'Tierras de uso comercial', '19': 'Multifamiliar', '30': 'Propiedad residencial', '31': 'Propiedades comerciales', '32': 'Chacras y Estancias', '33': 'Propiedades con caballerizas' }; //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 = { '':'Todas', '1': 'Residencial en venta', '2': 'Residencial en alquiler', '4': 'Locales/oficinas en venta', '5': 'Locales/oficinas en alquiler', '6': 'Terrenos' };