<!-- 
if (document.images) {

	Button1_on = new Image;
	Button1_off = new Image;
	Button1_on.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/On_01.jpg';
	Button1_off.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/Off_01.jpg';
	
	Button2_on = new Image;
	Button2_off = new Image;
	Button2_on.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/On_02.jpg';
	Button2_off.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/Off_02.jpg';
	
	Button3_on = new Image;
	Button3_off = new Image;
	Button3_on.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/On_03.jpg';
	Button3_off.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/Off_03.jpg';
	
	Button4_on = new Image;
	Button4_off = new Image;
	Button4_on.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/On_04.jpg';
	Button4_off.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/Off_04.jpg';
	
	Button5_on = new Image;
	Button5_off = new Image;
	Button5_on.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/On_05.jpg';
	Button5_off.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/Off_05.jpg';
	
	Button6_on = new Image;
	Button6_off = new Image;
	Button6_on.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/On_06.jpg';
	Button6_off.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/Off_06.jpg';
	
	Button7_on = new Image;
	Button7_off = new Image;
	Button7_on.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/On_07.jpg';
	Button7_off.src = 'http://www.CenterforDesignInnovation.org/Web/images/Buttons/Off_07.jpg';
	
	whiteSpace = new Image;
	whiteSpace.src = "http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg";
} 


function goHome(){
	window.location="http://www.CenterforDesignInnovation.org";
}



function initializeMenu(){
	
	//alert("Init Menu!");
	
	pathName = String(window.location);
	tabFound = "no";
	
	if (pathName.indexOf("About/") !=-1){
		buildMenu(1);
		tabFound = "yes";
	}
	if (pathName.indexOf("Constituents") !=-1){
		buildMenu(2);
		tabFound = "yes";
	}
	if (pathName.indexOf("Research") !=-1){
		buildMenu(3);
		tabFound = "yes";
	}
	if (pathName.indexOf("Services") !=-1){
		buildMenu(4);
		tabFound = "yes";
	}
	if (pathName.indexOf("Enrichment") !=-1){
		buildMenu(5);
		tabFound = "yes";
	}
	if (pathName.indexOf("Community") !=-1){
		buildMenu(6);
		tabFound = "yes";
	}
	if (pathName.indexOf("blog") !=-1){
		buildMenu(7);
		tabFound = "yes";
	}
	
	if (tabFound == "no") {
		document.getElementById("topNav2").innerHTML = "";
		document.getElementById("topNav2").className="transparent";
		
		for (i=1;i<=7;i++){
			document.getElementById("rollover" + i).src = "http://www.CenterforDesignInnovation.org/Web/images/Buttons/Off_0" + i + ".jpg";
		}
	}

}

function buildMenu(buttonNumber){
	
		//THIS FUNCTION BUILDS THE SUBNAV CONTENT
		
		document.getElementById("topNav2").className="";
		
		
		var i=1;
		var x=0;
		var thisRollover = 0;
		var thisSource = "";
		var textValue = "";
		var newMenu = "";
		var folderName = "";
		var fileName = "";
		var pathName = "";
		
		var menuContent = new Array();
		
		menuContent[0] ="<img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='1' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/About/Mission.php'>Mission</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/About/Facilities.php'>Facilities</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/About/History.php'>History</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/About/Directions.php'>Directions</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='412' height='1' border='0'>";
		
		menuContent[1] ="<img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='1' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Constituents/Affiliates.php'>Affiliates</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Constituents/Advisors.php'>Advisors</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Constituents/Staff.php'>Staff</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Constituents/Collaborators.php'>Collaborators</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Constituents/Students.php'>Students</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='360' height='1' border='0'>";
						

						
		menuContent[2] = "<img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='1' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Research/MotionCapture.php'>Motion Data Capture & Analysis</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='200' height='1' border='0'>";
		
		menuContent[3] ="<img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='1' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Services/Prototyping.php'>Modeling & Prototyping</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Services/Meetings.php'>Meetings</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Services/Tours.php'>Tours</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='25' height='1' border='0'>";
						
		menuContent[4] ="<img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='250' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Enrichment/Forums.php'>Forums</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Enrichment/Workshops.php'>Workshops</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Enrichment/HigherEd.php'>Higher Ed</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='20' height='1' border='0'>";
						
		menuContent[5] ="<img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='225' height='1' border='0'>" +
						"<a href='http://www.CenterforDesignInnovation.org/Community/PressReleases.php'>Press Releases</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" + "<a href='http://www.CenterforDesignInnovation.org/Community/News.php'>CDI in the News</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" + "<a href='http://www.CenterforDesignInnovation.org/Community/Events.php'>Events</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" + "<a href='http://www.CenterforDesignInnovation.org/Community/Opportunities.php'>Opportunities</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='30' height='1' border='0'>" + "<a href='http://www.CenterforDesignInnovation.org/Community/Involvements.php'>Involvements</a><img src='http://www.CenterforDesignInnovation.org/Web/images/Buttons/white.jpg' width='10' height='1' border='0'>";
		
		menuContent[6] ="";
		
		var i = 1;
		
 		for (i=1;i<=7;i++){
			
			if (i == buttonNumber)
			
			{	
				thisRollover = "rollover" + i;
				thisSource = "http://www.CenterforDesignInnovation.org/Web/images/Buttons/" + "On_0" + i + ".jpg";
				document.getElementById(thisRollover).src = thisSource;
				x=i-1
				
				//Current Page subnav coloration
				pathName = String(window.location);
				var splitResult = pathName.split('/');
				
				fileName = splitResult[splitResult.length - 1];
				//alert(fileName);
				
				folderName = splitResult[splitResult.length - 2];
				//so get folder name and check it too!
				//alert(folderName);
				
				newMenu = String(menuContent[x]);
				
				//added RWP to set initial subNav state
				textValue = String(menuContent[x]);
				
				//newMenualert();
				//alert(newMenu.indexOf(fileName));
				//alert(newMenu.indexOf(folderName));
				
				if(newMenu.indexOf(fileName) != -1) {
					//alert("File Found");
					newfileName = fileName + "' class='menuSelected";
					textValue = newMenu.replace(fileName, newfileName);
				}
				
				else 
					
				if(newMenu.indexOf(folderName) != -1) {
					//alert("Folder Found");
					folderName = folderName + '.php';
					//alert(folderName + " to replace");
					newfileName = folderName + "' class='menuSelected";
					
					//alert(newMenu);
					//alert(folderName);
					//alert(newfileName);
					textValue = newMenu.replace(folderName, newfileName);
					//alert(textValue);
				}
		
				//alert(textValue);
				
				if (fileName != "Index.php" && fileName != ""){
					document.getElementById("topNav2").innerHTML = textValue;
					//alert("Changed");
				}
				else {
					document.getElementById("topNav2").innerHTML = menuContent[x];
					//alert("Not Changed");
				}
				
				//loop below added to keep subnav transparent for blog selection
				if (i !== 7)
				{document.getElementById("topNav2").style.backgroundColor = "#FFFFFF";}
					else
				{document.getElementById("topNav2").className="transparent";}
					
				
				//End Current Page subnav coloration
			}
			
			else
			
			{	
				thisRollover = "rollover" + i;
				thisSource = "http://www.CenterforDesignInnovation.org/Web/images/Buttons/" + "Off_0" + i + ".jpg";
				document.getElementById(thisRollover).src = thisSource	
			}
		}
		
	}
-->
