// $(document).ready(
	// function () {
        // $('img.closeEl').bind('click', toggleContent);
		/* $('div.groupItem').corner('top 8px'); */
	// }
// );
// var toggleContent = function(e)
// {	
    // var targetContent = this.parentNode.parentNode;
        // if (confirm('Убрать этот блок?')) {    
            // $(targetContent).Shrink(500,function(){
                // $.get('/helpers/hideblock.php?id=' + $(this).attr('block_id'));
                // $(this).remove();
            // });    
    	// return false;
    // }    
// };

addOnLoadEvent(buttonHover, rollOver);

function buttonHover() {
	//alert(56);
	$('.button_hover').hover(function() {
		$(this).attr('src', '/pict/button_hover.gif');
	}, function() {
		$(this).attr('src', '/pict/button.gif');
	})
	$('.submit-image').hover(function() {
		$(this).attr('src', '/pict/find_but_hover.gif');
	}, function() {
		$(this).attr('src', '/pict/find_but.gif');
	})
	$('.tow_refresh').hover(function() {
		$(this).attr('src', '/pict/refresh_hover.gif');
	}, function() {
		$(this).attr('src', '/pict/refresh.gif');
	})
}

function rollOver() {
	$('td.b9').hover(function() {
		var ids = $(this).attr('width');
		$('#' + ids).addClass('b3_hover');
		$('.b10', $(this).parent().parent()).addClass('b10_hover');
		$(this).addClass('b9_hover');
	}, function() {
		var ids = $(this).attr('width');
		$('#' + ids).removeClass('b3_hover');
		$('.b10', $(this).parent().parent()).removeClass('b10_hover');
		$(this).removeClass('b9_hover');
	});
}
