function showDetails(category,id,width,jump) {
	detailsDiv = document.getElementById("details");
	w = width;
	if (jump && (x+w) > sW) {
		x = sW-w-50;
	} //end jump && (x+w) > sW IF
	if (!isWorking && http) {
		http.open("GET","details.php?for="+category+"&id="+id,true);
		http.onreadystatechange = displayDetails;
		isWorking = true;
		http.send(null);
	} //end !isWorking && http IF
} //end showDetails
function displayDetails() {
	if (http.readyState == 4) {
		if (http.status == 200) {
			var details = http.responseText;
			emptyElement(detailsDiv);
			var contents = document.createElement("div");
			contents.innerHTML = details;
			detailsDiv.appendChild(contents);
			detailsDiv.style.left = x+"px";
			detailsDiv.style.top = y+"px";
			detailsDiv.style.width = w+"px";
			fade(detailsDiv,"in");
			isWorking = false;
		} //end http.status IF
	} //end http.readyState IF
} //end displayDetails
function hideDetails() {
	if (typeof(detailsDiv) == "object") {
		fade(detailsDiv,"out");
	} //end typeof IF
} //end hideDetails

/*

--Details CSS--
http://cab.rit.edu/details.php

#details {
	width:400px;
}
#details_header {
	float:left;
	width:330px;
	font-size:14px;
	font-weight:bold;
	color:#2C91C3;
}
#details_close,#photo_close {
	float:right;
	width:12px;
	height:14px;
	padding:0px;
	margin-bottom:5px;
	background:url(close.png) top right no-repeat;
}
#details_close:hover {
	cursor:pointer;
}

*/