var script_infobulles='infobulles-c.js',infobulles_stop=0;jsscriptslist=jsscriptslist.concat(new Array(script_infobulles));myDebug.checkjsload(script_infobulles);var divcurseur='divcurseur';var divc=false;var attached_files=false;myApp.oldinfobulleparams='';function infobulle_onmouseover(obj,divname,quart,content){var tagfct={'file':script_infobulles,'fct':'infobulle_onmouseover(obj,divname,quart,content)'},stop=infobulles_stop;var o;obj.divname=divname;clearTimeout(obj.timeout);if($Prot(content)&&$Prot(divname)){$Prot(divname).innerHTML=$Prot(content).value;obj.quart=quart;obj.show($Prot(content).value);obj.to_place();if(obj.style)obj.style.visibility=myApp.kcssvisible;obj.clickable=(quart<=6);if(myApp.args['ifbshowtime']){obj.timeout=setTimeout(function(){o=$('#'+divname);o.css({'visibility':myApp.kcsshidden});},parseInt(myApp.args['ifbshowtime']));}};o=$Prot('divlistenmescroller');if(o){ByRei_jScroller2.add(o,'up');}};function hide_infobulle(){var tagfct={'file':script_infobulles,'fct':'hide_infobulle()'},stop=infobulles_stop;var o=$Prot('popupmain');if(o)o.style.visibility=myApp.kcsshidden;myApp.infobulle1.displaydiv(myApp.kcsshidden,'');};function tempo_infobulle(){var tagfct={'file':script_infobulles,'fct':'tempo_infobulle()'},stop=infobulles_stop;var isempty=(myApp.infobulleparams==''&&myApp.oldinfobulleparams=='');if(isempty)myApp.oldinfobulleparams='ok';if(myApp.infobulleparams&&myApp.oldinfobulleparams!=myApp.infobulleparams){myApp.oldinfobulleparams=myApp.infobulleparams;var x=myApp.infobulleparams.split(',,');myApp.infobulleparams='';if(x[2]){infobulle_onmouseover(myApp.infobulle1,x[0],parseInt(x[1]),x[2]);};if($.isFunction(window.ftabberjs_init_before_display))ftabberjs_init_before_display();if(myApp.infos==6){var o=$Prot('popupmain');o.style.visibility=myApp.kcssvisible;o.style.zIndex=1003;}};myApp.infobulleparams='';};myApp.infobulle_msg=function(list_array){var tagfct={'file':script_infobulles,'fct':'myApp.infobulle_msg=function(list_array)'},stop=infobulles_stop;var that={};that.list=list_array;that.content_search=function(numero,text){if(!numero||!text)return('');var tags=numero.split('__');return(that.list[tags[1]]!='undefined'?that.list[tags[1]]:text);};return(that);};myApp.infobulle=function(defaultFont){var tagfct={'file':script_infobulles,'fct':'myApp.infobulle=function(defaultFont)'},stop=infobulles_stop;var that={};that.writeable=true;that.timeout='';that.quart=4;that.font=defaultFont;that.setFont=function(theFont){that.font=theFont;};that.move=function(e){if(e){myApp.cursorX=e.pageX;myApp.cursorY=e.pageY;}else{myApp.cursorX=window.event.clientX;myApp.cursorY=window.event.clientY;}};that.to_place=function(){var o=$('#'+that.divname);if(!o)return(false);var x;var y;o.clickable=false;var clientheight=document.documentElement.clientHeight;o.css({'visibility':'visible'});switch(that.quart){case 1:x=myApp.cursorX+5;y=myApp.cursorY-o.height();break;case 2:x=myApp.cursorX-20-o.width();y=myApp.cursorY-20-o.height();break;case 3:x=myApp.cursorX-5-o.width();y=myApp.cursorY+5;break;case 5:o.clickable=true;x=document.documentElement.clientWidth-o.width()-80;y=myApp.cursorY-60-o.height();break;case 6:o.clickable=true;x=(document.documentElement.clientWidth-o.width())/2;y=(clientheight-o.height())/2;break;default:x=myApp.cursorX+5;y=myApp.cursorY+10;};o.css({'top':y});o.css({'left':x});};that.displaydiv=function(how,text){var o=$Prot(that.divname);if(o&&!o.clickable&&!(o.style.visibility==how)){o.style.visibility=how;o.innerHTML=(text?text:'');if(o.quart==6){o=$Prot('popupmain');o.style.visibility=how;}};};that.show=function(objORtext,list_array,divname){if(that.divname==''){if($Prot('infobulle1'))div='infobulle1';else return(false);};var div=that.divname;var text=objORtext.id;if(text){myApp.msghelp=new myApp.infobulle_msg(list_array);text=myApp.msghelp.content_search(objORtext.id,text);}else text=objORtext;that.displaydiv(myApp.kcssvisible,text);};that.hide=function(){if(that.divname=='')return(false);that.displaydiv(myApp.kcsshidden,'');};return(that);};myApp.infobulle1=new myApp.infobulle('helvetica1');document.onmousemove=myApp.infobulle1.move;