
// add thickbox again to href elements in selector by Pedro
function tb_reinit( selector ){
	//alert( $(selector+" a.thickbox").length );
	$(selector+" a.thickbox").click(function(event){
		
		// stop default behaviour
		event.preventDefault();
		// remove click border
		this.blur();
	
		// get caption: either title or name attribute
		var caption = this.title || this.name || "";
		
		// get rel attribute for image groups
		var group = this.rel || false;
		
		// display the box for the elements href
		tb_show(caption, this.href, group);
	});
}

