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 = {
'':'Todas',
'1': 'Casa unifamiliar',
'2': 'Moradia em banda/Row House',
'3': 'Apartamento/Cooperativa/Condomínio',
'4': 'Fabricado/Móvel',
'7': 'Multifamiliar',
'5': 'Fazendas e Ranchos',
'6': 'Lotes & Terrenos Residenciais',
'10': 'Agência',
'11': 'Centro Comercial',
'12': 'Retalho',
'13': 'Industrial',
'15': 'Hospitalidade',
'16': 'Estabelecimentos comerciais',
'17': 'Finalidade específica',
'18': 'Terreno Comercial',
'19': 'Multifamiliar',
'30': 'Residencial',
'31': 'Comercial',
'32': 'Fazendas e Ranchos',
'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 = {
'':'Todas',
'1': 'Residencial à venda',
'2': 'Residencial para arrendar',
'4': 'Comercial à venda',
'5': 'Comercial para arrendar',
'6': 'Terreno'
};