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 = { '':'Alles', '1': 'Einfamilienhaus', '2': 'Reihenhaus/Segment', '3': 'Wohnung', '4': 'Fertighaus/Wohnwagen\n', '7': 'Mehrfamilienhaus', '5': 'Bauernhöfe ', '6': 'Grundstücke & Parzellen', '10': 'Büro', '11': 'Einkaufszentrum', '12': 'Handelsobjekte', '13': 'Industrieobjekt', '15': 'Unterkunft', '16': 'Unternehmen', '17': 'Spezieller Zweck', '18': 'Gewerblich genutztes Land', '19': 'Mehrfamilienhaus', '30': 'Wohngebiet', '31': 'Gewerbe', '32': 'Bauernhöfe ', '33': 'Reitsport' }; //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 = { '':'Alles', '1': 'Wohnobjekte zum Verkauf', '2': 'Wohnobjekte zur Miete', '4': 'Gewerbe kaufen', '5': 'Gewerbe mieten', '6': 'Grundstücke' };