tag_url = "/ajax/search/whisperer"; //global tag URL definition
whisperer_class='ajax_whisper';
whisper_field = '';
list_count = 0;
list_position=0;
preview_text = '';
select_class = 'list_select';
min_tag_length = 3;
submit_form = '#vyhledavani form'; //form to submit after chose whisper text

$('document').ready(function() {
	$('#vyhledavani input[name="q"]').keydown(function(event){
		whisper_field = $(this);
		tag_whisperer(event);
	});

	$('body').click(function(e){
		body_clik_whisperer(e);
	});
	
	$('body').mousemove(function(e){
		body_mousemove_whisperer(e);
	});
});

function add_tag(new_tag) {
	//explode to array by ; then apend tag
	var arr = new Array();
	whisper_field.val(new_tag);
}

function tag_split(input) {
	ret_array = new Array();
	input += ''; //convert to string
	ret_array.push(input);
	return ret_array;
}
