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.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 = { '':'전부', '1': '거주용 매매', '2': '거주용 임대', '4': '상업용 매물', '5': '상업용 임대물', '6': '대지' };