$(document).ready(function()	{
  	$("#panel_breeds").click(function() 	{
		if ($("#breeds_list").css('visibility', 'visible')) {
			$("#breeds_list_area").show('slow');
			$("#breeds_list").show();
			$("#blank_2").fadeIn('slow');
		}
	});
//	$("#breeds_list_area").bind("mouseleave",function()	{
//			$("#breeds_list").fadeOut('slow');
//			$("#blank_2").fadeOut('slow');
//	});
	$(".closepan").click(function()	{
			$("#breeds_list").fadeOut('slow');
			$("#blank_2").fadeOut('slow');
	});
        $('#tabs').tabs();
/*	$('#breeds_tabs').bind('tabsselect', function(event, ui) {

	// Objects available in the function context:
	ui.tab     // anchor element of the selected (clicked) tab
	ui.panel   // element, that contains the selected/clicked tab contents
	ui.index   // zero-based index of the selected (clicked) tab

	});*/
});
