$(document).ready(function(){
						   
	var url = 'http://www.youtube.com/v/'+$(".thumbs li.on img").attr("alt");
	$("#Boxiv object").attr("data",url);
	$("#Boxiv param:eq(0)").attr("value",url);
	
	var thumb = $(".thumbs img");

	thumb.parents('li').not('.on').children('img').fadeTo('fast',0.3);
	
	thumb.hover(function() {
		$(this).fadeTo('fast',1);
	}, function() {
		thumb.parents('li').not('.on').children('img').fadeTo('fast',0.3);
	});
	
	thumb.click(function(){
	
		thumb.parents('li').removeClass('on');
		$(this).parents('li').addClass('on');
		
		var url = 'http://www.youtube.com/v/'+$(".thumbs li.on img").attr("alt");
		$("#Boxiv object").attr("data",url);
		$("#Boxiv param:eq(0)").attr("value",url);
		
		return false;
	});
	
});