/////////////////// JavaScript Document ///////////

function goThere(urlfrag){ // redirects
	if ( URL.length > 0 ){
		window.location=urlfrag;
	}
}


//////// Controls buttons ////////////////////////



function smbOver(btn2){
	//alert(btn2);
	btn2 = "b" + btn2;
	if ( btn2 == "bnews" ){		
		document.getElementById("smb_news").style.display = "block";
	} else if ( btn2 == "bsolutions" ) {
		document.getElementById("smb_solutions").style.display = "block";
	} 
}

function smbOut(btn2){
	btn2 = "b" + btn2;
	if ( btn2 == "bnews" ){		
		document.getElementById("smb_news").style.display = "none";
	} else if ( btn2 == "bsolutions" ) {
		document.getElementById("smb_solutions").style.display = "none";
	} 
}


/*
function activBtn(goURL){
	if ( goURL == "home" ){	
		window.location = "index.php";
	} else {
		window.location = "content.php?pg=" + goURL;
	}
}//end

*/


///////// Controls executive bios /////////

var viz = false;

function showProfile(divNum){
	var exec = "exec" + divNum;
	var execDiv = document.getElementById(exec);
	var cue = "cue" + divNum;
	var cueDiv = document.getElementById(cue);
	if ( !viz ){
		execDiv.style.visibility = "visible";
		execDiv.style.position = "static";
		execDiv.style.textAlign = "left"
		//execDiv.style.width = "335px";
		cueDiv.value = "-";
		viz = true;
	} 
	else if ( viz = true )	 {
		execDiv.style.visibility = "hidden";
		execDiv.style.position = "absolute";
		execDiv.style.top = "-2000";
		//execDiv.style.width = "335px";
		cueDiv.value = "+";	
		viz = false;
	}	
}


/////// Loads all functions when pg loads ////////


/*
function pgChg(num){
	document.getElementById("chev"+num).style.color = "white";
	document.getElementById("smb_btn"+num).style.backgroundImage = "none";
	document.getElementById("smb_btn"+num).style.backgroundColor = "black";
}

var pgZ = document.getElementById("pgID").value;
if ( pgZ.indexOf("sol")!=-1 ) {
	pgChg("2");
}
else if ( pgZ.indexOf("about")!=-1 ) {
	pgChg("3");
}
else if ( pgZ.indexOf("news")!=-1 ) {
	pgChg("4");	
}
else if ( pgZ.indexOf("support")!=-1 ) {
	pgChg("5");	
}
else if ( pgZ.indexOf("contact")!=-1 ) {
	pgChg("6");	
}
else if ( pgZ.indexOf("grants")!=-1 ) {
	pgChg("7");
} */

	
		
