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 = { '':'הכול', '1': 'בית חד-משפחתי ', '2': 'בית צמוד/בית רכבת', '3': 'דירה/דירה בבית משותף', '4': 'קרווילה/בית נייד', '7': 'רב-משפחתי', '5': 'חוות ומשקים חקלאיים', '6': 'מגרשים ואדמה למגורים', '10': 'משרד', '11': 'מרכז קניות', '12': 'קמעונאי', '13': 'תעשייתי', '15': 'אירוח', '16': 'עסק קיים', '17': 'לשימוש מיוחד', '18': 'קרקע מסחרית', '19': 'רב-משפחתי', '30': 'למגורים', '31': 'נדל\"ן מסחרי', '32': 'חוות ומשקים חקלאיים', '33': '' }; //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.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 = { '':'הכול', '1': 'מגורים למכירה', '2': 'מגורים להשכרה', '4': 'נדל\"ן מסחרי למכירה', '5': 'נדל\"ן מסחרי להשכרה', '6': 'קרקעות' };