function showHide(obj) {
	var el = document.getElementById(obj);
	if ( el.className != 'show' ) {
		el.className = 'show';
	}
	else {
		el.className = 'hide';
	}
}

function plusMinus(obj) {
	var el = document.getElementById(obj);
	if ( el.className != 'plus' ) {
		el.className = 'plus';
	}
	else {
		el.className = 'minus';
	}
}

function clearText(thefield){
	if (thefield.defaultValue==thefield.value) { thefield.value = "" }
	if (thefield.className=="light-gray-text") { thefield.className = "" } else { thefield.className = "light-gray-text" }
	}
function replaceText(thefield){
	if (thefield.value=="") { thefield.value = thefield.defaultValue }
	if (thefield.className=="") { thefield.className = "light-gray-text" } else { thefield.className = "" }
	}

var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	closeWin();
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable=no,toolbar=no,location=no,scroll=yes,scrollbars=yes,menubar=no,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "console") tools = "resizable=no,toolbar=no,location=no,directories=no,status=no,scroll=no,scrollbars=no,menubar=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}

sfHover = function() {
  if (document.getElementById("nav")) {
	  var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	  for (var i=0; i < sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
		  this.className+=" sfHover";
		}
		sfEls[i].onmouseout=function() {
		  this.className=this.className.replace(new RegExp(" sfHover\\b"), "");
		}
	  }
   }
 }
 if (window.attachEvent) window.attachEvent("onload", sfHover);

function showEvents( strID ) {
	document.getElementById('events').className = ( (strID=="01") ? 'show' : 'hide');
	document.getElementById('past-events').className = ( (strID=="02") ? 'show' : 'hide');
}

function showBio( strID ) {
	document.getElementById('management-01').className = ( (strID=="01") ? 'show' : 'hide');
		document.getElementById('management-link-01').className = ( (strID=="01") ? 'on' : '');

	document.getElementById('management-02').className = ( (strID=="02") ? 'show' : 'hide');
		document.getElementById('management-link-02').className = ( (strID=="02") ? 'on' : '');

	document.getElementById('management-03').className = ( (strID=="03") ? 'show' : 'hide');
		document.getElementById('management-link-03').className = ( (strID=="03") ? 'on' : '');

	document.getElementById('management-04').className = ( (strID=="04") ? 'show' : 'hide');
		document.getElementById('management-link-04').className = ( (strID=="04") ? 'on' : '');
	
	document.getElementById('management-05').className = ( (strID=="05") ? 'show' : 'hide');
		document.getElementById('management-link-05').className = ( (strID=="05") ? 'on' : '');
	
	document.getElementById('management-06').className = ( (strID=="06") ? 'show' : 'hide');
		document.getElementById('management-link-06').className = ( (strID=="06") ? 'on' : '');

	document.getElementById('management-07').className = ( (strID=="07") ? 'show' : 'hide');
		document.getElementById('management-link-07').className = ( (strID=="07") ? 'on' : '');

	document.getElementById('management-08').className = ( (strID=="08") ? 'show' : 'hide');
		document.getElementById('management-link-08').className = ( (strID=="08") ? 'on' : '');
/*		
	document.getElementById('management-06').className = ( (strID=="10") ? 'show' : 'hide');
		document.getElementById('management-link-10').className = ( (strID=="10") ? 'on' : '');
		

	
	document.getElementById('management-09').className = ( (strID=="09") ? 'show' : 'hide');
		document.getElementById('management-link-09').className = ( (strID=="09") ? 'on' : '');*/
		
	

}

function showBoardBio( strID ) {
	document.getElementById('board-00').className = ( (strID=="00") ? 'show' : 'hide');

	document.getElementById('board-01').className = ( (strID=="01") ? 'show' : 'hide');
		document.getElementById('board-link-01').className = ( (strID=="01") ? 'on' : '');

	document.getElementById('board-02').className = ( (strID=="02") ? 'show' : 'hide');
		document.getElementById('board-link-02').className = ( (strID=="02") ? 'on' : '');

	document.getElementById('board-03').className = ( (strID=="03") ? 'show' : 'hide');
		document.getElementById('board-link-03').className = ( (strID=="03") ? 'on' : '');

	document.getElementById('board-04').className = ( (strID=="04") ? 'show' : 'hide');
		document.getElementById('board-link-04').className = ( (strID=="04") ? 'on' : '');

	document.getElementById('board-05').className = ( (strID=="05") ? 'show' : 'hide');
		document.getElementById('board-link-05').className = ( (strID=="05") ? 'on' : '');

	document.getElementById('board-06').className = ( (strID=="06") ? 'show' : 'hide');
		document.getElementById('board-link-06').className = ( (strID=="06") ? 'on' : '');

	document.getElementById('board-07').className = ( (strID=="07") ? 'show' : 'hide');
		document.getElementById('board-link-07').className = ( (strID=="07") ? 'on' : '');
}

function showQuote( strID ) {
	document.getElementById('quote-01').className = ( (strID=="01") ? 'show' : 'hide');
		document.getElementById('quote-01-link').className = ( (strID=="01") ? 'on' : '');

	document.getElementById('quote-02').className = ( (strID=="02") ? 'show' : 'hide');
		document.getElementById('quote-02-link').className = ( (strID=="02") ? 'on' : '');

	document.getElementById('quote-03').className = ( (strID=="03") ? 'show' : 'hide');
		document.getElementById('quote-03-link').className = ( (strID=="03") ? 'on' : '');

	document.getElementById('quote-04').className = ( (strID=="04") ? 'show' : 'hide');
		document.getElementById('quote-04-link').className = ( (strID=="04") ? 'on' : '');

	document.getElementById('quote-05').className = ( (strID=="05") ? 'show' : 'hide');
		document.getElementById('quote-05-link').className = ( (strID=="05") ? 'on' : '');

	document.getElementById('quote-06').className = ( (strID=="06") ? 'show' : 'hide');
		document.getElementById('quote-06-link').className = ( (strID=="06") ? 'on' : '');
}

function closeWindow(obj) {
	var el = document.getElementById(obj);
	el.className = 'hide'
}

function printFlash(source, width, height, id, bg_color) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
	document.write('width="'+width+'" height="'+height+'" id="'+id+'" align="middle" />');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+source+'" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="'+bg_color+'" />');
	document.write('<embed src="'+source+'" menu="false" quality="high" bgcolor="'+bg_color+'" width="'+width+'" height="'+height+'" name="'+id+'" wmode="transparent" align="middle" ');
	document.write('allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}
