function slideShow() {
	
}

slideShow.init = function(id) {
	$('#'+id+' img:gt(0)').hide();
	slideShow.currentImage = $('#'+id+' img:first');
	//$('#'+thumbs+' img:first').css('border', '1px solid #FF0000');
	slideShow.interval = setInterval('slideShow.changeImage()', 5000);
}

slideShow.changeImage = function() {
	slideShow.currentImage.fadeOut('slow');
	//slideShow.highlightThumb('inactive');
	if(slideShow.currentImage.next().length != 0) {
		slideShow.currentImage.next().fadeIn('slow');
		slideShow.currentImage = slideShow.currentImage.next();
	} else {
		slideShow.currentImage.parent().children('img:first').fadeIn('slow');
		slideShow.currentImage = slideShow.currentImage.parent().children('img:first');
	}
	//slideShow.highlightThumb('active');
}

function getInfoAjax(id, httpRoot){
		$.ajax({
			type: "POST",
			url: httpRoot+"medicalStaffAjax.php",
			data: "req=gInfo&id="+id,
	//		beforeSend: function() {
		//		$("#row"+rowId).html('<img src="images/loadingBar.gif" border="0" alt="Loading, please wait..."/>');
		//	},
			success: function(response) { 
				$("#mediStaffExpandedContainer").html(response);
				$("#mediStaffExpandedContainer").fadeIn("slow");
			
			}
		});
}

function showStaffName(obj) {
		$('#staffNameAjax').html(obj.alt);
		$(obj).parent().parent().append($('#staffNameAjax'));
		$('#staffNameAjax').show();
	}
	
function hideStaffName(obj) {
	//var str = $(obj).parent().parent().parent().next('div').text(); imgBorderAfterHover
	//var name = $('#thumbsEx img.imgBorderAfterHover').attr('alt');
	$('#staffNameAjax').hide();
}
//$(this).parent().parent().siblings('li').children().children().removeClass('imgBorderAfterHover');
/*function getStaffNameAjax(id, type){
		$.ajax({
			type: "POST",
			url: "medicalStaffAjax.php",
			data: "req=gStaffName&id="+id+"&type="+type,
	//		beforeSend: function() {
		//		$("#row"+rowId).html('<img src="images/loadingBar.gif" border="0" alt="Loading, please wait..."/>');
		//	},
			success: function(response) { 
				$("#staffNameAjax").css("display","block");
				$("#staffNameAjax").html(response);
				$("#staffNameAjax").fadeIn("slow");
			
			}
		});
}*/
