var stypeAvail = {}; stypeAvail.local = {'1': ['','1','2','3','4','5','6'],'4': [],'6': [],'2': [],'5': []}; stypeAvail.glex = {'1': ['','1','2','3','4','5','6'],'4': [],'6': [],'2': ['','1','2','3','4','5','6'],'5': []}; /*Immo.strings.*/ var propertySubtypes = { '':'All', '1': 'Single Family Home', '2': 'Townhouse/Row House', '3': 'Apartment/Co-Op/Condo', '4': 'Manufactured/Mobile', '7': 'Multi Family', '5': 'Farms & Ranches', '6': 'Residential Lots & Land', '10': 'Office', '11': 'Shopping Center', '12': 'Retail', '13': 'Industrial', '15': 'Hospitality', '16': 'Existing Business', '17': 'Special Purpose', '18': 'Commercial Land', '19': 'Multi Family', '30': 'Residential', '31': 'Commercial', '32': 'Farms & Ranches', '33': 'Equestrian' }; //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] = '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 = { '':'All', '1': 'Residential For Sale', '2': 'Residential For Rent', '4': 'Commercial For Sale', '5': 'Commercial For Lease', '6': 'Land' };