$(document).ready(function(){
	
	$("#clips a").each(function(){
		$(this).click(function(){
			var f = $(this).attr("rel");
			$("#clips a").removeClass("current");
			$(this).addClass("current");
			$("#video").empty().append( writeFlash('/_flash/video.swf?toLoad='+f,441,296,'videoObj','#f1efea',1) );
		})
	}).filter(":first").trigger("click");
	
})
