jQuery(function( $ ){		
	/*
$('#archive_plugin A').click(function(){
		$('#overlay').html('')
		$('#overlay').flash({
			id: 'test',
			src: "swf/player.swf",
			width: "850px",
			height: "490px",
			wmode: "transparent",
			allowfullscreen: "true",
			allowscriptaccess: "always",
			respectduration: "true",
			allownetworking: "all",
			quality: "high",
			flashvars: {
				skin: "swf/dangdang.swf",
				file: "http://blip.tv/file/get/"+$(this).attr('href'),
				bufferlength: "5",
				autostart: "true"
			}
		});

		$('#overlay').overlay().load();
		return false;
	});
	$('#overlay').overlay({
		color: '#666666',
		onBeforeClose:function() {
			alert('ljhsfd');
		}
	});
	
	function overlayOnClose() {
		alert('me');
		$('#overlay').html('');
	}	
*/
	$('#archive_plugin A').overlay({
		target: 'div.overlay',
		expose: '#cbc1a0',
		onLoad: function() {
			$('#video').flash({
				id: 'test',
				src: "swf/player.swf",
				width: "640px",
				height: "391px",
				wmode: "transparent",
				allowfullscreen: "true",
				allowscriptaccess: "always",
				respectduration: "true",
				allownetworking: "all",
				quality: "high",
				flashvars: {
					skin: "swf/dangdang.swf",
					file: this.getTrigger().attr("href"),
					bufferlength: "10",
					stretching: "none",
					autostart: "true"
				}
			});
		},
		onClose: function() {
			$('embed').remove();
		}
	});
	$('#content').fadeIn();
});