$(document).ready(function() {
	$('span.repl').each(function(i,SP){
		if ( $(SP).attr('rel') ) {
			$(SP).parent().prepend("<a href=\""+$(SP).attr('rel')+"\">"+$(SP).text()+"</a>");
		}
		else {
			$(SP).parent().prepend("<a href=\""+$(SP).html()+"\">"+$(SP).text()+"</a>");
		}
		$(SP).remove();
	});

	$('#leftmenu ul ul:last').css('border', 'none');
	$('#contentwrapper td.sidebar-left .block, #contentwrapper td.sidebar-right .block').corner('30px');
	//$('#contentwrapper td.sidebar-right .block:first').corner('top 30px');
	//$('#contentwrapper td.sidebar-right .block:last').corner('bottom 30px').css('backgroundImage', 'none');
	$('a#dvd-link').click(function(){ return false; });
	$('table.dvd-hided').fadeOut(0);
	$('a#dvd-link').toggle(
	    function() {
		$('table.dvd-hided').fadeIn(0);
	},
	    function(){
		$('table.dvd-hided').fadeOut(0);
	    }
	);
});
