	var isstaff = true;
var staffinfo = new Array(
	/*0*/new Array("Maggie Lee", "Head of Residential Leasing", "Maggie has a wealth of experience in the Hong Kong luxury residential market.  Her real estate sales and project marketing experience has equipped her with a thorough understanding of business development, sales management, and problem solving, as well as account management and customer service.  <br><br>She has identified, acquired, and developed accounts. Maggie's management has successfully increased sales volumes and revenue.","ml",true, false,0),
	/*1*/new Array("Clara Chu", "Senior Associate Director", "Clara is well versed in all aspects of the local property market and is able to handle lower, middle and upper housing budgets equally well. Having worked in the leasing market for over 10 years, Clara has developed excellent relationships with landlords and is very well known in the market. Her negotiation skills are excellent and based on solid facts and market knowledge. ","broker_01",true, false,0),
	/*2*/new Array("Amy Dickson", "Assistant Manager", "Amy has over four years experience working within the residential lettings sector in the UK. She is responsible for managing the residential leasing requirements of Colliers?expatriate corporate clients.","broker_02",true, false,0),
	/*3*/new Array("Ada Fung", "Senior Business Development Manager", "Ada has gained over 12 years hands-on experience in the real estate industry, including secretarial services, administration work co-ordination and supervision, visa application, property management, tenancy management, corporate account management and business development for residential properties. Ada's solid property experience, good customer and interpersonal skills and her comprehensive market knowledge ensures a high level of professionalism and a dedicated approach to her work.  Ada is efficient, organised, pro-active and extremely driven who regularly receives excellent feedback from both tenants and landlords. ","tm_01",true, false,0),
	/*4*/new Array("Caris Yeung", "Assistant Business Development Manager", "Caris joined Colliers Residential Leasing Department recently as a business development role with primary focus on getting appointments from Multi National Company and corporate accounts.  She will also leverage her relationship with commercial clients to broaden the client.  ","bd_06",true, false,0), 
 	/*5*/new Array("Christina Chan", "Assistant Manager", "Christina is responsible for overseeing and managing the residential leasing requirements of Colliers?corporate clients from providing orientation programs to house hunting and other relocation services.","broker_06",true, false,0),
	/*6*/new Array("Amy Robinson", "Associate Director", "Amy has a wealth of knowledge and experience in the expatriate residential market and has been in the real estate industry for over 6 years in both sales and leasing. Her professionalism and dedication to her job has equipped her to meet client's requirements.  Amy's past experience has involved pitching for direct property instructions, account management, and advertising and marketing of various residential properties.","broker_07",true, false,0),
	/*7*/new Array("Sundar Ma", "Marketing Executive", "Sundar is responsible for managing residential leasing services, orientation programmes, and other relocation services provided for Colliers International&acute;s client in Hong Kong.","broker_03",true, false,0),
	/*8*/new Array("Fanny Chan", "Tenancy Management Officer", "Fanny is responsible for providing the quality services to our Corporate Clients in expatriate working VISA application and assisting our clients on tenancy management.","tm_09",true, false,0),

	/*9*/new Array("Liza Ng", "Manager", "Liza is responsible for overseeing and managing the expatriate relocation requirements of Colliers' multinational clients from orientation to house hunting and ancillary services. She has a good knowledge and hands-on experience of the local property market. She is proficient and capable to fulfill clients' housing and other relocation needs.","broker_09",true, false,0),
	/*10*/new Array("Polly Chan", "Tenancy Management Manager", "Polly manages the Residential Tenancy Management Services of Coca-Cola, Nomura (previous know as Lehman Brothers), Federal Express, Dairy Farm, Bank of America, CA and Bayer.  Her major duties include,<ul><li>Lease renewal /early surrender/ cost saving negotiation and administration </li><li>Successfully monitoring property transactions and ensuring smooth takeover of leased property </li><li>Coordinating and maintaining up-to-date customer files </li><li>Ensuring timely repairs and maintenance of managed properties </li><li>Financial management and reporting </li><li>Ensuring smooth handover of the property, recovery of the security deposit and assisting in departure logistics</li></ul>","tm_08",true, false,0),

	/*11*/new Array("Fannie Pang", "Manager", "Fannie is an effective negotiator who achieves excellent results for her clients.  She is frequently referred to new business, which is a reflection of Fannie's ability and the client's appreciation of her valuable services.","broker_04",true, false,0),
	/*12*/new Array("", "", "","",true, false,0),

	/*13*/new Array("Nayaab Murshed", "Assistant Manager", "Nayaab is responsible for managing the residential leasing requirements of Colliers' expatriate corporate clients. She's success in client relationship management and proven track record in different industries is invaluable. It provides her with unique knowledge and understanding in how to manage and meet client expectations.","broker_05",true, false,0),

	/*14*/new Array("Charlotte Crockford", "Senior Manager", "Charlotte joined Colliers International in July 2008 to focus on Corporate Account Management and New Business for the Residential Leasing Department.  Charlotte is a qualified Chartered Surveyor with over 10 years multi-disciplinary experience in Hong Kong. ","bd_03",true, false,0),

	/*15*/new Array("Billy Chak", "Business Development Executive", "Billy has a wealth of experience in the Hong Kong luxury residential market as well as his account management history with multinational companies. Throughout expatriate assignments, he is the dedicated single point of contact for corporate clients' relocation services, including orientation, school arrangements, home finding, settling in and all related matters.","bd_02",true, false,0),	
	/*16*/new Array("Jay Yan", "Marketing Executive", "Jay is responsible for managing residential leasing services, orientation programmes and other relocation services provided for colliers International&acute;s client in Hong Kong. He also monitors the website of leasing department and ensures it&acute;s smooth operation.","su_04",true, false,0),
	/*17*/new Array("Agnes Chek", "Assistant Manager", "Agnes is responsible for overseeing and managing the residential leasing requirements of Colliers?corporate clients from providing orientation programmes to house hunting and other relocation services.","broker_08",true, false,0),
	/*18*/new Array("Joanne Wai", "Assistant Lease Management Manager", "Joanne has several years of experiences with various real estate companies, which includes managing a portfolio of residential tenancies, valuation of properties, handling day-to-day repair and maintenance enquires, lease renewal <nobr>and termination, premises handover arrangements.</nobr>","tm_03",true, false,0),
	/*19*/new Array("Bonnie Fong", "Executive Account Management", "Bonnie joined Colliers International to provide the quality services to our Corporate Clients in expatriate working visa application. She is also assisting our client's children on their school application, organizing school visits, and related information management.","tm_04",true, false,0),
	/*20*/new Array("Warren Hui", "Tenancy Management Manager", "Warren is responsible for residential tenancy management services for Colliers's corporate clients. His main duties are including preparation of management reports of the portfolio for our corporate clients, ensuring contracts fulfillment, liaison with assignees, lease renewals and terminations, payment administration, legal documentation and maintenance management","tm_05",true, false,0),
	/*21*/new Array("Rita Lee", "Assistant Account Management Manager", "Rita is responsible for Residential Tenancy Management Services for the expatriate employees of the Coca-Cola Export Corporation, Bayer, Vodafone, CA, Hewlett-Packard, Dairy Farm, Federal Express, Thomson Reuters and Lehman Brothers in Hong Kong.  Her major duties include property management and portfolio reports for corporate clients, marching-in, on-going repairs & maintenance and handover services. ","tm_06",true, false,0),
	/*22*/new Array("Sally Wong", "Executive Secretary", "Sally has attained over 15 years experience in the real estate industry, including secretarial services on property, relocation and orientation, co-ordination with clients, landlords and agents.","su_01",true, false,0),
	/*23*/new Array("Gloria Lau", "Assistant Officer", "Gloria is responsible for providing the quality services to our Corporate Clients in expatriate working VISA application and assisting our clients on tenancy management.","tm_07",true, false,0),
	/*24*/new Array("Susanna Au", "Information Officer", "Susanna is a specialist for managing the database information of residential leasing department. She is responsible for daily update of leasing properties and serviced apartments in our database.","su_03",true, false,0),
	/*25*/new Array("Iris Wong", "Secretary ", "Iris has attained over 4 years experience in real estate industry, including secretarial services on property, tenancy management to expatriates, and liaison with Landlords/ Tenants for property handover.","su_05",true, false,0),
	/*26*/new Array("Lilian Wong", "Information Officer", "Lilian has 2 years experience in residential leasing in Hong Kong Island area. She joined Colliers in 2010. Her key duty is providing efficient, update and reliable residential leasing information to the team.","su_06",true, false,0),
	/*27*/new Array("Hilary Ng", "Assistant Business Development Manager", "As a marketing professional in the real estate business, she understands well the name of the game is staying highly competitive, highly adaptable to market changes and the flexibility to offer personalised services. From click to brick &shy; by innovating the company&acute;s services through many successful online marketing projects, she generates sufficient leads to keep the business profitable in good and bad times.<br><br>With her years long efforts, the company has developed an excellent reputation and brand awareness in especially the luxury housing market. She also has a proven track record in building revenue models for company websites and using them to drive the company&acute;s business growth.","tm_10",true, false,0),	
	/*28*/new Array("Rita Leung", "Accounting Officer", "Rita has over 4 years of experience in the field of accounting.  She can handle full set of accounts independently and perform value-added qualitative and quantitative analysis.  Prior to joining Colliers International, she has worked in several industries, including professional services, fast-moving consumer goods, and the public sector.  She has demonstrated to each of her employer her exceptional ability to adopt and to meet the standards of each organization.","tm_11",true, false,0)
	
	
);

var catarray = new Array(
					new Array("Head of Residential Leasing", 
						new Array("0"), false),
					new Array("Expatriate Relocation Services",
						new Array(1, 7, 5, 6, 13, 9, 16), false),
					new Array("Corporate Accounts & Business Development ",
						new Array(3,27), false),
					new Array("Landlord & Tenancy Management ",
						new Array(18, 10, 8, 28), false),
					new Array("Knowledge Management",
						new Array(22, 25, 26), false));



var indexarray = new Array();
var rowsarray = new Array();
ii=0;
for (ti=0; ti<catarray.length; ti++){
	for (tj=0; tj<catarray[ti][1].length; tj++){
		indexarray[ii] = catarray[ti][1][tj];
		ii++;
	}
}

for (ti=0; ti<staffinfo.length; ti++){
	staffinfo[ti][6] = ti;
}
function getNext(staffid) {
	for (i=0;i<indexarray.length;i++) {
		if (indexarray[i] == staffid) {
			if (indexarray.length == (i+1)) {
				return -1;
			} else {
				return indexarray[i+1];
			}
		}
	}
	return -1;
}

function getPrev(staffid) {
	for (i=0;i<indexarray.length; i++) {
		if (indexarray[i] == staffid) {
			if (i == 0) {
				return -1;
			} else {
				return indexarray[i-1];
			}
		}
	}
	return -1;
}

function showinfo(staffid){
	document.getElementById("staffphoto").src="images/staffphotos/"+staffinfo[staffid][3]+".jpg";
	document.getElementById("staffname").innerHTML=staffinfo[staffid][0];
	document.getElementById("stafftitle").innerHTML=staffinfo[staffid][1];
	document.getElementById("staffcontents").innerHTML=staffinfo[staffid][2];

	return false;
}

function shownext(){
	return false;
}
function showprev(){
	return false;
}
function setshowhide(groupno, classno){
	if (catarray[groupno][2]){
		document.getElementById("arrow"+groupno).src="images/ot_l"+classno+".gif";
		document.getElementById("stafftable"+groupno).style.visibility = "hidden";
		document.getElementById("stafftable"+groupno).style.display = "none";
		catarray[groupno][2] = false;
	}else{
		document.getElementById("arrow"+groupno).src="images/ot_d"+classno+".gif";
		document.getElementById("stafftable"+groupno).style.visibility = "visible";
		document.getElementById("stafftable"+groupno).style.display = "block";
		catarray[groupno][2] = true;
	}
	return false;
}
function showhidestaff(groupno, classno){
	for (i=0; i<catarray.length; i++){
	  if (i==groupno){
			setshowhide(i, classno);
		}else if (catarray[i][2]){
			setshowhide(i, classno);
		}
	}
	return false;
}
function showthumbs(){
	thehtml= "";
	ti=0;
	tt=2;
	morejs = "";
	for (ti=0; ti<catarray.length; ti++){
		if (tt==2) tt = 1; else tt=2;
		theclass= 'ourteam_sel'+tt;
		thehtml += '<table width="210" height=40 border="0" cellspacing="0" cellpadding="0" class="'+theclass+'">'+
					'<tr>'+
					'<td width=15 height=20 align=center>&nbsp;</td>'+
					'<td valign=middle class="'+theclass+'"><a href="#" onclick="return showhidestaff('+ti+', '+tt+')">'+catarray[ti][0]+'</a></td><td valign=middle width=15 align=right class="'+theclass+'">';
		thehtml += 		'<a href="#" onclick="return showhidestaff('+ti+', '+tt+')"><img src="images/ot_l'+tt+'.gif" id="arrow'+ti+'" border=0></a>';
		thehtml += 	'</td>'+
					'<td width=6><img src="images/spacer.gif" width=7></td></tr></table>';
		// start the div
		
		thehtml += 	'<div id="stafftable'+ti+'" class="'+theclass+'" style="width:210px;visibility:hidden;display:none;border-bottom:1px solid #FFFFFF;">'+
					'<table width="210"  border="0" cellspacing="0" cellpadding="0">'+
					'<tr><td height=10 colspan=3><img src="images/spacer.gif" height=10></td></tr>'+
					'<tr><td width=15 height=43 align=center ><img src="images/spacer.gif" height=43 width=15></td>';
		thehtml += 	'<td valign=top width=180><table border="0" cellspacing="0" cellpadding="0">';
		rownum = 0;
		rowsarray[ti]=0;
		for (i=0, r=0; i<catarray[ti][1].length; i++){
			
			thesnum = catarray[ti][1][i];
			thes = staffinfo[thesnum];	
			if (staffno == thesnum){
				morejs = 'showhidestaff('+ti+', '+tt+');'+
							'setname('+ti+', '+rownum+', \''+thes[0]+'\');';
			}
			if (r==0)
				thehtml +='<tr>';
			thehtml +='<td height="48" width=48 align="left" valign="top">'+
					  displaythumbphoto(thesnum, ti, rownum)+
					  '</td>';
			if (r==1){
					thehtml +='<td valign=top class="'+theclass+'"><div id="thename'+ti+rownum+'" style="padding-right:5px;width:80px">&nbsp;</div></td>'+
								'</tr>';		
					rownum++;
					rowsarray[ti]++;
					r=0;
			}else{
				r++;
			}	
		}
		if (r==1){
			thehtml +='<td>&nbsp;</td>'+'<td valign=top class="'+theclass+'"><div id="thename'+ti+rownum+'" style="padding-right:5px;width:80px">&nbsp;</div></td>'+'</tr>';	
			rowsarray[ti]++;
		}
		
				
		thehtml += 	'<tr><td height=10 colspan=3><img src="images/spacer.gif" height=10></td></tr>'+
					'</table></td>'+
					'</tr>'+
					'</table>'+
					'</div>';
		
	
	}
	document.write(thehtml);
	
}

function setname(ti, rownum, thename){
	for (i=0; i<rowsarray.length; i++){
		for (j=0; j<rowsarray[i];j++){
			document.getElementById('thename'+i+j).innerHTML = "&nbsp;";
		}
	}
	document.getElementById('thename'+ti+rownum).innerHTML = thename;
}
function displaythumbphoto(thesnum, ti, rownum){
	thehtml = '<table height="'+thumbsizeh+'" width="'+thumbsizew+'" border="0" cellspacing="0" cellpadding="0"  background="include/show_image.php?dire=images/staffphotos&filename='+staffinfo[thesnum][3]+'.jpg&width='+thumbsizew+'&height='+thumbsizeh+'" name="staff_c'+thesnum+'" id="staff_c'+thesnum+'" style="border:1px solid #FFFFFF"><tr><td><a href="our_team.php?staffid='+thesnum+'" ><img src="images/spacer.jpg" width='+thumbsizew+' height='+thumbsizeh+' name="staff_'+thesnum+'" border="0" id="staff_'+thesnum+'" onmouseOver="setname('+ti+', '+rownum+', \''+staffinfo[thesnum][0]+'\');if (mstaffno!='+thesnum+') {if (staffinfo['+thesnum+'][4]) fadeIn(\'staff_c'+thesnum+'\',\'staff_'+thesnum+'\','+thumbop+',0,'+thesnum+');staffinfo['+thesnum+'][5]=false;}" onmouseOut="document.getElementById(\'thename'+ti+rownum+'\').innerHTML=\'&nbsp;\';if (mstaffno!='+thesnum+') {staffinfo['+thesnum+'][5]=true;if (staffinfo['+thesnum+'][4]) fadeIn(\'staff_c'+thesnum+'\',\'staff_'+thesnum+'\',0,1,'+thesnum+');}"></a></td></tr></table><script>setOpacity(document.getElementById("staff_'+thesnum+'"), '+thumbop+');</script>';	
	return thehtml;
}