// JavaScript Document
function showDiv(divIdx) {

	var menuCell;
	var menuAnchor;
	for (i=0; i<divs.length; i++) {
		menuCell = document.getElementById("mc" + i);
		menuAnchor = document.getElementById("ma" + i);
		if (i==divIdx) {
			menuCell.className = "menuCellActive";
			menuAnchor.className = "menuLinkActive";
		} else {
			menuCell.className = "menuCell";
			menuAnchor.className = "menuLink";
		}
	}
	
	var divObj;
	for (i=0; i<divs.length; i++) {
		divObj = document.getElementById(divs[i]);
		if (i==divIdx) {
			divObj.style.display = "block";
		} else {
			divObj.style.display = "none";
		}
	}
	
	divFocus = document.getElementById(divs[divIdx]);
	divFocus.focus();

}

function HideBio(divID) 
{
    object = document.getElementById('biodiv');
    object.style.display = "none";
}

function ShowBio(divID, who, top, left) 
{
    object = document.getElementById(divID);
    object.style.display = "block";
	object.className = "visibleBio";  
	object.style.top = top;
	object.style.left = left;
	
	if (who.substring(0, 1) == "P")
	{
	    biostring = 
	        "BS Mathematics and Computer Science, University of Wyoming. <br>" + 
	        "Master of Actuarial Science, Georgia Tech University <br>" + 
	        "Microsoft Certified Solutions Developer <br><br>" +
	        "Brinkman has over 12 years of software engineering experience. " + 
	        "He has worked exensively with large-scale enterprise-wide application " + 
	        "architectures and systems. He is experienced with SOA, CORBA, .Net remoting " + 
	        "and propritary scalable system architectures. He has been the lead designer " + 
	        "and architect on systems serving thousands or tens of thousands of users. " + 
	        "His experience includes multimedia streaming systems, real estate, airline booking  " + 
	        "and containerized transportation systems. Prior to begining his career in software " +
	        "engineering, Brinkman worked as an actuary for leading actuarial consulting firms."
    } else 
    {
        biostring = 
            "BS Computer Science, Regis University. <br>" + 
	        "Masters in Computer Information Systems, University of Denver <br>" + 
	        "Sun Microsystems Java Certified Programmer<br><br>" +
	        "Grau has over 20 years of software engineering and systems planning experience. " + 
	        "He also serves as an adjunct faculty member at both the University of Denver " + 
	        "and Arapahoe Community College where he teaches graduate and undergraduate course " + 
	        "in C# programming, Transact SQL, database design and modeling, and OO design and modeling. " + 
	        "He has been the lead architect on the design of several systems involving complex " + 
	        "business processing and workflow requirements. He also has a background in document imaging and " + 
	        "document management systems spanning over a 10 year period. He has been the principal " + 
	        "designer of systems in the transportation, manufactoring, customer service, and membership management " + 
	        "business segments.";
    }     

    /* table that holds the entire thing */
    object.innerHTML = 
        '<table width="100%">' +
    
            /* row with title bar */
            '<tr><td>' +
                '<table cellpadding="0" cellspacing="0" width="100%">' +
                    '<tr>' +
                        '<td class="fakeTitleBarText">' + who + ' Biography </td>' +
                        '<td class="fakeTitleBarCloseButton"><img onclick="javascript:HideBio();" src="images/close_1_32.png" alt="close" /></td>' +
                    '</tr>' +
                 '</table>' +
            '</td></tr>' +

	
	        /* bio data  row */
	       
            '<tr><td class="bioBodyText">' +
                biostring  +
            '</td></tr>' +
            
            /* res link row */
             '<tr><td class="bioBodyText">' +
                '<a href="grau_res.pdf" target="_new" alt="res">Jim Grau Full Resume</a>' +
            '</td></tr>' +
	
	        /* close button row */
	        '<tr><td><input type="button" value="Close" onclick="javascript:HideBio();" /></td></tr>' +
	
	/*end main table */
        '</table>'; 
	
}
