﻿var propertyArray = new Array();

propertyArray = [
//nature
{name:'物業銷售', id:'sale', types:[
	{name:'住宅物業', id:'residential', zone:[
		{name:'港島', id:'hk', properties:[
			{name:'天匯', id:'conduit', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=conduit', target:'_self'},
			//{name:'聚賢居', id:'centrestage', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=centrestage', target:'_self'},
			//{name:'嘉亨灣', id:'grandpromenade', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=promenade', target:'_self'},
			{name:'輝煌豪園', id:'palatialcrest', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=palatial', target:'_self'},
			{name:'嘉苑', id:'parkrise', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=parkrise', target:'_self'},
			{name:'富匯豪庭', id:'regenceroyale', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=regenceroyale', target:'_self'},
			//{name:'御皇臺', id:'royalterrace', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=royalterrace', target:'_self'},
			//{name:'赫蘭道', id:'headlandroad', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=headlandroad', target:'_self'},
			{name:'尚賢居', id:'centrepoint', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=centrepoint', target:'_self'},
			//{name:'桂濤苑', id:'suncresttower', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=suncresttower', target:'_self'},
			{name:'尚匯', id:'thegloucester', link:'/tc/propertieshk/hksale_hkresidential_hk.shtml?property=thegloucester', target:'_self'}
		]},
		
		{name:'九龍', id:'kl', properties:[
			{name:'亮賢居', id:'shining', link:'/tc/propertieshk/hksale_hkresidential_kl.shtml?property=shining', target:'_self'},
			{name:'百匯軒', id:'cite33', link:'/tc/propertieshk/hksale_hkresidential_kl.shtml?property=cite33', target:'_self'},
			{name:'嘉賢居', id:'spectacle', link:'/tc/propertieshk/hksale_hkresidential_kl.shtml?property=spectacle', target:'_self'},
			{name:'德成軒', id:'city18', link:'/tc/propertieshk/hksale_hkresidential_kl.shtml?property=city18', target:'_self'},
			{name:'星匯居', id:'sparkle', link:'/tc/propertieshk/hksale_hkresidential_kl.shtml?property=sparkle', target:'_self'},
			{name:'翠匯軒', id:'jadesuites', link:'/tc/propertieshk/hksale_hkresidential_kl.shtml?property=jadesuites', target:'_self'}
			//{name:'翔龍灣', id:'waterfront', link:'/tc/propertieshk/hksale_hkresidential_kl.shtml?property=waterfront', target:'_self'},
			//{name:'百利達廣場', id:'paradise', link:'/tc/propertieshk/hksale_hkresidential_kl.shtml?property=paradise', target:'_self'},
			//{name:'京士柏山', id:'kings', link:'/tc/propertieshk/hksale_hkresidential_kl.shtml?property=kingspark', target:'_self'}
		]},
		
		{name:'新界', id:'nt', properties:[
			{name:'名家匯', id:'paramount', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=paramount', target:'_self'},
			{name:'比華利山別墅', id:'beverly', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=beverly', target:'_self'},
			{name:'富匯半島 (比華利山別墅三期)', id:'legenderoyale', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=legenderoyale', target:'_self'},
			//{name:'御景峰', id:'royal', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=royal', target:'_self'},
			//{name:'豫豐花園', id:'sherwood', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=sherwood', target:'_self'},
			//{name:'豐裕軒', id:'opulence', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=opulence', target:'_self'},
			//{name:'御皇庭', id:'royalgreen', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=royalgreen', target:'_self'},
			{name:'淺月灣一期', id:'marina1', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=marina1', target:'_self'},
			{name:'淺月灣二期', id:'marina2', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=marina2', target:'_self'},
			{name:'翠峰', id:'greenlodge', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=greenlodge', target:'_self'},
			{name:'翠林', id:'laverte', link:'/tc/propertieshk/hksale_hkresidential_nt.shtml?property=laverte', target:'_self'}
					
		]}
	]}/*,
	
	{name:'Commercial / Industrail Properties', id:'commercial', zone:[
		{name:'Hong Kong', id:'hk', properties:[
			{name:'Scenic Horizon', id:'scenic', link:'', target:'_self'},
			{name:'CentreStage', id:'centrestage', link:'', target:'_self'},
			{name:'Palatial Crest', id:'palatial', link:'', target:'_self'}
		]},
		
		{name:'Kowloon', id:'kl', properties:[
			{name:'Scenic Horizon', id:'scenic', link:'', target:'_self'},
			{name:'CentreStage', id:'centrestage', link:'', target:'_self'},
			{name:'Palatial Crest', id:'palatial', link:'', target:'_self'}
		]},
		
		{name:'New Territories', id:'nt', properties:[
			{name:'Scenic Horizon', id:'scenic', link:'', target:'_self'},
			{name:'CentreStage', id:'centrestage', link:'', target:'_self'},
			{name:'Palatial Crest', id:'palatial', link:'', target:'_self'}
		]}
	]}*/
]},

{name:'香港出租物業', id:'lease', types:[
	{name:'住宅物業', id:'residential', zone:[
		{name:'港島', id:'hk', properties:[
			{name:'惠苑', id:'eva_court', 
			link:'/tc/propertieshk/eva_court.shtml', target:'_self', 
			address:'麥當勞道36號', unit:'4,500', 
			contact:[{num:'2908 8517', person:'廖小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'四季匯', id:'four_seasons_place', 
			link:'/tc/propertieshk/four_seasons_place.shtml', target:'_self', 
			address:'中環金融街8號', unit:'547 - 1,867', 
			contact:[{num:'2908 8743', person:'洪小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'嘉亨灣', id:'grand_promenade', 
			link:'/tc/propertieshk/grand_promenade.shtml', target:'_self', 
			address:'西灣河太康街38號', unit:'約400餘-1,800餘', 
			contact:[{num:'2908 8924', person:'連小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'天匯', id:'39conduitroad', 
			link:'/tc/propertieshk/39conduitroad.shtml', target:'_self', 
			address:'香港半山干德道39號', unit:'2,808 - 7,622', 
			contact:[{num:'2549 5168', person:'吳小姐<br />洪小姐'}, {num:'2908 8338', person:'熱線電話'}]
			}
			/*,
			{name:'輝煌豪園', id:'palatial_crest', 
			link:'/tc/propertieshk/palatial_crest.shtml', target:'_self', 
			address:'半山西摩道3號', unit:'1,909 - 2,174', 
			contact:[{num:'2908 8517', person:'姚小姐'}, {num:'2908 8338', person:'熱線電話'}]
			}*/
			/*{name:'匯豪閣', id:'winsome_park', 
			link:'/tc/propertieshk/winsome_park.shtml', target:'_self', 
			address:'港島半山干德道42號', unit:'1,069', 
			contact:[{num:'2908 8517', person:'姚小姐'}, {num:'2908 8338', person:'熱線電話'}]
			}	*/
			
			/*{name:'Palatial Crest', id:'palatial_crest', 
			link:'/tc/propertieshk/palatial_crest.shtml', target:'_self', 
			address:'183 Electric Road, North Point', unit:'1,086 - 14,280', 
			contact:[{num:'2908 8482', person:'Mr. K F Cheung'}, {num:'2908 8338', person:'熱線電話'}]
			}*/			
		]},
		
		{name:'九龍', id:'kl', properties:[
			{name:'豪峰軒', id:'the_pinnacle', 
			link:'/tc/propertieshk/the_pinnacle.shtml', target:'_self', 
			address:'尖沙咀棉登徑 8 號', unit:'494 - 2,761', 
			contact:[{num:'2908 8536', person:'江小姐'}, {num:'2908 8338', person:'熱線電話'}]
			}
		]},
		
		{name:'新界', id:'nt', properties:[
			{name:'淺月灣一期', id:'casa_marina', 
			link:'/tc/propertieshk/casa_marina.shtml', target:'_self', 
			address:'大埔露輝路28號', unit:'2,867 - 3,708', 
			contact:[{num:'2663 4676<br />2908 8338', person:'陳先生<br />熱線電話'}]
			},
			{name:'淺月灣二期', id:'casa_marina', 
			link:'/tc/propertieshk/casa_marina.shtml', target:'_self', 
			address:'大埔露屏路1號', unit:'2,478 - 4,329', 
			contact:[{num:'2663 4636<br />2908 8338', person:'錢先生<br />熱線電話'}]
			},
			/*{name:'比華利山別墅', id:'beverlyhill', 
			link:'http://www.thebeverlyhills.com.hk/TheBeverlyHills/index.html', target:'_blank', 
			address:'大埔三門仔路23號', unit:'2,678 - 4,018', 
			contact:[{num:'2908 8870<br />2908 8338', person:'梅先生<br />熱線電話'}]
			},*/
			/*{name:'名家匯', id:'hillparamount', 
			link:'/tc/propertieshk/hillparamount.shtml', target:'_self', 
			address:'沙田半山顯泰街18號', unit:'1,456-6,391', 
			contact:[{num:'2603 2192<br />2908 8338', person:'方先生<br />熱線電話'}]
			},*/
			{name:'比華利山別墅<br>(第一期)', id:'thebeverlyhills', 
			link:'/tc/propertieshk/thebeverlyhills.shtml', target:'_self', 
			address:'大埔三門仔路 23 號', unit:'2,678-4,018', 
			contact:[{num:'2144 2032<br />2908 8338', person:'方先生/胡先生<br />熱線電話'}]
			},
			{name:'富匯半島<br>(比華利山別墅第三期)', id:'LegendeRoyale', 
			link:'/tc/propertieshk/LegendeRoyale.shtml', target:'_self', 
			address:'大埔三門仔路 23 號', unit:'3,442-4,367', 
			contact:[{num:'2144 2032<br />2908 8338', person:'方先生/胡先生<br />熱線電話'}]
			}


		]}
	]},
	
	
	
	{name:'寫字樓', id:'offices', zone:[
		{name:'港島', id:'hk', properties:[
			{name:'友邦廣場', id:'aia_tower', 
			link:'/tc/propertieshk/aia_tower.shtml', target:'_self', 
			address:'北角電氣道183號', unit:'1,086 - 14,280', 
			contact:[{num:'2908 8737', person:'黃小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'金龍中心', id:'golden_centre', 
			link:'/tc/propertieshk/golden_centre.shtml', target:'_self', 
			address:'中環德輔道中188號', unit:'1,383 - 5,385', 
			contact:[{num:'2908 8205', person:'麥先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'裕景中心', id:'golden_centre', 
			link:'/tc/propertieshk/goodview_centre.shtml', target:'_self', 
			address:'香港仔湖北街12號', unit:'593 - 1,825', 
			contact:[{num:'2908 8187', person:'林先生'}, {num:'2908 8338', person:'熱線電話'}]
			},						
			{name:'安泰金融中心', id:'ing_tower', 
			link:'/tc/propertieshk/ing_tower.shtml', target:'_self', 
			address:'中環德輔道中308至320號', unit:'890 - 8,016', 
			contact:[{num:'2908 8205', person:'麥先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'國際金融中心', id:'ifc', 
			link:'/tc/propertieshk/ifc.shtml', target:'_self', 
			address:'中環金融街8號', unit:' 1,189 - 23,638 <br />(出租面積)', 
			contact:[{num:' 2908 8742', person:'潘小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'威華商業中心', id:'wai_wah', 
			link:'/tc/propertieshk/wai_wah.shtml', target:'_self', 
			address:'上環威利麻街6號', unit:'507 - 3,034', 
			contact:[{num:'2908 8466<br />2908 8338', person:'鄧先生<br />熱線電話'}]
			}				
		]},
		
		{name:'九龍', id:'kl', properties:[
			{name:'彌敦道579號', id:'579_nathan_road', 
			link:'/tc/propertieshk/579_nathan_road.shtml', target:'_self', 
			address:'彌敦道579號 ', unit:'1,557', 
			contact:[{num:'2908 8466<br />2908 8338', person:'鄧先生<br />熱線電話'}]
			},
			{name:'諾士佛臺6號', id:'6_knutsford_terrace', 
			link:'/tc/propertieshk/6_knutsford_terrace.shtml', target:'_self', 
			address:'尖沙咀諾士佛臺6號 ', unit:'856 - 1,830', 
			contact:[{num:'2908 8627', person:'方小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'友邦九龍金融中心', id:'itc', 
			link:'/tc/propertieshk/itc.shtml', target:'_self', 
			address:'九龍太子道712號', unit:'2,801 - 11,849', 
			contact:[{num:'2908 8737', person:'黃小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'九龍行', id:'kowloon_building', 
			link:'/tc/propertieshk/kowloon_building.shtml', target:'_self', 
			address:'旺角彌敦道555號 ', unit:'302 - 4,454', 
			contact:[{num:'2908 8466<br />2908 8338', person:'鄧先生<br />熱線電話'}]
			},
			{name:'宏利金融中心', id:'kwun_tong_223', 
			link:'/tc/propertieshk/kwun_tong_223.shtml', target:'_self', 
			address:'觀塘偉業街223號', unit:'2,000 - 65,000', 
			contact:[{num:'2908 8620', person:'鍾先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'美麗華大廈 ', id:'miramar_tower', 
			link:'/tc/propertieshk/miramar_tower.shtml', target:'_self', 
			address:'尖沙咀彌敦道132號 ', unit:'655 - 39,152',
			contact:[{num:'2908 8627', person:'方小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			/*{name:'凱豪商業中心', id:'royal_commercial_centre', 
			link:'/tc/propertieshk/royal_commercial_centre.shtml', target:'_self', 
			address:'佐敦白加士街56號 ', unit:'228 - 1,923', 
			contact:[{num:'2908 8187', person:'林先生'}, {num:'2908 8338', person:'熱線電話'}]
			},*/
			{name:'匯達商業中心', id:'win_plaza', 
			link:'/tc/propertieshk/win_plaza.shtml', target:'_self', 
			address:'新蒲崗雙喜街9號', unit:'1,018 - 6,487', 
			contact:[{num:'2908 8737', person:'黃小姐'}, {num:'2908 8338', person:'熱線電話'}]
			}
			
		]},
		{name:'新界', id:'nt', properties:[
			{name:'荃灣城市中心一期', id:'landmark', 
			link:'/tc/propertieshk/city_landmark.shtml', target:'_self', 
			address:'荃灣眾安街68號', unit:'582 - 12,454', 
			contact:[{num:'2490 2303', person:'何先生'}, {num:'2908 8338', person:'熱線電話'}]
			}
		]}
		
	/**	{name:'New Territories', id:'nt', properties:[
			{name:'ING Tower ', id:'kwuntong223', 
			link:'/tc/propertieshk/kwuntong223/hklease_offices_hk.shtml', target:'_self', 
			address:'183 Electric Road, North Point', unit:'1,086 - 14,280', 
			contact:[{num:'2908 8482', person:'Mr. K F Cheung'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'CentreStage', id:'centrestage', 
			link:'/tc/propertieshk/kwuntong223/hklease_offices_hk.shtml', target:'_self', 
			address:'183 Electric Road, North Point', unit:'1,086 - 14,280', 
			contact:[{num:'2908 8482', person:'Mr. K F Cheung'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'Palatial Crest', id:'palatial', 
			link:'/tc/propertieshk/kwuntong223/hklease_offices_hk.shtml', target:'_self', 
			address:'183 Electric Road, North Point', unit:'1,086 - 14,280', 
			contact:[{num:'2908 8482', person:'Mr. K F Cheung'}, {num:'2908 8338', person:'熱線電話'}]
			}
		]}**/
	]},
	{name:'購物商場 / 舖位', id:'arcades', zone:[
		{name:'港島', id:'hk', properties:[
			{name:'聚賢居(舖位)', id:'centre_stage', 
			link:'/tc/propertieshk/centre_stage.shtml', target:'_self', 
			address:'中環荷里活道 108號', unit:'748 - 4,883', 
			contact:[{num:'2908 8481', person:'葉小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'國際金融中心商場', id:'ifc_mall', 
			link:'/tc/propertieshk/ifc_mall.shtml', target:'_self', 
			address:'中環金融街8號', unit:' 100 - 69,922 <br />(出租面積)', 
			contact:[{num:'2908 8742', person:'潘小姐'}, {num:'2908 8338', person:'熱線電話'}]
			}

		]},
		
		{name:'九龍', id:'kl', properties:[
			{name:'翔龍灣廣場', id:'grand_waterfront_plaza', 
			link:'/tc/propertieshk/grand_waterfront_plaza.shtml', target:'_self', 
			address:'土瓜灣新碼頭街38號', unit:'268 - 44,427', 
			contact:[{num:'2908 8740', person:'吳小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
				
			{name:'新寶城商場', id:'welland_plaza', 
			link:'/tc/propertieshk/la_cite_nible_shopping_arcade.shtml', target:'_self', 
			address:'將軍澳銀澳路1號', unit:'230 – 12,595', 
			contact:[{num:'2908 8739', person:'陳小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},	
			{name:'新都城中心二期 商場', id:'metro_city_plaza', 
			link:'/tc/propertieshk/metro_city_plaza.shtml', target:'_self', 
			address:'將軍澳欣景路8號', unit:'44 - 120,551', 
			contact:[{num:'2908 8206<br />2908 8338', person:'麥先生<br />熱線電話'}]
			},
			{name:'新都城中心三期 商場', id:'metro_city_plaza2', 
			link:'/tc/propertieshk/metro_city_plaza.shtml', target:'_self', 
			address:'將軍澳貿業路8號', unit:'88 - 43,363', 
			contact:[{num:'2908 8740<br />2908 8338', person:'吳小姐<br/>熱線電話'}]
			},
			{name:'港灣豪庭廣場', id:'metro_habour_plaza', 
			link:'/tc/propertieshk/metro_habour_plaza.shtml', target:'_self', 
			address:'九龍福利街8號', unit:'240 - 31,486', 
			contact:[{num:'2908 8300', person:'關小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			
			{name:'美麗華商場', id:'miramar_shopping_centre', 
			link:'/tc/propertieshk/miramar_shopping_centre.shtml', target:'_self', 
			address:'尖沙咀彌敦道132號', unit:'313 - 27,707', 
			contact:[{num:'2908 8627', person:'應小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},	
			{name:'百利達購物廣場', id:'paradise_square', 
			link:'/tc/propertieshk/paradise_square.shtml', target:'_self', 
			address:'九龍旺角廣華街3號', unit:'133 - 7,109', 
			contact:[{num:'2908 8187', person:'林先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'興富中心', id:'jordan_shopping_plaza', 
			link:'/tc/propertieshk/jordan_shopping_plaza.shtml', target:'_self', 
			address:'佐敦德興街 11-12號', unit:'198 - 4,335', 
			contact:[{num:'2908 8466<br />2908 8338', person:'鄧先生<br />熱線電話'}]
			},	
			{name:'豪峰軒', id:'the_pinnacle2', 
			link:'/tc/propertieshk/the_pinnacle.shtml', target:'_self', 
			address:'尖沙咀棉登徑 8 號', unit:'425 - 11,341', 
			contact:[{num:'2908 8536<br />2908 8429', person:'江小姐<br />廖小姐'}, {num:'2908 8338', person:'熱線電話'}]
			//contact:[{num:'2908 8429', person:'陳小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'華麗購物廣場', id:'la_cite_nible_shopping_arcade', 
			link:'/tc/propertieshk/welland_plaza.shtml', target:'_self', 
			address:'深水埗南昌街188號', unit:'57 - 618', 
			contact:[{num:'2908 8187', person:'林先生'}, {num:'2908 8338', person:'熱線電話'}]
			}
				
			/*{name:'榮輝商場', id:'wing_fai_shopping_arcade', 
			link:'/tc/propertieshk/wing_fai_shopping_arcade.shtml', target:'_self', 
			address:'紅磡榮光街52號', unit:'140 - 8,143', 
			contact:[{num:'2908 8991', person:'鄭小姐'}, {num:'2908 8338', person:'熱線電話'}]
			}	*/		
		]},
		
		{name:'新界', id:'nt', properties:[
			{name:'千色廣場', id:'citimall', 
			link:'/tc/propertieshk/citimall.shtml', target:'_self', 
			address:'元朗教育路1號', unit:'70 - 10,223', 
			contact:[{num:'2442 4449', person:'李先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'荃灣城市中心一期', id:'city_landmark1', 
			link:'/tc/propertieshk/city_landmark.shtml', target:'_self', 
			address:'荃灣眾安街68號', unit:'107 - 22,243', 
			contact:[{num:'2490 2303<br/>2908 8338', person:'何先生<br />熱線電話'}]
			},
			{name:'荃灣城市中心二期', id:'city_landmark2', 
			link:'/tc/propertieshk/city_landmark.shtml', target:'_self', 
			address:'荃灣街市街67-95號', unit:'215 - 1,819', 
			contact:[{num:'2490 2303<br/>2908 8338', person:'何先生<br />熱線電話'}]
			},			
			{name:'牽晴間購物廣場', id:'dawning_views_plaza', 
			link:'/tc/propertieshk/dawning_views_plaza.shtml', target:'_self', 
			address:'粉嶺一鳴路23號', unit:'169 - 16,313', 
			contact:[{num:'2908 8463', person:'李小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},	
			{name:'粉嶺中心購物商場', id:'fanling_centre', 
			link:'/tc/propertieshk/fanling_centre.shtml', target:'_self', 
			address:'粉嶺新運路33號', unit:'101 - 15,781', 
			contact:[{num:'2908 8540', person:'袁小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'花都購物廣場', id:'flora_plaza', 
			link:'/tc/propertieshk/flora_plaza.shtml', target:'_self', 
			address:'粉嶺百和路88號', unit:'227 - 18,695', 
			contact:[{num:'2908 8463', person:'李小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'合益廣場', id:'hop_yick_plaza', 
			link:'/tc/propertieshk/hop_yick_plaza.shtml', target:'_self', 
			address:'元朗大棠路23號', unit:'58 - 7,807', 
			contact:[{num:'2908 8991', person:'鄭小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'富達廣場', id:'manhattan_plaza', 
			link:'/tc/propertieshk/manhattan_plaza.shtml', target:'_self', 
			address:'元朗西菁街23號', unit:'360 - 12,506', 
			contact:[{num:'2908 8620', person:'陳小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'匡湖購物中心', id:'marina_cove_shopping_centre', 
			link:'/tc/propertieshk/marina_cove_shopping_centre.shtml', target:'_self', 
			address:'西貢蠔涌', unit:'355 - 6,642', 
			contact:[{num:'2908 8187', person:'林先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'沙田中心, 沙田廣場', id:'shatin_centre', 
			link:'/tc/propertieshk/shatin_centre.shtml', target:'_self', 
			address:'沙田橫壆街2-16號, <br />沙田正街21-27號', unit:'147 - 7,520, <br />80 - 26,490', 
			contact:[{num:'2603 0591', person:'李先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'灣景廣場購物中心', id:'skyline_plaza', 
			link:'/tc/propertieshk/skyline_plaza.shtml', target:'_self', 
			address:'荃灣大河道88號', unit:'155 - 15,040', 
			contact:[{num:'2908 8523', person:'翁小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},	
			{name:'新港城廣場', id:'sunshine_city', 
			link:'/tc/propertieshk/sunshine_city.shtml', target:'_self', 
			address:'馬鞍山西沙路628號', unit:'217 - 13,864', 
			contact:[{num:'2908 8006', person:'李先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'新港城一至三期商場', id:'sunshine_city2', 
			link:'/tc/propertieshk/sunshine_city.shtml', target:'_self', 
			address:'馬鞍山鞍誠街8,18及22號', unit:'144 - 19,246', 
			contact:[{num:'2908 8006', person:'李先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'新港城中心', id:'sunshine_city3', 
			link:'/tc/propertieshk/sunshine_city.shtml', target:'_self', 
			address:'馬鞍山鞍祿街18號', unit:'59 - 152,243', 
			contact:[{num:'2908 8343', person:'丘先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'豫豐花園', id:'the_sherwood', 
			link:'/tc/propertieshk/the_sherwood.shtml', target:'_self', 
			address:'屯門藍地福亨村路 8 號', unit:'700 - 7,212', 
			contact:[{num:'2908 8620', person:'陳小姐'}, {num:'2908 8338', person:'熱線電話'}]
			},
			
			{name:'屯門時代廣場', id:'trend_plaza', 
			link:'/tc/propertieshk/trend_plaza.shtml', target:'_self', 
			address:'屯門屯合街2號/屯隆街2號', unit:'103 - 21,090', 
			contact:[{num:'2430 2546', person:'林先生'}, {num:'2908 8338', person:'熱線電話'}]
			}	
		]}
	]},
	
	{name:'工貿 / 工商大廈', id:'officebuilding', zone:[
	/**	{name:'Hong Kong', id:'hk', properties:[
			{name:'ING Tower ', id:'kwuntong223', 
			link:'/tc/propertieshk/kwuntong223/hklease_offices_hk.shtml', target:'_self', 
			address:'183 Electric Road, North Point', unit:'1,086 - 14,280', 
			contact:[{num:'2908 8482', person:'Mr. K F Cheung'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'CentreStage', id:'centrestage', 
			link:'/tc/propertieshk/kwuntong223/hklease_offices_hk.shtml', target:'_self', 
			address:'183 Electric Road, North Point', unit:'1,086 - 14,280', 
			contact:[{num:'2908 8482', person:'Mr. K F Cheung'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'Palatial Crest', id:'palatial', 
			link:'/tc/propertieshk/kwuntong223/hklease_offices_hk.shtml', target:'_self', 
			address:'183 Electric Road, North Point', unit:'1,086 - 14,280', 
			contact:[{num:'2908 8482', person:'Mr. K F Cheung'}, {num:'2908 8338', person:'熱線電話'}]
			}
		]},  **/
		
		{name:'九龍', id:'kl', properties:[
			{name:'鴻圖道78號', id:'78_hung_to_road', 
			link:'/tc/propertieshk/78_hung_to_road.shtml', target:'_self', 
			address:'官塘鴻圖道78號', unit:'2,000 - 6,510', 
			contact:[{num:'2908 8011', person:'張先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'巨昇中心', id:'big_star_centre', 
			link:'/tc/propertieshk/big_star_centre.shtml', target:'_self', 
			address:'九龍灣宏光道8號', unit:'988 - 21,853', 
			contact:[{num:'2908 8187', person:'林先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'恒龍工商中心', id:'dragon_centre', 
			link:'/tc/propertieshk/dragon_centre.shtml', target:'_self', 
			address:'長沙灣永康街79號', unit:'1,109 - 7,485', 
			contact:[{num:'2908 8238', person:' 劉先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'百本中心', id:'bamboos_centre', 
			link:'/tc/propertieshk/bamboos_centre.shtml', target:'_self', 
			address:'官塘鴻圖道52號', unit:'2,000 - 11,000', 
			contact:[{num:'2908 8011', person:'張先生'}, {num:'2908 8338', person:'熱線電話'}]
			},
			{name:'威達工貿商業中心', id:'well_tech_centre', 
			link:'/tc/propertieshk/well_tech_centre.shtml', target:'_self', 
			address:'新蒲崗八達街9號', unit:'882 - 6,406', 
			contact:[{num:'2256 4072', person:'廖先生'}, {num:'2908 8338', person:'葉小姐'}]
			},
			{name:'宏基中心', id:'winning_centre', 
			link:'/tc/propertieshk/winning_centre.shtml', target:'_self', 
			address:'新蒲崗大有街29號', unit:'487 - 6,880', 
			contact:[{num:'2256 4072', person:'廖先生'}, {num:'2908 8338', person:'葉小姐'}]
			}			
						
							
		]}/*,
		
		{name:'New Territories', id:'nt', properties:[
			{name:'Scenic Horizon', id:'scenic', link:'', target:'_self'},
			{name:'CentreStage', id:'centrestage', link:'', target:'_self'},
			{name:'Palatial Crest', id:'palatial', link:'', target:'_self'}
		]}*/
	]}
]}

];


function genSearchList()
{
	var container = d.getElementById('searchListPulldown');
	var sectionArray = new Array('nature', 'types', 'zone', 'properties');
	var self = this;
	var scroller;
	var scrollbar;
	var scrollContainer  = d.getElementById('searchScrollContainer');
	var scroll = d.getElementById('searchScrollbar-Container');
	
	this.init = function()
	{	
		setTimeout(function()
		{
			var array = new Array();
			//for (var i=0; i<sectionArray.length; i++)
			//{
				//array.push(0);
				var genNav = new self.genNav();
				genNav.type = sectionArray[0];
				genNav.idArray = array;
				genNav.init(true);
			//}
		}, 100);
	};
	
	this.genNav = function()
	{
		this.idArray = new Array();
		
		this.init = function(start)
		{
			var dl = getElementsByClassName(container, this.type)[0];
			dl.innerHTML = '';
			
			var navList = new Array();
			
			var array = new Array();
			//var id = this.idArray[this.idArray.length - 1];
			var id = 0;
			var obj = 'propertyArray';
			for (var i=0; i<this.idArray.length; i++)
			{
				if (i < sectionArray.length - 1)	obj += '[' + this.idArray[i] + '].' + sectionArray[i + 1];
			}
			array = eval(obj);
			
			for (var i=0; i<array.length; i++)
			{
				var dd = d.createElement('dd');
				var str = array[i].name;
				//var a = createA(((array[i].link)?array[i].link:'javascript:;'), ((array[i].target)?array[i].target:''), array[i].name + '  :  ' +  this.idArray + '  :  ' +  i);
				var a = createA(((array[i].link)?array[i].link:'javascript:;'), ((array[i].target)?array[i].target:''), array[i].name);
				a.idArray = this.idArray;
				a.type = this.type;
				a.num = i;
			
				a.onmouseover = function()
				{
					//if (section == this.num)	return;
					//self.navOver(this);
				};
				a.onmouseout = function()
				{
					//if (section == this.num)	return;
				};
				a.onclick = function()
				{
					//if (section == this.num)	return;
					if (this.className.indexOf('active') >= 0)	return;
					if (this.type != sectionArray[sectionArray.length-1])	self.navClick(this);
				};
				
				dd.appendChild(a);
				dl.appendChild(dd);
				navList.push(a);
			}
			
			if (this.type != sectionArray[sectionArray.length-1])
			{
				var id = (start)?	((levelArray[1] == 'hklease')?1:0):0;
				self.navClick(navList[id]);
			}
			
			//Set ScrollBar
			if (this.type == sectionArray[sectionArray.length-1])
			{
				setTimeout(function()
				{	
					var dd = scrollContainer.getElementsByTagName('dd');
					var num = 0;
					for (var i=0; i<dd.length; i++)
					{
						num += dd[i].offsetHeight;
					}
					scrollContainer.getElementsByTagName('div')[0].style.height = num + 'px';
					scrollContainer.style.width = (num <= 118)?	'100%':'95%';
					
					if (!scroller)
					{
						scroller  = new Scrolling.Scroller(scrollContainer, scroll.offsetWidth, scroll.offsetHeight);
						scrollbar = new Scrolling.Scrollbar(scroll, scroller, new Scrolling.ScrollTween());
					}
					else
					{
						scroller.reset();
						scrollbar.reset();
						scrollbar.swapContent(scrollContainer);
					}
				}, 10);
			}
		};
	};
	
	this.navClick = function(btn)
	{
		var dl = btn.parentNode.parentNode;
		if (btn.className.indexOf('active') < 0)	btn.className += ' active';
		if (dl.highlightA)	dl.highlightA.className = dl.highlightA.className.replace(/active/, '');
		
		dl.section = btn.num;
		var array = this.findIDArray(dl.className);
		dl.genNav = new self.genNav();
		dl.genNav.type = self.findNextType(dl.className);
		dl.genNav.idArray = array;
		dl.genNav.init();
		
		dl.highlightA = btn;
	};
	
	this.findNextType = function(type)
	{
		for (var i=0; i<sectionArray.length; i++)
		{
			if (type == sectionArray[i])	return sectionArray[i + 1];
		}
	};
	
	this.findIDArray = function(type)
	{
		var array = new Array();
		for (var i=0; i<sectionArray.length; i++)
		{
			var dl = getElementsByClassName(container, sectionArray[i])[0];
			array.push(dl.section);
			
			if (type == sectionArray[i])	return array;
		}
	};
	
	this.init();
}

function genLeasePulldown()
{
	var leaseTab = d.getElementById('leaseTab');
	var pulldown = d.getElementById('officesPulldown');
	var containerArray = new Array('hkPart', 'klPart', 'ntPart');
	var self = this;
	
	this.init = function()
	{
/*alert('genLeasePulldown : ' + 'Checkpoint 1')*/
		//Set MouseOver Pulldown
		var a = setChildNodes(leaseTab, 'A');
		for (var i=0; i<a.length; i++)
		{
			a[i].onmouseover = function()
			{
				visiblePulldown(this, this.id.replace('Tab', ''));
			}
		}
		
		//Gen Pulldown
		var array = propertyArray[1].types;
		for (var i=0; i<array.length; i++)
		{
			var div = createDiv((array[i].id + 'Pulldown'), 'leasePulldown');
			div.innerHTML = pulldown.innerHTML;
			leaseTab.appendChild(div);
			
			var num = 0;
			var idArray = new Array();
			for (var j=0; j<array[i].zone.length; j++)
			{
				new this.genNav(div, array[i].zone[j].id, array[i].zone[j]);
				idArray.push(array[i].zone[j].id);
				num ++;
			}
		
			//Show-Hide Container
			for (var j=0; j<containerArray.length; j++)
			{
				var id = containerArray[j].replace('Part', '').toLowerCase();
				
				var hasId = false;
				for (var k=0; k<idArray.length; k++)
				{
					if (idArray[k] == id)
					{
						hasId = true;
						break;
					}
				}
				
				var container = getElementsByClassName(div, containerArray[j])[0];
				container.style.display = (hasId)?	'':'none';
				container.style.width = Math.round(leaseTab.offsetWidth/num) + 'px';
			}
		}
		leaseTab.removeChild(pulldown);
	};
	
	this.genNav = function(pulldown, id, array)
	{
/*alert('genLeasePulldown : ' + 'Checkpoint 2')*/
		var container = getElementsByClassName(pulldown, id + 'Part')[0];
		var scrollContainer = getElementsByClassName(container, 'Scroller-Container')[0];
		var scroll = getElementsByClassName(container, 'Scrollbar-Container')[0];
		var dl = scrollContainer.getElementsByTagName('dl')[0];
		dl.innerHTML = '';
		array = array.properties;
		
		this.navList = new Array();
		
		for (var i=0; i<array.length; i++)
		{
			var dd = d.createElement('dd');
			var str = array[i].name;
			var a = createA(((array[i].link)?array[i].link:'javascript:;'), ((array[i].target)?array[i].target:''), array[i].name);
			a.num = i;
			
			dd.appendChild(a);
			dl.appendChild(dd);
			this.navList.push(a);
		}
		
		//setTimeout(function()
		//{	
			var scroller  = new Scrolling.Scroller(scrollContainer, scroll.offsetWidth, scroll.offsetHeight);
			var scrollbar = new Scrolling.Scrollbar(scroll, scroller, new Scrolling.ScrollTween());
		//}, 10);
	};
	
	this.init();
}

function genLeaseList()
{
	var leaseTab = d.getElementById('leaseTab');
	var container = d.getElementById('mid');
	var row = d.getElementById('leaseRow');
	var tableCols = new Array('name', 'address', 'unit', 'contact');
	var rowArray = new Array();
	var highlightNav;
	var self = this;
/*	var self = this('Input'); */
	
	this.init = function()
	{

		var a = setChildNodes(leaseTab, 'A');
		for (var i=0; i<a.length; i++)
		{
			a[i].num = i;
			a[i].section = a[i].id.replace('Tab', '');
			a[i].href = 'javascript:;';
			
			a[i].onclick = function()
			{
				if (this.className.indexOf('selected') >= 0)	return;
				self.changeA(this, this.section);
			}
		}
		
		self.changeA(a[0], a[0].section);
	};
	
	this.changeA = function(btn, id)
	{
		if (highlightNav)	highlightNav.className = highlightNav.className.replace(/selected/, '');
		btn.className += ' selected';
		
		var array = propertyArray[1].types[btn.num];
		this.genList(id, array);
		
		highlightNav = btn;
	};
	
	this.genList = function(id, array)
	{
		for (var i=0; i<rowArray.length; i++)
		{
			container.removeChild(rowArray[i]);
		}
		rowArray = new Array();
		
		var idArray = new Array();
		for (var i=0; i<array.zone.length; i++)
		{
			var div = createDiv('', '');
			div.innerHTML = row.innerHTML;
			
			var h2 = div.getElementsByTagName('h2')[0];
			h2.innerHTML = array.zone[i].name;
			h2.id = array.zone[i].id;
			
			var table = div.getElementsByTagName('table')[0];
			this.genSingleList(table, array.zone[i]);
			
			//Hidden Last Top Btn
			if (i == array.zone.length - 1)
			{
				var hkLeaseTop = getElementsByClassName(div, 'hkLeaseTop')[0];
				hkLeaseTop.style.display = 'none';
			}
			
			container.appendChild(div);
			rowArray.push(div);
			idArray.push({id:array.zone[i].id, name:array.zone[i].name});
		}
		
		this.genNav(idArray);
	};
	
	this.genSingleList = function(table, zone)
	{
		var array = zone.properties;
		
		for (var i=0; i<array.length; i++)
		{
			var row = table.insertRow(-1);
			
			for (var j=0; j<tableCols.length; j++)
			{
				var cell = row.insertCell(-1);
				if (j == 0)	cell.className = 'leaseProperty';
				
				if (tableCols[j] == 'contact')
				{
					cell.setAttribute('colSpan', 2);
					cell.style.padding = 0;
					
					var contactTable = d.createElement('table');
					for (var k=0; k<array[i][tableCols[j]].length; k++)
					{
						var contactRow = contactTable.insertRow(-1);
						var num = j;
						for (var m in array[i][tableCols[j]][k])
						{
							var contactCell = contactRow.insertCell(-1);
							contactCell.innerHTML = array[i][tableCols[j]][k][m];
							contactCell.width = table.getElementsByTagName('th')[num].width;
							num ++;
						}
					}
					cell.appendChild(contactTable);
				}
				else
				{
					cell.innerHTML = array[i][tableCols[j]];
				}
			}
		}
	};
	
	this.genNav = function(idArray)
	{
		var leaseTabs = d.getElementById('leaseTabs');
		leaseTabs.innerHTML = '';
		
		for (var i=0; i<idArray.length; i++)
		{
			leaseTabs.innerHTML += '| ';
			var a = createA(('#' + idArray[i].id), '', idArray[i].name);
			leaseTabs.appendChild(a);
		}
	};
	
	this.init();
};


