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 = { '':'Tous', '1': 'Maison Unifamiliale', '2': 'Maison de ville/en rangée', '3': 'Appartement/Co-Op/Condo', '4': 'Usinée/Mobile', '7': 'Multi-familiale', '5': 'Fermes & ranchs', '6': 'Lots & terrains résidentiels', '10': 'Bureau', '11': 'Centre commercial', '12': 'Au détail', '13': 'Industriel', '15': 'Alimentation', '16': 'Commerce existant', '17': 'À usage précis', '18': 'Terrain commercial', '19': 'Multi-familiale', '30': 'Résidentiel', '31': 'Commercial', '32': 'Fermes & ranchs', '33': 'Équestre' }; //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 = { '':'Tous', '1': 'Résidentiel à vendre', '2': 'Résidentiel à louer', '4': 'Commercial à vendre', '5': 'Commercial à louer', '6': 'Terrain' };