selok=false;			
			if(!window.Kolich){
				Kolich = {};
			}
			
			Kolich.Selector = {};
			// getSelected() was borrowed from CodeToad at
			// http://www.codetoad.com/javascript_get_selected_text.asp
			Kolich.Selector.getSelected = function(){
				var t = '';
				if(window.getSelection){
					t = window.getSelection();
				}else if(document.getSelection){
					t = document.getSelection();
				}else if(document.selection){
					t = document.selection.createRange().text;
				}
				return t;
			}
			
			Kolich.Selector.mouseup = function(){
				var st = Kolich.Selector.getSelected();
				if(st!='' && selok){
					
					//	alert('sel!');


				}
			}
			
		
			
			$(document).ready(function(){
			
			
				$(document).bind("mouseup", Kolich.Selector.mouseup);
				
			
				
				
			});
			
			
			
		function quoteit(id){
		
			html=$("#txt"+id).html()
			
			redactor.execCommand('inserthtml', '<div style="color:#666;background-color:#f7fffb; font-size:10px; border:solid 1px #E0ECF8; padding:5px"><b style="color:#5579B4; font-size:11px">'+$("#user"+id).html()+' писал: </b><br/>'+html+'</div><br/>');
			
		
		}
			
			
			
