$(document).ready(function() { 
		  			
				 
					
					
					// png fix
					$(document).pngFix();
					
					
					//table 
						$('table tr:last td').css("border-bottom" , "none");
						
						
					//show_hide control
				 
					// close tip
					
					
					$('.yellow_bg .close_ico').click(function() {
													 
													 $(this).parent().parent().fadeOut();
													  });

						
					// edit element hover state	
						
						$('.editable').hover(function() {
								$(this).addClass('edit_element_hover')
					
						},function() {$(this).removeClass('edit_element_hover');})

						
						
					 $('.editable').click(function() {
													$(this).parent().children('.edit_descr').css("display", "block"); 
													$(this).css("display", "none"); 
													  });
						
						$('.close_edit_descr').click(function() {
													 $(this).parent().parent().parent().parent().children('.editable').show();
													 
													 $('.editable').removeClass('edit_element_hover')
													 $(this).parent().parent().parent().hide(); 
													 return(false);
													
													  });
						
						
						
						// delete
						
						$('.comments_list .delete_ico').click(function() {
								
										var answer = confirm ("Are you sure you want to delete this comment?")
										if (answer)
										$(this).parent().parent().fadeOut();
										else
										return(false);
													  });


						// message close
						
						$('.message').click(function() {
								
										$(this).fadeOut();
										return(false);
													  });
						
						
						// show func in posts
						
						
						$('table.posts td').hover(function() {
							$(this).children('.edit_inline_post').fadeIn();
							
							
						},function() { $(this).children('.edit_inline_post').hide();})
		
		               
						//status list fix
						
						$('.status_list li:last').css("border-bottom", "none");
								
						
						
						
		
							
			});


	
			


		

