var tabs = ['bio_tab', 'resume_tab', 'acclaim_tab', 'links_tab', 'mission_tab', 'values_tab'];
var subs = ['value1_sub', 'value2_sub', 'value3_sub', 'value4_sub'];
var values = ['bio', 'resume', 'acclaim', 'links', 'value1', 'value2', 'value3', 'value4', 'mission'];

var combined_values = values;

function show(show) {
	// update tabs
	if(in_array(show + '_tab', tabs)) {
		on_only(show + '_tab', tabs, 'tab');

		if(show == 'values') {
			show_abs(subs);
			show = 'value1';
		} else {
			hide_abs(subs);
		}
	}
	
	if(show == 'acclaim') {
		show_acclaim(0);
	}

	// update content area
	show_only(show, combined_values);

	// update sub-menu
	if(in_array(show + '_sub', subs)) {
		on_only(show + '_sub', subs, 'sub');
	}
}

function show_all_but(show, all) {
	for(var i in all) { var field = all[i];
		tag(field).style.position = ((field == show) ? 'absolute' : 'static');
	}
}

function show_acclaim(num) {
	tag('acclaim_text').innerHTML = acclaim_texts[num];
	tag('attribution_text').innerHTML = attribution_texts[num];
}


// NOTE: To change the first testimonial you must also change it in about.html
var acclaim_texts = [
      "Thank you so much for a job well done!  A grand time was had by all!!  The righteous groove was irresistible!",
      "Thanks so much for doing such a fantastic job DJing for my 50th on Saturday. I've heard nothing but positive feedback from friends and family. I personally don't recall sitting down once so I think I danced every dance. My aching feet were a testament!",
      "To my mind and body your art has reached a level of genius.",
      "Collaborating with DJ Root was a pleasure, easy and enjoyable!  His playfulness and musical sensitivity made our wedding a love-filled celebration that we will truly never forget.",
      "Root's great talent, positive fun energy, and pumped-up enthusiasm makes sure people are on the dance floor. At our private Valentine's Day party, even though it was a small event, he still gave us everything he had and put on an amazing show.  I've never seen mojo so powerful.  He came out on the floor to show off his moves, asked wallflowers to dance with him, and helped them feel welcome and worthy no matter what their dancing abilities.  He is extremely professional and a bit more expensive than a run-of-the-mill DJ, but boy do you get what you pay for!  At a DJ Root event, everyone dances, and everyone has a good time!!",
      "Root knows how to spin those songs to get all those shy folks flying around the room in throes of ecstasy.  He makes me want to get up off my chair and boogie!",
      "Insightful and versatile artistry with a wide range of material flowing from familiar favorites to world beat, waltzes and tangos.  At our 20th anniversary party, people didn't stray from the dance floor.  Root has been my favorite DJ for several years now.",
      "As a choreographer I am particular about the music I dance to.  At my wedding and again at my 50th birthday party I asked Root to play funky music from my youth.  I don't know if he likes that kind of music or not, but he did a fantastic job of creating an fun and inviting atmosphere for people of different ages and backgrounds to dance together.",
      "Root happens to be my favorite DJ.  His range, the scope of his musical selections and the style with which he puts it together adds up to perfection. No matter what the occasion happens to be.  I've heard his smooth sets, dance sets, hip-hop sets, rock sets, cover sets, soul sets, world beat sets and everything in between and he is good.",
      "I have heard Root slamming and jamming dance floors at numerous events! On the console, he's a beast!",
      "Root's life work is getting people to go deep in their bodies, to express themselves, and to get ecstatic. His gift for making a safe space for inspired and creative movement has definitely worked its magic on me.  Root is my favorite DJ.",
      "Root is a master of the loving art of warping space-time-energy to sweep away our collective hearts on an immersive inner safari, where we find lost continents of sensation and hidden jewels of insight.",
      "I feel free to fully open my heart, and I have experienced really profound shifts during Root's incredible musical journeys.  He creates a sacred, honoured, beautified, and safe space for meditation, movement, and prayer. Thank you for your inspired gifts, so very special in my life!",
      "An unbelievably enriching opening I am unlikely to forget.  My heart unblocked, and my dancing blossomed as Root directed us toward both individual and group  discovery. Highly recommended for anyone interested in dance or self-discovery. Journey on!",
      "Thank you so much for creating an environment of anticipation, excitement, and connection at the Chamber of Commerce Leadership Summit.  This event was a first of its kind, bringing together community and business leaders to discuss economic, social and political trends impacting this area.  Your skillful and engaging blending of music helped us achieve the effect that we wanted to inspire among the participants.",
      "WOW, such deliciousness!  That was a most beautiful and happening Groove Paradise on Saturday night. The overall design of it, with all the different rooms and their offerings; the details of decoration; the most inspiring samosas I've ever eaten (no tamarind sauce has ever been so tangy); the wonderful alchemical melting-mood that seemed to purr all night in the trance-den; the ecstatic groove-bursts that developed in the main jungle-room complete with dancing monkeys! I loved how well people adorned themselves, and I'm just so happy to be part of such a cool community of creators. Thank you and do it some more, you know I'll be there!",
      "Root creates a safe, sacred, and playful space where our souls can expand through movement meditation. I highly recommend his work as a rare opportunity to move, breathe, dance, play and remember all that is sacred within and around us.",
      "Imagine how hard it would be to get 35 teenagers -- the entire population of our private high school -- onto the dancefloor at the prom... pretty hard, yeah? This DJ's fine taste and superb timing made it seem easy. You rock DJ Root!",
      "Root's ability to pick the right songs and the right moments is a gift. His music moves me to sacred places and allows me to dance with delight. Thanks for bringing such joy into my life!",
];

// NOTE: To change the first testimonial you must also change it in about.html
var attribution_texts = [
	"-- Thomas S. Benjamin, Senior Landscape Architect at Vanasse Hangen Brustlin, Inc., Springfield,&nbsp;MA",
	"-- Diane Norman, Family Nurse Practitioner, Amherst College, Amherst,&nbsp;MA",
	"-- Jill Turner, videographer, Northampton,&nbsp;MA",
	"-- Alisa &amp; Mark Tanny, newlyweds, Conway,&nbsp;MA.",
	"-- T. Lee Shostack, Internet Technology Specialist, Arlington,&nbsp;MA",
	"-- David Kahn, 72-year-old dancer, Cambridge,&nbsp;MA",
	"--  Paul Spielman, Dance New England founder, Medford,&nbsp;MA",
	"-- David Hurwith, choreographer, Worthington,&nbsp;MA",
	"-- DJ Lady Deva, Matrix Leadership Institute, Boulder,&nbsp;CO",
	"-- DJ Alkemi, ABell Productions, Ayer,&nbsp;MA",
	"--  Rythea Lee, Counselor / Performing Artist / owner of the Wildlife Sanctuary Studio, Northampton,&nbsp;MA",
	"--  Tom Murray, Computer Science Professor, Hampshire College Amherst,&nbsp;MA",
	"--  Sheena Bhatia, Sunday morning Dance Spirit participant, Northampton,&nbsp;MA",
	"--  Helga Schleeh, Peace Mandala Project of the United Nations, Montreal,&nbsp;QC",
	"--  Ingrid Bredenberg, Leadership Summit of Hampshire County, Smith College, Northampton,&nbsp;MA",
	"love, Neige Christensen, Dance New England DJ Committee, Shelburne Falls,&nbsp;MA",
	"-- Sylvia Brallier, Director, Tantric Shamanism Institute, Las Vegas, NV",
	"-- Max Shelton, Junior, Hartsbrook Waldorf School, Hadley, MA",
	"-- D'Arcy Br&uuml;ning-Haid, Therapist, Facilitator & Speaker, Winnipeg, MB",
];

