﻿var propertyArray = new Array();

propertyArray = [
//nature
{name:'Properties for Sale', id:'sale', types:[
	{name:'Residential Properties', id:'residential', zone:[
		{name:'Hong Kong', id:'hk', properties:[
			{name:'39 Conduit Road', id:'conduit', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=conduit', target:'_self'},
			//{name:'CentreStage', id:'centrestage', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=centrestage', target:'_self'},
			//{name:'Grand Promenade', id:'grandpromenade', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=promenade', target:'_self'},
			{name:'Palatial Crest', id:'palatialcrest', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=palatial', target:'_self'},
			{name:'Park Rise', id:'parkrise', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=parkrise', target:'_self'},
			{name:'Regence Royale', id:'regenceroyale', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=regenceroyale', target:'_self'},
			//{name:'Royal Terrace', id:'royalterrace', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=royalterrace', target:'_self'},
			//{name:'Headland Road', id:'headlandroad', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=headlandroad', target:'_self'},
			{name:'CentrePoint', id:'CentrePoint', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=centrepoint', target:'_self'},
			//{name:'Suncrest Tower', id:'suncresttower', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=suncresttower', target:'_self'},
			{name:'The Gloucester', id:'thegloucester', link:'/en/propertieshk/hksale_hkresidential_hk.shtml?property=thegloucester', target:'_self'}
		]},
		
		{name:'Kowloon', id:'kl', properties:[
			{name:'Shining Heights', id:'shining', link:'/en/propertieshk/hksale_hkresidential_kl.shtml?property=shining', target:'_self'},
			{name:'Cit&eacute;33', id:'cite33', link:'/en/propertieshk/hksale_hkresidential_kl.shtml?property=cite33', target:'_self'},
			{name:'The Spectacle', id:'spectacle', link:'/en/propertieshk/hksale_hkresidential_kl.shtml?property=spectacle', target:'_self'},
			{name:'City18', id:'city18', link:'/en/propertieshk/hksale_hkresidential_kl.shtml?property=city18', target:'_self'},
			{name:'The Sparkle', id:'sparkle', link:'/en/propertieshk/hksale_hkresidential_kl.shtml?property=sparkle', target:'_self'},
			{name:'Jade Suites', id:'jadesuites', link:'/en/propertieshk/hksale_hkresidential_kl.shtml?property=jadesuites', target:'_self'}
			//{name:'Grand Waterfront', id:'waterfront', link:'/en/propertieshk/hksale_hkresidential_kl.shtml?property=waterfront', target:'_self'},
			//{name:'King\'s Park Hill', id:'kings', link:'/en/propertieshk/hksale_hkresidential_kl.shtml?property=kingspark', target:'_self'}
		]},
		
		{name:'New Territories', id:'nt', properties:[
			{name:'Hill Paramount', id:'paramount', link:'/en/propertieshk/hksale_hkresidential_nt.shtml?property=paramount', target:'_self'}	,
			{name:'The Beverly Hills', id:'beverly', link:'/en/propertieshk/hksale_hkresidential_nt.shtml?property=beverly', target:'_self'},
			{name:'Légende Royale (The Beverly Hills, Phase 3)', id:'legenderoyale', link:'/en/propertieshk/hksale_hkresidential_nt.shtml?property=legenderoyale', target:'_self'},
			//{name:'8 Royal Green', id:'royal', link:'/en/propertieshk/hksale_hkresidential_nt.shtml?property=royal', target:'_self'},
			//{name:'Royal Green', id:'royalgreen', link:'/en/propertieshk/hksale_hkresidential_nt.shtml?property=royalgreen', target:'_self'},
			{name:'Casa Marina I', id:'marina1', link:'/en/propertieshk/hksale_hkresidential_nt.shtml?property=marina1', target:'_self'},
			{name:'Casa Marina II', id:'marina2', link:'/en/propertieshk/hksale_hkresidential_nt.shtml?property=marina2', target:'_self'},
			{name:'Green Lodge', id:'greenlodge', link:'/en/propertieshk/hksale_hkresidential_nt.shtml?property=greenlodge', target:'_self'},
			{name:'La Verte', id:'laverte', link:'/en/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:'Properties for Lease', id:'lease', types:[
	{name:'Residential', id:'residential', zone:[
		{name:'Hong Kong', id:'hk', properties:[
			{name:'Eva Court', id:'eva_court', 
			link:'/en/propertieshk/eva_court.shtml', target:'_self', 
			address:'36 Macdonnell Road, Mid Levels', unit:'4,500', 
			contact:[{num:'2908 8517', person:'Miss Liu'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Four Seasons Place', id:'four_seasons_place', 
			link:'/en/propertieshk/four_seasons_place.shtml', target:'_self', 
			address:'8 Finance Street, Central', unit:'547 - 1,867', 
			contact:[{num:'2908 8743', person:'Miss Hung'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Grand Promenade', id:'grand_promenade', 
			link:'/en/propertieshk/grand_promenade.shtml', target:'_self', 
			address:'38 Tai Hong Street, Sai Wan Ho, Hong Kong', unit:'about 400 - 1,800', 
			contact:[{num:'2908 8924', person:'Miss Lin'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'39 Conduit Road', id:'39conduitroad', 
			link:'/en/propertieshk/39conduitroad.shtml', target:'_self', 
			address:'No. 39 Conduit Road, Mid-levels, Hong Kong', unit:'2,808 - 7,622', 
			contact:[{num:'2549 5168', person:'Miss Ng<br />Miss Hung'}, {num:'2908 8338', person:'Hotline'}]
			}/*,
			{name:'Palatial Crest', id:'palatial_crest', 
			link:'/en/propertieshk/palatial_crest.shtml', target:'_self', 
			address:'3 Seymour Road, Mid Levels', unit:'1,909 - 2,174', 
			contact:[{num:'2908 8517', person:'Miss Yao'}, {num:'2908 8338', person:'Hotline'}]
			}*/
			/*{name:'Winsome Park', id:'winsome_park', 
			link:'/en/propertieshk/winsome_park.shtml', target:'_self', 
			address:'42 Conduit Road, HK', unit:'1,069', 
			contact:[{num:'2908 8517', person:'Miss Yao'}, {num:'2908 8338', person:'Hotline'}]
			}
*/			
			/*{name:'Palatial Crest', id:'palatial_crest', 
			link:'/en/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:'Hotline'}]
			}*/			
		]},
		
		{name:'Kowloon', id:'kl', properties:[
			{name:'The Pinnacle', id:'the_pinnacle', 
			link:'/en/propertieshk/the_pinnacle.shtml', target:'_self', 
			address:'8 Minden Avenue, Tsim Sha Tsui', unit:'494 - 2,761', 
			contact:[{num:'2908 8536', person:'Miss Wynne Kong'}, {num:'2908 8338', person:'Hotline'}]
			}
		]},
		
		{name:'New Territories', id:'nt', properties:[
			{name:'Casa Marina I', id:'casa_marina1', 
			link:'/en/propertieshk/casa_marina.shtml', target:'_self', 
			address:'28 Lo Fai Road, Tai Po', unit:'2,867 - 3,708', 
			contact:[{num:'2663 4676<br />2908 8338', person:'Mr. Chan<br />Hotline'}]
			},
			{name:'Casa Marina II', id:'casa_marina2', 
			link:'/en/propertieshk/casa_marina.shtml', target:'_self', 
			address:'1 Lo Ping Road, Tai Po', unit:'2,478 - 4,329', 
			contact:[{num:'2663 4636<br />2908 8338', person:'Mr. Chien<br />Hotline'}]
			},
			/*{name:'Beverly Hills', id:'beverlyhill', 
			link:'http://www.thebeverlyhills.com.hk/TheBeverlyHills/index.html', target:'_blank', 
			address:'No.23 Sam Mun Tsai Road, Tai Po', unit:'2,678 - 4,018', 
			contact:[{num:'2908 8870<br />2908 8338', person:'Mr. Maurice Mui<br />Hotline'}]
			},*/
			/*{name:'Hill Paramount', id:'hillparamount', 
			link:'/en/propertieshk/hillparamount.shtml', target:'_self', 
			address:'18 Hin Tai Street, Sha Tin ', unit:'1,456-6,391', 
			contact:[{num:'2603 2192<br />2908 8338', person:'Mr. Fong<br />Hotline'}]
			},*/
			{name:'The Beverly Hills (Phase I)', id:'thebeverlyhills', 
			link:'/en/propertieshk/thebeverlyhills.shtml', target:'_self', 
			address:'No.23 Sam Mun Tsui Road, Tai Po', unit:'2,678-4,018', 
			contact:[{num:'2144 2032<br />2908 8338', person:'Mr. Fong/Mr. Wu<br />Hotline'}]
			},
			{name:'Légende Royale (The Beverly Hills, Phase 3)', id:'LegendeRoyale', 
			link:'/en/propertieshk/LegendeRoyale.shtml', target:'_self', 
			address:'No.23 Sam Mun Tsui Road, Tai Po', unit:'3,442-4,367', 
			contact:[{num:'2144 2032<br />2908 8338', person:'Mr. Fong/Mr. Wu<br />Hotline'}]
			}
		]}
		
	]},
	
	{name:'Offices', id:'offices', zone:[
		{name:'Hong Kong', id:'hk', properties:[
			{name:'AIA Tower', id:'aia_tower', 
			link:'/en/propertieshk/aia_tower.shtml', target:'_self', 
			address:'183 Electric Road, North Point', unit:'1,086 - 14,280', 
			contact:[{num:'2908 8737', person:'Miss Wong'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Golden Centre', id:'golden_centre', 
			link:'/en/propertieshk/golden_centre.shtml', target:'_self', 
			address:'188 Des Voeux Road, Central', unit:'1,383 - 5,385', 
			contact:[{num:'2908 8205', person:'Mr. Jack Mak'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Goodview Centre', id:'golden_centre', 
			link:'/en/propertieshk/goodview_centre.shtml', target:'_self', 
			address:'12 Wu Pak street, Aberdeen', unit:'593 - 1,825', 
			contact:[{num:'2908 8187', person:'Mr. John Lam'}, {num:'2908 8338', person:'Hotline'}]
			},						
			{name:'ING Tower', id:'ing_tower', 
			link:'/en/propertieshk/ing_tower.shtml', target:'_self', 
			address:'308-320 Des Voeux Road Central', unit:'831 - 8,016', 
			contact:[{num:'2908 8205', person:'Mr. Jack Mak'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'International Finance Centre', id:'ifc', 
			link:'/en/propertieshk/ifc.shtml', target:'_self', 
			address:'8 Finance Street, Central', unit:'1,189 - 23,638 (Lettable)', 
			contact:[{num:' 2908 8742', person:'Miss Poon'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Wai Wah Commercial Centre', id:'wai_wah', 
			link:'/en/propertieshk/wai_wah.shtml', target:'_self', 
			address:'6 Wilmer Street, Sheung Wan', unit:'507 - 3,034', 
			contact:[{num:'2908 8466', person:'Mr. Edmund Deng'}, {num:'2908 8338', person:'Hotline'}]
			}			
		]},
		
		{name:'Kowloon', id:'kl', properties:[
			{name:'579 Nathan Road', id:'579_nathan_road', 
			link:'/en/propertieshk/579_nathan_road.shtml', target:'_self', 
			address:'579 Nathan Road  ', unit:'1,557', 
			contact:[{num:'2908 8466', person:'Mr. Edmund Deng'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'No. 6 Knutsford Terrace', id:'6_knutsford_terrace', 
			link:'/en/propertieshk/6_knutsford_terrace.shtml', target:'_self', 
			address:'6 Knutsford Terrace, Tsimshatsui ', unit:'856 - 1,830', 
			contact:[{num:'2908 8627', person:'Miss Carmen Fong'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'AIA Financial Centre', id:'itc', 
			link:'/en/propertieshk/itc.shtml', target:'_self', 
			address:'712 Prince Edward Road East, Kowloon', unit:'2,801 - 11,849', 
			contact:[{num:'2908 8737', person:'Miss Wong'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Kowloon Building', id:'kowloon_building', 
			link:'/en/propertieshk/kowloon_building.shtml', target:'_self', 
			address:'555 Nathan Road, Mongkok ', unit:'302 - 4,454', 
			contact:[{num:'2908 8466', person:'Mr. Edmund Deng'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Manulife Financial Centre', id:'kwun_tong_223', 
			link:'/en/propertieshk/kwun_tong_223.shtml', target:'_self', 
			address:'223 Wai Yip Street, Kwun Tong ', unit:'2,000 - 65,000', 
			contact:[{num:'2908 8620', person:'Mr. Chung'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Miramar Tower', id:'miramar_tower', 
			link:'/en/propertieshk/miramar_tower.shtml', target:'_self', 
			address:'132 Nathan Road, Tsimshatsui', unit:'655 - 39,152', 
			contact:[{num:'2908 8627', person:'Miss Carmen Fong'}, {num:'2908 8338', person:'Hotline'}]
			},			
			/*{name:'Royal Commercial Centre', id:'royal_commercial_centre', 
			link:'/en/propertieshk/royal_commercial_centre.shtml', target:'_self', 
			address:'56 Parkes Street, Jordan', unit:'228 - 1,923', 
			contact:[{num:'2908 8187', person:'Mr. John Lam'}, {num:'2908 8338', person:'Hotline'}]
			},*/
			{name:'Win Plaza', id:'win_plaza', 
			link:'/en/propertieshk/win_plaza.shtml', target:'_self', 
			address:'9 Sheung Hei Street, San Po Kong', unit:'1,018 - 6,487', 
			contact:[{num:'2908 8737', person:'Miss Wong'}, {num:'2908 8338', person:'Hotline'}]
			}
		]},
		
		{name:'New Territories', id:'nt', properties:[
			{name:'City Landmark I', id:'landmark', 
			link:'/en/propertieshk/city_landmark.shtml', target:'_self', 
			address:'68 Chung On Street, Tsuen Wan', unit:'582 - 12,454', 
			contact:[{num:'2490 2303', person:'Mr. Ho'}, {num:'2908 8338', person:'Hotline'}]
			}
		]}
	]},
	
	{name:'Shopping Arcadees &amp; Shops', id:'arcades', zone:[
		{name:'Hong Kong', id:'hk', properties:[
			{name:'CentreStage (Shops)', id:'centre_stage', 
			link:'/en/propertieshk/centre_stage.shtml', target:'_self', 
			address:'108 Hollywood Road Central', unit:'748 - 4,883', 
			contact:[{num:'2908 8481', person:'Miss Yip'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'ifc mall', id:'ifc_mall', 
			link:'/en/propertieshk/ifc_mall.shtml', target:'_self', 
			address:'8 Finance Street, Central', unit:'100 - 69,922</br>(Lettable)', 
			contact:[{num:' 2908 8742', person:'Miss Poon'}, {num:'2908 8338', person:'Hotline'}]
			}
		]},
		
		{name:'Kowloon', id:'kl', properties:[
			{name:'Grand Waterfront Plaza', id:'grand_waterfront_plaza', 
			link:'/en/propertieshk/grand_waterfront_plaza.shtml', target:'_self', 
			address:'38 San Ma Tau Street, To Kwa Wan', unit:'268 - 44,427', 
			contact:[{num:'2908 8740', person:'Miss Twinky Ng'}, {num:'2908 8338', person:'Hotline'}]
			},
				
			{name:'La Cité Noble Shopping Arcade', id:'la_cite_nible_shopping_arcade', 
			link:'/en/propertieshk/la_cite_nible_shopping_arcade.shtml', target:'_self', 
			address:'1 Ngan O Road, Tseung Kwan O', unit:'230 – 12,595', 
			contact:[{num:'2908 8739', person:'Miss Kitty Chan'}, {num:'2908 8338', person:'Hotline'}]
			},		
			{name:'Metro City Plaza II', id:'metro_city_plaza', 
			link:'/en/propertieshk/metro_city_plaza.shtml', target:'_self', 
			address:'8 Yan King Road, Tseung Kwan O', unit:'44 - 120,551', 
			contact:[{num:'2908 8206<br />2908 8338', person:'Mr. Timothy Mak<br>Hotline'}]
			},
			{name:'Metro City Plaza III', id:'metro_city_plaza2', 
			link:'/en/propertieshk/metro_city_plaza.shtml', target:'_self', 
			address:'8 Mau Yip Road, Tsueng Kwan O', unit:'88 - 43,363', 
			contact:[{num:'2908 8740<br />2908 8338', person:'Miss Twinky Ng<br>Hotline'}]
			},
			{name:'Metro Harbour Plaza', id:'metro_habour_plaza', 
			link:'/en/propertieshk/metro_habour_plaza.shtml', target:'_self', 
			address:'8 Fuk Lee Street, Kowloon', unit:'240 - 31,486', 
			contact:[{num:'2908 8300', person:'Miss Michelle Kwan'}, {num:'2908 8338', person:'Hotline'}]
			},
			
			{name:'Miramar Shopping Centre', id:'miramar_shopping_centre', 
			link:'/en/propertieshk/miramar_shopping_centre.shtml', target:'_self', 
			address:'132 Nathan Road, Tsimshatsui', unit:'313 - 27,707', 
			contact:[{num:'2908 8627', person:'Miss Idith Ying'}, {num:'2908 8338', person:'Hotline'}]
			},	
			{name:'Paradise Shopping Square', id:'paradise_square', 
			link:'/en/propertieshk/paradise_square.shtml', target:'_self', 
			address:'3 Kwong Wa Street, Mongkok', unit:'133 - 7,109', 
			contact:[{num:'2908 8187', person:'Mr. John Lam'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Rightful Centre', id:'jordan_shopping_plaza', 
			link:'/en/propertieshk/jordan_shopping_plaza.shtml', target:'_self', 
			address:'11-12 Tak Hing Street, Jordan', unit:'198 - 4,335', 
			contact:[{num:'2908 8466', person:'Mr. Edmund Deng'}, {num:'2908 8338', person:'Hotline'}]
			},				
			{name:'The Pinnacle', id:'the_pinnacle2', 
			link:'/en/propertieshk/the_pinnacle.shtml', target:'_self', 
			address:'8 Minden Avenue, Tsimshatsui', unit:'425 - 11,341', 
			contact:[{num:'2908 8536<br />2908 8429', person:'Miss Wynne Kong<br />Miss Winnie Liu'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Welland Plaza', id:'welland_plaza', 
			link:'/en/propertieshk/welland_plaza.shtml', target:'_self', 
			address:'188 Nam Cheong Street, Sham Shui Po', unit:'57 - 618', 
			contact:[{num:'2908 8187', person:'Mr. John Lam'}, {num:'2908 8338', person:'Hotline'}]
			}
			/*{name:'Wing Fai Shopping Arcade', id:'wing_fai_shopping_arcade', 
			link:'/en/propertieshk/wing_fai_shopping_arcade.shtml', target:'_self', 
			address:'52 Wing Kwong Street, Hunghom', unit:'140 - 8,143', 
			contact:[{num:'2908 8991', person:'Miss Wendy Chiang'}, {num:'2908 8338', person:'Hotline'}]
			}	*/				
		]},
		
		{name:'New Territories', id:'nt', properties:[
			
			{name:'Citimall', id:'citimall', 
			link:'/en/propertieshk/citimall.shtml', target:'_self', 
			address:' 	1 Kau Yuk Road, Yuen Long', unit:'70 - 10,223', 
			contact:[{num:'2442 4449', person:'Mr. Lee'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'City Landmark I', id:'city_landmark1', 
			link:'/en/propertieshk/city_landmark.shtml', target:'_self', 
			address:'68 Chung On Street, Tsuen Wan', unit:'107 - 22,243', 
			contact:[{num:'2490 2303<br />2908 8338', person:'Mr. Ho<br />Hotline'}]
			},
			{name:'City Landmark II', id:'city_landmark2', 
			link:'/en/propertieshk/city_landmark.shtml', target:'_self', 
			address:'67-95 Tsuen Wan Market Street, Tsuen Wan', unit:'215 - 3,255', 
			contact:[{num:'2490 2303<br />2908 8338', person:'Mr. Ho<br />Hotline'}]
			},
			{name:'Dawning Views Shopping Plaza', id:'dawning_views_plaza', 
			link:'/en/propertieshk/dawning_views_plaza.shtml', target:'_self', 
			address:'23 Yat Ming Road, Fanling', unit:'169 - 16,313', 
			contact:[{num:'2908 8463', person:'Miss Angel Lee'}, {num:'2908 8338', person:'Hotline'}]
			},	
			{name:'Fanling Centre Shopping Arcade', id:'fanling_centre', 
			link:'/en/propertieshk/fanling_centre.shtml', target:'_self', 
			address:'33 San Wan Road, Fanling ', unit:'101 - 15,781', 
			contact:[{num:'2908 8540', person:'Miss Jenny Yuen'}, {num:'2908 8338', person:'Hotline'}]
			},	
			{name:'Flora Plaza', id:'flora_plaza', 
			link:'/en/propertieshk/flora_plaza.shtml', target:'_self', 
			address:'88 Pak Wo Road, Fanling', unit:'227 - 18,695', 
			contact:[{num:'2908 8463', person:'Miss Angel Lee'}, {num:'2908 8338', person:'Hotline'}]
			},	
			{name:'Hop Yick Plaza', id:'hop_yick_plaza', 
			link:'/en/propertieshk/hop_yick_plaza.shtml', target:'_self', 
			address:'23 Tai Tong Road, Yuen Long ', unit:'58 - 7,807', 
			contact:[{num:'2908 8991', person:'Miss Chiang'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Manhattan Plaza', id:'manhattan_plaza', 
			link:'/en/propertieshk/manhattan_plaza.shtml', target:'_self', 
			address:'23 Sai Ching Street, Yuen Long ', unit:'360 - 12,506', 
			contact:[{num:'2908 8620', person:'Miss Lina Chan'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Marina Cove Shopping Centre', id:'marina_cove_shopping_centre', 
			link:'/en/propertieshk/marina_cove_shopping_centre.shtml', target:'_self', 
			address:'Ho Chung, Sai Kung', unit:'355 - 6,642', 
			contact:[{num:'2908 8187', person:'Mr. John Lam'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Shatin Centre & Shatin Plaza', id:'shatin_centre', 
			link:'/en/propertieshk/shatin_centre.shtml', target:'_self',
			address:'2-16 Wan Pok Street, Shatin, <br />21-27 Shatin Centre Street, Shatin', unit:'147 - 7,520, <br />80 - 26,490', 
			contact:[{num:'2603 0591', person:'Mr. Lee'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Skyline Plaza', id:'skyline_plaza', 
			link:'/en/propertieshk/skyline_plaza.shtml', target:'_self', 
			address:'88 Tai Ho Road, Tsuen Wan', unit:'155 - 15,040', 
			contact:[{num:'2908 8523', person:'Miss Karen Yung'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Sunshine Bazaar', id:'sunshine_city', 
			link:'/en/propertieshk/sunshine_city.shtml', target:'_self', 
			address:'628 Sai Sha Road, Ma On Shan', unit:'217 - 13,864', 
			contact:[{num:'2908 8006', person:'Mr. Ronald Lee'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Sunshine City Phase 1-3 Shopping Arcade', id:'sunshine_city2', 
			link:'/en/propertieshk/sunshine_city.shtml', target:'_self', 
			address:'8, 18 & 28 On Shing Street, Ma On Shan', unit:'144 - 19,246', 
			contact:[{num:'2908 8006', person:'Mr. Ronald Lee'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Sunshine City Plaza', id:'sunshine_city3', 
			link:'/en/propertieshk/sunshine_city.shtml', target:'_self', 
			address:'18 On Luk Street, Ma On Shan', unit:'59 - 152,243', 
			contact:[{num:'2908 8343', person:'Mr. Kenny Yau'}, {num:'2908 8338', person:'Hotline'}]
			},			
			{name:'The Sherwood (Shops)', id:'the_sherwood', 
			link:'/en/propertieshk/the_sherwood.shtml', target:'_self', 
			address:'8 Fuk Hang Tsuen Road, Lam Tei, Tuen Mun', unit:'700 - 7,212', 
			contact:[{num:'2908 8620', person:'Miss Lina Chan'}, {num:'2908 8338', person:'Hotline'}]
			},						
			{name:'Trend Plaza', id:'trend_plaza', 
			link:'/en/propertieshk/trend_plaza.shtml', target:'_self', 
			address:'2 Tuen Hop Street & 2 Tuen Lung Street, Tuen Mun', unit:'103 - 21,090', 
			contact:[{num:'2430 2546', person:'Mr. Lam'}, {num:'2908 8338', person:'Hotline'}]
			}	
		]}
	]},
	
	
	
	{name:'Industrial / Industrial &amp; Office Buildings', id:'officebuilding', zone:[
	/**	{name:'Hong Kong', id:'hk', properties:[
			{name:'ING Tower ', id:'kwuntong223', 
			link:'/en/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:'Hotline'}]
			},
			{name:'CentreStage', id:'centrestage', 
			link:'/en/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:'Hotline'}]
			},
			{name:'Palatial Crest', id:'palatial', 
			link:'/en/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:'Hotline'}]
			}
		]},  **/
		
		{name:'Kowloon', id:'kl', properties:[
			{name:'78 Hung To Road', id:'78_hung_to_road', 
			link:'/en/propertieshk/78_hung_to_road.shtml', target:'_self', 
			address:'78 Hung To Road, Kwun Tong', unit:'2,000 - 6,510', 
			contact:[{num:'2908 8011', person:'Mr. Cheung'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Big Star Centre', id:'big_star_centre', 
			link:'/en/propertieshk/big_star_centre.shtml', target:'_self', 
			address:'8 Wang Kwong Road, Kowloon Bay', unit:'988 - 21,853', 
			contact:[{num:'2908 8187', person:'Mr. John Lam'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Dragon Centre', id:'dragon_centre', 
			link:'/en/propertieshk/dragon_centre.shtml', target:'_self', 
			address:'79 Wing Hong Street, Cheung Sha Wan', unit:'1,109 - 7,485', 
			contact:[{num:'2908 8238', person:'Mr. Andy Lau'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Bamboos Centre', id:'bamboos_centre', 
			link:'/en/propertieshk/bamboos_centre.shtml', target:'_self', 
			address:'52 Hung To Road, Kwun Tong', unit:'2,000 - 11,000', 
			contact:[{num:'2908 8011', person:'Mr. Cheung'}, {num:'2908 8338', person:'Hotline'}]
			},
			{name:'Well Tech Centre', id:'well_tech_centre', 
			link:'/en/propertieshk/well_tech_centre.shtml', target:'_self', 
			address:'9 Pat Tat Street, San Po Kong', unit:'882 - 6,406', 
			contact:[{num:'2256 4072', person:'Mr. Liu'}, {num:'2908 8338', person:'Miss Yip'}]
			},
			{name:'Winning Centre', id:'winning_centre', 
			link:'/en/propertieshk/winning_centre.shtml', target:'_self', 
			address:'29 Tai Yau Street, San Po Kong', unit:'487 - 6,880', 
			contact:[{num:'2250 4072', person:'Mr. Liu'}, {num:'2908 8338', person:'Miss Yip'}]
			}					
		]}/*,
		
		{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()
	{
		//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)
	{
		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;
	
	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();
}
