
/* jQuery function (for v1.4.2) */

$(function(){
	if($('.staff_bottom').length){

		var staffTimer;

		$(".staff_bottom ul li").mouseover(function(){

			if(staffTimer) clearTimeout(staffTimer);
			if($('.staffTips').length){
				$('.staffTips').remove();
			}

			var title = $(this).find('img').attr('alt');
			var href = $(this).find('a').attr('href');
			var tip = $("<span class='staffTips'><span><span><span><a href='" + href + "'>" + title + "</a></span></span></span></span>");
			var l = $(this).offset().left;
			var t = -13 + $(this).offset().top;
			$("#page").append(tip);
			var w = (20 - tip.width() / 2) + 'px';
			tip.css({left: l, top: t, marginLeft: w});
			tip.mouseover(function(){
				if(staffTimer) clearTimeout(staffTimer);
			}).mouseout(function(){
			if(staffTimer) clearTimeout(staffTimer);
			staffTimer = setTimeout(function() {
				staffTimer = null;
				if($('.staffTips').length){$('.staffTips').remove()}
			},500);
			});
		}).mouseout(function(){
			if(staffTimer) clearTimeout(staffTimer);
			staffTimer = setTimeout(function() {
				staffTimer = null;
				if($('.staffTips').length){$('.staffTips').remove()}
			},500);
		});

	}

	if(!jQuery.support.opacity){
		$("#staff_main dd:last").css({"background":"none"});
	}

});


