var team_member_names;
var team_member_content;
var team_member_imagedir;

//drag
var objDrag;

function boxesConst() {
	team_member_names = new Array('Dave Alberga','Matt Landa','Jon Belmonte','Norman Dowling','Kourosh Vossoughi','Alex Barnetson','Eric Magnuson','John Sanders','Josh Schlesser','Steve Green','Elliot Katzman','Eric Korman','Lee Rosenberg','John Korff','Matt Ehrlichman');
	team_member_content = new Array('<p><b>Dave Alberga</b>是活跃网络公司（领先的应用服务技术和社区服务机构营销访问提供商以及领先的为享受活跃生活方式的消费者提供的在线社区）的首席执行官。</p><p>在 Alberga的带领下，活跃网络如今正在服务的客户群遍及美国各地、加拿大、澳大利亚和新西，其中包括地方政府、公园和游乐场、高尔夫球场、非盈利性组织、体育组织和团体、教育机构及消费品公司。公司被Deloitte & Touche列为北美顶级增长最快的技术公司之一，并且由于近三年平均年销售额增长487.2％被评为Inc. 500公司。 </p><p>在来到活跃网络之前，Alberga花费了3年时间运作了 TicketmasterOnline CitySearch (NASDAQ: TMCS)，一家领先的门户和交易公司。在 TMCS 的3年时间，他最初的角色是负责为CitySearch City Guides开拓市场的总经理，之后是执行副总裁，接着成为首席运营官。在 TMCS 的辉煌历史包括在35个市场成功领导当地管理团队，同时监督每个地区的机构运营情况和报告进程，并参与为CitySearch筹集私有和公共资本。</p> <p>Alberga也曾在不同的技术背景的公司任高级管理职位，这些公司包括Linear Technology － 领先的模拟半导体制造商和矽谷科技公司。他从曾经共事的波士顿咨询集团和Procter & Gamble带来了强大的管理咨询和品牌管理专业知识。</p> <p>Alberga拥有美国斯坦福大学的工商管理硕士和文学硕士学位，并从美国西点军校获得了通用工程科学学士学位。</p> <p>Alberga也是 Running USA 的董事会成员，Running USA致力于改善美国公路赛车和长跑地位。</p>','<p>作为活跃网络公司的总裁，<b>Matt</b> 目前正以既定的战略防线领导总各业务单元的总经理和确保Active在其各个市场领域内成为领导者。Landa还负责大监督公司的社区、政府、高尔夫和商业运作，以及全方位的服务、整合市场和消费者促销机构 － Active Marketing Group。在Landa的领导下， Active Marketing Group被PROMO杂志评选为全国增长最快的前十位公司。</p> <p>作为Silicon Valley-based CMC Industries的前行政总裁和首席执行官，Landa促使电子制造业额销售从1995年的约1亿4千万美元增长至1998年的超过3亿美元。在1999年与ACT Manufacturing合并后，他出任新公司的总裁直到2000年3月。在CMC就职之前，Landa是Silicon Valley Technology (SVT)的首席执行官，SVT是一家高产量的电子产品制造商。</p> <p>其它经历包括曾在就职于纽约的Morgan Stanley的融资和并购部门以及Monitor Company－一家战略管理咨询公司。Landa在Dartmouth College获取了工程和经济学学士学位并在斯坦福大学获取了工商管理硕士学位。</p> ','<p><b>Jon Belmonte</b>，首席运营官，负责监督公司的Active Sports Technologies和Active Giving Solutions业务，及其媒介Active.com和eteamz，也包括知道公司网站内容策略和运营。Belmonte和他的团队与包括个人、团队、和体育联赛和非赢利活动在内的组织机构一起工作，为用户提供定制化技术解决方案和营销服务，以简化管理、提高运营效率和提升其业务。在Belmonte的领导下，公司正与超过13,000个赛事组织者、2,500个体育联赛、700个世界各地的露营组织合作，并且为超过1,500本地和全国的非赢利性组织提供筹款服务。Belmonte拥有很强的消费者和商业市场的策略营销和管理咨询的背景。此前他是Westminster, Colo－坐落于LeagueLink的一家基于网络的联赛管理工具（后来成为活跃网络的一部分）提供商－的创始人。在LeagueLink之前，Belmonte曾在Boston Consulting Group就任咨询顾问，为各种公司包括互联网和以通信为重点的公司分析市场、管理和财务问题。他也曾领导Kew Management Corp的运营并且为一些刚起步的公司提供战略和融资问题的提供建议。毕业于Kellogg Graduate School of Management at Northwestern University，Belmonte获得了宾夕法尼亚大学沃顿商学院的学士学位。Belmonte和他的棋子Rita和两个孩子Hana和Cal生活在La Jolla，他热衷于蓝球、曲棍球和长跑。</p>','<p><b>Norman Dowling</b>，行政副总裁和首席财政官，2004年9月加入活跃网络，全盘负责公司的财务、会计、法律、人力资源职。Dowling拥有超过20年的跨多个行业部门财务和行政工作经验，包括6年与在Ernst ＆ Young公司的任职经验。在加入活跃之前，他担任Factory 2-U Store －品牌折扣专售商－的执行副总裁/首席财务官。在此之前，从1999年11月到2004年3月，Dowling担任PETCO宠物用品公司负责财物的副总裁，PETCO在全国拥有700多家销售宠物食品、用品及服务的的专卖店。从1997年到1999年，他担任CinemaStar Luxury Theaters的首席财务官。Dowling还曾于1993年到1997年在Advanced Marketing Services公司，于1990年到1993年在美国Medical Imaging Centers公司任高级财务经理。Dowling土生土长的爱尔兰都柏林人，在University College Dublin获得商学学士学位。</p>','<p><b>Kourosh Vossoughi</b>，总法律顾问及高级业务发展副总裁，负责公司法律事务，为公司兼并收购、私人融资、合同谈判、证券法、知识产权、员工合同和诉讼事项提供法律咨询。在加入活跃网络之前，Vossoughi曾在Brobeck, Phleger & Harrison做过2年企业/证券法，Phleger & Harrison是加利福尼亚业界领先的科技法律事务所。从1996到1998年，Vossoughi在Luce, Forward, Hamilton & Scripps－圣地亚哥资历最老最大的法律事务所做企业/证券法。Vossoughi毕业于圣地亚哥大学法学院，是加州律师协会成员，同时从加利福尼亚大学伯克利分校以优异的成绩获得神经生物学兼工商管理学士学位。</p>','<p><b>Alex Barnetson</b>，高级副总裁，负责公司Community and Government Solutions groups的销售、市场营销、产品开发以及客户支持，为公园及娱乐部门、非盈利性组织、学校周边地区和高等教育以及地方政府提供企业和托管解决方案。Barnetson带来广泛的套装软件的制造和经营经验，特别是对社区服务机构的重点战略销售及市场推广。在活跃收购温哥华B.C.-based Class软件解决方案之前，Barnetson是该公司的总裁兼首席运营官。该公司是以企业为基础的设施和财政管理工具提供商，服务了美国、加拿大、澳大利亚和新西兰超过700家社区机构，员工140人，收入超过1200万美元。从1987开始，Barnetson曾经在Class的多个职位任职，包括实施、培训、支持、咨询、销售和市场管理。在此之前，Barnetson曾担任社区休闲娱乐组织的项目负责人以及加拿大Parks & Recreation协会和Simon Fraser大学校友会董事。Barnetson毕业于Simon Fraser大学。</p>','<p><b>Eric Magnuson</b>高级副总裁，常务董事。管理公司的各项服务，综合市场拓展和Active Marketing Group的客户拓展机构，Magnuson监督着机构的战略及计划， 包含客户服务、人员、商业拓展和各地区办公室的日常运作，并肩负着制定和实施年收益目标，建立客户关系，创造商业拓展机会的责任。Magnuson和他的团队专注于为客户的务和其成功，代理机构信用和市场创新这些领域。Magnuson拥有在战略计划，市场和商业拓展领域的全面的16年的经验后盾，为诸如Visa, E*Trade Financial, Verizon, Nissan North America, and 7-Up等公司创立和执行了高效的市场计划。在加入Active 之前,他Millsport LLC高级管理团队的成员之一, Millsport LLC是一家 有27年体育市场经验的代理机构,是顶级的赞助和生活方式市场顾问公司Omnicom Group的子公司之一。作为高级副总裁，常务董事，Magnuson负责西部的运作，用户服务，快集团推和商业拓展。职于Millsport期间，他以在经济不景气的2001到2002年间亦取得稳步增长而获得了声誉。关于他的其他职业概览包括作为Embark.com的高级副总裁威公司的商业拓展做出不懈努力。Embark.com，一家领先的为学习性机构提供Internet基础解决方案的提供商。 在At Embark.com任职期间，他确立并牢固了与想发掘Embark.com强大的GenY客户群的品牌间的合作关系。Magnuson也曾是Pac-10 Properties的执行主管，Pac-10 Properties为一家由Fox Sports和 Pac-10 collegiate conference组建的风险公司。通过利用风险投资，他为财富500强企业投放了集成市场和馆搞计划，与之同时他还成功的把握公司战略方向并使其得到增占。Magnuso毕业于科罗拉多大学Boulder分校，持有商业管理科学学士学位，这个学位重点强调了市场和金融领域。Magnuson曾长期定居于加州Mill Valley，现在他与他的妻子Lisa和孩子Nick、Ryan和Everett定居于加州的Del Mar。</p>','<p><b>John Sanders</b>，信息技术副总裁，监督公司的作战运营。Sanders 之前曾经担任eteamz (www.eteamz.com)的首席技术关官，在eteamz 与Active Network在2001年1月合并之前，于1997至1999年，他曾经于不同商业领域担任过技术顾问。于1994到1997年2月，Sanders担任Spelling Entertainment Spelling Entertainment Group, Inc集团 - 一家制作电影/电视系列节目公司的管理信息系统的副总裁。于1986 至1994 年，担任MGM/UA Communications Co另一家服务于娱乐产业，制作电影/电视系列节目公司的管理信息系统高级副总裁。于此之前，Sanders曾作为高级经理任职于顾问公司Arthur Andersen & Co - 一家专注于娱乐，博采，房屋租赁，运输和金融服务业的公司。Sanders持有加州大学洛杉矶分校的公共服务学士学位，加州大学洛杉矶分校的Anderson学院的商业管理硕士。</p>','<p><b>Josh Schlesser</b>技术副总裁，监督着公司负责业务及其交易运作平台的发展及日常运作工作。加入Active 之前，Josh负责JGSullivan Interactive的在线业务运作，JGSullivan Interactive是一家市场及软件开发企业。在他于1998年加入JGSullivan之时---正当整个软件行业开始发掘在线和Web软件的潜力之时，Schlesser开发了当时整个业界的首个能提供在线内容管理和后台数据管理的工具从而使其能为应用其的交易者提供简单建立网站并为其用户提供web平台的在线引擎之一。Josh以前职业生涯包括 ：在Fermi国家加速实验室担任物理研究职务，担任过世界最大的高能粒子加速试验机的操作人员之一，Schlesser持有密西西比大学的物理学学士学位。</p>','<p><b>Steve Green</b> joined Canaan Partners in November 1991 as a General Partner, bringing a broad background in financing companies involved in manufacturing, retailing, radio, television, and cable broadcasting, and financial services. Green began his career with GE in 1973 and held a variety of financial positions. From 1983 to 1991 he was with GE Venture Capital and GE Capital\'s Corporate Finance Group, providing debt and equity financing for start-up companies and leveraged buyouts. Green serves as a director of Dean Foods Company and holds a bachelor\'s degree from Amherst College.</p>','<p><b>Elliot Katzman</b>, a veteran of the technology industry and venture community, joined The Active Network\'s board of directors following the company\'s merger with Myteam.com in December 2001. Katzman was a founder and chief executive officer of Myteam.com, prior to its merger with The Active Network. Prior to founding Myteam.com, Katzman played key executive management roles in several successful start-ups including SolidWorks, Atria Software and Epoch Systems. In addition, he was part of Prime Computer during its significant growth phase in the mid-80s. Each of Katzman\'s last three companies achieved substantial growth. Katzman holds bachelor of science and bachelor of arts degrees from Salem State College.</p>','<p><b>Eric Korman, Executive Vice President<br>Ticketmaster</b></p><p>Eric Korman is Executive Vice President of Ticketmaster, the world\'s leading ticketing company. In this position, Mr. Korman oversees all aspects of Ticketmaster\'s corporate and business development, as well as the company\'s TicketWeb and ReserveAmerica ticketing and campground management businesses.</p><p>Prior to joining Ticketmaster, Mr. Korman served as Senior Vice President of Mergers and Acquisitions from January 2005 to April 2006 for IAC/InterActiveCorp, Ticketmaster\'s parent organization. He joined IAC in September 2001 as Vice President of Business Development and Strategy for Ecommerce Services (ECS), a former subsidiary of IAC; and subsequently, he was promoted to Vice President of Strategic Planning for IAC in February 2002, and was appointed Vice President of Mergers and Acquisitions in September 2003.</p><p>Before taking on his roles with IAC, Mr. Korman served in the Customer Marketing group of Coca-Cola USA from 1993 to 1995 before joining the Corporate Business Development group of The Coca-Cola Company, where he remained until 1997, managing the mergers, acquisitions, and divestitures of nonalcoholic beverage companies primarily located in Europe and South America. In January 2000, Mr. Korman joined Digital Convergence Corporation as Vice President, assisting the start-up with various activities such as raising private equity and signing distribution partners. Mr. Korman left Digital Convergence later that year to become a principal in epartners, a $650 million venture fund backed by SOFTBANK and News Corporation.</p><p>Eric Korman sits on the Board of Directors of the Active Network Inc., BET.com, and Points International LTD (TSX: PTS). He is an honors graduate from Emory University with a Bachelor of Arts degree in Economics and an MBA from the J.L. Kellogg Graduate School of Management.</p>','<p><b>Lee Rosenberg</b>, a founding Principal of the General Partner of Kettle Partners, focuses on broadband converged content, entertainment and media driven transactions. Rosenberg currently serves on the board of directors of portfolio companies Sportvision and Sure Payroll. From 1986, he was President of Rosenberg Capital, Inc. and General Partner of Rosy Partnership, entities involved in a broad spectrum of venture capital relationships and real estate investments. Portfolio companies and relationships have included: Musicnow, Egreetings Network, GRP Records, Sylvan Learning Systems (NASDAQ:SLVN) and JAM Productions. Prior to 1986, Rosenberg served as a Senior Vice President for Heitman Advisory, an institutional real estate investment advisor. Rosenberg is 44 years old, married and has a daughter. He earned a bachelor\'s degree in business administration with Distinction from the University of Michigan in 1978 and is a Certified Public Accountant.</p>','<p><b>John N. Korff<br>Board Member</b></p><p>With a career in the sports industry spanning more than 30 years, John Korff is owner of Korff Enterprises, a sports and special events marketing company based in New York City and Honolulu. In addition to serving as a Board Member of The Active Network, Korff is Director at Large on the USTA Board of Directors.</p><p>Other appointed positions include Board Liaison to the Community Tennis Association Council and serving on the board\'s Budget Committee. Previously, he served on the Davis Cup Committee for six years. Korff was also a member of the WTA Tour Board and a business advisor to the WTA Tour Players Association.</p><p>Korff founded and then organized the highly innovative A&P Tennis Classic in Mahwah, New Jersey, for twenty-five years. He also owns and operates the New York City Triathlon and produces on-course entertainment for the New York City Marathon. Korff has successfully produced national and world championships in triathlon, archery, indoor track and field, fencing, weightlifting, and other Olympic sports. His company also organizes hot air balloon festivals, concerts and PGA golf tournaments.</p><p>In 2004, Korff organized the U.S. Olympic Trials for Triathlon in Honolulu, Hawaii. He currently runs the highly successful Honolulu triathlon and the World Triathlon Championships, both in Hawaii.</p><p>John N. Korff is a graduate of Harvard Business School. </p>','<p>Matt 在 Active Network 领导商业, 战略及市场的拓.在加入 Active 前, Matt 曾是 Thriva 的创始人之一和 CEO , Thriva 在2007年3月被 Active 合并。作为一家快速发展中的公司, Thriva 为赛事，露营活动，教育和社团市场提供注册和管理服务。领导着 Active 在伯塞尔和华盛顿的65名员工， Matt 现在领导者各个商业部门的经理们制定为使 Active 成为其已进入的各个市场的领导者而制定战略目标并付诸实践努力. Matt 在 Stanford 大学获得了企业管理学士及管理科学硕士学位.</p>');	team_member_images = new Array(true,true,true,true,true,true,true,false,true,false,false,false,false,false,true);
	team_member_imagedir = img_basedir+'images/team/';
	attachPopupListeners();

	//drag
	objDrag = new Object();
	objDrag.zIndex = 0;
	attachDragListener();
}
function attachPopupListeners() {
	var new_name;
	if (window.addEventListener) { // moz
		for (var i=0; i<team_member_names.length; i++) {
			new_name = team_member_names[i].toLowerCase().replace(/ /g, '_');
			new_name = 'tm_'+new_name;
			ge(new_name).setAttribute('offset',i);
			ge(new_name).style.cursor = 'pointer';
			ge(new_name).addEventListener('click', show_profile, false);
			ge(new_name).addEventListener('mouseover', highlight_profile, false);
			ge(new_name).addEventListener('mouseout', delight_profile, false);
		}
	}
	else {
		for (var i=0; i<team_member_names.length; i++) {
			new_name = team_member_names[i].toLowerCase().replace(/ /g, '_');
			new_name = 'tm_'+new_name;
			ge(new_name).setAttribute('offset',i);
			ge(new_name).style.cursor = 'pointer';
			ge(new_name).attachEvent('onclick', show_profile);
			ge(new_name).attachEvent('onmouseover', highlight_profile);
			ge(new_name).attachEvent('onmouseout', delight_profile);

		}
	}
}

// highlight listener
function highlight_profile(e) {
	var objRef;
	e[e_moz] ? objRef = e[e_moz] : objRef = e[e_ie];

	objRef.style.color = '#003580';
	objRef.style.listStyleType = 'circle';
}

// de-light listener
function delight_profile(e) {
	var objRef;	
	e[e_moz] ? objRef = e[e_moz] : objRef = e[e_ie];
	objRef.style.color = '#000000';
	objRef.style.listStyleType = 'square';
}


//drag listener
function attachDragListener() {

	var objSlider = ge('profile_title');

	if (window.addEventListener) { // moz
		objSlider.addEventListener('mousedown', boxDragStart, false);
	}
	else { // ie
		objSlider.attachEvent('onmousedown', boxDragStart);
	}
}
function boxDragStart(e) {
//	e[e_moz] ? objDrag.elNode = e[e_moz] : objDrag.elNode = e[e_ie];
	objDrag.elNode = ge('profile_box');

	// cursor position
	var cur_x;
	var cur_y;

	if (e[e_moz]) {
		cur_x = e.clientX + window.scrollX;
		cur_y = e.clientY + window.scrollY;
	}	
	else {
		cur_x = e.clientX + document.documentElement.scrollLeft + document.body.scrollLeft;
		cur_y = e.clientY + document.documentElement.scrollTop + document.body.scrollTop;
	}

	// save start position
	objDrag.cursorStartX = cur_x;
	objDrag.cursorStartY = cur_y;
	objDrag.elStartLeft = parseInt(objDrag.elNode.style.left, 10);
	objDrag.elStartTop = parseInt(objDrag.elNode.style.top, 10);

	isNaN(objDrag.elStartLeft) ? objDrag.elStartLeft = 0 : '';
	isNaN(objDrag.elStartTop) ? objDrag.elStartTop = 0 : '';

	// update zindex
	objDrag.elNode.style.zIndex = ++objDrag.zIndex;

	// add event listeners
	if (e[e_moz]) {
		document.addEventListener('mousemove', boxDragBegin, true);
		document.addEventListener('mouseup', boxDragStop, true);
		e.preventDefault();
	}
	else {
		document.attachEvent('onmousemove', boxDragBegin);
		document.attachEvent('onmouseup', boxDragStop);
		e.cancelBubble = true;
		e.returnValue = false;
	}
}

function boxDragBegin(e) {
	var x;
	var y;

	if (e[e_moz]) {
		x = e.clientX + window.scrollX;
		y = e.clientY + window.scrollY;
	}
	else {
		x = e.clientX + document.documentElement.scrollLeft + document.body.scrollLeft;
		y = e.clientY + document.documentElement.scrollTop + document.body.scrollTop;
	}

	var new_x = (objDrag.elStartLeft + x - objDrag.cursorStartX);
	var new_y = (objDrag.elStartTop  + y - objDrag.cursorStartY);
	objDrag.elNode.style.left = new_x + "px";
	objDrag.elNode.style.top = new_y + "px";
	// move drop shadow too

	ge('profile_box_background').style.left = eval(new_x + 5) + "px";
	ge('profile_box_background').style.top = eval(new_y + 5) + "px";


	if (e[e_moz]) {
		e.preventDefault();
	}
	else {
		e.cancelBubble = true;
		e.returnValue = false;
	}
}

function boxDragStop(e) {
	if (e[e_moz]) {
		document.removeEventListener('mousemove', boxDragBegin, true);
		document.removeEventListener('mouseup', boxDragStop, true);
	}
	else {
		document.detachEvent('onmousemove', boxDragBegin);
		document.detachEvent('onmouseup', boxDragStop);
	}
}

function show_profile(e) {
	var member_offset;
	var objRef;

	e[e_moz] ? member_offset = e[e_moz].getAttribute(offset) : member_offset = e[e_ie][offset];
	e[e_moz] ? objRef = e[e_moz] : objRef = e[e_ie];

//	alert(team_member_names[member_offset]);

	var objPopup = ge('profile_box');
	var xpos = getposOffset(objRef, "left") - 35;
	var ypos = getposOffset(objRef, "top") - 205;
	objPopup.style.left = xpos + "px";
	objPopup.style.top = ypos + "px";

	// shadow
	var objShadow = ge('profile_box_background');
//	alert(objShadow);
	objShadow.style.left = eval(xpos + 5) + "px";
	objShadow.style.top = eval(ypos + 5) + "px";
	objShadow.style.display = "block";


	// update content
	var objPopupContent = ge('profile_information');
	objPopupContent.innerHTML = ' ';
	objPopupContent.innerHTML = team_member_content[member_offset];

	// update header
	var objProfileName = ge('profile_name');
	objProfileName.innerHTML = ' ';
	objProfileName.innerHTML = team_member_names[member_offset];

	// if an image exists
	if (team_member_images[member_offset]) {	
		var objPhotoContainer = ge('profile_photo');
		objPhotoContainer.style.display = 'inline';
		objPopupContent.style.width = '255px';

		// update image

		var objPopupImage = ge('profile_photo_src');
		objPopupImage.src = team_member_imagedir + team_member_names[member_offset].replace(/ /g, '-') + '.jpg';
	}
	else {
		// hide image, widen profile information
		var objPhotoContainer = ge('profile_photo');
		objPhotoContainer.style.display = 'none';
		objPopupContent.style.width = '390px';
	}
	objPopup.style.display = "block";

}

function getposOffset(overlay, offsettype){
	var totaloffset = (offsettype == "left") ? overlay.offsetLeft : overlay.offsetTop;
	var parentEl = overlay.offsetParent;
	while (parentEl != null){
		totaloffset = (offsettype == "left") ? totaloffset + parentEl.offsetLeft : totaloffset + parentEl.offsetTop;
		parentEl = parentEl.offsetParent;
	}
	return totaloffset;
}
function popup_hide() {
	var objPopup = ge('profile_box');
	objPopup.style.display = '';
	var objShadow = ge('profile_box_background');
	objShadow.style.display = '';
}

