	function initJQTooltip(){
		var tooltip_box_html='<div class="jqtooltipbox2"><div class="jqtooltipwrap"><div class="jqtooltipbec"></div><span class="jqtooltipcontent2"></span></div></div>';
		jQuery(tooltip_box_html).appendTo(jQuery('body'));
	}
	
	function initJQTooltipHover(classname){
	jQuery('.'+classname).hover(
			function(){
				var tooltip_text = jQuery(this).attr('title');
				var top_current = jQuery('.'+classname).offset().top;
				//var tooltip_top = '69px';
				if(classname=='ktc_kazetheque' || classname=='ktc_pub'){
					var tooltip_top = (top_current<=15)?69:top_current+64;
				}else{
					var tooltip_top = (top_current<=25)?69:top_current+57;
				}
				var tooltip_left = jQuery('.'+classname).offset().left;
				jQuery('.jqtooltipcontent2').text('');
				jQuery('.jqtooltipcontent2').text(tooltip_text);
				//jQuery('.'+classname).removeAttr('title');
	
				if(document.getElementById('top_bar_bg')){
					var width_max=$('.top_bar_bg').width();				
					var width_resize=width_max-95;
					if(tooltip_left>width_resize){
						tooltip_left=width_resize;	
					}	
				}
				
				else if(document.getElementById('kazeo_edit_bar')){
					var width_max=$('.kazeo_main_bar').width();				
					var width_resize=width_max-95;
					if(tooltip_left>width_resize){
						tooltip_left=width_resize;	
					}
					bec_height='10px';
				}
				
				var bec_left  = 0;

				switch(classname){

					case 'ico_deco': tooltip_left = parseInt(tooltip_left) + 8 ; bec_left='53px'; break;

					case 'ico_aide': tooltip_left = parseInt(tooltip_left) + 2; break;

					case 'ico_parametre': tooltip_left = parseInt(tooltip_left) + 16 ; bec_left='5px'; break;

					case 'ico_messagerie': tooltip_left = parseInt(tooltip_left); break;
					
					case 'ktc_kazetheque': tooltip_left = parseInt(tooltip_left) + 9; break;
					
					case 'ktc_pub': tooltip_left = parseInt(tooltip_left) + 9; break;

				}

				
				if(document.getElementById('top_bar_bg')){
					jQuery('.jqtooltipbec').css({'margin-left':bec_left});	
				}
				
				else if(document.getElementById('kazeo_edit_bar')){
					jQuery('.jqtooltipbec').css({'margin-left':bec_left, 'height':bec_height});
				}
				

				jQuery('.jqtooltipbox2').css({'top':tooltip_top+'px','left':tooltip_left, 'z-index':10000}).show();
			},
			
			function(){
				jQuery('.jqtooltipbox2').css({'top':'0px','left':'0px'}).hide();
				var title_text=jQuery('.jqtooltipcontent2').text();
				//jQuery('.'+classname).attr('title','');
				//jQuery('.'+classname).attr('title',title_text);
			
			}
			
		);
	}
	
	
//var top_current_bec = jQuery('.'+classname).offset().top;



