$(document).ready(function(){
	
	$("#staff-controller .prev").click(function (){
		if(currentProfile > 1){
			currentProfile--;
			window.location = $("#staff-controller .group #p"+currentProfile).attr("href");
		}
	});
	
	$("#staff-controller .next").click(function (){
		if(currentProfile < $("#staff-controller .group").children(".person").size()){
			currentProfile++;
			window.location = $("#staff-controller .group #p"+currentProfile).attr("href");
		}
	});
	
	//------custom tool tip code... Buggy, paints colors? ROFL-------\\
	
	/*$("#staff-controller .group").mouseover(function(){
		$(document).bind("mousemove", function(e){
     		$("#staff-controller #staff-tooltip").offset({top: e.pageY, left: e.pageX + 15});
   		});
	});
	
	$("#staff-controller .group").mouseout(function(){
		//$("#staff-controller #staff-tooltip").css("display", "none");
		$(document).unbind("mousemove");
	});
	
	$("#staff-controller .group .person").mouseover(function(){
		$("#staff-controller #staff-tooltip").css("display", "block");
		$("#staff-controller #staff-tooltip").text($(this).attr("href").split("staff.html?name=")[1]);
	});
	
	$("#staff-controller .group .person").mouseout(function(){
		$("#staff-controller #staff-tooltip").css("display", "none");
		$("#staff-controller #staff-tooltip").text("");
	});*/
});
