$(document).ready(function(){
	$("#staff").load("staff.php");

	/*
	url = location.pathname+location.search;
	// checkURL = location.protocol+"//"+location.hostname+url+location.hash;
	
	var a = new Array();
	a[1] = "tallahassee.jpg"; // Washington DC
	
	newID = new String(location.hash);
	newID = newID.replace('#','');

	if ( url.search(/id=/i) == -1)
	{
		newSearch = new String(location.search);
		newSearch = newSearch.replace('?o=','');
	} else {
		newSearch = '';
	}

	for ( i in a ) 
	{  
		if ( newID != newSearch && newID == '' && i == newSearch )
		{
			$("#city").css({ "background-image": "url(_images/headers/"+a[i]+")" });
		} 
		else if ( newID != newSearch && newID != '' && i == newID )
		{
			$("#city").css({ "background-image": "url(_images/headers/"+a[i]+")" });
		} 
		else 
		{
			if ( i == newID )
			{
				$("#city").css({ "background-image": "url(_images/headers/"+a[i]+")" });
			}
		}
	};

	// alert(newSearch+"\n"+newID)
	if ( newID != newSearch && newID == '' )
	{
		$(".right ul").slideToggle();
		$("#staff").load("staff.php?id="+newSearch);
		$(".left").load("offices.php?o="+newSearch);
	} 
	else if ( newID != newSearch && newID != '' )
	{
		$(".right ul").slideToggle();
		$("#staff").load("staff.php?id="+newID);
		$(".left").load("offices.php?o="+newID);
	} 
	else 
	{
		if ( newSearch != '' )
		{
			$(".right ul").slideToggle();
			$("#staff").load("staff.php?id="+newID);		
		}
	}
	
	$("#selectOffice").click( function () 
	{ 
		$("#staff").html("");
		$(".right ul").slideToggle();
		$(".staffHeader").css({ display: "none" } );
	});
	
	$("#officeList a").click( function () 
	{ 
		$(".right ul").slideToggle();
	});
	
	$("#washington").click( function () 
	{
		id = 1;
		$("#city").css({ "background-image": "url(_images/headers/tallahassee.jpg)" });
		$("#staff").load("staff.php?id="+id);
		$(".left").load("offices.php?o="+id);
		window.location.replace(url+"#"+id);
	});
	*/
});