var graphics = {	//define graphics names (standard for all members)
	//'name.gif', 
	//'name1.gif', 
	nombre:'<img border="0" src="images/1pixGreen2.gif" width="100%" height="1" alt="NAME" border="0"><img src="http://michelleandcompany.com/images/team/FIRSTNAME/name-large.gif" alt="NAME">', 
	portrait:'<img border="0" src="http://michelleandcompany.com/images/team/FIRSTNAME/portrait.jpg" alt="NAME">'
	//thumb:'thumb'
};

//biographies + names (TODO: move these directly onto the page, then show/hide as necessary for SEO)
var team = {};	// define team members by first name (used to grab images from correct directory)
team.will = {};
team.will.bio = 'Will has been in the real estate industry since 1987. Raised in Wilton & Weston with his eight brothers and sisters, and currently a longtime resident of Fairfield, Will\'s family legacy runs deeps in these communities; fueling his passion for Real Estate in Weston, Wilton, Westport & Fairfield. Will, a great listener, will focus on helping you find the home that best suits your needs and your tastes. With his attention to detail and analytical ability, Will offers valuable insights on each property and its surroundings. Easy to talk to and amiable, Will facilitates your journey in finding your dream home.';
team.will.nombre = 'Will Aufderheide';

team.laila = {};
team.laila.bio = 'Laila, a full-time Realtor committed to providing her clients with confidential, timely & well-considered advice and service is professional and thorough yet always personal. She is very attentive to clients\' needs in today\'s ever-changing real estate market. Her involvement in local professional, non-profit organizations and social club memberships help keep her in tune with the pulse of the community.';
team.laila.nombre = 'Laila Tiefenthaler';


team.melissa = {};
team.melissa.bio = 'Melissa works on the daily operation and marketing of Michelle&Company, and creates custom marketing plans and innovative brochures for each property. With her extensive graphic design background, Melissa lends graphic talents to Michelle&Company’s marketing initiatives. Her goal is to give your home the best marketing ever created with the broadest coverage!';
team.melissa.nombre = 'Melissa Gordon';

// ------------------ EVENT HANDLERS FOR PICTURE CLICKS ------------------------------
if (window.jQuery) jQuery(function ($) {
	$('#portrait-images a').click(member_click);
	
	function member_click (evt) {
		evt.preventDefault();
		
		switcheroo(this.id);
	}
	
	function switcheroo (id) {
		if (!id) return;
		if (window[id]) try {(window[id])();} catch(e) {}
		
		$('#portrait-current').html(graphics.portrait.replace(/FIRSTNAME/, id).replace(/NAME/, team[id].nombre));
		$('#name-title').html(graphics.nombre.replace(/FIRSTNAME/, id));
		$('#name').html(team[id].nombre);
		$('#bio-copy').html(team[id].bio);
		
	}
});





/* LEGACY CODE STARTS HERE */

function popUpFeedbackWin(){				
	newWindow=window.open("feedbackSuggest.php","FeedbackSuggestions","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=535,height=600,top=50,left=100")
	newWindow.focus();
}

function michelle(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainMichelle.jpg" width="192" height="257" alt="Michelle Genovesi" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="22" height="1" alt="Michelle Genovesi" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainMichelleText2.gif" width="146" height="57" alt="Michelle Genovesi" border="0">';
	  document.getElementById('name').innerHTML = 'Michelle Genovesi';
	  document.getElementById('bio-copy').innerHTML = 'Always thinking outside the box, Michelle raises the standards for all in the industry and has been recognized by Forbes, NY Times and other publications as an innovative leader. Her unique marketing technique and innovative advertising, along with her uncompromising integrity, dedication to her clients, impeccable reputation for quality and results, has helped obtain top dollar for her clients in her 25 years and over 800 million in sales. She cares about her clients and the communication channels are clear. She works to win for you and has an entire team of licensed professionals dedicated to making your experience the best it can be! <a href="aboutTeamMichelle.php"><img src="http://michelleandcompany.com/images/aboutUsMainMore.gif" width="33" height="10" alt="Michelle Genovesi" border="0"><\/a>';
}

function doris(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainDoris.jpg" width="192" height="257" alt="Doris Yates" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="50" height="1" alt="Doris Yates" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainDorisText2.gif" width="163" height="55" alt="Doris Yates" border="0">';
	  document.getElementById('name').innerHTML = 'Doris Yates';
	  document.getElementById('bio-copy').innerHTML = 'Doris, a licensed agent and team member since 1993, enables me to provide the highest quality real estate services to our customers and clients. As Administrative & Marketing Manager, she not only oversees the daily operation and marketing of Michelle&Company, but also creates custom marketing plans for each property. Doris\' photographic skill sets Michelle&Company\'s listings apart from the rest in print and online. Her goal is to give your home the best marketing ever created with broadest coverage!';
}
	
function pat(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainPat.jpg" width="192" height="257" alt="Pat Maxwell" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="59" height="1" alt="Pat Maxwell" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainPatText2.gif" width="98" height="61" alt="Pat Maxwell" border="0">';
	  document.getElementById('name').innerHTML = 'Pat Maxwell';
	  document.getElementById('bio-copy').innerHTML = 'Knowledgeable, thoughtful, helpful, responsive and caring describes Pat. She blends worldliness, integrity and instinctive business savvy to provide her buyers with top of the line service and results. No wonder she is consistently honored as top selling agent. <a href="aboutTeamPatTsmls.php"><img src="http://michelleandcompany.com/images/aboutUsMainTestimonials.gif" width="58" height="10" alt="Pat Maxwell" border="0"><\/a>';
}

function audrey(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainAudrey.jpg" width="192" height="257" alt="Audrey Demetres" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="30" height="1" alt="Audrey Demetres" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainAudreyText2.gif" width="129" height="62" alt="Audrey Demetres" border="0">';
	  document.getElementById('name').innerHTML = 'Audrey Demetres';
	  document.getElementById('bio-copy').innerHTML = 'Up-beat attitude, boundless energy and sincere desire to please, Audrey gives her all to help buyers achieve their goals while educating them throughout the process, giving her buyers the edge they need in todays market. Her friendly, honest style puts people at ease and her enthusiasm for her work contributes to her awarding winning success. <a href="aboutTeamAudreyTsmls.php"><img src="http://michelleandcompany.com/images/aboutUsMainTestimonials.gif" width="58" height="10" alt="Audrey Demetres" border="0"><\/a>';
}
	
function suzanne(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainSue.jpg" width="192" height="257" alt="Suzanne Dodge" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="22" height="1" alt="Suzanne Dodge" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainSueText2.gif" width="143" height="60" alt="Suzanne Dodge" border="0">';
	  document.getElementById('name').innerHTML = 'Suzanne Dodge';
	  document.getElementById('bio-copy').innerHTML = 'Suzanne is committed to making your real estate experience effortless, expedient and enjoyable! This bright, hardworking professional quickly assesses her clients needs and establishes a plan of action to achieve their goals! She has been called refreshing, caring, focused and a creative problem-solver by the many satisfied clients who have chosen to work with her. <a href="aboutTeamSue.php"><img src="http://michelleandcompany.com/images/aboutUsMainMore.gif" width="33" height="10" alt="" border="0"><\/a>';
}
	
function amy(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainAmy.jpg" width="192" height="257" alt="Amy Tessitore" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="45" height="1" alt="Amy Tessitore" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainAmyText2.gif" width="100" height="59" alt="Amy Tessitore" border="0">';
	  document.getElementById('name').innerHTML = 'Amy Tessitore';
	  document.getElementById('bio-copy').innerHTML = 'Amy handles many of the details associated with the selling of your home. Her organizational and computer skills will be at work setting up all the information needed to help prepare the team and making sure your transaction runs smoothly. With incomparable expertise, she follows every offer from acceptance to closing, providing all parties with necessary information and making sure anything that needs to be done is completed prior to closing. You will find it a pleasure working with Amy!';
}

function leslie(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainLeslie.jpg" width="192" height="257" alt="Leslie Gluck" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="45" height="1" alt="Leslie Gluck" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainLeslieText2.gif" alt="Leslie Gluck" border="0">';
	  document.getElementById('name').innerHTML = 'Leslie Gluck';
	  document.getElementById('bio-copy').innerHTML = 'Leslie, a licensed agent, assists Michelle with the listing and selling of your home. Her knowledge of the market will be at work helping Michelle prepare a CMA for your home and keeping you informed about the market activity in your price range. She monitors all showings, solicits feedback from agents who have shown your home and provides you with up to date information.';
}

function cindy(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainCindy.jpg" width="192" height="257" alt="Cindy Fladd" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="45" height="1" alt="Cindy Fladd" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainCindyText2.gif" alt="Cindy Fladd" border="0">';
	  document.getElementById('name').innerHTML = 'Cindy Fladd';
	  document.getElementById('bio-copy').innerHTML = 'Cindy, a licensed agent, with her extensive real estate advertising background lends graphic talents and copywriting skills to Michelle&Company\'s marketing initiatives. Her goal is to make sure your home is well represented on the internet, populating sites with extensive photos, visual tours and on-line brochures. Working closely with our webmaster, she secures the best possible web exposure for you on over 20 internet sites. This is very important as 84% of today\'s buyers begin their home search online.';
}

function yamini(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainYamini.jpg" width="192" height="257" alt="Yamini Lal" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="45" height="1" alt="Yamini Lal" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainYaminiText2.gif" alt="Yamini Lal" border="0">';
	  document.getElementById('name').innerHTML = 'Yamini Lal';
	  document.getElementById('bio-copy').innerHTML = 'Yamini, not only oversees the daily operation and marketing of Michelle&amp;Company, but also creates custom marketing plans and innovative brochures for each property. With her extensive graphic design background, Yamini lends graphic talents to Michelle&amp;Company\'s marketing initiatives. Her goal is to give your home the best marketing ever created with the broadest coverage!';
}

function kristin(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainKristin.jpg" width="192" height="257" alt="Kristin Walton" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="45" height="1" alt="Kristin Walton" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainKristinText2.gif" alt="Kristin Walton" border="0">';
	  document.getElementById('name').innerHTML = 'Kristin Walton';
	  document.getElementById('bio-copy').innerHTML = 'Kristin, is energetic, knowledgeable and caring. Dedicated to finding the perfect match for each of her clients, you will be \'wowed\' with the service and attention she provides. Kristin\'s honesty and professionalism contributes to her success, which always works in your best interest. <a href="aboutTeamKristin.php"><img src="http://michelleandcompany.com/images/aboutUsMainMore.gif" width="33" height="10" alt="Kristin Walton" border="0"><\/a>';
}
	
function john(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainJohn2.jpg" width="192" height="257" alt="John Grosso" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="55" height="1" alt="John Grosso" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainJohnText2.gif" width="86" height="71" alt="John Grosso" border="0">';
	  document.getElementById('name').innerHTML = 'John P. Grosso';
	  document.getElementById('bio-copy').innerHTML = 'With over 18 years of experience, John offers many  valuable services to our clients, in a confidentail manner.He is in touch with the most current mortgage products and rates and  will work to customize a mortgage package to suit your needs. Also, as a courtesy, he will help you get pre-approved before you begin to look for a new home. This will provide more bargaining  power when we present your offer to a seller. <a href="buyersGuideMortRates.php"><img src="http://michelleandcompany.com/images/mortgageRates.gif" alt="" border="0"><\/a>';
}

function tanya(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainTanya.jpg" width="192" height="257" alt="Tanya Sprague" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="60" height="1" alt="Tanya Sprague" border="0"><img src="http://michelleandcompany.com/images/aboutUsMainTanyaText2.gif" width="146" height="57" alt="Tanya Sprague" border="0">';
	  document.getElementById('name').innerHTML = 'Tanya Sprague';
	  document.getElementById('bio-copy').innerHTML = 'Tanya, a full-time Realtor since 1999, has built her reputation with distinctive service. Honest assessments, effective listening/negotiating skills, an in-depth local community and market knowledge, and a client comes first attitude are what set Tanya apart.';
}

function kristen(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainKristen.jpg" width="192" height="257" alt="Kristen Mitrakis" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="22" height="1" alt="Kristen Mitrakis" border="0"><img src="http://michelleandcompany.com/images/KristenNameTitle.gif" width="146" height="57" alt="Erin Clark" border="0">';
	  document.getElementById('name').innerHTML = 'Kristen Mitrakis';
	  document.getElementById('bio-copy').innerHTML = 'Kristen works closely with our webmaster to secure the best possible web exposure for you on over 40 internet sites with extensive photos, visual tours and on-line brochures. This is very important as 84 percent of today\'s buyers begin their home search online. Her goal is to make sure your home is well represented in print media, as well as on the internet.';
}

function sheila(){
	  document.getElementById('portrait-current').innerHTML = '<img src="http://michelleandcompany.com/images/aboutUsMainSheila.jpg" width="192" height="257" alt="Sheila Ahern" border="0">';
	  document.getElementById('name-title').innerHTML = '<img src="http://michelleandcompany.com/images/1pixGreen2.gif" width="22" height="1" alt="Sheila Ahern" border="0"><img src="http://michelleandcompany.com/images/SheilaNameTitle.gif" width="146" height="57" alt="Sheila Ahern" border="0">';
	  document.getElementById('name').innerHTML = 'Sheila Ahern';
	  document.getElementById('bio-copy').innerHTML = 'Sheila, a licensed agent, assists Michelle with the listing and selling of your home. Her knowledge of the market will be at work helping Michelle prepare a CMA for your home and keeping you informed about the current activity in your price range. She monitors all showings, solicits feedback from agents who have shown your home and provides you with up to date information.';
}



//About Us NavBar

if (document.images) {
var OurTeam_off=new Image(); OurTeam_off.src="includes/images/aboutNavOurTeamW.gif";
var OurTeam_on=new Image(); OurTeam_on.src="includes/images/aboutNavOurTeamG.gif";

var MissionStatement_off=new Image(); MissionStatement_off.src="includes/images/aboutNavMissionStatementW.gif";
var MissionStatement_on=new Image(); MissionStatement_on.src="includes/images/aboutNavMissionStatementG.gif";

var TeamBehind_off=new Image(); TeamBehind_off.src="includes/images/aboutNavTeamBehindW.gif";
var TeamBehind_on=new Image(); TeamBehind_on.src="includes/images/aboutNavTeamBehindG.gif";

var InNews_off=new Image(); InNews_off.src="includes/images/aboutNavInNewsW.gif";
var InNews_on=new Image(); InNews_on.src="includes/images/aboutNavInNewsG.gif";

var Testimonials_off=new Image(); Testimonials_off.src="includes/images/aboutNavTestimonialsW.gif";
var Testimonials_on=new Image(); Testimonials_on.src="includes/images/aboutNavTestimonialsG.gif";

var Relocation_off=new Image(); Relocation_off.src="includes/images/aboutNavRelocationW.gif";
var Relocation_on=new Image(); Relocation_on.src="includes/images/aboutNavRelocationG.gif";

var Feedback_off=new Image(); Feedback_off.src="includes/images/aboutNavFeedbackW.gif";
var Feedback_on=new Image(); Feedback_on.src="includes/images/aboutNavFeedbackG.gif";

var Articles_off=new Image(); Articles_off.src="includes/images/aboutNavArticlesW.gif";
var Articles_on=new Image(); Articles_on.src="includes/images/aboutNavArticlesG.gif";
}

function imgOn(imgName) {
	try {
		if (document.images) {
	        document[imgName].src = eval(imgName + "_on.src");
		}
	} catch (e) {}
}
			
function imgOff(imgName) {
    try {
    	if (document.images) {
		    document[imgName].src = eval(imgName + "_off.src");
		}
	} catch (e) {}
}		

