function initSlidingBox()
{
	if ($(".cover")){
		var t = 160;
		$(".cover").each(
			function(){
				var t = $(this);
				var th = $(this).height();
				var p = $(this).parent();
				var ph = $(this).parent().height();
				var bg = $("<div>").attr('class', 'coverbg')
					.css({
					opacity:0,
					backgroundColor:'#000000',
					position: 'absolute',
					top:0,
					left:0,
					zIndex:-1,
					width:p.width(), 
					height:p.height()
				}).appendTo(p);
				
				t.css("top",ph);
				
				p.hover(function(){
					t.stop().animate({top:ph-th},{queue:false,duration:t});
					bg.stop().animate({opacity:1},{queue:false,duration:t});
				}, function() {
					t.stop().animate({top:ph},{queue:false,duration:t});
					bg.stop().animate({opacity:0},{queue:false,duration:t});
				});
		});
	}

}
//
$(document).ready(initSlidingBox);


