pslan_tooltip = '0';
database = '0';
jQuery(document).ready(function(){
    pslan_tooltip = jQuery('#tooltip_place').html();
    jQuery('#tooltip_place').remove();

//tmp delete this later
database = jQuery('#database').html();
jQuery('#database').remove();

});

  
function doTooltip(element, idn, ob){
	jQuery(element).html(pslan_tooltip);
	jQuery('.tt_body_back').html(database);
	


	jQuery('.tooltip_wraper').css('display','block');
}

function doTooltipClose(element)
{
	var tmp = jQuery(element);
	var counter = 0;
	
	while( counter < 10 )
	{
		tmp = tmp.parent();
		if(tmp.hasClass("tooltip_wraper"))
		{
			
			tmp.remove();
			counter = 100;
		}
		counter++;
	};
}

/*
		<div class="tooltip_button" ondblclick="javascript: doTooltip(this);" title="для активации нажмите 2 раза">
			
		</div>
*/		
