var textNodeName = "overflowText";  // Change this name to be the id of the node you want to swap text 
var textNode;

var overviewText = "<font color=\"#333333\"></font>Good design is a solid investment and we make that investment pay off by immersing ourselves in your project. We&rsquo;re passionate about the success of our clients.<br /><br />From our very first meeting to the final delivery of your materials, every detail will be overseen by Stringbean Design - getting supplier quotes, coordinating printing, registering your domain name, and arranging sign installation. We've got it covered so you can get back to what you want to be doing.";

var discoverText = "<font color=\"#333333\"></font>Stringbean Design believes that great design begins with you. We listen, and in the end, listening pays off. You get results to help your business succeed.<br /><br />Because our process is rooted in client needs we meet face-to-face in the initial discovery process to get to know you and find out your goals.";

var brainstormText = "<font color=\"#333333\"></font>Stringbean Design works with you to develop a fruitful, creative partnership to make your project grow.<br /><br />We believe research makes the difference between success and failure. We research you, your competition, marketplace trends, and your current customers. We also conduct visual and conceptual research to support the concepts and ideas that will be explored.";

var defineText = "<font color=\"#333333\"></font>The Creative Brief is the road map that helps us all get to the same place at the same time. It contains the outcome of our discussions, research findings, detailed information about your customer, recommended strategies, conceptual directions and timelines.<br /><br />This document helps you understand what you can expect during the life of a project, the practical meaning of some of the more technical terms and what steps are going to be taken and why.";

var createText = "<font color=\"#333333\"></font>Our designers and associates are highly educated industry professionals who are also passionate and creative. With fires in our bellies and sparks in our eyes we begin the form making process &ndash; the physical manifestation of the ideas mapped out in the Creative Brief.<br /><br />We present the most successful design solutions for your feedback and final selection. We will further refine the chosen design and apply it to the materials that best achieve the project goals.";

var buildText = "<font color=\"#333333\"></font>Stringbean has deep roots in the design industry. Our contacts and resources are extensive and allow us to offer you professional help in every aspect of design management.<br /><br />We make sure the process goes smoothly so you don&rsquo;t have to worry about it. It&rsquo;s our job to worry about the nitty gritty details. We&rsquo;ll tie up all the loose ends into a nice neat little package.";

var deliverText = "<font color=\"#333333\"></font>Our project managers love their jobs and make every effort to ensure you get the highest quality materials delivered on time.<br /><br />We follow&#45;up on every project to see how happy you are with it, how it was received by your customers, how well it served its purpose, and how well it functioned.";

function SwapText(menuItem) {
   		if(textNode == null)
			textNode = document.getElementById(textNodeName);
			
				
		if(textNode != null && menuItem != null) {

			
			if (menuItem == "menuStrategy")
				textNode.innerHTML = overviewText; 		
			else if (menuItem == "menuDiscover")
				textNode.innerHTML = discoverText; 
			else if (menuItem == "menuBrainstorm")
				textNode.innerHTML = brainstormText; 
			else if (menuItem == "menuDefine")
				textNode.innerHTML = defineText; 
			else if (menuItem == "menuCreate")
				textNode.innerHTML = createText;
			else if (menuItem == "menuBuild")
				textNode.innerHTML = buildText; 
			else if (menuItem == "menuDeliver")
				textNode.innerHTML = deliverText; 
		
		}
		
	}
	
	
function onMenuSelect(menuItem, oldClass, newClass) {
	SwapText(menuItem);
	SwapSelectedMenuItem(menuItem, oldClass, newClass);
}
	
	
var lastActiveLinkID = 'menuStrategy'; // default selectd link when page first loads
function SwapSelectedMenuItem(menuItem, oldClass, newClass) {
	
	// reset old link class
	if (lastActiveLinkID != null) {
		var identity=document.getElementById(lastActiveLinkID);
		identity.className=oldClass;
	}
		
	// set new link class
	identity=document.getElementById(menuItem);
	identity.className=newClass;
		
	// save last link id
	lastActiveLinkID=menuItem;
	
}


