/* display year */
var date = new Date();
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;

/* centered pop up window */
function centeredPopUpWindow(mypage, myname, w, h, scroll){
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

/* adjust font size */
function fsize(size,unit,id){
	var vfontsize = document.getElementById(id);
	if(vfontsize){
		vfontsize.style.fontSize = size + unit;
	}
}
var textSize = 1.0;
function changetextsize(increaseFont){
	if(increaseFont){
		textSize = parseFloat(textSize)+0.1;
	} else {
		textSize = parseFloat(textSize)-0.1;
	}
}

$(document).ready(function(){

	/* toggle what to expect content */
	$("ul.teamContentList li div.teamContent").hide();
	$("ul.teamContentList li a").click(function(){
		$(this).toggleClass("toggled");
		$(this).next("div.teamContent").toggle();
		return false;
	});

});
