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 = { '':'Tout sélectionner', '1': 'Maison individuelle', '2': 'Maisons mitoyennes/Maisons en rangée', '3': 'Appartement', '4': 'Mobile/Préfabriquée', '7': 'Maison plusieurs familles', '5': 'Exploitation agricole', '6': 'Terrain et lots', '10': 'Bureau', '11': 'Centre commercial', '12': 'Magasin commercial', '13': 'Site industriel', '15': 'Accueil', '16': 'Commerce existant', '17': 'Usage particulier', '18': 'Terrain commercial', '19': 'Maison plusieurs familles', '30': 'Résidentielle', '31': 'Commercial', '32': 'Exploitation agricole', '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 = { '':'Tout sélectionner', '1': 'Résidentiel à vendre', '2': 'Résidentiel à louer', '4': 'Commercial à vendre', '5': 'Commercial à louer', '6': 'Terrain' };