 function showMyDialog() {
  diag = jQuery('#myWin').dialog({modal:true, height:"auto", autoOpen:false, draggable:false, resizable:false});
 jQuery('#myWin').dialog('option', 'buttons', { "Ok": function() { jQuery(this).dialog("close"); } });
 diag.dialog("open");
 }
 function showMyDialog2() {
   diag = jQuery('#myWin').dialog({modal:true, width:"80%", height:"auto", autoOpen:false, draggable:false, resizable:false});
  jQuery('#myWin').dialog('option', 'buttons', { "Ok": function() { jQuery(this).dialog("close"); } });
  diag.dialog("open");
  }
 function openMyDialog(aboutObj, smallWin) {
   jQuery('#myWin').dialog('destroy');
   jQuery('#myWin').ajaxError(function(event, request, settings) {jQuery("#myWin").html(txt_no_page_found); });
   if (aboutObj.attr("title")!="")
    jQuery('#myWin').attr("title",aboutObj.attr("title"));
   if (smallWin) {
    var obj = jQuery('#myWin').load(aboutObj.attr("href"),showMyDialog);
   } else {
    var obj = jQuery('#myWin').load(aboutObj.attr("href"),showMyDialog2);
   }
 }
 function openHelpDialog(helpUrl, anchorURL) {
  jQuery('#myWin').dialog('destroy');
  jQuery('#myWin').attr("title",txt_inline_help);
  jQuery('#myWin').ajaxError(function(event, request, settings) {jQuery("#myWin").html(txt_no_page_found); });
  var anchorURLTO = (anchorURL?"#"+anchorURL:"");
  var obj = jQuery('#myWin').load("/webdav/shared/helper/"+userLanguage+"/"+helpUrl+".html"+anchorURLTO,showMyDialog2);
  return false;
 }
 
 try {
	jQuery(document).ready(function(){
	  
	jQuery("#bulle").css("display","none");
	jQuery("#bulle").css("visibility","visible"); 
		 
	jQuery('.bulle').each( function () {
     curInfoBulle = jQuery(this);
     
     curInfoBulle.mouseout(function () {close_bulle();});
     curInfoBulle.mouseover(function () {
    	 var objIDm = jQuery(this);
    	 var objID = objIDm.attr("id");
    	 objIDm.attr("title","");
    	 if (objIDm.attr("helpURL")!=undefined && objIDm.attr("helpURL")!="") objID = objIDm.attr("helpURL")
    	 	var myTxt = txt_default_help;
    	 	try {
    	 		myTxt = eval("txt_"+objID);
    	 	} catch (e){
    	 		console.log("txt_"+objID+" not found");
    	 	}
    		open_bulle(myTxt);
     });
     
     if (curInfoBulle.attr("helpURL")!=undefined && curInfoBulle.attr("helpURL")!="")
     {  curInfoBulle.click(function (){openHelpDialog(jQuery(this).attr("helpURL"),jQuery(this).attr("anchorURL"));});
     }
    });
    jQuery('.site_about').each( function () {
     curAbout = jQuery(this);
     if (curAbout.attr("href")!="")
     {  curAbout.click(function (){openMyDialog(jQuery(this), true);return false;});
     }
    });
  });
  } catch (ex){}
