;jQ16x(document).ready(function() {
	var linked_images = jQ16x('img.cbx_linked_image');
	if (linked_images.length > 0) {
		var label_height = 30;
		var speed = 400;
		linked_images.mouseenter(function() {
			var _this = jQ16x(this), _b, _h;
			_h = _this.height() + 1;
			if ( !(_b = _this.data("overlay_obj")) ) {
				var _a = _this.closest("a").css({width: _this.width()+"px", height: _this.height()+"px", overflow:"hidden", display:"block", position:"relative"});
				_b = jQ16x('<div class="cbx_linked_image_label">View</div>')
					 .css({
						opacity:"0.5", height: label_height+"px", width:"100%",	color: "#fff",
						background:"#000", position: "absolute", top: _h+"px", left: "0px", textAlign: "left",
						padding: "6px 0 0 12px", font: "bold 12px \"Times New Roman\", Times, serif"
					 });
				_a.mouseleave(function() {
						_b.animate({
								top: _h + "px"
							}, 
							speed, 
							function() {
								// Animation complete.
							});		
				});
				_a.append(_b);			
				_this.data("overlay_obj", _b);
			}
			_b.animate({
					top: (_h - label_height) + "px"
				}, 
				speed, 
				function() {
					// Animation complete.
				});
		});
	}
});
