var ourTeam = { 
trudi:{
	name:"Trudi Carey",
	desc:"<span class=\"first_letter\">T</span>rudi Carey is the president of The Carey Group, Inc. and is a licensed architect, general contractor, and real estate broker. Ms. Carey graduated from the School of Architecture and Environmental Design at California Polytechnic State University at San Luis Obispo with highest honors and currently serves on the department's advisory board. Ms. Carey is currently a board member of the Scholarship Foundation of Santa Barbara and serves on the Professional Standards committee and is a mediator for the Santa Barbara Board of Realtors. She also is a past director of publicly-traded Midstate Bank and Trust, acquired by Rabobank in 2007. She currently serves on Rabobank’s advisory board for Santa Barbara and Ventura County.<br /><br /><span class=\"first_letter\">M</span>s. Carey oversees the firm's property acquisition, developments, design, land acquisition, sales, and customer service.",
	img:"img/trudi_b.jpg"}, 
bob:{
	name:"Robert Odale",
	desc:"<span class=\"first_letter\">M</span>r. Odale first joined the Carey Group in 1986 as the head of construction. Under 23 years of his direction, he has completed numerous projects including Nathan Road homes, Clearview Estates, Clearview Phase II, Puerta Del Mar Condominiums, Buellton Self-Storage, El Encanto Remodel, First American Title's Santa Barbara County Offices, Portico at Malibu, Patterson 101 Self-Storage, Stacy Lane Homes, Patterson Plus Self-Storage, and most recently the Camino Campana Homes for the Carey Group.<br /><br /><span class=\"first_letter\">M</span>r. Odale's construction expertise, fairness, and problem solving abilities are greatly appreciated by subcontractors, homeowners, local building inspectors, and especially by The Carey Group.",
	img:"img/robert_b.jpg"}, 
gayle:{
	name:"Gayle Rodriguez",
	desc:"<span class=\"first_letter\">G</span>ayle Rodriguez is the Executive Director of Operations for The Carey Group. A graduate of UCSB, she is celebrating her 19th year with The Carey Group. Balancing financial results and client service, Mrs. Rodriguez sets the highest bar for professionalism for all employees while ensuring the warmth and family values for which The Carey Group is known.",
	img:"img/gayle_b.jpg"}, 
sam:{
	name:"Sam Carey",
	desc:"<span class=\"first_letter\">S</span>am Carey is the Marketing Director for the Carey Group, Inc.  Mr. Carey is a graduate of the Leed’s School of Business at the University of Colorado, Boulder.  Mr. Carey majored in Business with an emphasis in Marketing. During university he led a 40 student marketing firm for the US Navy. In addition he was Editor and Chief of the Business School’s 2008 book on corporate ethics. He is fluent in Spanish from internships and studying in Spain, Mexico and most recently Argentina.<br /><br /><span class=\"first_letter\">M</span>r. Carey has overseen the marketing and graphic design for Patterson Plus Self Storage, Camino Campana Homes, the Carey Group’s corporate website, Patterson Self Storage, and most recently Santa Barbara Cellars.",
	img:"img/sam_b.jpg"}, 
nathan:{
	name:"Nathan Carey",
	desc:"<span class=\"first_letter\">N</span>athan Carey leads the construction department for The Carey Group, Inc. A native of Santa Barbara, Mr. Carey attended Santa Barbara City College before transferring to California Polytechnic State University at San Luis Obispo, where he majored in Construction Management. While in school, Mr. Carey interned under Construction Superintendant Robert Odale at the building of the Stacy Lane Homes and Patterson 101 Self-Storage. In 2005 he joined The Carey Group full-time as an Assistant Construction Superintendant for the construction of Patterson Plus, a 78,000 square foot self-storage center and the corporate offices of The Carey Group Inc. In 2007, Mr. Carey was certified as a full construction superintendant by Mr. Odale. He recently completed the Camino Campana luxury homes in 2008 for the Carey Group.",
	img:"img/nathan_b.jpg"}, 
bertha:{
	name:"Bertha Fenske",
	desc:"<span class=\"first-letter\">B</span>ertha Fenske is The Carey Group's Public Relations Coordinator and Executive Assistant to the President. A native of Santa Barbara, Ms. Fenske is celebrating her 25th year with The Carey Group. Known as the \"go to\" person of the firm, there isn't anything Bertha can't solve.",
	img:"img/bertha_b.jpg"}	
};

function setSize() {
  var w = 0, h = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    w = window.innerWidth;
    h = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    w = document.documentElement.clientWidth;
    h = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    w = document.body.clientWidth;
    h = document.body.clientHeight;
  }
	$('white').style.width = w + "px";
	$('white').style.height = h + "px";
	$('infoPopup').style.left = ((w / 2) - 255) + "px";
	$('infoPopup').style.top = ((h / 2) - 155) + "px";
}
function hideBio() {
	new Effect.Appear('infoPopup', { duration: 0.5, from: 1, to: 0, afterFinish:function(){$('infoPopup').hide();$('infoImg').src = "img/spacer.gif";} });
	new Effect.Appear('white', { duration: 0.5, from: 0.5, to: 0, afterFinish:function(){$('white').hide();} });
	Event.stopObserving('white','click',hideBio);
}
function showBio(a) {
	setSize();
	$('infoImg').src = ourTeam[a]['img'];
	//Fix for stupid IE
	$('infoImg').width = 210;
	$('infoImg').height = 279;
	$('infoName').innerHTML = ourTeam[a]['name'];
	$('infoDesc').innerHTML = ourTeam[a]['desc'];
	new Effect.Appear('white', { duration: 0.5, from: 0, to: 0.5 });
	new Effect.Appear('infoPopup', { duration: 0.5, from: 0, to: 1, afterFinish:function(){Event.observe('white','click',hideBio);} });  
}
function rollover(a,b) {
$(a+'_link').style.background = $(a+'_img').style.background = b?'#ddd':'#eee';
}


