//SET NOCONFLICT TO WORK WITH OTHER LIBRARIES
jQuery.noConflict();

//CUSTOM JQUERY FUNCTIONS

function show(){ jQuery(this).animate({height:'100%'},200);}
function hide(){ 
	var currentId = jQuery(this).attr('id');
	if(currentId != parentid){
		jQuery(this).animate({height:'18px'},200);
	}
}

function closeStaff(){
	jQuery("#staffwrap").hide('slow');
	expanded = false;
}
function getStaffMemberInfo(staffMemberId){
	if(expanded == true){
		jQuery("#staffwrap").addClass("loading");
	}
	jQuery.ajax({
		type: "GET",
		url: "getstaffmember.php",
		data: "id="+staffMemberId,
		success: function(response){
			jQuery("#innerwrap").html(response);
			if(expanded == true){
				jQuery("#staffwrap").removeClass("loading");
			}
			else{
				jQuery("#staffwrap").show('slow');
				expanded = true;
			}
		}
	});
}
function getStaffMemberInfoo(staffMemberId){
	if(expanded == true){
		jQuery("#staffwrap").addClass("loading");
	}
	jQuery.ajax({
		type: "GET",
		url: "getstaffmember2.php",
		data: "id="+staffMemberId,
		success: function(response){
			jQuery("#innerwrap").html(response);
			if(expanded == true){
				jQuery("#staffwrap").removeClass("loading");
			}
			else{
				jQuery("#staffwrap").show('slow');
				expanded = true;
			}
		}
	});
}
<!-- 
//Browser Support Code
function makeRequest(num, page){
		if(num>0){
		var httpRequest; 
		
		try{
			// Opera 8.0+, Firefox, Safari
			httpRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Ajax error, please try again.");
					return false;
				}
			}
		}
		httpRequest.onreadystatechange = function(){
			if(httpRequest.readyState == 4){
				var response = httpRequest.responseText;
				if(num<3){
					document.getElementById("column2textdiscretionary"+num).innerHTML =response;
				}
				else if(num==4 || num==5){
					document.getElementById("column3section"+num).innerHTML =response;
				}
				if(page=="editstaff"){
					document.getElementById("stafflist").innerHTML = response;
				}					
			}
		}
		if(page=="buzzevents"){
			url="getbuzzeventscol3.php?section="+num;
		}
		else if(page=="editstaff"){
			url="getstafflist.php";
		}
		else{
			url="getindexcontent.php?section="+num;
		}
		httpRequest.open("GET", url, true);
		httpRequest.send(null); 
	}
}

