// JavaScript Document


// Left hand side menu changes for submenus on pages
// Change settings of an object on the screen onmouseover
function setClientsOnOver(en)
{
	elem = document.getElementById(en);
	//elem.style.backgroundColor='#FCFFBA';
	elem.style.backgroundColor='#FFFFCC';
}

// Change settings of an object on the screen onmouseout
function setClientsOnOut(en)
{
	elem = document.getElementById(en);
	elem.style.backgroundColor='#F3FAD1';
}

// Show Clients
function showClient(which)
{

// Set all divs on client page to display none
document.getElementById("show_clients").style.display = "none";
document.getElementById("show_client_governments").style.display = "none";
document.getElementById("show_client_organizations").style.display = "none";
document.getElementById("show_client_corporations").style.display = "none";
document.getElementById("show_client_academia").style.display = "none";
document.getElementById("show_client_projects_recent").style.display = "none";
document.getElementById("show_client_projects_past").style.display = "none";


// Now show the div you want to display
if (which == "clients")
{
	document.getElementById("show_clients").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	// works: 	document.getElementById('cell_name').innerHTML=newTxt;
	var indmsg = "&gt; Clients"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "governments")
{
	document.getElementById("show_client_governments").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showClient('clients');\">Clients</a> &gt; Governments"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "corporations")
{
	document.getElementById("show_client_corporations").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showClient('clients');\">Clients</a> &gt; Corporations"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "organizations")
{
	document.getElementById("show_client_organizations").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showClient('clients');\">Clients</a> &gt; Organizations"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "academia")
{
	document.getElementById("show_client_academia").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showClient('clients');\">Clients</a> &gt; Academia"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "projects_recent")
{
	document.getElementById("show_client_projects_recent").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showClient('clients');\">Clients</a> &gt; Recent Clients"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "projects_past")
{
	document.getElementById("show_client_projects_past").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showClient('clients');\">Clients</a> &gt; Recent Clients"
	document.getElementById("span_marker").innerHTML = indmsg;
}

// Return
return false; // important!
}


// Nice example to show a div with specific information in it and blank the others out
// Divs have id SHOW1, SHOW2, ... , SHOW5
function showDiv(which)
{
for ( var i = 1; i <= 5; ++i )
{
var div = document.getElementById("SHOW"+i);
div.style.display = ( i == which ) ? "block" : "none";
}
return false; // important!
}


// Show Projects
function showClientProject(which)
{
abort("showing projects");

// Set all divs on client page to display none
document.getElementById("show_projects").style.display = "none";
document.getElementById("show_projects_bcr").style.display = "none";
document.getElementById("show_projects_dg").style.display = "none";
document.getElementById("show_projects_rm").style.display = "none";
document.getElementById("show_projects_cdap").style.display = "none";
document.getElementById("show_projects_wdd").style.display = "none";
document.getElementById("show_projects_wnv").style.display = "none";
document.getElementById("show_projects_aiv").style.display = "none";
document.getElementById("show_projects_wcbps").style.display = "none";
document.getElementById("show_projects_cwd").style.display = "none";
document.getElementById("show_projects_its").style.display = "none";
document.getElementById("show_projects_rwdsu").style.display = "none";
document.getElementById("show_projects_src").style.display = "none";
document.getElementById("show_projects_ccp").style.display = "none";
document.getElementById("show_projects_rpc").style.display = "none";
document.getElementById("show_projects_lab").style.display = "none";
document.getElementById("show_projects_native").style.display = "none";
document.getElementById("show_projects_educ").style.display = "none";
document.getElementById("show_projects_extension").style.display = "none";
document.getElementById("show_projects_mine").style.display = "none";
document.getElementById("show_projects_fast").style.display = "none";

alert(which);

// Now show the div you want to display
if (which == "projects")
{
	document.getElementById("show_projects").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	// works: 	document.getElementById('cell_name').innerHTML=newTxt;
	var indmsg = "&gt; Projects"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "bcr")
{
	document.getElementById("show_projects_bcr").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Breast Cancer Research"
	document.getElementById("span_marker").innerHTML = indmsg;

}
else if (which == "dg")
{
	document.getElementById("show_projects_dg").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; SPSS Programming"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "rm")
{
	document.getElementById("show_projects_rm").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Mapping Support"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "cdap")
{
	document.getElementById("show_projects_cdap").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Animal Parasites"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "wdd")
{
	document.getElementById("show_projects_wdd").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Wildlife Disease"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "wnv")
{
	document.getElementById("show_projects_wnv").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; West Nile"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "aiv")
{
	document.getElementById("show_projects_aiv").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Avian Influenza"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "wcbps")
{
	document.getElementById("show_projects_wcbps").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Beef Productivity"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "cwd")
{
	document.getElementById("show_projects_cwd").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Chronic Wasting Disease"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "its")
{
	document.getElementById("show_projects_its").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Statistical Software SPSS & SAS"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "rwdsu")
{
	document.getElementById("show_projects_rwdsu").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Employee Survey"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "src")
{
	document.getElementById("show_projects_src").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Organic Productivity Information System"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "ccp")
{
	document.getElementById("show_projects_ccp").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Criminal Career Profiles"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "rpc")
{
	document.getElementById("show_projects_rpc").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Statistician"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "lab")
{
	document.getElementById("show_projects_lab").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Computer Lab"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "native")
{
	document.getElementById("show_projects_native").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Native Studies"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "educ")
{
	document.getElementById("show_projects_educ").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Curriculum Studies"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "extension")
{
	document.getElementById("show_projects_extension").style.display = "block";

	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Extension Division"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "mine")
{
	document.getElementById("show_projects_mine").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Mine Labour Relations"
	document.getElementById("span_marker").innerHTML = indmsg;
}
else if (which == "fast")
{
	document.getElementById("show_projects_fast").style.display = "block";
	// Now change the indicator row showing which page we are on for clients
	var indmsg = "&gt; <a href=\"#\" onclick=\"return showProject('projects');\">Projects</a> &gt; Market Research"
	document.getElementById("span_marker").innerHTML = indmsg;
}


// Return
return false; // important!
}


