$(document).ready(function() {
	$('.description img').removeAttr('width').removeAttr('height');
	$('.comment img').removeAttr('width').removeAttr('height');
	$('input.small').click(function() {this.select()});
});

$(document).ready(function() {
	$('.comment:not(.admin)').each(function() {
		$('.about',this).append('<a href="" onclick="return toggle(this);" class="show">arata<\/a>')
						.append('<a href="" onclick="return toggle(this);" class="hide">ascunde<\/a>');
	});
});	
	

	function toggleComment(element) {
		jQuery.get('/comments/modifyState/' + element.id);
		toggle(element);		
	}
	
	function get_comment(element){
		element = $(element);
		if (element.hasClass("comment")) {
			comment = element;
		} else {
			comment = element.parents(".comment");
		}
		return comment;
	}
	function toggle(element) {
		get_comment(element).toggleClass('minimized');
		return false;
	}
	