jQuery(function($) {
	$(".thumb").click(function(e){
		var currentid = $(e.target).parent()[0].id;		
		$("#blokcontainer").children().each(function(i, e){
			if('t'+$(e)[0].id == currentid){
				$(e).addClass("active");
				var f = $(e).find('iframe');
				if (f.length > 0) {
					var s = f.attr('src');
					f.attr('src', s);
				}
			}else{
				$(e).removeClass("active");	
			}
		});
	});
});