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': '土地'
};