 function EAL(){var t=this;t.version="0.8.2";date=new Date();t.start_time=date.getTime();t.win="loading";t.error=false;t.baseURL="";t.template="";t.lang={};t.load_syntax={};t.syntax={};t.loadedFiles=[];t.waiting_loading={};t.scripts_to_load=[];t.sub_scripts_to_load=[];t.syntax_display_name={'basic':'Basic','brainfuck':'Brainfuck','c':'C','coldfusion':'Coldfusion','cpp':'CPP','css':'CSS','html':'HTML','java':'Java','js':'Javascript','pas':'Pascal','perl':'Perl','php':'Php','python':'Python','robotstxt':'Robots txt','ruby':'Ruby','sql':'SQL','tsql':'T-SQL','vb':'Visual Basic','xml':'XML'};t.resize=[];t.hidden={};t.default_settings={debug:false,smooth_selection:true,font_size:"10",font_family:"monospace",start_highlight:false,toolbar:"search,go_to_line,fullscreen,|,undo,redo,|,select_font,|,change_smooth_selection,highlight,reset_highlight,word_wrap,|,help",begin_toolbar:"",end_toolbar:"",is_multi_files:false,allow_resize:"both",show_line_colors:false,min_width:400,min_height:125,replace_tab_by_spaces:false,allow_toggle:true,language:"en",syntax:"",syntax_selection_allow:"basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml",display:"onload",max_undo:30,browsers:"known",plugins:"",gecko_spellcheck:false,fullscreen:false,is_editable:true,cursor_position:"begin",word_wrap:false,autocompletion:false,load_callback:"",save_callback:"",change_callback:"",submit_callback:"",EA_init_callback:"",EA_delete_callback:"",EA_load_callback:"",EA_unload_callback:"",EA_toggle_on_callback:"",EA_toggle_off_callback:"",EA_file_switch_on_callback:"",EA_file_switch_off_callback:"",EA_file_close_callback:""};t.advanced_buttons=[ ['new_document','newdocument.gif','new_document',false],['search','search.gif','show_search',false],['go_to_line','go_to_line.gif','go_to_line',false],['undo','undo.gif','undo',true],['redo','redo.gif','redo',true],['change_smooth_selection','smooth_selection.gif','change_smooth_selection_mode',true],['reset_highlight','reset_highlight.gif','resync_highlight',true],['highlight','highlight.gif','change_highlight',true],['help','help.gif','show_help',false],['save','save.gif','save',false],['load','load.gif','load',false],['fullscreen','fullscreen.gif','toggle_full_screen',false],['word_wrap','word_wrap.gif','toggle_word_wrap',true],['autocompletion','autocompletion.gif','toggle_autocompletion',true] ];t.set_browser_infos(t);if(t.isIE>=6||t.isGecko||(t.isWebKit&&!t.isSafari<3)||t.isOpera>=9||t.isCamino)t.isValidBrowser=true;
else t.isValidBrowser=false;t.set_base_url();for(var i=0;i<t.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+t.baseURL+t.scripts_to_load[i]+".js');",1);t.waiting_loading[t.scripts_to_load[i]+".js"]=false;}t.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype={has_error:function(){this.error=true;for(var i in EAL.prototype){EAL.prototype[i]=function(){};}},set_browser_infos:function(o){ua=navigator.userAgent;o.isWebKit=/WebKit/.test(ua);o.isGecko=!o.isWebKit&&/Gecko/.test(ua);o.isMac=/Mac/.test(ua);o.isIE=(navigator.appName=="Microsoft Internet Explorer");if(o.isIE){o.isIE=ua.replace(/^.*?MSIE\s+([0-9\.]+).*$/,"$1");if(o.isIE<6)o.has_error();}if(o.isOpera=(ua.indexOf('Opera')!=-1)){o.isOpera=ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i,"$1");if(o.isOpera<9)o.has_error();o.isIE=false;}if(o.isFirefox=(ua.indexOf('Firefox')!=-1))o.isFirefox=ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('Iceweasel')!=-1)o.isFirefox=ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('GranParadiso')!=-1)o.isFirefox=ua.replace(/^.*?GranParadiso.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('BonEcho')!=-1)o.isFirefox=ua.replace(/^.*?BonEcho.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('SeaMonkey')!=-1)o.isFirefox=(ua.replace(/^.*?SeaMonkey.*?([0-9\.]+).*$/i,"$1"))+1;if(o.isCamino=(ua.indexOf('Camino')!=-1))o.isCamino=ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i,"$1");if(o.isSafari=(ua.indexOf('Safari')!=-1))o.isSafari=ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i,"$1");if(o.isChrome=(ua.indexOf('Chrome')!=-1)){o.isChrome=ua.replace(/^.*?Chrome.*?([0-9\.]+).*$/i,"$1");o.isSafari=false;}},window_loaded:function(){eAL.win="loaded";if(document.forms){for(var i=0;i<document.forms.length;i++){var form=document.forms[i];form.edit_area_replaced_submit=null;try{form.edit_area_replaced_submit=form.onsubmit;form.onsubmit="";}catch(e){}eAL.add_event(form,"submit",EAL.prototype.submit);eAL.add_event(form,"reset",EAL.prototype.reset);}}eAL.add_event(window,"unload",function(){for(var i in eAs){eAL.delete_instance(i);}});},init_ie_textarea:function(id){var a=document.getElementById(id);try{if(a&&typeof(a.focused)=="undefined"){a.focus();a.focused=true;a.selectionStart=a.selectionEnd=0;get_IE_selection(a);eAL.add_event(a,"focus",IE_textarea_focus);eAL.add_event(a,"blur",IE_textarea_blur);}}catch(ex){}},init:function(settings){var t=this,s=settings,i;if(!s["id"])t.has_error();if(t.error)return;if(eAs[s["id"]])t.delete_instance(s["id"]);for(i in t.default_settings){if(typeof(s[i])=="undefined")s[i]=t.default_settings[i];}if(s["browsers"]=="known"&&t.isValidBrowser==false){return;}if(s["begin_toolbar"].length>0)s["toolbar"]=s["begin_toolbar"]+","+s["toolbar"];if(s["end_toolbar"].length>0)s["toolbar"]=s["toolbar"]+","+s["end_toolbar"];s["tab_toolbar"]=s["toolbar"].replace(/ /g,"").split(",");s["plugins"]=s["plugins"].replace(/ /g,"").split(",");for(i=0;i<s["plugins"].length;i++){if(s["plugins"][i].length==0)s["plugins"].splice(i,1);}t.get_template();t.load_script(t.baseURL+"langs/"+s["language"]+".js");if(s["syntax"].length>0){s["syntax"]=s["syntax"].toLowerCase();t.load_script(t.baseURL+"reg_syntax/"+s["syntax"]+".js");}eAs[s["id"]]={"settings":s};eAs[s["id"]]["displayed"]=false;eAs[s["id"]]["hidden"]=false;t.start(s["id"]);},delete_instance:function(id){var d=document,fs=window.frames,span,iframe;eAL.execCommand(id,"EA_delete");if(fs["frame_"+id]&&fs["frame_"+id].editArea){if(eAs[id]["displayed"])eAL.toggle(id,"off");fs["frame_"+id].editArea.execCommand("EA_unload");}span=d.getElementById("EditAreaArroundInfos_"+id);if(span)span.parentNode.removeChild(span);iframe=d.getElementById("frame_"+id);if(iframe){iframe.parentNode.removeChild(iframe);try{delete fs["frame_"+id];}catch(e){}}delete eAs[id];},start:function(id){var t=this,d=document,f,span,father,next,html='',html_toolbar_content='',template,content,i;if(t.win!="loaded"){setTimeout("eAL.start('"+id+"');",50);return;}for(i in t.waiting_loading){if(t.waiting_loading[i]!="loaded"&&typeof(t.waiting_loading[i])!="function"){setTimeout("eAL.start('"+id+"');",50);return;}}if(!t.lang[eAs[id]["settings"]["language"]]||(eAs[id]["settings"]["syntax"].length>0&&!t.load_syntax[eAs[id]["settings"]["syntax"]])){setTimeout("eAL.start('"+id+"');",50);return;}if(eAs[id]["settings"]["syntax"].length>0)t.init_syntax_regexp();if(!d.getElementById("EditAreaArroundInfos_"+id)&&(eAs[id]["settings"]["debug"]||eAs[id]["settings"]["allow_toggle"])){span=d.createElement("span");span.id="EditAreaArroundInfos_"+id;if(eAs[id]["settings"]["allow_toggle"]){checked=(eAs[id]["settings"]["display"]=="onload")?"checked='checked'":"";html+="<div id='edit_area_toggle_"+i+"'>";html+="<input id='edit_area_toggle_checkbox_"+id+"' class='toggle_"+id+"' type='checkbox' onclick='eAL.toggle(\""+id+"\");' accesskey='e' "+checked+" />";html+="<label for='edit_area_toggle_checkbox_"+id+"'>{$toggle}</label></div>";}if(eAs[id]["settings"]["debug"])html+="<textarea id='edit_area_debug_"+id+"' spellcheck='off' style='z-index:20;width:100%;height:120px;overflow:auto;border:solid black 1px;'></textarea><br />";html=t.translate(html,eAs[id]["settings"]["language"]);span.innerHTML=html;father=d.getElementById(id).parentNode;next=d.getElementById(id).nextSibling;if(next==null)father.appendChild(span);
else father.insertBefore(span,next);}if(!eAs[id]["initialized"]){t.execCommand(id,"EA_init");if(eAs[id]["settings"]["display"]=="later"){eAs[id]["initialized"]=true;return;}}if(t.isIE){t.init_ie_textarea(id);}var area=eAs[id];for(i=0;i<area["settings"]["tab_toolbar"].length;i++){html_toolbar_content+=t.get_control_html(area["settings"]["tab_toolbar"][i],area["settings"]["language"]);}html_toolbar_content=t.translate(html_toolbar_content,area["settings"]["language"],"template");if(!t.iframe_script){t.iframe_script="";for(i=0;i<t.sub_scripts_to_load.length;i++)t.iframe_script+='<script language="javascript" type="text/javascript" src="'+t.baseURL+t.sub_scripts_to_load[i]+'.js"></script>';}for(i=0;i<area["settings"]["plugins"].length;i++){if(!t.all_plugins_loaded)t.iframe_script+='<script language="javascript" type="text/javascript" src="'+t.baseURL+'plugins/'+area["settings"]["plugins"][i]+'/'+area["settings"]["plugins"][i]+'.js"></script>';t.iframe_script+='<script language="javascript" type="text/javascript" src="'+t.baseURL+'plugins/'+area["settings"]["plugins"][i]+'/langs/'+area["settings"]["language"]+'.js"></script>';}if(!t.iframe_css){t.iframe_css="<link href='"+t.baseURL+"edit_area.css' rel='stylesheet' type='text/css' />";}template=t.template.replace(/\[__BASEURL__\]/g,t.baseURL);template=template.replace("[__TOOLBAR__]",html_toolbar_content);template=t.translate(template,area["settings"]["language"],"template");template=template.replace("[__CSSRULES__]",t.iframe_css);template=template.replace("[__JSCODE__]",t.iframe_script);template=template.replace("[__EA_VERSION__]",t.version);area.textarea=d.getElementById(area["settings"]["id"]);eAs[area["settings"]["id"]]["textarea"]=area.textarea;if(typeof(window.frames["frame_"+area["settings"]["id"]])!='undefined')delete window.frames["frame_"+area["settings"]["id"]];father=area.textarea.parentNode;content=d.createElement("iframe");content.name="frame_"+area["settings"]["id"];content.id="frame_"+area["settings"]["id"];content.style.borderWidth="0px";setAttribute(content,"frameBorder","0");content.style.overflow="hidden";content.style.display="none";next=area.textarea.nextSibling;if(next==null)father.appendChild(content);
else father.insertBefore(content,next);f=window.frames["frame_"+area["settings"]["id"]];f.document.open();f.eAs=eAs;f.area_id=area["settings"]["id"];f.document.area_id=area["settings"]["id"];f.document.write(template);f.document.close();},toggle:function(id,toggle_to){if(!toggle_to)toggle_to=(eAs[id]["displayed"]==true)?"off":"on";if(eAs[id]["displayed"]==true&&toggle_to=="off"){this.toggle_off(id);}
else if(eAs[id]["displayed"]==false&&toggle_to=="on"){this.toggle_on(id);}return false;},toggle_off:function(id){var fs=window.frames,f,t,parNod,nxtSib,selStart,selEnd,scrollTop,scrollLeft;if(fs["frame_"+id]){f=fs["frame_"+id];t=eAs[id]["textarea"];if(f.editArea.fullscreen['isFull'])f.editArea.toggle_full_screen(false);eAs[id]["displayed"]=false;t.wrap="off";setAttribute(t,"wrap","off");parNod=t.parentNode;nxtSib=t.nextSibling;parNod.removeChild(t);parNod.insertBefore(t,nxtSib);t.value=f.editArea.textarea.value;selStart=f.editArea.last_selection["selectionStart"];selEnd=f.editArea.last_selection["selectionEnd"];scrollTop=f.document.getElementById("result").scrollTop;scrollLeft=f.document.getElementById("result").scrollLeft;document.getElementById("frame_"+id).style.display='none';t.style.display="inline";try{t.focus();}catch(e){};if(this.isIE){t.selectionStart=selStart;t.selectionEnd=selEnd;t.focused=true;set_IE_selection(t);}
else{if(this.isOpera&&this.isOpera < 9.6){t.setSelectionRange(0,0);}try{t.setSelectionRange(selStart,selEnd);}catch(e){};}t.scrollTop=scrollTop;t.scrollLeft=scrollLeft;f.editArea.execCommand("toggle_off");}},toggle_on:function(id){var fs=window.frames,f,t,selStart=0,selEnd=0,scrollTop=0,scrollLeft=0,curPos,elem;if(fs["frame_"+id]){f=fs["frame_"+id];t=eAs[id]["textarea"];area=f.editArea;area.textarea.value=t.value;curPos=eAs[id]["settings"]["cursor_position"];if(t.use_last==true){selStart=t.last_selectionStart;selEnd=t.last_selectionEnd;scrollTop=t.last_scrollTop;scrollLeft=t.last_scrollLeft;t.use_last=false;}
else if(curPos=="auto"){try{selStart=t.selectionStart;selEnd=t.selectionEnd;scrollTop=t.scrollTop;scrollLeft=t.scrollLeft;}catch(ex){}}this.set_editarea_size_from_textarea(id,document.getElementById("frame_"+id));t.style.display="none";document.getElementById("frame_"+id).style.display="inline";area.execCommand("focus");eAs[id]["displayed"]=true;area.execCommand("update_size");f.document.getElementById("result").scrollTop=scrollTop;f.document.getElementById("result").scrollLeft=scrollLeft;area.area_select(selStart,selEnd-selStart);area.execCommand("toggle_on");}
else{elem=document.getElementById(id);elem.last_selectionStart=elem.selectionStart;elem.last_selectionEnd=elem.selectionEnd;elem.last_scrollTop=elem.scrollTop;elem.last_scrollLeft=elem.scrollLeft;elem.use_last=true;eAL.start(id);}},set_editarea_size_from_textarea:function(id,frame){var elem,width,height;elem=document.getElementById(id);width=Math.max(eAs[id]["settings"]["min_width"],elem.offsetWidth)+"px";height=Math.max(eAs[id]["settings"]["min_height"],elem.offsetHeight)+"px";if(elem.style.width.indexOf("%")!=-1)width=elem.style.width;if(elem.style.height.indexOf("%")!=-1)height=elem.style.height;frame.style.width=width;frame.style.height=height;},set_base_url:function(){var t=this,elems,i,docBasePath;if(!this.baseURL){elems=document.getElementsByTagName('script');for(i=0;i<elems.length;i++){if(elems[i].src&&elems[i].src.match(/edit_area_[^\\\/]*$/i)){var src=unescape(elems[i].src);src=src.substring(0,src.lastIndexOf('/'));this.baseURL=src;this.file_name=elems[i].src.substr(elems[i].src.lastIndexOf("/")+1);break;}}}docBasePath=document.location.href;if(docBasePath.indexOf('?')!=-1)docBasePath=docBasePath.substring(0,docBasePath.indexOf('?'));docBasePath=docBasePath.substring(0,docBasePath.lastIndexOf('/'));if(t.baseURL.indexOf('://')==-1&&t.baseURL.charAt(0)!='/'){t.baseURL=docBasePath+"/"+t.baseURL;}t.baseURL+="/";},get_button_html:function(id,img,exec,isFileSpecific,baseURL){var cmd,html;if(!baseURL)baseURL=this.baseURL;cmd='editArea.execCommand(\''+exec+'\')';html='<a id="a_'+id+'" href="javascript:'+cmd+'" onclick="'+cmd+';return false;" onmousedown="return false;" target="_self" fileSpecific="'+(isFileSpecific?'yes':'no')+'">';html+='<img id="'+id+'" src="'+baseURL+'images/'+img+'" title="{$'+id+'}" width="20" height="20" class="editAreaButtonNormal" onmouseover="editArea.switchClass(this,\'editAreaButtonOver\');" onmouseout="editArea.restoreClass(this);" onmousedown="editArea.restoreAndSwitchClass(this,\'editAreaButtonDown\');" /></a>';return html;},get_control_html:function(button_name,lang){var t=this,i,but,html,si;for(i=0;i<t.advanced_buttons.length;i++){but=t.advanced_buttons[i];if(but[0]==button_name){return t.get_button_html(but[0],but[1],but[2],but[3]);}}switch(button_name){case "*":case "return":return "<br />";case "|":case "separator":return '<img src="'+t.baseURL+'images/spacer.gif" width="1" height="15" class="editAreaSeparatorLine">';case "select_font":html="<select id='area_font_size' onchange='javascript:editArea.execCommand(\"change_font_size\")' fileSpecific='yes'>";html+="<option value='-1'>{$font_size}</option>";si=[8,9,10,11,12,14];for(i=0;i<si.length;i++){html+="<option value='"+si[i]+"'>"+si[i]+" pt</option>";}html+="</select>";return html;case "syntax_selection":html="<select id='syntax_selection' onchange='javascript:editArea.execCommand(\"change_syntax\",this.value)' fileSpecific='yes'>";html+="<option value='-1'>{$syntax_selection}</option>";html+="</select>";return html;}return "<span id='tmp_tool_"+button_name+"'>["+button_name+"]</span>";},get_template:function(){if(this.template==""){var xhr_object=null;if(window.XMLHttpRequest)xhr_object=new XMLHttpRequest();
else if(window.ActiveXObject)xhr_object=new ActiveXObject("Microsoft.XMLHTTP");
else{alert("XMLHTTPRequest not supported. EditArea not loaded");return;}xhr_object.open("GET",this.baseURL+"template.html",false);xhr_object.send(null);if(xhr_object.readyState==4)this.template=xhr_object.responseText;
else this.has_error();}},translate:function(text,lang,mode){if(mode=="word")text=eAL.get_word_translation(text,lang);
else if(mode="template"){eAL.current_language=lang;text=text.replace(/\{\$([^\}]+)\}/gm,eAL.translate_template);}return text;},translate_template:function(){return eAL.get_word_translation(EAL.prototype.translate_template.arguments[1],eAL.current_language);},get_word_translation:function(val,lang){var i;for(i in eAL.lang[lang]){if(i==val)return eAL.lang[lang][i];}return "_"+val;},load_script:function(url){var t=this,d=document,script,head;if(t.loadedFiles[url])return;try{script=d.createElement("script");script.type="text/javascript";script.src=url;script.charset="UTF-8";d.getElementsByTagName("head")[0].appendChild(script);}catch(e){d.write('<sc'+'ript language="javascript" type="text/javascript" src="'+url+'" charset="UTF-8"></sc'+'ript>');}t.loadedFiles[url]=true;},add_event:function(obj,name,handler){try{if(obj.attachEvent){obj.attachEvent("on"+name,handler);}
else{obj.addEventListener(name,handler,false);}}catch(e){}},remove_event:function(obj,name,handler){try{if(obj.detachEvent)obj.detachEvent("on"+name,handler);
else obj.removeEventListener(name,handler,false);}catch(e){}},reset:function(e){var formObj,is_child,i,x;formObj=eAL.isIE ? window.event.srcElement:e.target;if(formObj.tagName!='FORM')formObj=formObj.form;for(i in eAs){is_child=false;for(x=0;x<formObj.elements.length;x++){if(formObj.elements[x].id==i)is_child=true;}if(window.frames["frame_"+i]&&is_child&&eAs[i]["displayed"]==true){var exec='window.frames["frame_'+i+'"].editArea.textarea.value=document.getElementById("'+i+'").value;';exec+='window.frames["frame_'+i+'"].editArea.execCommand("focus");';exec+='window.frames["frame_'+i+'"].editArea.check_line_selection();';exec+='window.frames["frame_'+i+'"].editArea.execCommand("reset");';window.setTimeout(exec,10);}}return;},submit:function(e){var formObj,is_child,fs=window.frames,i,x;formObj=eAL.isIE ? window.event.srcElement:e.target;if(formObj.tagName!='FORM')formObj=formObj.form;for(i in eAs){is_child=false;for(x=0;x<formObj.elements.length;x++){if(formObj.elements[x].id==i)is_child=true;}if(is_child){if(fs["frame_"+i]&&eAs[i]["displayed"]==true)document.getElementById(i).value=fs["frame_"+i].editArea.textarea.value;eAL.execCommand(i,"EA_submit");}}if(typeof(formObj.edit_area_replaced_submit)=="function"){res=formObj.edit_area_replaced_submit();if(res==false){if(eAL.isIE)return false;
else e.preventDefault();}}return;},getValue:function(id){if(window.frames["frame_"+id]&&eAs[id]["displayed"]==true){return window.frames["frame_"+id].editArea.textarea.value;}
else if(elem=document.getElementById(id)){return elem.value;}return false;},setValue:function(id,new_val){var fs=window.frames;if((f=fs["frame_"+id])&&eAs[id]["displayed"]==true){f.editArea.textarea.value=new_val;f.editArea.execCommand("focus");f.editArea.check_line_selection(false);f.editArea.execCommand("onchange");}
else if(elem=document.getElementById(id)){elem.value=new_val;}},getSelectionRange:function(id){var sel,eA,fs=window.frames;sel={"start":0,"end":0};if(fs["frame_"+id]&&eAs[id]["displayed"]==true){eA=fs["frame_"+id].editArea;sel["start"]=eA.textarea.selectionStart;sel["end"]=eA.textarea.selectionEnd;}
else if(elem=document.getElementById(id)){sel=getSelectionRange(elem);}return sel;},setSelectionRange:function(id,new_start,new_end){var fs=window.frames;if(fs["frame_"+id]&&eAs[id]["displayed"]==true){fs["frame_"+id].editArea.area_select(new_start,new_end-new_start);if(!this.isIE){fs["frame_"+id].editArea.check_line_selection(false);fs["frame_"+id].editArea.scroll_to_view();}}
else if(elem=document.getElementById(id)){setSelectionRange(elem,new_start,new_end);}},getSelectedText:function(id){var sel=this.getSelectionRange(id);return this.getValue(id).substring(sel["start"],sel["end"]);},setSelectedText:function(id,new_val){var fs=window.frames,d=document,sel,text,scrollTop,scrollLeft,new_sel_end;new_val=new_val.replace(/\r/g,"");sel=this.getSelectionRange(id);text=this.getValue(id);if(fs["frame_"+id]&&eAs[id]["displayed"]==true){scrollTop=fs["frame_"+id].document.getElementById("result").scrollTop;scrollLeft=fs["frame_"+id].document.getElementById("result").scrollLeft;}
else{scrollTop=d.getElementById(id).scrollTop;scrollLeft=d.getElementById(id).scrollLeft;}text=text.substring(0,sel["start"])+new_val+text.substring(sel["end"]);this.setValue(id,text);new_sel_end=sel["start"]+new_val.length;this.setSelectionRange(id,sel["start"],new_sel_end);if(new_val !=this.getSelectedText(id).replace(/\r/g,"")){this.setSelectionRange(id,sel["start"],new_sel_end+new_val.split("\n").length-1);}if(fs["frame_"+id]&&eAs[id]["displayed"]==true){fs["frame_"+id].document.getElementById("result").scrollTop=scrollTop;fs["frame_"+id].document.getElementById("result").scrollLeft=scrollLeft;fs["frame_"+id].editArea.execCommand("onchange");}
else{d.getElementById(id).scrollTop=scrollTop;d.getElementById(id).scrollLeft=scrollLeft;}},insertTags:function(id,open_tag,close_tag){var old_sel,new_sel;old_sel=this.getSelectionRange(id);text=open_tag+this.getSelectedText(id)+close_tag;eAL.setSelectedText(id,text);new_sel=this.getSelectionRange(id);if(old_sel["end"] > old_sel["start"])this.setSelectionRange(id,new_sel["end"],new_sel["end"]);
else this.setSelectionRange(id,old_sel["start"]+open_tag.length,old_sel["start"]+open_tag.length);},hide:function(id){var fs=window.frames,d=document,t=this,scrollTop,scrollLeft,span;if(d.getElementById(id)&&!t.hidden[id]){t.hidden[id]={};t.hidden[id]["selectionRange"]=t.getSelectionRange(id);if(d.getElementById(id).style.display!="none"){t.hidden[id]["scrollTop"]=d.getElementById(id).scrollTop;t.hidden[id]["scrollLeft"]=d.getElementById(id).scrollLeft;}if(fs["frame_"+id]){t.hidden[id]["toggle"]=eAs[id]["displayed"];if(fs["frame_"+id]&&eAs[id]["displayed"]==true){scrollTop=fs["frame_"+id].document.getElementById("result").scrollTop;scrollLeft=fs["frame_"+id].document.getElementById("result").scrollLeft;}
else{scrollTop=d.getElementById(id).scrollTop;scrollLeft=d.getElementById(id).scrollLeft;}t.hidden[id]["scrollTop"]=scrollTop;t.hidden[id]["scrollLeft"]=scrollLeft;if(eAs[id]["displayed"]==true)eAL.toggle_off(id);}span=d.getElementById("EditAreaArroundInfos_"+id);if(span){span.style.display='none';}d.getElementById(id).style.display="none";}},show:function(id){var fs=window.frames,d=document,t=this,span;if((elem=d.getElementById(id))&&t.hidden[id]){elem.style.display="inline";elem.scrollTop=t.hidden[id]["scrollTop"];elem.scrollLeft=t.hidden[id]["scrollLeft"];span=d.getElementById("EditAreaArroundInfos_"+id);if(span){span.style.display='inline';}if(fs["frame_"+id]){elem.style.display="inline";if(t.hidden[id]["toggle"]==true)eAL.toggle_on(id);scrollTop=t.hidden[id]["scrollTop"];scrollLeft=t.hidden[id]["scrollLeft"];if(fs["frame_"+id]&&eAs[id]["displayed"]==true){fs["frame_"+id].document.getElementById("result").scrollTop=scrollTop;fs["frame_"+id].document.getElementById("result").scrollLeft=scrollLeft;}
else{elem.scrollTop=scrollTop;elem.scrollLeft=scrollLeft;}}sel=t.hidden[id]["selectionRange"];t.setSelectionRange(id,sel["start"],sel["end"]);delete t.hidden[id];}},getCurrentFile:function(id){return this.execCommand(id,'get_file',this.execCommand(id,'curr_file'));},getFile:function(id,file_id){return this.execCommand(id,'get_file',file_id);},getAllFiles:function(id){return this.execCommand(id,'get_all_files()');},openFile:function(id,file_infos){return this.execCommand(id,'open_file',file_infos);},closeFile:function(id,file_id){return this.execCommand(id,'close_file',file_id);},setFileEditedMode:function(id,file_id,to){var reg1,reg2;reg1=new RegExp('\\\\','g');reg2=new RegExp('"','g');return this.execCommand(id,'set_file_edited_mode("'+file_id.replace(reg1,'\\\\').replace(reg2,'\\"')+'",'+to+')');},execCommand:function(id,cmd,fct_param){switch(cmd){case "EA_init":if(eAs[id]['settings']["EA_init_callback"].length>0)eval(eAs[id]['settings']["EA_init_callback"]+"('"+id+"');");break;case "EA_delete":if(eAs[id]['settings']["EA_delete_callback"].length>0)eval(eAs[id]['settings']["EA_delete_callback"]+"('"+id+"');");break;case "EA_submit":if(eAs[id]['settings']["submit_callback"].length>0)eval(eAs[id]['settings']["submit_callback"]+"('"+id+"');");break;}if(window.frames["frame_"+id]&&window.frames["frame_"+id].editArea){if(fct_param!=undefined)return eval('window.frames["frame_'+id+'"].editArea.'+cmd+'(fct_param);');
else return eval('window.frames["frame_'+id+'"].editArea.'+cmd+';');}return false;}};var eAL=new EAL();var eAs={}; function getAttribute(elm,aName){var aValue,taName,i;try{aValue=elm.getAttribute(aName);}catch(exept){}if(! aValue){for(i=0;i < elm.attributes.length;i++){taName=elm.attributes[i] .name.toLowerCase();if(taName==aName){aValue=elm.attributes[i] .value;return aValue;}}}return aValue;};function setAttribute(elm,attr,val){if(attr=="class"){elm.setAttribute("className",val);elm.setAttribute("class",val);}
else{elm.setAttribute(attr,val);}};function getChildren(elem,elem_type,elem_attribute,elem_attribute_match,option,depth){if(!option)var option="single";if(!depth)var depth=-1;if(elem){var children=elem.childNodes;var result=null;var results=[];for(var x=0;x<children.length;x++){strTagName=new String(children[x].tagName);children_class="?";if(strTagName!="undefined"){child_attribute=getAttribute(children[x],elem_attribute);if((strTagName.toLowerCase()==elem_type.toLowerCase()||elem_type=="")&&(elem_attribute==""||child_attribute==elem_attribute_match)){if(option=="all"){results.push(children[x]);}
else{return children[x];}}if(depth!=0){result=getChildren(children[x],elem_type,elem_attribute,elem_attribute_match,option,depth-1);if(option=="all"){if(result.length>0){results=results.concat(result);}}
else if(result!=null){return result;}}}}if(option=="all")return results;}return null;};function isChildOf(elem,parent){if(elem){if(elem==parent)return true;while(elem.parentNode !='undefined'){return isChildOf(elem.parentNode,parent);}}return false;};function getMouseX(e){if(e!=null&&typeof(e.pageX)!="undefined"){return e.pageX;}
else{return(e!=null?e.x:event.x)+document.documentElement.scrollLeft;}};function getMouseY(e){if(e!=null&&typeof(e.pageY)!="undefined"){return e.pageY;}
else{return(e!=null?e.y:event.y)+document.documentElement.scrollTop;}};function calculeOffsetLeft(r){return calculeOffset(r,"offsetLeft")};function calculeOffsetTop(r){return calculeOffset(r,"offsetTop")};function calculeOffset(element,attr){var offset=0;while(element){offset+=element[attr];element=element.offsetParent}return offset;};function get_css_property(elem,prop){if(document.defaultView){return document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop);}
else if(elem.currentStyle){var prop=prop.replace(/-\D/gi,function(sMatch){return sMatch.charAt(sMatch.length-1).toUpperCase();});return elem.currentStyle[prop];}
else return null;}var _mCE;function start_move_element(e,id,frame){var elem_id=(e.target||e.srcElement).id;if(id)elem_id=id;if(!frame)frame=window;if(frame.event)e=frame.event;_mCE=frame.document.getElementById(elem_id);_mCE.frame=frame;frame.document.onmousemove=move_element;frame.document.onmouseup=end_move_element;mouse_x=getMouseX(e);mouse_y=getMouseY(e);_mCE.start_pos_x=mouse_x-(_mCE.style.left.replace("px","")||calculeOffsetLeft(_mCE));_mCE.start_pos_y=mouse_y-(_mCE.style.top.replace("px","")||calculeOffsetTop(_mCE));return false;};function end_move_element(e){_mCE.frame.document.onmousemove="";_mCE.frame.document.onmouseup="";_mCE=null;};function move_element(e){var newTop,newLeft,maxLeft;if(_mCE.frame&&_mCE.frame.event)e=_mCE.frame.event;newTop=getMouseY(e)-_mCE.start_pos_y;newLeft=getMouseX(e)-_mCE.start_pos_x;maxLeft=_mCE.frame.document.body.offsetWidth-_mCE.offsetWidth;max_top=_mCE.frame.document.body.offsetHeight-_mCE.offsetHeight;newTop=Math.min(Math.max(0,newTop),max_top);newLeft=Math.min(Math.max(0,newLeft),maxLeft);_mCE.style.top=newTop+"px";_mCE.style.left=newLeft+"px";return false;};var nav=eAL.nav;function getSelectionRange(textarea){return{"start":textarea.selectionStart,"end":textarea.selectionEnd};};function setSelectionRange(t,start,end){t.focus();start=Math.max(0,Math.min(t.value.length,start));end=Math.max(start,Math.min(t.value.length,end));if(nav.isOpera&&nav.isOpera < 9.6){t.selectionEnd=1;t.selectionStart=0;t.selectionEnd=1;t.selectionStart=0;}t.selectionStart=start;t.selectionEnd=end;if(nav.isIE)set_IE_selection(t);};function get_IE_selection(t){var d=document,div,range,stored_range,elem,scrollTop,relative_top,line_start,line_nb,range_start,range_end,tab;if(t&&t.focused){if(!t.ea_line_height){div=d.createElement("div");div.style.fontFamily=get_css_property(t,"font-family");div.style.fontSize=get_css_property(t,"font-size");div.style.visibility="hidden";div.innerHTML="0";d.body.appendChild(div);t.ea_line_height=div.offsetHeight;d.body.removeChild(div);}range=d.selection.createRange();try{stored_range=range.duplicate();stored_range.moveToElementText(t);stored_range.setEndPoint('EndToEnd',range);if(stored_range.parentElement()==t){elem=t;scrollTop=0;while(elem.parentNode){scrollTop+=elem.scrollTop;elem=elem.parentNode;}relative_top=range.offsetTop-calculeOffsetTop(t)+scrollTop;line_start=Math.round((relative_top / t.ea_line_height)+1);line_nb=Math.round(range.boundingHeight / t.ea_line_height);range_start=stored_range.text.length-range.text.length;tab=t.value.substr(0,range_start).split("\n");range_start+=(line_start-tab.length)*2;t.selectionStart=range_start;range_end=t.selectionStart+range.text.length;tab=t.value.substr(0,range_start+range.text.length).split("\n");range_end+=(line_start+line_nb-1-tab.length)*2;t.selectionEnd=range_end;}}catch(e){}}if(t&&t.id){setTimeout("get_IE_selection(document.getElementById('"+t.id+"'));",50);}};function IE_textarea_focus(){event.srcElement.focused=true;}function IE_textarea_blur(){event.srcElement.focused=false;}function set_IE_selection(t){var nbLineStart,nbLineStart,nbLineEnd,range;if(!window.closed){nbLineStart=t.value.substr(0,t.selectionStart).split("\n").length-1;nbLineEnd=t.value.substr(0,t.selectionEnd).split("\n").length-1;try{range=document.selection.createRange();range.moveToElementText(t);range.setEndPoint('EndToStart',range);range.moveStart('character',t.selectionStart-nbLineStart);range.moveEnd('character',t.selectionEnd-nbLineEnd-(t.selectionStart-nbLineStart));range.select();}catch(e){}}};eAL.waiting_loading["elements_functions.js"]="loaded";
 EAL.prototype.start_resize_area=function(){var d=document,a,div,width,height,father;d.onmouseup=eAL.end_resize_area;d.onmousemove=eAL.resize_area;eAL.toggle(eAL.resize["id"]);a=eAs[eAL.resize["id"]]["textarea"];div=d.getElementById("edit_area_resize");if(!div){div=d.createElement("div");div.id="edit_area_resize";div.style.border="dashed #888888 1px";}width=a.offsetWidth-2;height=a.offsetHeight-2;div.style.display="block";div.style.width=width+"px";div.style.height=height+"px";father=a.parentNode;father.insertBefore(div,a);a.style.display="none";eAL.resize["start_top"]=calculeOffsetTop(div);eAL.resize["start_left"]=calculeOffsetLeft(div);};EAL.prototype.end_resize_area=function(e){var d=document,div,a,width,height;d.onmouseup="";d.onmousemove="";div=d.getElementById("edit_area_resize");a=eAs[eAL.resize["id"]]["textarea"];width=Math.max(eAs[eAL.resize["id"]]["settings"]["min_width"],div.offsetWidth-4);height=Math.max(eAs[eAL.resize["id"]]["settings"]["min_height"],div.offsetHeight-4);if(eAL.isIE==6){width-=2;height-=2;}a.style.width=width+"px";a.style.height=height+"px";div.style.display="none";a.style.display="inline";a.selectionStart=eAL.resize["selectionStart"];a.selectionEnd=eAL.resize["selectionEnd"];eAL.toggle(eAL.resize["id"]);return false;};EAL.prototype.resize_area=function(e){var allow,newHeight,newWidth;allow=eAs[eAL.resize["id"]]["settings"]["allow_resize"];if(allow=="both"||allow=="y"){newHeight=Math.max(20,getMouseY(e)-eAL.resize["start_top"]);document.getElementById("edit_area_resize").style.height=newHeight+"px";}if(allow=="both"||allow=="x"){newWidth=Math.max(20,getMouseX(e)-eAL.resize["start_left"]);document.getElementById("edit_area_resize").style.width=newWidth+"px";}return false;};eAL.waiting_loading["resize_area.js"]="loaded";
	EAL.prototype.get_regexp=function(text_array){res="(\\b)(";for(i=0;i<text_array.length;i++){if(i>0)res+="|";res+=this.get_escaped_regexp(text_array[i]);}res+=")(\\b)";reg=new RegExp(res);return res;};EAL.prototype.get_escaped_regexp=function(str){return str.toString().replace(/(\.|\?|\*|\+|\\|\(|\)|\[|\]|\}|\{|\$|\^|\|)/g,"\\$1");};EAL.prototype.init_syntax_regexp=function(){var lang_style={};for(var lang in this.load_syntax){if(!this.syntax[lang]){this.syntax[lang]={};this.syntax[lang]["keywords_reg_exp"]={};this.keywords_reg_exp_nb=0;if(this.load_syntax[lang]['KEYWORDS']){param="g";if(this.load_syntax[lang]['KEYWORD_CASE_SENSITIVE']===false)param+="i";for(var i in this.load_syntax[lang]['KEYWORDS']){if(typeof(this.load_syntax[lang]['KEYWORDS'][i])=="function")continue;this.syntax[lang]["keywords_reg_exp"][i]=new RegExp(this.get_regexp(this.load_syntax[lang]['KEYWORDS'][i]),param);this.keywords_reg_exp_nb++;}}if(this.load_syntax[lang]['OPERATORS']){var str="";var nb=0;for(var i in this.load_syntax[lang]['OPERATORS']){if(typeof(this.load_syntax[lang]['OPERATORS'][i])=="function")continue;if(nb>0)str+="|";str+=this.get_escaped_regexp(this.load_syntax[lang]['OPERATORS'][i]);nb++;}if(str.length>0)this.syntax[lang]["operators_reg_exp"]=new RegExp("("+str+")","g");}if(this.load_syntax[lang]['DELIMITERS']){var str="";var nb=0;for(var i in this.load_syntax[lang]['DELIMITERS']){if(typeof(this.load_syntax[lang]['DELIMITERS'][i])=="function")continue;if(nb>0)str+="|";str+=this.get_escaped_regexp(this.load_syntax[lang]['DELIMITERS'][i]);nb++;}if(str.length>0)this.syntax[lang]["delimiters_reg_exp"]=new RegExp("("+str+")","g");}var syntax_trace=[];this.syntax[lang]["quotes"]={};var quote_tab=[];if(this.load_syntax[lang]['QUOTEMARKS']){for(var i in this.load_syntax[lang]['QUOTEMARKS']){if(typeof(this.load_syntax[lang]['QUOTEMARKS'][i])=="function")continue;var x=this.get_escaped_regexp(this.load_syntax[lang]['QUOTEMARKS'][i]);this.syntax[lang]["quotes"][x]=x;quote_tab[quote_tab.length]="("+x+"(\\\\.|[^"+x+"])*(?:"+x+"|$))";syntax_trace.push(x);}}this.syntax[lang]["comments"]={};if(this.load_syntax[lang]['COMMENT_SINGLE']){for(var i in this.load_syntax[lang]['COMMENT_SINGLE']){if(typeof(this.load_syntax[lang]['COMMENT_SINGLE'][i])=="function")continue;var x=this.get_escaped_regexp(this.load_syntax[lang]['COMMENT_SINGLE'][i]);quote_tab[quote_tab.length]="("+x+"(.|\\r|\\t)*(\\n|$))";syntax_trace.push(x);this.syntax[lang]["comments"][x]="\n";}}if(this.load_syntax[lang]['COMMENT_MULTI']){for(var i in this.load_syntax[lang]['COMMENT_MULTI']){if(typeof(this.load_syntax[lang]['COMMENT_MULTI'][i])=="function")continue;var start=this.get_escaped_regexp(i);var end=this.get_escaped_regexp(this.load_syntax[lang]['COMMENT_MULTI'][i]);quote_tab[quote_tab.length]="("+start+"(.|\\n|\\r)*?("+end+"|$))";syntax_trace.push(start);syntax_trace.push(end);this.syntax[lang]["comments"][i]=this.load_syntax[lang]['COMMENT_MULTI'][i];}}if(quote_tab.length>0)this.syntax[lang]["comment_or_quote_reg_exp"]=new RegExp("("+quote_tab.join("|")+")","gi");if(syntax_trace.length>0)this.syntax[lang]["syntax_trace_regexp"]=new RegExp("((.|\n)*?)(\\\\*("+syntax_trace.join("|")+"|$))","gmi");if(this.load_syntax[lang]['SCRIPT_DELIMITERS']){this.syntax[lang]["script_delimiters"]={};for(var i in this.load_syntax[lang]['SCRIPT_DELIMITERS']){if(typeof(this.load_syntax[lang]['SCRIPT_DELIMITERS'][i])=="function")continue;this.syntax[lang]["script_delimiters"][i]=this.load_syntax[lang]['SCRIPT_DELIMITERS'];}}this.syntax[lang]["custom_regexp"]={};if(this.load_syntax[lang]['REGEXPS']){for(var i in this.load_syntax[lang]['REGEXPS']){if(typeof(this.load_syntax[lang]['REGEXPS'][i])=="function")continue;var val=this.load_syntax[lang]['REGEXPS'][i];if(!this.syntax[lang]["custom_regexp"][val['execute']])this.syntax[lang]["custom_regexp"][val['execute']]={};this.syntax[lang]["custom_regexp"][val['execute']][i]={'regexp':new RegExp(val['search'],val['modifiers']),'class':val['class']};}}if(this.load_syntax[lang]['STYLES']){lang_style[lang]={};for(var i in this.load_syntax[lang]['STYLES']){if(typeof(this.load_syntax[lang]['STYLES'][i])=="function")continue;if(typeof(this.load_syntax[lang]['STYLES'][i])!="string"){for(var j in this.load_syntax[lang]['STYLES'][i]){lang_style[lang][j]=this.load_syntax[lang]['STYLES'][i][j];}}
else{lang_style[lang][i]=this.load_syntax[lang]['STYLES'][i];}}}var style="";for(var i in lang_style[lang]){if(lang_style[lang][i].length>0){style+="."+lang+" ."+i.toLowerCase()+" span{"+lang_style[lang][i]+"}\n";style+="."+lang+" ."+i.toLowerCase()+"{"+lang_style[lang][i]+"}\n";}}this.syntax[lang]["styles"]=style;}}};eAL.waiting_loading["reg_syntax.js"]="loaded";
var editAreaLoader= eAL;var editAreas=eAs;EditAreaLoader=EAL;editAreaLoader.iframe_script= "<script type='text/javascript'> ÃƒÆ’ EA(){var t=ÃƒÂ;t.error=ÃƒÅ’;t.inlinePopup=[{popup_id:\"area_search_replace\",icon_id:\"search\"},{popup_id:\"edit_area_help\",icon_id:\"help\"}];t.plugins={};t.line_number=0;ÃƒË†.eAL.set_browser_infos(t);if(t.isIE==8)t.isIE=7;if(t.isIE==9)t.isIE=ÃƒÅ’;t.Ãƒâ€°={};t.last_text_to_highlight=\"\";t.last_hightlighted_text=\"\";t.syntax_list=[];t.allready_used_syntax={};t.check_line_selection_timer=50;t.Ãƒâ€šFocused=ÃƒÅ’;t.highlight_selection_line=null;t.previous=[];t.next=[];t.last_undo=\"\";t.files={};t.filesIdAssoc={};t.curr_file='';t.assocBracket={};t.revertAssocBracket={};t.assocBracket[\"(\"]=\")\";t.assocBracket[\"{\"]=\"}\";t.assocBracket[\"[\"]=\"]\";for(var index in t.assocBracket){t.revertAssocBracket[t.assocBracket[index]]=index;}t.is_editable=Ãƒâ€¹;t.lineHeight=16;t.tab_nb_char=8;if(t.isOpera)t.tab_nb_char=6;t.is_tabbing=ÃƒÅ’;t.fullscreen={'isFull':ÃƒÅ’};t.isResizing=ÃƒÅ’;t.id=area_id;t.Ãƒâ€¦=eAs[t.id][\"Ãƒâ€¦\"];if((\"\"+t.Ãƒâ€¦['replace_tab_by_spaces']).match(/^[0-9]+$/)){t.tab_nb_char=t.Ãƒâ€¦['replace_tab_by_spaces'];t.tabulation=\"\";for(var i=0;i<t.tab_nb_char;i++)t.tabulation+=\" \";}\nelse{t.tabulation=\"\t\";}if(t.Ãƒâ€¦[\"syntax_selection_allow\"]&&t.Ãƒâ€¦[\"syntax_selection_allow\"].Ãƒâ€ >0)t.syntax_list=t.Ãƒâ€¦[\"syntax_selection_allow\"].replace(/ /g,\"\").split(\",\");if(t.Ãƒâ€¦['syntax'])t.allready_used_syntax[t.Ãƒâ€¦['syntax']]=Ãƒâ€¹;};EA.Ãƒâ€ž.init=ÃƒÆ’(){var t=ÃƒÂ,a,s=t.Ãƒâ€¦;t.Ãƒâ€š=_$(\"Ãƒâ€š\");t.container=_$(\"container\");t.result=_$(\"result\");t.content_highlight=_$(\"content_highlight\");t.selection_field=_$(\"selection_field\");t.selection_field_text=_$(\"selection_field_text\");t.processing_screen=_$(\"processing\");t.editor_area=_$(\"editor\");t.tab_browsing_area=_$(\"tab_browsing_area\");t.test_font_size=_$(\"test_font_size\");a=t.Ãƒâ€š;if(!s['is_editable'])t.set_editable(ÃƒÅ’);t.set_show_line_colors(s['show_line_colors']);if(syntax_selec=_$(\"syntax_selection\")){for(var i=0;i<t.syntax_list.Ãƒâ€ ;i++){var syntax=t.syntax_list[i];var option=document.createElement(\"option\");option.ÃƒÅ =syntax;if(syntax==s['syntax'])option.selected=\"selected\";dispSyntax=ÃƒË†.eAL.syntax_display_name[ syntax ];option.innerHTML=typeof(dispSyntax)=='undefined' ? syntax.substring(0,1).toUpperCase()+syntax.substring(1):dispSyntax;syntax_selec.appendChild(option);}}spans=ÃƒË†.getChildren(_$(\"toolbar_1\"),\"span\",\"\",\"\",\"all\",-1);for(var i=0;i<spans.Ãƒâ€ ;i++){id=spans[i].id.replace(/tmp_tool_(.*)/,\"$1\");if(id!=spans[i].id){for(var j in t.plugins){if(typeof(t.plugins[j].get_control_html)==\"ÃƒÆ’\"){html=t.plugins[j].get_control_html(id);if(html!=ÃƒÅ’){html=t.get_translation(html,\"template\");var new_span=document.createElement(\"span\");new_span.innerHTML=html;var father=spans[i].ÃƒË†Node;spans[i].ÃƒË†Node.replaceChild(new_span,spans[i]);break;}}}}}if(s[\"debug\"]){t.debug=ÃƒË†.document.getElementById(\"edit_area_debug_\"+t.id);}if(_$(\"redo\")!=null)t.switchClassSticky(_$(\"redo\"),'editAreaButtonDisabled',Ãƒâ€¹);if(typeof(ÃƒË†.eAL.syntax[s[\"syntax\"]])!=\"undefined\"){for(var i in ÃƒË†.eAL.syntax){if(typeof(ÃƒË†.eAL.syntax[i][\"Ãƒâ€¡s\"])!=\"undefined\"){t.add_Ãƒâ€¡(ÃƒË†.eAL.syntax[i][\"Ãƒâ€¡s\"]);}}}if(t.isOpera)_$(\"editor\").onkeypress=keyDown;\nelse _$(\"editor\").onkeydown=keyDown;for(var i=0;i<t.inlinePopup.Ãƒâ€ ;i++){if(t.isOpera)_$(t.inlinePopup[i][\"popup_id\"]).onkeypress=keyDown;\nelse _$(t.inlinePopup[i][\"popup_id\"]).onkeydown=keyDown;}if(s[\"allow_resize\"]==\"both\"||s[\"allow_resize\"]==\"x\"||s[\"allow_resize\"]==\"y\")t.allow_resize(Ãƒâ€¹);ÃƒË†.eAL.toggle(t.id,\"on\");t.change_smooth_selection_mode(eA.smooth_selection);t.execCommand(\"change_highlight\",s[\"start_highlight\"]);t.set_font(eA.Ãƒâ€¦[\"font_family\"],eA.Ãƒâ€¦[\"font_size\"]);children=ÃƒË†.getChildren(document.body,\"\",\"selec\",\"none\",\"all\",-1);for(var i=0;i<children.Ãƒâ€ ;i++){if(t.isIE)children[i].unselectable=Ãƒâ€¹;\nelse children[i].onmousedown=ÃƒÆ’(){return ÃƒÅ’};}a.spellcheck=s[\"gecko_spellcheck\"];if(t.isFirefox >='3'){t.content_highlight.Ãƒâ€¡.paddingLeft=\"1px\";t.selection_field.Ãƒâ€¡.paddingLeft=\"1px\";t.selection_field_text.Ãƒâ€¡.paddingLeft=\"1px\";}if(t.isIE&&t.isIE < 8){a.Ãƒâ€¡.marginTop=\"-1px\";}if(t.isSafari&&t.isSafari < 4.1){t.editor_area.Ãƒâ€¡.position=\"absolute\";a.Ãƒâ€¡.marginLeft=\"-3px\";if(t.isSafari < 3.2)a.Ãƒâ€¡.marginTop=\"1px\";}ÃƒË†.eAL.add_event(t.result,\"click\",ÃƒÆ’(e){if((e.target||e.srcElement)==eA.result){eA.area_select(eA.Ãƒâ€š.ÃƒÅ .Ãƒâ€ ,0);}});if(s['is_multi_files']!=ÃƒÅ’)t.open_file({'id':t.curr_file,'text':''});t.set_word_wrap(s['word_wrap']);setTimeout(\"eA.focus();eA.manage_size();eA.execCommand('EA_load');\",10);t.check_undo();t.check_line_selection(Ãƒâ€¹);t.scroll_to_view();for(var i in t.plugins){if(typeof(t.plugins[i].onload)==\"ÃƒÆ’\")t.plugins[i].onload();}if(s['fullscreen']==Ãƒâ€¹)t.toggle_full_screen(Ãƒâ€¹);ÃƒË†.eAL.add_event(window,\"resize\",eA.update_size);ÃƒË†.eAL.add_event(ÃƒË†.window,\"resize\",eA.update_size);ÃƒË†.eAL.add_event(top.window,\"resize\",eA.update_size);ÃƒË†.eAL.add_event(window,\"unload\",ÃƒÆ’(){if(ÃƒË†.eAL){ÃƒË†.eAL.remove_event(ÃƒË†.window,\"resize\",eA.update_size);ÃƒË†.eAL.remove_event(top.window,\"resize\",eA.update_size);}if(eAs[eA.id]&&eAs[eA.id][\"displayed\"]){eA.execCommand(\"EA_unload\");}});};EA.Ãƒâ€ž.update_size=ÃƒÆ’(){var d=document,pd=ÃƒË†.document,height,width,popup,maxLeft,maxTop;if(typeof eAs !='undefined'&&eAs[eA.id]&&eAs[eA.id][\"displayed\"]==Ãƒâ€¹){if(eA.fullscreen['isFull']){pd.getElementById(\"frame_\"+eA.id).Ãƒâ€¡.width=pd.getElementsByTagName(\"html\")[0].clientWidth+\"px\";pd.getElementById(\"frame_\"+eA.id).Ãƒâ€¡.height=pd.getElementsByTagName(\"html\")[0].clientHeight+\"px\";}if(eA.tab_browsing_area.Ãƒâ€¡.display=='block'&&(!eA.isIE||eA.isIE >=8)){eA.tab_browsing_area.Ãƒâ€¡.height=\"0px\";eA.tab_browsing_area.Ãƒâ€¡.height=(eA.result.offsetTop-eA.tab_browsing_area.offsetTop-1)+\"px\";}height=d.body.offsetHeight-eA.get_all_toolbar_height()-4;eA.result.Ãƒâ€¡.height=height+\"px\";width=d.body.offsetWidth-2;eA.result.Ãƒâ€¡.width=width+\"px\";for(i=0;i < eA.inlinePopup.Ãƒâ€ ;i++){popup=_$(eA.inlinePopup[i][\"popup_id\"]);maxLeft=d.body.offsetWidth-popup.offsetWidth;maxTop=d.body.offsetHeight-popup.offsetHeight;if(popup.offsetTop > maxTop)popup.Ãƒâ€¡.top=maxTop+\"px\";if(popup.offsetLeft > maxLeft)popup.Ãƒâ€¡.left=maxLeft+\"px\";}eA.manage_size(Ãƒâ€¹);eA.fixLinesHeight(eA.Ãƒâ€š.ÃƒÅ ,0,-1);}};EA.Ãƒâ€ž.manage_size=ÃƒÆ’(onlyOneTime){if(!eAs[ÃƒÂ.id])return ÃƒÅ’;if(eAs[ÃƒÂ.id][\"displayed\"]==Ãƒâ€¹&&ÃƒÂ.Ãƒâ€šFocused){var area_height,resized=ÃƒÅ’;if(!ÃƒÂ.Ãƒâ€¦['word_wrap']){var area_width=ÃƒÂ.Ãƒâ€š.scrollWidth;area_height=ÃƒÂ.Ãƒâ€š.scrollHeight;if(ÃƒÂ.isOpera&&ÃƒÂ.isOpera < 9.6){area_width=10000;}if(ÃƒÂ.Ãƒâ€š.previous_scrollWidth!=area_width){ÃƒÂ.container.Ãƒâ€¡.width=area_width+\"px\";ÃƒÂ.Ãƒâ€š.Ãƒâ€¡.width=area_width+\"px\";ÃƒÂ.content_highlight.Ãƒâ€¡.width=area_width+\"px\";ÃƒÂ.Ãƒâ€š.previous_scrollWidth=area_width;resized=Ãƒâ€¹;}}if(ÃƒÂ.Ãƒâ€¦['word_wrap']){newW=ÃƒÂ.Ãƒâ€š.offsetWidth;if(ÃƒÂ.isFirefox||ÃƒÂ.isIE)newW-=2;if(ÃƒÂ.isSafari)newW-=6;ÃƒÂ.content_highlight.Ãƒâ€¡.width=ÃƒÂ.selection_field_text.Ãƒâ€¡.width=ÃƒÂ.selection_field.Ãƒâ€¡.width=ÃƒÂ.test_font_size.Ãƒâ€¡.width=newW+\"px\";}if(ÃƒÂ.isOpera||ÃƒÂ.isFirefox||ÃƒÂ.isSafari){area_height=ÃƒÂ.getLinePosTop(ÃƒÂ.Ãƒâ€°[\"nb_line\"]+1);}\nelse{area_height=ÃƒÂ.Ãƒâ€š.scrollHeight;}if(ÃƒÂ.Ãƒâ€š.previous_scrollHeight!=area_height){ÃƒÂ.container.Ãƒâ€¡.height=(area_height+2)+\"px\";ÃƒÂ.Ãƒâ€š.Ãƒâ€¡.height=area_height+\"px\";ÃƒÂ.content_highlight.Ãƒâ€¡.height=area_height+\"px\";ÃƒÂ.Ãƒâ€š.previous_scrollHeight=area_height;resized=Ãƒâ€¹;}if(ÃƒÂ.Ãƒâ€°[\"nb_line\"] >=ÃƒÂ.line_number){var newLines='',destDiv=_$(\"line_number\"),start=ÃƒÂ.line_number,end=ÃƒÂ.Ãƒâ€°[\"nb_line\"]+100;for(i=start+1;i < end;i++){newLines+='<div id=\"line_'+i+'\">'+i+\"</div>\";ÃƒÂ.line_number++;}destDiv.innerHTML=destDiv.innerHTML+newLines;if(ÃƒÂ.Ãƒâ€¦['word_wrap']){ÃƒÂ.fixLinesHeight(ÃƒÂ.Ãƒâ€š.ÃƒÅ ,start,-1);}}ÃƒÂ.Ãƒâ€š.scrollTop=\"0px\";ÃƒÂ.Ãƒâ€š.scrollLeft=\"0px\";if(resized==Ãƒâ€¹){ÃƒÂ.scroll_to_view();}}if(!onlyOneTime)setTimeout(\"eA.manage_size();\",100);};EA.Ãƒâ€ž.execCommand=ÃƒÆ’(cmd,param){for(var i in ÃƒÂ.plugins){if(typeof(ÃƒÂ.plugins[i].execCommand)==\"ÃƒÆ’\"){if(!ÃƒÂ.plugins[i].execCommand(cmd,param))return;}}switch(cmd){case \"save\":if(ÃƒÂ.Ãƒâ€¦[\"save_callback\"].Ãƒâ€ >0)eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"save_callback\"]+\"('\"+ÃƒÂ.id+\"',eA.Ãƒâ€š.ÃƒÅ );\");break;case \"load\":if(ÃƒÂ.Ãƒâ€¦[\"load_callback\"].Ãƒâ€ >0)eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"load_callback\"]+\"('\"+ÃƒÂ.id+\"');\");break;case \"onchange\":if(ÃƒÂ.Ãƒâ€¦[\"change_callback\"].Ãƒâ€ >0)eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"change_callback\"]+\"('\"+ÃƒÂ.id+\"');\");break;case \"EA_load\":if(ÃƒÂ.Ãƒâ€¦[\"EA_load_callback\"].Ãƒâ€ >0)eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"EA_load_callback\"]+\"('\"+ÃƒÂ.id+\"');\");break;case \"EA_unload\":if(ÃƒÂ.Ãƒâ€¦[\"EA_unload_callback\"].Ãƒâ€ >0)eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"EA_unload_callback\"]+\"('\"+ÃƒÂ.id+\"');\");break;case \"toggle_on\":if(ÃƒÂ.Ãƒâ€¦[\"EA_toggle_on_callback\"].Ãƒâ€ >0)eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"EA_toggle_on_callback\"]+\"('\"+ÃƒÂ.id+\"');\");break;case \"toggle_off\":if(ÃƒÂ.Ãƒâ€¦[\"EA_toggle_off_callback\"].Ãƒâ€ >0)eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"EA_toggle_off_callback\"]+\"('\"+ÃƒÂ.id+\"');\");break;case \"re_sync\":if(!ÃƒÂ.do_highlight)break;case \"file_switch_on\":if(ÃƒÂ.Ãƒâ€¦[\"EA_file_switch_on_callback\"].Ãƒâ€ >0)eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"EA_file_switch_on_callback\"]+\"(param);\");break;case \"file_switch_off\":if(ÃƒÂ.Ãƒâ€¦[\"EA_file_switch_off_callback\"].Ãƒâ€ >0)eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"EA_file_switch_off_callback\"]+\"(param);\");break;case \"file_close\":if(ÃƒÂ.Ãƒâ€¦[\"EA_file_close_callback\"].Ãƒâ€ >0)return eval(\"ÃƒË†.\"+ÃƒÂ.Ãƒâ€¦[\"EA_file_close_callback\"]+\"(param);\");break;default:if(typeof(eval(\"eA.\"+cmd))==\"ÃƒÆ’\"){if(ÃƒÂ.Ãƒâ€¦[\"debug\"])eval(\"eA.\"+cmd+\"(param);\");\nelse try{eval(\"eA.\"+cmd+\"(param);\");}catch(e){};}}};EA.Ãƒâ€ž.get_translation=ÃƒÆ’(word,mode){if(mode==\"template\")return ÃƒË†.eAL.translate(word,ÃƒÂ.Ãƒâ€¦[\"language\"],mode);\nelse return ÃƒË†.eAL.get_word_translation(word,ÃƒÂ.Ãƒâ€¦[\"language\"]);};EA.Ãƒâ€ž.add_plugin=ÃƒÆ’(plug_name,plug_obj){for(var i=0;i<ÃƒÂ.Ãƒâ€¦[\"plugins\"].Ãƒâ€ ;i++){if(ÃƒÂ.Ãƒâ€¦[\"plugins\"][i]==plug_name){ÃƒÂ.plugins[plug_name]=plug_obj;plug_obj.baseURL=ÃƒË†.eAL.baseURL+\"plugins/\"+plug_name+\"/\";if(typeof(plug_obj.init)==\"ÃƒÆ’\")plug_obj.init();}}};EA.Ãƒâ€ž.load_css=ÃƒÆ’(url){try{link=document.createElement(\"link\");link.type=\"text/css\";link.rel=\"Ãƒâ€¡sheet\";link.media=\"all\";link.href=url;head=document.getElementsByTagName(\"head\");head[0].appendChild(link);}catch(e){document.write(\"<link href='\"+url+\"' rel='Ãƒâ€¡sheet' type='text/css' />\");}};EA.Ãƒâ€ž.load_script=ÃƒÆ’(url){try{script=document.createElement(\"script\");script.type=\"text/javascript\";script.src=url;script.charset=\"UTF-8\";head=document.getElementsByTagName(\"head\");head[0].appendChild(script);}catch(e){document.write(\"<script type='text/javascript' src='\"+url+\"' charset=\\\"UTF-8\\\"><\"+\"/script>\");}};EA.Ãƒâ€ž.add_lang=ÃƒÆ’(language,ÃƒÅ s){if(!ÃƒË†.eAL.lang[language])ÃƒË†.eAL.lang[language]={};for(var i in ÃƒÅ s)ÃƒË†.eAL.lang[language][i]=ÃƒÅ s[i];};ÃƒÆ’ _$(id){return document.getElementById(id);};var eA=new EA();ÃƒË†.eAL.add_event(window,\"load\",init);ÃƒÆ’ init(){setTimeout(\"eA.init();\",10);};	EA.Ãƒâ€ž.focus=ÃƒÆ’(){ÃƒÂ.Ãƒâ€š.focus();ÃƒÂ.Ãƒâ€šFocused=Ãƒâ€¹;};EA.Ãƒâ€ž.check_line_selection=ÃƒÆ’(timer_checkup){var changes,infos,new_top,new_width,i;var t1=t2=t2_1=t3=tLines=tend=new Date().getTime();if(!eAs[ÃƒÂ.id])return ÃƒÅ’;if(!ÃƒÂ.smooth_selection&&!ÃƒÂ.do_highlight){}\nelse if(ÃƒÂ.Ãƒâ€šFocused&&eAs[ÃƒÂ.id][\"displayed\"]==Ãƒâ€¹&&ÃƒÂ.isResizing==ÃƒÅ’){infos=ÃƒÂ.get_selection_infos();changes=ÃƒÂ.checkTextEvolution(typeof(ÃƒÂ.Ãƒâ€°['full_text'])=='undefined' ? '':ÃƒÂ.Ãƒâ€°['full_text'],infos['full_text']);t2=new Date().getTime();if(ÃƒÂ.Ãƒâ€°[\"line_start\"] !=infos[\"line_start\"]||ÃƒÂ.Ãƒâ€°[\"line_nb\"] !=infos[\"line_nb\"]||infos[\"full_text\"] !=ÃƒÂ.Ãƒâ€°[\"full_text\"]||ÃƒÂ.reload_highlight||ÃƒÂ.Ãƒâ€°[\"selectionStart\"] !=infos[\"selectionStart\"]||ÃƒÂ.Ãƒâ€°[\"selectionEnd\"] !=infos[\"selectionEnd\"]||!timer_checkup){new_top=ÃƒÂ.getLinePosTop(infos[\"line_start\"]);new_width=Math.max(ÃƒÂ.Ãƒâ€š.scrollWidth,ÃƒÂ.container.clientWidth-50);ÃƒÂ.selection_field.Ãƒâ€¡.top=ÃƒÂ.selection_field_text.Ãƒâ€¡.top=new_top+\"px\";if(!ÃƒÂ.Ãƒâ€¦['word_wrap']){ÃƒÂ.selection_field.Ãƒâ€¡.width=ÃƒÂ.selection_field_text.Ãƒâ€¡.width=ÃƒÂ.test_font_size.Ãƒâ€¡.width=new_width+\"px\";}if(ÃƒÂ.do_highlight==Ãƒâ€¹){var curr_text=infos[\"full_text\"].split(\"\\n\");var content=\"\";var start=Math.max(0,infos[\"line_start\"]-1);var end=Math.min(curr_text.Ãƒâ€ ,infos[\"line_start\"]+infos[\"line_nb\"]-1);for(i=start;i< end;i++){content+=curr_text[i]+\"\\n\";}selLength=infos['selectionEnd']-infos['selectionStart'];content=content.substr(0,infos[\"curr_pos\"]-1)+\"\\r\\r\"+content.substr(infos[\"curr_pos\"]-1,selLength)+\"\\r\\r\"+content.substr(infos[\"curr_pos\"]-1+selLength);content='<span>'+content.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(\"\\r\\r\",'</span><strong>').replace(\"\\r\\r\",'</strong><span>')+'</span>';if(ÃƒÂ.isIE||(ÃƒÂ.isOpera&&ÃƒÂ.isOpera < 9.6)){ÃƒÂ.selection_field.innerHTML=\"<pre>\"+content.replace(/^\\r?\\n/,\"<br>\")+\"</pre>\";}\nelse{ÃƒÂ.selection_field.innerHTML=content;}ÃƒÂ.selection_field_text.innerHTML=ÃƒÂ.selection_field.innerHTML;t2_1=new Date().getTime();if(ÃƒÂ.reload_highlight||(infos[\"full_text\"] !=ÃƒÂ.last_text_to_highlight&&(ÃƒÂ.Ãƒâ€°[\"line_start\"]!=infos[\"line_start\"]||ÃƒÂ.show_line_colors||ÃƒÂ.Ãƒâ€¦['word_wrap']||ÃƒÂ.Ãƒâ€°[\"line_nb\"]!=infos[\"line_nb\"]||ÃƒÂ.Ãƒâ€°[\"nb_line\"]!=infos[\"nb_line\"]))){ÃƒÂ.maj_highlight(infos);}}}t3=new Date().getTime();if(ÃƒÂ.Ãƒâ€¦['word_wrap']&&infos[\"full_text\"] !=ÃƒÂ.Ãƒâ€°[\"full_text\"]){if(changes.newText.split(\"\\n\").Ãƒâ€ ==1&&ÃƒÂ.Ãƒâ€°['nb_line']&&infos['nb_line']==ÃƒÂ.Ãƒâ€°['nb_line']){ÃƒÂ.fixLinesHeight(infos['full_text'],changes.lineStart,changes.lineStart);}\nelse{ÃƒÂ.fixLinesHeight(infos['full_text'],changes.lineStart,-1);}}tLines=new Date().getTime();if(infos[\"line_start\"] !=ÃƒÂ.Ãƒâ€°[\"line_start\"]||infos[\"curr_pos\"] !=ÃƒÂ.Ãƒâ€°[\"curr_pos\"]||infos[\"full_text\"].Ãƒâ€ !=ÃƒÂ.Ãƒâ€°[\"full_text\"].Ãƒâ€ ||ÃƒÂ.reload_highlight||!timer_checkup){var selec_char=infos[\"curr_line\"].charAt(infos[\"curr_pos\"]-1);var no_real_move=Ãƒâ€¹;if(infos[\"line_nb\"]==1&&(ÃƒÂ.assocBracket[selec_char]||ÃƒÂ.revertAssocBracket[selec_char])){no_real_move=ÃƒÅ’;if(ÃƒÂ.findEndBracket(infos,selec_char)===Ãƒâ€¹){_$(\"end_bracket\").Ãƒâ€¡.visibility=\"visible\";_$(\"cursor_pos\").Ãƒâ€¡.visibility=\"visible\";_$(\"cursor_pos\").innerHTML=selec_char;_$(\"end_bracket\").innerHTML=(ÃƒÂ.assocBracket[selec_char]||ÃƒÂ.revertAssocBracket[selec_char]);}\nelse{_$(\"end_bracket\").Ãƒâ€¡.visibility=\"hidden\";_$(\"cursor_pos\").Ãƒâ€¡.visibility=\"hidden\";}}\nelse{_$(\"cursor_pos\").Ãƒâ€¡.visibility=\"hidden\";_$(\"end_bracket\").Ãƒâ€¡.visibility=\"hidden\";}ÃƒÂ.displayToCursorPosition(\"cursor_pos\",infos[\"line_start\"],infos[\"curr_pos\"]-1,infos[\"curr_line\"],no_real_move);if(infos[\"line_nb\"]==1&&infos[\"line_start\"]!=ÃƒÂ.Ãƒâ€°[\"line_start\"])ÃƒÂ.scroll_to_view();}ÃƒÂ.Ãƒâ€°=infos;}tend=new Date().getTime();if(timer_checkup){setTimeout(\"eA.check_line_selection(Ãƒâ€¹)\",ÃƒÂ.check_line_selection_timer);}};EA.Ãƒâ€ž.get_selection_infos=ÃƒÆ’(){var sel={},start,end,len,str;ÃƒÂ.getIESelection();start=ÃƒÂ.Ãƒâ€š.selectionStart;end=ÃƒÂ.Ãƒâ€š.selectionEnd;if(ÃƒÂ.Ãƒâ€°[\"selectionStart\"]==start&&ÃƒÂ.Ãƒâ€°[\"selectionEnd\"]==end&&ÃƒÂ.Ãƒâ€°[\"full_text\"]==ÃƒÂ.Ãƒâ€š.ÃƒÅ ){return ÃƒÂ.Ãƒâ€°;}if(ÃƒÂ.tabulation!=\"\t\"&&ÃƒÂ.Ãƒâ€š.ÃƒÅ .indexOf(\"\t\")!=-1){len=ÃƒÂ.Ãƒâ€š.ÃƒÅ .Ãƒâ€ ;ÃƒÂ.Ãƒâ€š.ÃƒÅ =ÃƒÂ.replace_tab(ÃƒÂ.Ãƒâ€š.ÃƒÅ );start=end=start+(ÃƒÂ.Ãƒâ€š.ÃƒÅ .Ãƒâ€ -len);ÃƒÂ.area_select(start,0);}sel[\"selectionStart\"]=start;sel[\"selectionEnd\"]=end;sel[\"full_text\"]=ÃƒÂ.Ãƒâ€š.ÃƒÅ ;sel[\"line_start\"]=1;sel[\"line_nb\"]=1;sel[\"curr_pos\"]=0;sel[\"curr_line\"]=\"\";sel[\"indexOfCursor\"]=0;sel[\"selec_direction\"]=ÃƒÂ.Ãƒâ€°[\"selec_direction\"];var splitTab=sel[\"full_text\"].split(\"\\n\");var nbLine=Math.max(0,splitTab.Ãƒâ€ );var nbChar=Math.max(0,sel[\"full_text\"].Ãƒâ€ -(nbLine-1));if(sel[\"full_text\"].indexOf(\"\\r\")!=-1)nbChar=nbChar-(nbLine-1);sel[\"nb_line\"]=nbLine;sel[\"nb_char\"]=nbChar;if(start>0){str=sel[\"full_text\"].substr(0,start);sel[\"curr_pos\"]=start-str.lastIndexOf(\"\\n\");sel[\"line_start\"]=Math.max(1,str.split(\"\\n\").Ãƒâ€ );}\nelse{sel[\"curr_pos\"]=1;}if(end>start){sel[\"line_nb\"]=sel[\"full_text\"].substring(start,end).split(\"\\n\").Ãƒâ€ ;}sel[\"indexOfCursor\"]=start;sel[\"curr_line\"]=splitTab[Math.max(0,sel[\"line_start\"]-1)];if(sel[\"selectionStart\"]==ÃƒÂ.Ãƒâ€°[\"selectionStart\"]){if(sel[\"selectionEnd\"]>ÃƒÂ.Ãƒâ€°[\"selectionEnd\"])sel[\"selec_direction\"]=\"down\";\nelse if(sel[\"selectionEnd\"]==ÃƒÂ.Ãƒâ€°[\"selectionStart\"])sel[\"selec_direction\"]=ÃƒÂ.Ãƒâ€°[\"selec_direction\"];}\nelse if(sel[\"selectionStart\"]==ÃƒÂ.Ãƒâ€°[\"selectionEnd\"]&&sel[\"selectionEnd\"]>ÃƒÂ.Ãƒâ€°[\"selectionEnd\"]){sel[\"selec_direction\"]=\"down\";}\nelse{sel[\"selec_direction\"]=\"up\";}_$(\"nbLine\").innerHTML=nbLine;_$(\"nbChar\").innerHTML=nbChar;_$(\"linePos\").innerHTML=sel[\"line_start\"];_$(\"currPos\").innerHTML=sel[\"curr_pos\"];return sel;};EA.Ãƒâ€ž.getIESelection=ÃƒÆ’(){var selectionStart,selectionEnd,range,stored_range;if(!ÃƒÂ.isIE)return ÃƒÅ’;if(ÃƒÂ.Ãƒâ€¦['word_wrap'])ÃƒÂ.Ãƒâ€š.wrap='off';try{range=document.selection.createRange();stored_range=range.duplicate();stored_range.moveToElementText(ÃƒÂ.Ãƒâ€š);stored_range.setEndPoint('EndToEnd',range);if(stored_range.ÃƒË†Element()!=ÃƒÂ.Ãƒâ€š)throw \"invalid focus\";var scrollTop=ÃƒÂ.result.scrollTop+document.body.scrollTop;var relative_top=range.offsetTop-ÃƒË†.calculeOffsetTop(ÃƒÂ.Ãƒâ€š)+scrollTop;var line_start=Math.round((relative_top / ÃƒÂ.lineHeight)+1);var line_nb=Math.round(range.boundingHeight / ÃƒÂ.lineHeight);selectionStart=stored_range.text.Ãƒâ€ -range.text.Ãƒâ€ ;selectionStart+=(line_start-ÃƒÂ.Ãƒâ€š.ÃƒÅ .substr(0,selectionStart).split(\"\\n\").Ãƒâ€ )*2;selectionStart-=(line_start-ÃƒÂ.Ãƒâ€š.ÃƒÅ .substr(0,selectionStart).split(\"\\n\").Ãƒâ€ )* 2;selectionEnd=selectionStart+range.text.Ãƒâ€ ;selectionEnd+=(line_start+line_nb-1-ÃƒÂ.Ãƒâ€š.ÃƒÅ .substr(0,selectionEnd).split(\"\\n\").Ãƒâ€ )*2;ÃƒÂ.Ãƒâ€š.selectionStart=selectionStart;ÃƒÂ.Ãƒâ€š.selectionEnd=selectionEnd;}catch(e){}if(ÃƒÂ.Ãƒâ€¦['word_wrap'])ÃƒÂ.Ãƒâ€š.wrap='soft';};EA.Ãƒâ€ž.setIESelection=ÃƒÆ’(){var a=ÃƒÂ.Ãƒâ€š,nbLineStart,nbLineEnd,range;if(!ÃƒÂ.isIE)return ÃƒÅ’;nbLineStart=a.ÃƒÅ .substr(0,a.selectionStart).split(\"\\n\").Ãƒâ€ -1;nbLineEnd=a.ÃƒÅ .substr(0,a.selectionEnd).split(\"\\n\").Ãƒâ€ -1;range=document.selection.createRange();range.moveToElementText(a);range.setEndPoint('EndToStart',range);range.moveStart('character',a.selectionStart-nbLineStart);range.moveEnd('character',a.selectionEnd-nbLineEnd-(a.selectionStart-nbLineStart));range.select();};EA.Ãƒâ€ž.checkTextEvolution=ÃƒÆ’(lastText,newText){var ch={},baseStep=200,cpt=0,end,step,tStart=new Date().getTime();end=Math.min(newText.Ãƒâ€ ,lastText.Ãƒâ€ );step=baseStep;while(cpt<end&&step>=1){if(lastText.substr(cpt,step)==newText.substr(cpt,step)){cpt+=step;}\nelse{step=Math.floor(step/2);}}ch.posStart=cpt;ch.lineStart=newText.substr(0,ch.posStart).split(\"\\n\").Ãƒâ€ -1;cpt_last=lastText.Ãƒâ€ ;cpt=newText.Ãƒâ€ ;step=baseStep;while(cpt>=0&&cpt_last>=0&&step>=1){if(lastText.substr(cpt_last-step,step)==newText.substr(cpt-step,step)){cpt-=step;cpt_last-=step;}\nelse{step=Math.floor(step/2);}}ch.posNewEnd=cpt;ch.posLastEnd=cpt_last;if(ch.posNewEnd<=ch.posStart){if(lastText.Ãƒâ€  < newText.Ãƒâ€ ){ch.posNewEnd=ch.posStart+newText.Ãƒâ€ -lastText.Ãƒâ€ ;ch.posLastEnd=ch.posStart;}\nelse{ch.posLastEnd=ch.posStart+lastText.Ãƒâ€ -newText.Ãƒâ€ ;ch.posNewEnd=ch.posStart;}}ch.newText=newText.substring(ch.posStart,ch.posNewEnd);ch.lastText=lastText.substring(ch.posStart,ch.posLastEnd);ch.lineNewEnd=newText.substr(0,ch.posNewEnd).split(\"\\n\").Ãƒâ€ -1;ch.lineLastEnd=lastText.substr(0,ch.posLastEnd).split(\"\\n\").Ãƒâ€ -1;ch.newTextLine=newText.split(\"\\n\").slice(ch.lineStart,ch.lineNewEnd+1).join(\"\\n\");ch.lastTextLine=lastText.split(\"\\n\").slice(ch.lineStart,ch.lineLastEnd+1).join(\"\\n\");return ch;};EA.Ãƒâ€ž.tab_selection=ÃƒÆ’(){if(ÃƒÂ.is_tabbing)return;ÃƒÂ.is_tabbing=Ãƒâ€¹;ÃƒÂ.getIESelection();var start=ÃƒÂ.Ãƒâ€š.selectionStart;var end=ÃƒÂ.Ãƒâ€š.selectionEnd;var insText=ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(start,end);var pos_start=start;var pos_end=end;if(insText.Ãƒâ€ ==0){ÃƒÂ.Ãƒâ€š.ÃƒÅ =ÃƒÂ.Ãƒâ€š.ÃƒÅ .substr(0,start)+ÃƒÂ.tabulation+ÃƒÂ.Ãƒâ€š.ÃƒÅ .substr(end);pos_start=start+ÃƒÂ.tabulation.Ãƒâ€ ;pos_end=pos_start;}\nelse{start=Math.max(0,ÃƒÂ.Ãƒâ€š.ÃƒÅ .substr(0,start).lastIndexOf(\"\\n\")+1);endText=ÃƒÂ.Ãƒâ€š.ÃƒÅ .substr(end);startText=ÃƒÂ.Ãƒâ€š.ÃƒÅ .substr(0,start);tmp=ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(start,end).split(\"\\n\");insText=ÃƒÂ.tabulation+tmp.join(\"\\n\"+ÃƒÂ.tabulation);ÃƒÂ.Ãƒâ€š.ÃƒÅ =startText+insText+endText;pos_start=start;pos_end=ÃƒÂ.Ãƒâ€š.ÃƒÅ .indexOf(\"\\n\",startText.Ãƒâ€ +insText.Ãƒâ€ );if(pos_end==-1)pos_end=ÃƒÂ.Ãƒâ€š.ÃƒÅ .Ãƒâ€ ;}ÃƒÂ.Ãƒâ€š.selectionStart=pos_start;ÃƒÂ.Ãƒâ€š.selectionEnd=pos_end;if(ÃƒÂ.isIE){ÃƒÂ.setIESelection();setTimeout(\"eA.is_tabbing=ÃƒÅ’;\",100);}\nelse{ÃƒÂ.is_tabbing=ÃƒÅ’;}};EA.Ãƒâ€ž.invert_tab_selection=ÃƒÆ’(){var t=ÃƒÂ,a=ÃƒÂ.Ãƒâ€š;if(t.is_tabbing)return;t.is_tabbing=Ãƒâ€¹;t.getIESelection();var start=a.selectionStart;var end=a.selectionEnd;var insText=a.ÃƒÅ .substring(start,end);var pos_start=start;var pos_end=end;if(insText.Ãƒâ€ ==0){if(a.ÃƒÅ .substring(start-t.tabulation.Ãƒâ€ ,start)==t.tabulation){a.ÃƒÅ =a.ÃƒÅ .substr(0,start-t.tabulation.Ãƒâ€ )+a.ÃƒÅ .substr(end);pos_start=Math.max(0,start-t.tabulation.Ãƒâ€ );pos_end=pos_start;}}\nelse{start=a.ÃƒÅ .substr(0,start).lastIndexOf(\"\\n\")+1;endText=a.ÃƒÅ .substr(end);startText=a.ÃƒÅ .substr(0,start);tmp=a.ÃƒÅ .substring(start,end).split(\"\\n\");insText=\"\";for(i=0;i<tmp.Ãƒâ€ ;i++){for(j=0;j<t.tab_nb_char;j++){if(tmp[i].charAt(0)==\"\t\"){tmp[i]=tmp[i].substr(1);j=t.tab_nb_char;}\nelse if(tmp[i].charAt(0)==\" \")tmp[i]=tmp[i].substr(1);}insText+=tmp[i];if(i<tmp.Ãƒâ€ -1)insText+=\"\\n\";}a.ÃƒÅ =startText+insText+endText;pos_start=start;pos_end=a.ÃƒÅ .indexOf(\"\\n\",startText.Ãƒâ€ +insText.Ãƒâ€ );if(pos_end==-1)pos_end=a.ÃƒÅ .Ãƒâ€ ;}a.selectionStart=pos_start;a.selectionEnd=pos_end;if(t.isIE){t.setIESelection();setTimeout(\"eA.is_tabbing=ÃƒÅ’;\",100);}\nelse t.is_tabbing=ÃƒÅ’;};EA.Ãƒâ€ž.press_enter=ÃƒÆ’(){if(!ÃƒÂ.smooth_selection)return ÃƒÅ’;ÃƒÂ.getIESelection();var scrollTop=ÃƒÂ.result.scrollTop;var scrollLeft=ÃƒÂ.result.scrollLeft;var start=ÃƒÂ.Ãƒâ€š.selectionStart;var end=ÃƒÂ.Ãƒâ€š.selectionEnd;var start_last_line=Math.max(0,ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(0,start).lastIndexOf(\"\\n\")+1);var begin_line=ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(start_last_line,start).replace(/^([ \t]*).*/gm,\"$1\");var lineStart=ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(0,start).split(\"\\n\").Ãƒâ€ ;if(begin_line==\"\\n\"||begin_line==\"\\r\"||begin_line.Ãƒâ€ ==0){return ÃƒÅ’;}if(ÃƒÂ.isIE||(ÃƒÂ.isOpera&&ÃƒÂ.isOpera < 9.6)){begin_line=\"\\r\\n\"+begin_line;}\nelse{begin_line=\"\\n\"+begin_line;}ÃƒÂ.Ãƒâ€š.ÃƒÅ =ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(0,start)+begin_line+ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(end);ÃƒÂ.area_select(start+begin_line.Ãƒâ€ ,0);if(ÃƒÂ.isIE){ÃƒÂ.result.scrollTop=scrollTop;ÃƒÂ.result.scrollLeft=scrollLeft;}return Ãƒâ€¹;};EA.Ãƒâ€ž.findEndBracket=ÃƒÆ’(infos,bracket){var start=infos[\"indexOfCursor\"];var normal_order=Ãƒâ€¹;if(ÃƒÂ.assocBracket[bracket])endBracket=ÃƒÂ.assocBracket[bracket];\nelse if(ÃƒÂ.revertAssocBracket[bracket]){endBracket=ÃƒÂ.revertAssocBracket[bracket];normal_order=ÃƒÅ’;}var end=-1;var nbBracketOpen=0;for(var i=start;i<infos[\"full_text\"].Ãƒâ€ &&i>=0;){if(infos[\"full_text\"].charAt(i)==endBracket){nbBracketOpen--;if(nbBracketOpen<=0){end=i;break;}}\nelse if(infos[\"full_text\"].charAt(i)==bracket)nbBracketOpen++;if(normal_order)i++;\nelse i--;}if(end==-1)return ÃƒÅ’;var endLastLine=infos[\"full_text\"].substr(0,end).lastIndexOf(\"\\n\");if(endLastLine==-1)line=1;\nelse line=infos[\"full_text\"].substr(0,endLastLine).split(\"\\n\").Ãƒâ€ +1;var curPos=end-endLastLine-1;var endLineLength=infos[\"full_text\"].substring(end).split(\"\\n\")[0].Ãƒâ€ ;ÃƒÂ.displayToCursorPosition(\"end_bracket\",line,curPos,infos[\"full_text\"].substring(endLastLine+1,end+endLineLength));return Ãƒâ€¹;};EA.Ãƒâ€ž.displayToCursorPosition=ÃƒÆ’(id,start_line,cur_pos,lineContent,no_real_move){var elem,dest,content,posLeft=0,posTop,fixPadding,topOffset,endElem;elem=ÃƒÂ.test_font_size;dest=_$(id);content=\"<span id='test_font_size_inner'>\"+lineContent.substr(0,cur_pos).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\")+\"</span><span id='endTestFont'>\"+lineContent.substr(cur_pos).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\")+\"</span>\";if(ÃƒÂ.isIE||(ÃƒÂ.isOpera&&ÃƒÂ.isOpera < 9.6)){elem.innerHTML=\"<pre>\"+content.replace(/^\\r?\\n/,\"<br>\")+\"</pre>\";}\nelse{elem.innerHTML=content;}endElem=_$('endTestFont');topOffset=endElem.offsetTop;fixPadding=parseInt(ÃƒÂ.content_highlight.Ãƒâ€¡.paddingLeft.replace(\"px\",\"\"));posLeft=45+endElem.offsetLeft+(!isNaN(fixPadding)&&topOffset > 0 ? fixPadding:0);posTop=ÃƒÂ.getLinePosTop(start_line)+topOffset;if(ÃƒÂ.isIE&&cur_pos > 0&&endElem.offsetLeft==0){posTop+=ÃƒÂ.lineHeight;}if(no_real_move!=Ãƒâ€¹){dest.Ãƒâ€¡.top=posTop+\"px\";dest.Ãƒâ€¡.left=posLeft+\"px\";}dest.cursor_top=posTop;dest.cursor_left=posLeft;};EA.Ãƒâ€ž.getLinePosTop=ÃƒÆ’(start_line){var elem=_$('line_'+start_line),posTop=0;if(elem)posTop=elem.offsetTop;\nelse posTop=ÃƒÂ.lineHeight *(start_line-1);return posTop;};EA.Ãƒâ€ž.getTextHeight=ÃƒÆ’(text){var t=ÃƒÂ,elem,height;elem=t.test_font_size;content=text.replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\");if(t.isIE||(ÃƒÂ.isOpera&&ÃƒÂ.isOpera < 9.6)){elem.innerHTML=\"<pre>\"+content.replace(/^\\r?\\n/,\"<br>\")+\"</pre>\";}\nelse{elem.innerHTML=content;}height=elem.offsetHeight;height=Math.max(1,Math.floor(elem.offsetHeight / ÃƒÂ.lineHeight))* ÃƒÂ.lineHeight;return height;};EA.Ãƒâ€ž.fixLinesHeight=ÃƒÆ’(textValue,lineStart,lineEnd){var aText=textValue.split(\"\\n\");if(lineEnd==-1)lineEnd=aText.Ãƒâ€ -1;for(var i=Math.max(0,lineStart);i <=lineEnd;i++){if(elem=_$('line_'+(i+1))){elem.Ãƒâ€¡.height=typeof(aText[i])!=\"undefined\" ? ÃƒÂ.getTextHeight(aText[i])+\"px\":ÃƒÂ.lineHeight;}}};EA.Ãƒâ€ž.area_select=ÃƒÆ’(start,Ãƒâ€ ){ÃƒÂ.Ãƒâ€š.focus();start=Math.max(0,Math.min(ÃƒÂ.Ãƒâ€š.ÃƒÅ .Ãƒâ€ ,start));end=Math.max(start,Math.min(ÃƒÂ.Ãƒâ€š.ÃƒÅ .Ãƒâ€ ,start+Ãƒâ€ ));if(ÃƒÂ.isIE){ÃƒÂ.Ãƒâ€š.selectionStart=start;ÃƒÂ.Ãƒâ€š.selectionEnd=end;ÃƒÂ.setIESelection();}\nelse{if(ÃƒÂ.isOpera&&ÃƒÂ.isOpera < 9.6){ÃƒÂ.Ãƒâ€š.setSelectionRange(0,0);}ÃƒÂ.Ãƒâ€š.setSelectionRange(start,end);}ÃƒÂ.check_line_selection();};EA.Ãƒâ€ž.area_get_selection=ÃƒÆ’(){var text=\"\";if(document.selection){var range=document.selection.createRange();text=range.text;}\nelse{text=ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(ÃƒÂ.Ãƒâ€š.selectionStart,ÃƒÂ.Ãƒâ€š.selectionEnd);}return text;}; EA.Ãƒâ€ž.replace_tab=ÃƒÆ’(text){return text.replace(/((\\n?)([^\t\\n]*)\t)/gi,eA.smartTab);};EA.Ãƒâ€ž.smartTab=ÃƒÆ’(){val=\"                   \";return EA.Ãƒâ€ž.smartTab.arguments[2]+EA.Ãƒâ€ž.smartTab.arguments[3]+val.substr(0,eA.tab_nb_char-(EA.Ãƒâ€ž.smartTab.arguments[3].Ãƒâ€ )%eA.tab_nb_char);};EA.Ãƒâ€ž.show_waiting_screen=ÃƒÆ’(){width=ÃƒÂ.editor_area.offsetWidth;height=ÃƒÂ.editor_area.offsetHeight;if(!(ÃƒÂ.isIE&&ÃƒÂ.isIE<6)){width-=2;height-=2;}ÃƒÂ.processing_screen.Ãƒâ€¡.display=\"block\";ÃƒÂ.processing_screen.Ãƒâ€¡.width=width+\"px\";ÃƒÂ.processing_screen.Ãƒâ€¡.height=height+\"px\";ÃƒÂ.waiting_screen_displayed=Ãƒâ€¹;};EA.Ãƒâ€ž.hide_waiting_screen=ÃƒÆ’(){ÃƒÂ.processing_screen.Ãƒâ€¡.display=\"none\";ÃƒÂ.waiting_screen_displayed=ÃƒÅ’;};EA.Ãƒâ€ž.add_Ãƒâ€¡=ÃƒÆ’(Ãƒâ€¡s){if(Ãƒâ€¡s.Ãƒâ€ >0){newcss=document.createElement(\"Ãƒâ€¡\");newcss.type=\"text/css\";newcss.media=\"all\";if(newcss.Ãƒâ€¡Sheet){newcss.Ãƒâ€¡Sheet.cssText=Ãƒâ€¡s;}\nelse{newcss.appendChild(document.createTextNode(Ãƒâ€¡s));}document.getElementsByTagName(\"head\")[0].appendChild(newcss);}};EA.Ãƒâ€ž.set_font=ÃƒÆ’(family,size){var t=ÃƒÂ,a=ÃƒÂ.Ãƒâ€š,s=ÃƒÂ.Ãƒâ€¦,elem_font,i,elem;var elems=[\"Ãƒâ€š\",\"content_highlight\",\"cursor_pos\",\"end_bracket\",\"selection_field\",\"selection_field_text\",\"line_number\"];if(family&&family!=\"\")s[\"font_family\"]=family;if(size&&size>0)s[\"font_size\"]=size;if(t.isOpera&&t.isOpera < 9.6)s['font_family']=\"monospace\";if(elem_font=_$(\"area_font_size\")){for(i=0;i < elem_font.Ãƒâ€ ;i++){if(elem_font.options[i].ÃƒÅ &&elem_font.options[i].ÃƒÅ ==s[\"font_size\"])elem_font.options[i].selected=Ãƒâ€¹;}}if(t.isFirefox){var nbTry=3;do{var div1=document.createElement('div'),text1=document.createElement('Ãƒâ€š');var Ãƒâ€¡s={width:'40px',overflow:'scroll',zIndex:50,visibility:'hidden',fontFamily:s[\"font_family\"],fontSize:s[\"font_size\"]+\"pt\",lineHeight:t.lineHeight+\"px\",padding:'0',margin:'0',border:'none',whiteSpace:'nowrap'};var diff,changed=ÃƒÅ’;for(i in Ãƒâ€¡s){div1.Ãƒâ€¡[ i ]=Ãƒâ€¡s[i];text1.Ãƒâ€¡[ i ]=Ãƒâ€¡s[i];}text1.wrap='off';text1.setAttribute('wrap','off');t.container.appendChild(div1);t.container.appendChild(text1);div1.innerHTML=text1.ÃƒÅ ='azertyuiopqsdfghjklm';div1.innerHTML=text1.ÃƒÅ =text1.ÃƒÅ +'wxcvbn^p*ÃƒÂ¹$!:;,,';diff=text1.scrollWidth-div1.scrollWidth;if(Math.abs(diff)>=2){s[\"font_size\"]++;changed=Ãƒâ€¹;}t.container.removeChild(div1);t.container.removeChild(text1);nbTry--;}while(changed&&nbTry > 0);}elem=t.test_font_size;elem.Ãƒâ€¡.fontFamily=\"\"+s[\"font_family\"];elem.Ãƒâ€¡.fontSize=s[\"font_size\"]+\"pt\";elem.innerHTML=\"0\";t.lineHeight=elem.offsetHeight;for(i=0;i<elems.Ãƒâ€ ;i++){elem=_$(elems[i]);elem.Ãƒâ€¡.fontFamily=s[\"font_family\"];elem.Ãƒâ€¡.fontSize=s[\"font_size\"]+\"pt\";elem.Ãƒâ€¡.lineHeight=t.lineHeight+\"px\";}t.add_Ãƒâ€¡(\"pre{font-family:\"+s[\"font_family\"]+\"}\");if((t.isOpera&&t.isOpera < 9.6)||t.isIE >=8){var parNod=a.ÃƒË†Node,nxtSib=a.nextSibling,start=a.selectionStart,end=a.selectionEnd;parNod.removeChild(a);parNod.insertBefore(a,nxtSib);t.area_select(start,end-start);}ÃƒÂ.focus();ÃƒÂ.update_size();ÃƒÂ.check_line_selection();};EA.Ãƒâ€ž.change_font_size=ÃƒÆ’(){var size=_$(\"area_font_size\").ÃƒÅ ;if(size>0)ÃƒÂ.set_font(\"\",size);};EA.Ãƒâ€ž.open_inline_popup=ÃƒÆ’(popup_id){ÃƒÂ.close_all_inline_popup();var popup=_$(popup_id);var editor=_$(\"editor\");for(var i=0;i<ÃƒÂ.inlinePopup.Ãƒâ€ ;i++){if(ÃƒÂ.inlinePopup[i][\"popup_id\"]==popup_id){var icon=_$(ÃƒÂ.inlinePopup[i][\"icon_id\"]);if(icon){ÃƒÂ.switchClassSticky(icon,'editAreaButtonSelected',Ãƒâ€¹);break;}}}popup.Ãƒâ€¡.height=\"auto\";popup.Ãƒâ€¡.overflow=\"visible\";if(document.body.offsetHeight< popup.offsetHeight){popup.Ãƒâ€¡.height=(document.body.offsetHeight-10)+\"px\";popup.Ãƒâ€¡.overflow=\"auto\";}if(!popup.positionned){var new_left=editor.offsetWidth /2-popup.offsetWidth /2;var new_top=editor.offsetHeight /2-popup.offsetHeight /2;popup.Ãƒâ€¡.left=new_left+\"px\";popup.Ãƒâ€¡.top=new_top+\"px\";popup.positionned=Ãƒâ€¹;}popup.Ãƒâ€¡.visibility=\"visible\";};EA.Ãƒâ€ž.close_inline_popup=ÃƒÆ’(popup_id){var popup=_$(popup_id);for(var i=0;i<ÃƒÂ.inlinePopup.Ãƒâ€ ;i++){if(ÃƒÂ.inlinePopup[i][\"popup_id\"]==popup_id){var icon=_$(ÃƒÂ.inlinePopup[i][\"icon_id\"]);if(icon){ÃƒÂ.switchClassSticky(icon,'editAreaButtonNormal',ÃƒÅ’);break;}}}popup.Ãƒâ€¡.visibility=\"hidden\";};EA.Ãƒâ€ž.close_all_inline_popup=ÃƒÆ’(e){for(var i=0;i<ÃƒÂ.inlinePopup.Ãƒâ€ ;i++){ÃƒÂ.close_inline_popup(ÃƒÂ.inlinePopup[i][\"popup_id\"]);}ÃƒÂ.Ãƒâ€š.focus();};EA.Ãƒâ€ž.show_help=ÃƒÆ’(){ÃƒÂ.open_inline_popup(\"edit_area_help\");};EA.Ãƒâ€ž.new_document=ÃƒÆ’(){ÃƒÂ.Ãƒâ€š.ÃƒÅ =\"\";ÃƒÂ.area_select(0,0);};EA.Ãƒâ€ž.get_all_toolbar_height=ÃƒÆ’(){var area=_$(\"editor\");var results=ÃƒË†.getChildren(area,\"div\",\"class\",\"area_toolbar\",\"all\",\"0\");var height=0;for(var i=0;i<results.Ãƒâ€ ;i++){height+=results[i].offsetHeight;}return height;};EA.Ãƒâ€ž.go_to_line=ÃƒÆ’(line){if(!line){var icon=_$(\"go_to_line\");if(icon !=null){ÃƒÂ.restoreClass(icon);ÃƒÂ.switchClassSticky(icon,'editAreaButtonSelected',Ãƒâ€¹);}line=prompt(ÃƒÂ.get_translation(\"go_to_line_prompt\"));if(icon !=null)ÃƒÂ.switchClassSticky(icon,'editAreaButtonNormal',ÃƒÅ’);}if(line&&line!=null&&line.search(/^[0-9]+$/)!=-1){var start=0;var lines=ÃƒÂ.Ãƒâ€š.ÃƒÅ .split(\"\\n\");if(line > lines.Ãƒâ€ )start=ÃƒÂ.Ãƒâ€š.ÃƒÅ .Ãƒâ€ ;\nelse{for(var i=0;i<Math.min(line-1,lines.Ãƒâ€ );i++)start+=lines[i].Ãƒâ€ +1;}ÃƒÂ.area_select(start,0);}};EA.Ãƒâ€ž.change_smooth_selection_mode=ÃƒÆ’(setTo){if(ÃƒÂ.do_highlight)return;if(setTo !=null){if(setTo===ÃƒÅ’)ÃƒÂ.smooth_selection=Ãƒâ€¹;\nelse ÃƒÂ.smooth_selection=ÃƒÅ’;}var icon=_$(\"change_smooth_selection\");ÃƒÂ.Ãƒâ€š.focus();if(ÃƒÂ.smooth_selection===Ãƒâ€¹){ÃƒÂ.switchClassSticky(icon,'editAreaButtonNormal',ÃƒÅ’);ÃƒÂ.smooth_selection=ÃƒÅ’;ÃƒÂ.selection_field.Ãƒâ€¡.display=\"none\";_$(\"cursor_pos\").Ãƒâ€¡.display=\"none\";_$(\"end_bracket\").Ãƒâ€¡.display=\"none\";}\nelse{ÃƒÂ.switchClassSticky(icon,'editAreaButtonSelected',ÃƒÅ’);ÃƒÂ.smooth_selection=Ãƒâ€¹;ÃƒÂ.selection_field.Ãƒâ€¡.display=\"block\";_$(\"cursor_pos\").Ãƒâ€¡.display=\"block\";_$(\"end_bracket\").Ãƒâ€¡.display=\"block\";}};EA.Ãƒâ€ž.scroll_to_view=ÃƒÆ’(show){var zone,lineElem;if(!ÃƒÂ.smooth_selection)return;zone=_$(\"result\");var cursor_pos_top=_$(\"cursor_pos\").cursor_top;if(show==\"bottom\"){cursor_pos_top+=ÃƒÂ.getLinePosTop(ÃƒÂ.Ãƒâ€°['line_start']+ÃƒÂ.Ãƒâ€°['line_nb']-1);}var max_height_visible=zone.clientHeight+zone.scrollTop;var miss_top=cursor_pos_top+ÃƒÂ.lineHeight-max_height_visible;if(miss_top>0){zone.scrollTop=zone.scrollTop+miss_top;}\nelse if(zone.scrollTop > cursor_pos_top){zone.scrollTop=cursor_pos_top;}var cursor_pos_left=_$(\"cursor_pos\").cursor_left;var max_width_visible=zone.clientWidth+zone.scrollLeft;var miss_left=cursor_pos_left+10-max_width_visible;if(miss_left>0){zone.scrollLeft=zone.scrollLeft+miss_left+50;}\nelse if(zone.scrollLeft > cursor_pos_left){zone.scrollLeft=cursor_pos_left;}\nelse if(zone.scrollLeft==45){zone.scrollLeft=0;}};EA.Ãƒâ€ž.check_undo=ÃƒÆ’(only_once){if(!eAs[ÃƒÂ.id])return ÃƒÅ’;if(ÃƒÂ.Ãƒâ€šFocused&&eAs[ÃƒÂ.id][\"displayed\"]==Ãƒâ€¹){var text=ÃƒÂ.Ãƒâ€š.ÃƒÅ ;if(ÃƒÂ.previous.Ãƒâ€ <=1)ÃƒÂ.switchClassSticky(_$(\"undo\"),'editAreaButtonDisabled',Ãƒâ€¹);if(!ÃƒÂ.previous[ÃƒÂ.previous.Ãƒâ€ -1]||ÃƒÂ.previous[ÃƒÂ.previous.Ãƒâ€ -1][\"text\"] !=text){ÃƒÂ.previous.push({\"text\":text,\"selStart\":ÃƒÂ.Ãƒâ€š.selectionStart,\"selEnd\":ÃƒÂ.Ãƒâ€š.selectionEnd});if(ÃƒÂ.previous.Ãƒâ€  > ÃƒÂ.Ãƒâ€¦[\"max_undo\"]+1)ÃƒÂ.previous.shift();}if(ÃƒÂ.previous.Ãƒâ€  >=2)ÃƒÂ.switchClassSticky(_$(\"undo\"),'editAreaButtonNormal',ÃƒÅ’);}if(!only_once)setTimeout(\"eA.check_undo()\",3000);};EA.Ãƒâ€ž.undo=ÃƒÆ’(){if(ÃƒÂ.previous.Ãƒâ€  > 0){ÃƒÂ.getIESelection();ÃƒÂ.next.push({\"text\":ÃƒÂ.Ãƒâ€š.ÃƒÅ ,\"selStart\":ÃƒÂ.Ãƒâ€š.selectionStart,\"selEnd\":ÃƒÂ.Ãƒâ€š.selectionEnd});var prev=ÃƒÂ.previous.pop();if(prev[\"text\"]==ÃƒÂ.Ãƒâ€š.ÃƒÅ &&ÃƒÂ.previous.Ãƒâ€  > 0)prev=ÃƒÂ.previous.pop();ÃƒÂ.Ãƒâ€š.ÃƒÅ =prev[\"text\"];ÃƒÂ.last_undo=prev[\"text\"];ÃƒÂ.area_select(prev[\"selStart\"],prev[\"selEnd\"]-prev[\"selStart\"]);ÃƒÂ.switchClassSticky(_$(\"redo\"),'editAreaButtonNormal',ÃƒÅ’);ÃƒÂ.resync_highlight(Ãƒâ€¹);ÃƒÂ.check_file_changes();}};EA.Ãƒâ€ž.redo=ÃƒÆ’(){if(ÃƒÂ.next.Ãƒâ€  > 0){var next=ÃƒÂ.next.pop();ÃƒÂ.previous.push(next);ÃƒÂ.Ãƒâ€š.ÃƒÅ =next[\"text\"];ÃƒÂ.last_undo=next[\"text\"];ÃƒÂ.area_select(next[\"selStart\"],next[\"selEnd\"]-next[\"selStart\"]);ÃƒÂ.switchClassSticky(_$(\"undo\"),'editAreaButtonNormal',ÃƒÅ’);ÃƒÂ.resync_highlight(Ãƒâ€¹);ÃƒÂ.check_file_changes();}if(ÃƒÂ.next.Ãƒâ€ ==0)ÃƒÂ.switchClassSticky(_$(\"redo\"),'editAreaButtonDisabled',Ãƒâ€¹);};EA.Ãƒâ€ž.check_redo=ÃƒÆ’(){if(eA.next.Ãƒâ€ ==0||eA.Ãƒâ€š.ÃƒÅ !=eA.last_undo){eA.next=[];eA.switchClassSticky(_$(\"redo\"),'editAreaButtonDisabled',Ãƒâ€¹);}\nelse{ÃƒÂ.switchClassSticky(_$(\"redo\"),'editAreaButtonNormal',ÃƒÅ’);}};EA.Ãƒâ€ž.switchClass=ÃƒÆ’(element,class_name,lock_state){var lockChanged=ÃƒÅ’;if(typeof(lock_state)!=\"undefined\"&&element !=null){element.classLock=lock_state;lockChanged=Ãƒâ€¹;}if(element !=null&&(lockChanged||!element.classLock)){element.oldClassName=element.className;element.className=class_name;}};EA.Ãƒâ€ž.restoreAndSwitchClass=ÃƒÆ’(element,class_name){if(element !=null&&!element.classLock){ÃƒÂ.restoreClass(element);ÃƒÂ.switchClass(element,class_name);}};EA.Ãƒâ€ž.restoreClass=ÃƒÆ’(element){if(element !=null&&element.oldClassName&&!element.classLock){element.className=element.oldClassName;element.oldClassName=null;}};EA.Ãƒâ€ž.setClassLock=ÃƒÆ’(element,lock_state){if(element !=null)element.classLock=lock_state;};EA.Ãƒâ€ž.switchClassSticky=ÃƒÆ’(element,class_name,lock_state){var lockChanged=ÃƒÅ’;if(typeof(lock_state)!=\"undefined\"&&element !=null){element.classLock=lock_state;lockChanged=Ãƒâ€¹;}if(element !=null&&(lockChanged||!element.classLock)){element.className=class_name;element.oldClassName=class_name;}};EA.Ãƒâ€ž.scroll_page=ÃƒÆ’(params){var dir=params[\"dir\"],shift_pressed=params[\"shift\"];var lines=ÃƒÂ.Ãƒâ€š.ÃƒÅ .split(\"\\n\");var new_pos=0,Ãƒâ€ =0,char_left=0,line_nb=0,curLine=0;var toScrollAmount=_$(\"result\").clientHeight-30;var nbLineToScroll=0,diff=0;if(dir==\"up\"){nbLineToScroll=Math.ceil(toScrollAmount / ÃƒÂ.lineHeight);for(i=ÃƒÂ.Ãƒâ€°[\"line_start\"];i-diff > ÃƒÂ.Ãƒâ€°[\"line_start\"]-nbLineToScroll;i--){if(elem=_$('line_'+i)){diff+=Math.floor((elem.offsetHeight-1)/ ÃƒÂ.lineHeight);}}nbLineToScroll-=diff;if(ÃƒÂ.Ãƒâ€°[\"selec_direction\"]==\"up\"){for(line_nb=0;line_nb< Math.min(ÃƒÂ.Ãƒâ€°[\"line_start\"]-nbLineToScroll,lines.Ãƒâ€ );line_nb++){new_pos+=lines[line_nb].Ãƒâ€ +1;}char_left=Math.min(lines[Math.min(lines.Ãƒâ€ -1,line_nb)].Ãƒâ€ ,ÃƒÂ.Ãƒâ€°[\"curr_pos\"]-1);if(shift_pressed)Ãƒâ€ =ÃƒÂ.Ãƒâ€°[\"selectionEnd\"]-new_pos-char_left;ÃƒÂ.area_select(new_pos+char_left,Ãƒâ€ );view=\"top\";}\nelse{view=\"bottom\";for(line_nb=0;line_nb< Math.min(ÃƒÂ.Ãƒâ€°[\"line_start\"]+ÃƒÂ.Ãƒâ€°[\"line_nb\"]-1-nbLineToScroll,lines.Ãƒâ€ );line_nb++){new_pos+=lines[line_nb].Ãƒâ€ +1;}char_left=Math.min(lines[Math.min(lines.Ãƒâ€ -1,line_nb)].Ãƒâ€ ,ÃƒÂ.Ãƒâ€°[\"curr_pos\"]-1);if(shift_pressed){start=Math.min(ÃƒÂ.Ãƒâ€°[\"selectionStart\"],new_pos+char_left);Ãƒâ€ =Math.max(new_pos+char_left,ÃƒÂ.Ãƒâ€°[\"selectionStart\"])-start;if(new_pos+char_left < ÃƒÂ.Ãƒâ€°[\"selectionStart\"])view=\"top\";}\nelse start=new_pos+char_left;ÃƒÂ.area_select(start,Ãƒâ€ );}}\nelse{var nbLineToScroll=Math.floor(toScrollAmount / ÃƒÂ.lineHeight);for(i=ÃƒÂ.Ãƒâ€°[\"line_start\"];i+diff < ÃƒÂ.Ãƒâ€°[\"line_start\"]+nbLineToScroll;i++){if(elem=_$('line_'+i)){diff+=Math.floor((elem.offsetHeight-1)/ ÃƒÂ.lineHeight);}}nbLineToScroll-=diff;if(ÃƒÂ.Ãƒâ€°[\"selec_direction\"]==\"down\"){view=\"bottom\";for(line_nb=0;line_nb< Math.min(ÃƒÂ.Ãƒâ€°[\"line_start\"]+ÃƒÂ.Ãƒâ€°[\"line_nb\"]-2+nbLineToScroll,lines.Ãƒâ€ );line_nb++){if(line_nb==ÃƒÂ.Ãƒâ€°[\"line_start\"]-1)char_left=ÃƒÂ.Ãƒâ€°[\"selectionStart\"]-new_pos;new_pos+=lines[line_nb].Ãƒâ€ +1;}if(shift_pressed){Ãƒâ€ =Math.abs(ÃƒÂ.Ãƒâ€°[\"selectionStart\"]-new_pos);Ãƒâ€ +=Math.min(lines[Math.min(lines.Ãƒâ€ -1,line_nb)].Ãƒâ€ ,ÃƒÂ.Ãƒâ€°[\"curr_pos\"]);ÃƒÂ.area_select(Math.min(ÃƒÂ.Ãƒâ€°[\"selectionStart\"],new_pos),Ãƒâ€ );}\nelse{ÃƒÂ.area_select(new_pos+char_left,0);}}\nelse{view=\"top\";for(line_nb=0;line_nb< Math.min(ÃƒÂ.Ãƒâ€°[\"line_start\"]+nbLineToScroll-1,lines.Ãƒâ€ ,lines.Ãƒâ€ );line_nb++){if(line_nb==ÃƒÂ.Ãƒâ€°[\"line_start\"]-1)char_left=ÃƒÂ.Ãƒâ€°[\"selectionStart\"]-new_pos;new_pos+=lines[line_nb].Ãƒâ€ +1;}if(shift_pressed){Ãƒâ€ =Math.abs(ÃƒÂ.Ãƒâ€°[\"selectionEnd\"]-new_pos-char_left);Ãƒâ€ +=Math.min(lines[Math.min(lines.Ãƒâ€ -1,line_nb)].Ãƒâ€ ,ÃƒÂ.Ãƒâ€°[\"curr_pos\"])-char_left-1;ÃƒÂ.area_select(Math.min(ÃƒÂ.Ãƒâ€°[\"selectionEnd\"],new_pos+char_left),Ãƒâ€ );if(new_pos+char_left > ÃƒÂ.Ãƒâ€°[\"selectionEnd\"])view=\"bottom\";}\nelse{ÃƒÂ.area_select(new_pos+char_left,0);}}}ÃƒÂ.check_line_selection();ÃƒÂ.scroll_to_view(view);};EA.Ãƒâ€ž.start_resize=ÃƒÆ’(e){ÃƒË†.eAL.resize[\"id\"]=eA.id;ÃƒË†.eAL.resize[\"start_x\"]=(e)? e.pageX:event.x+document.body.scrollLeft;ÃƒË†.eAL.resize[\"start_y\"]=(e)? e.pageY:event.y+document.body.scrollTop;if(eA.isIE){eA.Ãƒâ€š.focus();eA.getIESelection();}ÃƒË†.eAL.resize[\"selectionStart\"]=eA.Ãƒâ€š.selectionStart;ÃƒË†.eAL.resize[\"selectionEnd\"]=eA.Ãƒâ€š.selectionEnd;ÃƒË†.eAL.start_resize_area();};EA.Ãƒâ€ž.toggle_full_screen=ÃƒÆ’(to){var t=ÃƒÂ,p=ÃƒË†,a=t.Ãƒâ€š,html,frame,selStart,selEnd,old,icon;if(typeof(to)==\"undefined\")to=!t.fullscreen['isFull'];old=t.fullscreen['isFull'];t.fullscreen['isFull']=to;icon=_$(\"fullscreen\");selStart=t.Ãƒâ€š.selectionStart;selEnd=t.Ãƒâ€š.selectionEnd;html=p.document.getElementsByTagName(\"html\")[0];frame=p.document.getElementById(\"frame_\"+t.id);if(to&&to!=old){t.fullscreen['old_overflow']=p.get_css_property(html,\"overflow\");t.fullscreen['old_height']=p.get_css_property(html,\"height\");t.fullscreen['old_width']=p.get_css_property(html,\"width\");t.fullscreen['old_scrollTop']=html.scrollTop;t.fullscreen['old_scrollLeft']=html.scrollLeft;t.fullscreen['old_zIndex']=p.get_css_property(frame,\"z-index\");if(t.isOpera){html.Ãƒâ€¡.height=\"100%\";html.Ãƒâ€¡.width=\"100%\";}html.Ãƒâ€¡.overflow=\"hidden\";html.scrollTop=0;html.scrollLeft=0;frame.Ãƒâ€¡.position=\"absolute\";frame.Ãƒâ€¡.width=html.clientWidth+\"px\";frame.Ãƒâ€¡.height=html.clientHeight+\"px\";frame.Ãƒâ€¡.display=\"block\";frame.Ãƒâ€¡.zIndex=\"999999\";frame.Ãƒâ€¡.top=\"0px\";frame.Ãƒâ€¡.left=\"0px\";frame.Ãƒâ€¡.top=\"-\"+p.calculeOffsetTop(frame)+\"px\";frame.Ãƒâ€¡.left=\"-\"+p.calculeOffsetLeft(frame)+\"px\";t.switchClassSticky(icon,'editAreaButtonSelected',ÃƒÅ’);t.fullscreen['allow_resize']=t.resize_allowed;t.allow_resize(ÃƒÅ’);if(t.isFirefox){p.eAL.execCommand(t.id,\"update_size();\");t.area_select(selStart,selEnd-selStart);t.scroll_to_view();t.focus();}\nelse{setTimeout(\"ÃƒË†.eAL.execCommand('\"+t.id+\"','update_size();');eA.focus();\",10);}}\nelse if(to!=old){frame.Ãƒâ€¡.position=\"static\";frame.Ãƒâ€¡.zIndex=t.fullscreen['old_zIndex'];if(t.isOpera){html.Ãƒâ€¡.height=\"auto\";html.Ãƒâ€¡.width=\"auto\";html.Ãƒâ€¡.overflow=\"auto\";}\nelse if(t.isIE&&p!=top){html.Ãƒâ€¡.overflow=\"auto\";}\nelse{html.Ãƒâ€¡.overflow=t.fullscreen['old_overflow'];}html.scrollTop=t.fullscreen['old_scrollTop'];html.scrollLeft=t.fullscreen['old_scrollLeft'];p.eAL.hide(t.id);p.eAL.show(t.id);t.switchClassSticky(icon,'editAreaButtonNormal',ÃƒÅ’);if(t.fullscreen['allow_resize'])t.allow_resize(t.fullscreen['allow_resize']);if(t.isFirefox){t.area_select(selStart,selEnd-selStart);setTimeout(\"eA.scroll_to_view();\",10);}}};EA.Ãƒâ€ž.allow_resize=ÃƒÆ’(allow){var resize=_$(\"resize_area\");if(allow){resize.Ãƒâ€¡.visibility=\"visible\";ÃƒË†.eAL.add_event(resize,\"mouseup\",eA.start_resize);}\nelse{resize.Ãƒâ€¡.visibility=\"hidden\";ÃƒË†.eAL.remove_event(resize,\"mouseup\",eA.start_resize);}ÃƒÂ.resize_allowed=allow;};EA.Ãƒâ€ž.change_syntax=ÃƒÆ’(new_syntax,is_waiting){if(new_syntax==ÃƒÂ.Ãƒâ€¦['syntax'])return Ãƒâ€¹;var founded=ÃƒÅ’;for(var i=0;i<ÃƒÂ.syntax_list.Ãƒâ€ ;i++){if(ÃƒÂ.syntax_list[i]==new_syntax)founded=Ãƒâ€¹;}if(founded==Ãƒâ€¹){if(!ÃƒË†.eAL.load_syntax[new_syntax]){if(!is_waiting)ÃƒË†.eAL.load_script(ÃƒË†.eAL.baseURL+\"reg_syntax/\"+new_syntax+\".js\");setTimeout(\"eA.change_syntax('\"+new_syntax+\"',Ãƒâ€¹);\",100);ÃƒÂ.show_waiting_screen();}\nelse{if(!ÃƒÂ.allready_used_syntax[new_syntax]){ÃƒË†.eAL.init_syntax_regexp();ÃƒÂ.add_Ãƒâ€¡(ÃƒË†.eAL.syntax[new_syntax][\"Ãƒâ€¡s\"]);ÃƒÂ.allready_used_syntax[new_syntax]=Ãƒâ€¹;}var sel=_$(\"syntax_selection\");if(sel&&sel.ÃƒÅ !=new_syntax){for(var i=0;i<sel.Ãƒâ€ ;i++){if(sel.options[i].ÃƒÅ &&sel.options[i].ÃƒÅ ==new_syntax)sel.options[i].selected=Ãƒâ€¹;}}ÃƒÂ.Ãƒâ€¦['syntax']=new_syntax;ÃƒÂ.resync_highlight(Ãƒâ€¹);ÃƒÂ.hide_waiting_screen();return Ãƒâ€¹;}}return ÃƒÅ’;};EA.Ãƒâ€ž.set_editable=ÃƒÆ’(is_editable){if(is_editable){document.body.className=\"\";ÃƒÂ.Ãƒâ€š.readOnly=ÃƒÅ’;ÃƒÂ.is_editable=Ãƒâ€¹;}\nelse{document.body.className=\"non_editable\";ÃƒÂ.Ãƒâ€š.readOnly=Ãƒâ€¹;ÃƒÂ.is_editable=ÃƒÅ’;}if(eAs[ÃƒÂ.id][\"displayed\"]==Ãƒâ€¹)ÃƒÂ.update_size();};EA.Ãƒâ€ž.toggle_word_wrap=ÃƒÆ’(){ÃƒÂ.set_word_wrap(!ÃƒÂ.Ãƒâ€¦['word_wrap']);};EA.Ãƒâ€ž.set_word_wrap=ÃƒÆ’(to){var t=ÃƒÂ,a=t.Ãƒâ€š;if(t.isOpera&&t.isOpera < 9.8){ÃƒÂ.Ãƒâ€¦['word_wrap']=ÃƒÅ’;t.switchClassSticky(_$(\"word_wrap\"),'editAreaButtonDisabled',Ãƒâ€¹);return ÃƒÅ’;}if(to){wrap_mode='soft';ÃƒÂ.container.className+=' word_wrap';ÃƒÂ.container.Ãƒâ€¡.width=\"\";ÃƒÂ.content_highlight.Ãƒâ€¡.width=\"\";a.Ãƒâ€¡.width=\"100%\";if(t.isIE&&t.isIE < 7){a.Ãƒâ€¡.width=(a.offsetWidth-5)+\"px\";}t.switchClassSticky(_$(\"word_wrap\"),'editAreaButtonSelected',ÃƒÅ’);}\nelse{wrap_mode='off';ÃƒÂ.container.className=ÃƒÂ.container.className.replace(/word_wrap/g,'');t.switchClassSticky(_$(\"word_wrap\"),'editAreaButtonNormal',Ãƒâ€¹);}ÃƒÂ.Ãƒâ€š.previous_scrollWidth='';ÃƒÂ.Ãƒâ€š.previous_scrollHeight='';a.wrap=wrap_mode;if((ÃƒÂ.isChrome||ÃƒÂ.isSafari)&&wrap_mode==='off'){a.Ãƒâ€¡.whiteSpace='pre';a.Ãƒâ€¡.wordWrap='normal';}a.setAttribute('wrap',wrap_mode);if(!ÃƒÂ.isIE){var start=a.selectionStart,end=a.selectionEnd;var parNod=a.ÃƒË†Node,nxtSib=a.nextSibling;parNod.removeChild(a);parNod.insertBefore(a,nxtSib);ÃƒÂ.area_select(start,end-start);}ÃƒÂ.Ãƒâ€¦['word_wrap']=to;ÃƒÂ.focus();ÃƒÂ.update_size();ÃƒÂ.check_line_selection();};EA.Ãƒâ€ž.open_file=ÃƒÆ’(Ãƒâ€¦){if(Ãƒâ€¦['id']!=\"undefined\"){var id=Ãƒâ€¦['id'];var new_file={};new_file['id']=id;new_file['title']=id;new_file['text']=\"\";new_file['Ãƒâ€°']=\"\";new_file['last_text_to_highlight']=\"\";new_file['last_hightlighted_text']=\"\";new_file['previous']=[];new_file['next']=[];new_file['last_undo']=\"\";new_file['smooth_selection']=ÃƒÂ.Ãƒâ€¦['smooth_selection'];new_file['do_highlight']=ÃƒÂ.Ãƒâ€¦['start_highlight'];new_file['syntax']=ÃƒÂ.Ãƒâ€¦['syntax'];new_file['scroll_top']=0;new_file['scroll_left']=0;new_file['selection_start']=0;new_file['selection_end']=0;new_file['edited']=ÃƒÅ’;new_file['font_size']=ÃƒÂ.Ãƒâ€¦[\"font_size\"];new_file['font_family']=ÃƒÂ.Ãƒâ€¦[\"font_family\"];new_file['word_wrap']=ÃƒÂ.Ãƒâ€¦[\"word_wrap\"];new_file['toolbar']={'links':{},'selects':{}};new_file['compare_edited_text']=new_file['text'];ÃƒÂ.files[id]=new_file;ÃƒÂ.update_file(id,Ãƒâ€¦);ÃƒÂ.files[id]['compare_edited_text']=ÃƒÂ.files[id]['text'];var html_id='tab_file_'+encodeURIComponent(id);ÃƒÂ.filesIdAssoc[html_id]=id;ÃƒÂ.files[id]['html_id']=html_id;if(!_$(ÃƒÂ.files[id]['html_id'])&&id!=\"\"){ÃƒÂ.tab_browsing_area.Ãƒâ€¡.display=\"block\";var elem=document.createElement('li');elem.id=ÃƒÂ.files[id]['html_id'];var close=\"<img src=\\\"\"+ÃƒË†.eAL.baseURL+\"images/close.gif\\\" title=\\\"\"+ÃƒÂ.get_translation('close_tab','word')+\"\\\" onclick=\\\"eA.execCommand('close_file',eA.filesIdAssoc['\"+html_id+\"']);return ÃƒÅ’;\\\" class=\\\"hidden\\\" onmouseover=\\\"ÃƒÂ.className=''\\\" onmouseout=\\\"ÃƒÂ.className='hidden'\\\" />\";elem.innerHTML=\"<a onclick=\\\"javascript:eA.execCommand('switch_to_file',eA.filesIdAssoc['\"+html_id+\"']);\\\" selec=\\\"none\\\"><b><span><strong class=\\\"edited\\\">*</strong>\"+ÃƒÂ.files[id]['title']+close+\"</span></b></a>\";_$('tab_browsing_list').appendChild(elem);var elem=document.createElement('text');ÃƒÂ.update_size();}if(id!=\"\")ÃƒÂ.execCommand('file_open',ÃƒÂ.files[id]);ÃƒÂ.switch_to_file(id,Ãƒâ€¹);return Ãƒâ€¹;}\nelse return ÃƒÅ’;};EA.Ãƒâ€ž.close_file=ÃƒÆ’(id){if(ÃƒÂ.files[id]){ÃƒÂ.save_file(id);if(ÃƒÂ.execCommand('file_close',ÃƒÂ.files[id])!==ÃƒÅ’){var li=_$(ÃƒÂ.files[id]['html_id']);li.ÃƒË†Node.removeChild(li);if(id==ÃƒÂ.curr_file){var next_file=\"\";var is_next=ÃƒÅ’;for(var i in ÃƒÂ.files){if(is_next){next_file=i;break;}\nelse if(i==id)is_next=Ãƒâ€¹;\nelse next_file=i;}ÃƒÂ.switch_to_file(next_file);}delete(ÃƒÂ.files[id]);ÃƒÂ.update_size();}}};EA.Ãƒâ€ž.save_file=ÃƒÆ’(id){var t=ÃƒÂ,save,a_links,a_selects,save_butt,img,i;if(t.files[id]){var save=t.files[id];save['Ãƒâ€°']=t.Ãƒâ€°;save['last_text_to_highlight']=t.last_text_to_highlight;save['last_hightlighted_text']=t.last_hightlighted_text;save['previous']=t.previous;save['next']=t.next;save['last_undo']=t.last_undo;save['smooth_selection']=t.smooth_selection;save['do_highlight']=t.do_highlight;save['syntax']=t.Ãƒâ€¦['syntax'];save['text']=t.Ãƒâ€š.ÃƒÅ ;save['scroll_top']=t.result.scrollTop;save['scroll_left']=t.result.scrollLeft;save['selection_start']=t.Ãƒâ€°[\"selectionStart\"];save['selection_end']=t.Ãƒâ€°[\"selectionEnd\"];save['font_size']=t.Ãƒâ€¦[\"font_size\"];save['font_family']=t.Ãƒâ€¦[\"font_family\"];save['word_wrap']=t.Ãƒâ€¦[\"word_wrap\"];save['toolbar']={'links':{},'selects':{}};a_links=_$(\"toolbar_1\").getElementsByTagName(\"a\");for(i=0;i<a_links.Ãƒâ€ ;i++){if(a_links[i].getAttribute('fileSpecific')=='yes'){save_butt={};img=a_links[i].getElementsByTagName('img')[0];save_butt['classLock']=img.classLock;save_butt['className']=img.className;save_butt['oldClassName']=img.oldClassName;save['toolbar']['links'][a_links[i].id]=save_butt;}}a_selects=_$(\"toolbar_1\").getElementsByTagName(\"select\");for(i=0;i<a_selects.Ãƒâ€ ;i++){if(a_selects[i].getAttribute('fileSpecific')=='yes'){save['toolbar']['selects'][a_selects[i].id]=a_selects[i].ÃƒÅ ;}}t.files[id]=save;return save;}return ÃƒÅ’;};EA.Ãƒâ€ž.update_file=ÃƒÆ’(id,new_ÃƒÅ s){for(var i in new_ÃƒÅ s){ÃƒÂ.files[id][i]=new_ÃƒÅ s[i];}};EA.Ãƒâ€ž.display_file=ÃƒÆ’(id){var t=ÃƒÂ,a=t.Ãƒâ€š,new_file,a_lis,a_selects,a_links,a_options,i,j;if(id==''){a.readOnly=Ãƒâ€¹;t.tab_browsing_area.Ãƒâ€¡.display=\"none\";_$(\"no_file_selected\").Ãƒâ€¡.display=\"block\";t.result.className=\"empty\";if(!t.files['']){t.open_file({id:''});}}\nelse if(typeof(t.files[id])=='undefined'){return ÃƒÅ’;}\nelse{t.result.className=\"\";a.readOnly=!t.is_editable;_$(\"no_file_selected\").Ãƒâ€¡.display=\"none\";t.tab_browsing_area.Ãƒâ€¡.display=\"block\";}t.check_redo(Ãƒâ€¹);t.check_undo(Ãƒâ€¹);t.curr_file=id;a_lis=t.tab_browsing_area.getElementsByTagName('li');for(i=0;i<a_lis.Ãƒâ€ ;i++){if(a_lis[i].id==t.files[id]['html_id'])a_lis[i].className='selected';\nelse a_lis[i].className='';}new_file=t.files[id];a.ÃƒÅ =new_file['text'];t.set_font(new_file['font_family'],new_file['font_size']);t.area_select(new_file['selection_start'],new_file['selection_end']-new_file['selection_start']);t.manage_size(Ãƒâ€¹);t.result.scrollTop=new_file['scroll_top'];t.result.scrollLeft=new_file['scroll_left'];t.previous=new_file['previous'];t.next=new_file['next'];t.last_undo=new_file['last_undo'];t.check_redo(Ãƒâ€¹);t.check_undo(Ãƒâ€¹);t.execCommand(\"change_highlight\",new_file['do_highlight']);t.execCommand(\"change_syntax\",new_file['syntax']);t.execCommand(\"change_smooth_selection_mode\",new_file['smooth_selection']);t.execCommand(\"set_word_wrap\",new_file['word_wrap']);a_links=new_file['toolbar']['links'];for(i in a_links){if(img=_$(i).getElementsByTagName('img')[0]){img.classLock=a_links[i]['classLock'];img.className=a_links[i]['className'];img.oldClassName=a_links[i]['oldClassName'];}}a_selects=new_file['toolbar']['selects'];for(i in a_selects){a_options=_$(i).options;for(j=0;j<a_options.Ãƒâ€ ;j++){if(a_options[j].ÃƒÅ ==a_selects[i])_$(i).options[j].selected=Ãƒâ€¹;}}};EA.Ãƒâ€ž.switch_to_file=ÃƒÆ’(file_to_show,force_refresh){if(file_to_show!=ÃƒÂ.curr_file||force_refresh){ÃƒÂ.save_file(ÃƒÂ.curr_file);if(ÃƒÂ.curr_file!='')ÃƒÂ.execCommand('file_switch_off',ÃƒÂ.files[ÃƒÂ.curr_file]);ÃƒÂ.display_file(file_to_show);if(file_to_show!='')ÃƒÂ.execCommand('file_switch_on',ÃƒÂ.files[file_to_show]);}};EA.Ãƒâ€ž.get_file=ÃƒÆ’(id){if(id==ÃƒÂ.curr_file)ÃƒÂ.save_file(id);return ÃƒÂ.files[id];};EA.Ãƒâ€ž.get_all_files=ÃƒÆ’(){tmp_files=ÃƒÂ.files;ÃƒÂ.save_file(ÃƒÂ.curr_file);if(tmp_files[''])delete(ÃƒÂ.files['']);return tmp_files;};EA.Ãƒâ€ž.check_file_changes=ÃƒÆ’(){var id=ÃƒÂ.curr_file;if(ÃƒÂ.files[id]&&ÃƒÂ.files[id]['compare_edited_text']!=undefined){if(ÃƒÂ.files[id]['compare_edited_text'].Ãƒâ€ ==ÃƒÂ.Ãƒâ€š.ÃƒÅ .Ãƒâ€ &&ÃƒÂ.files[id]['compare_edited_text']==ÃƒÂ.Ãƒâ€š.ÃƒÅ ){if(ÃƒÂ.files[id]['edited']!=ÃƒÅ’)ÃƒÂ.set_file_edited_mode(id,ÃƒÅ’);}\nelse{if(ÃƒÂ.files[id]['edited']!=Ãƒâ€¹)ÃƒÂ.set_file_edited_mode(id,Ãƒâ€¹);}}};EA.Ãƒâ€ž.set_file_edited_mode=ÃƒÆ’(id,to){if(ÃƒÂ.files[id]&&_$(ÃƒÂ.files[id]['html_id'])){var link=_$(ÃƒÂ.files[id]['html_id']).getElementsByTagName('a')[0];if(to==Ãƒâ€¹){link.className='edited';}\nelse{link.className='';if(id==ÃƒÂ.curr_file)text=ÃƒÂ.Ãƒâ€š.ÃƒÅ ;\nelse text=ÃƒÂ.files[id]['text'];ÃƒÂ.files[id]['compare_edited_text']=text;}ÃƒÂ.files[id]['edited']=to;}};EA.Ãƒâ€ž.set_show_line_colors=ÃƒÆ’(new_ÃƒÅ ){ÃƒÂ.show_line_colors=new_ÃƒÅ ;if(new_ÃƒÅ )ÃƒÂ.selection_field.className+=' show_colors';\nelse ÃƒÂ.selection_field.className=ÃƒÂ.selection_field.className.replace(/ show_colors/g,'');};var EA_keys={8:\"Retour arriere\",9:\"Tabulation\",12:\"Milieu(pave numerique)\",13:\"Entrer\",16:\"Shift\",17:\"Ctrl\",18:\"Alt\",19:\"Pause\",20:\"Verr Maj\",27:\"Esc\",32:\"Space\",33:\"Page up\",34:\"Page down\",35:\"End\",36:\"Begin\",37:\"Left\",38:\"Up\",39:\"Right\",40:\"Down\",44:\"Impr ecran\",45:\"Inser\",46:\"Suppr\",91:\"Menu Demarrer Windows / touche pomme Mac\",92:\"Menu Demarrer Windows\",93:\"Menu contextuel Windows\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"Verr Num\",145:\"Arret defil\"};ÃƒÆ’ keyDown(e){if(!e){e=event;}for(var i in eA.plugins){if(typeof(eA.plugins[i].onkeydown)==\"ÃƒÆ’\"){if(eA.plugins[i].onkeydown(e)===ÃƒÅ’){if(eA.isIE)e.keyCode=0;return ÃƒÅ’;}}}var target_id=(e.target||e.srcElement).id;var use=ÃƒÅ’;if(EA_keys[e.keyCode])letter=EA_keys[e.keyCode];\nelse letter=String.fromCharCode(e.keyCode);var low_letter=letter.toLowerCase();if(letter==\"Page up\"&&!AltPressed(e)&&!eA.isOpera){eA.execCommand(\"scroll_page\",{\"dir\":\"up\",\"shift\":ShiftPressed(e)});use=Ãƒâ€¹;}\nelse if(letter==\"Page down\"&&!AltPressed(e)&&!eA.isOpera){eA.execCommand(\"scroll_page\",{\"dir\":\"down\",\"shift\":ShiftPressed(e)});use=Ãƒâ€¹;}\nelse if(eA.is_editable==ÃƒÅ’){return Ãƒâ€¹;}\nelse if(letter==\"Tabulation\"&&target_id==\"Ãƒâ€š\"&&!CtrlPressed(e)&&!AltPressed(e)){if(ShiftPressed(e))eA.execCommand(\"invert_tab_selection\");\nelse eA.execCommand(\"tab_selection\");use=Ãƒâ€¹;if(eA.isOpera||(eA.isFirefox&&eA.isMac))setTimeout(\"eA.execCommand('focus');\",1);}\nelse if(letter==\"Entrer\"&&target_id==\"Ãƒâ€š\"){if(eA.press_enter())use=Ãƒâ€¹;}\nelse if(letter==\"Entrer\"&&target_id==\"area_search\"){eA.execCommand(\"area_search\");use=Ãƒâ€¹;}\nelse  if(letter==\"Esc\"){eA.execCommand(\"close_all_inline_popup\",e);use=Ãƒâ€¹;}\nelse if(CtrlPressed(e)&&!AltPressed(e)&&!ShiftPressed(e)){switch(low_letter){case \"f\":eA.execCommand(\"area_search\");use=Ãƒâ€¹;break;case \"r\":eA.execCommand(\"area_replace\");use=Ãƒâ€¹;break;case \"q\":eA.execCommand(\"close_all_inline_popup\",e);use=Ãƒâ€¹;break;case \"h\":eA.execCommand(\"change_highlight\");use=Ãƒâ€¹;break;case \"g\":setTimeout(\"eA.execCommand('go_to_line');\",5);use=Ãƒâ€¹;break;case \"e\":eA.execCommand(\"show_help\");use=Ãƒâ€¹;break;case \"z\":use=Ãƒâ€¹;eA.execCommand(\"undo\");break;case \"y\":use=Ãƒâ€¹;eA.execCommand(\"redo\");break;default:break;}}if(eA.next.Ãƒâ€  > 0){setTimeout(\"eA.check_redo();\",10);}setTimeout(\"eA.check_file_changes();\",10);if(use){if(eA.isIE)e.keyCode=0;return ÃƒÅ’;}return Ãƒâ€¹;};ÃƒÆ’ AltPressed(e){if(window.event){return(window.event.altKey);}\nelse{if(e.modifiers)return(e.altKey||(e.modifiers % 2));\nelse return e.altKey;}};ÃƒÆ’ CtrlPressed(e){if(window.event){return(window.event.ctrlKey);}\nelse{return(e.ctrlKey||(e.modifiers==2)||(e.modifiers==3)||(e.modifiers>5));}};ÃƒÆ’ ShiftPressed(e){if(window.event){return(window.event.shiftKey);}\nelse{return(e.shiftKey||(e.modifiers>3));}};	EA.Ãƒâ€ž.show_search=ÃƒÆ’(){if(_$(\"area_search_replace\").Ãƒâ€¡.visibility==\"visible\"){ÃƒÂ.hidden_search();}\nelse{ÃƒÂ.open_inline_popup(\"area_search_replace\");var text=ÃƒÂ.area_get_selection();var search=text.split(\"\\n\")[0];_$(\"area_search\").ÃƒÅ =search;_$(\"area_search\").focus();}};EA.Ãƒâ€ž.hidden_search=ÃƒÆ’(){ÃƒÂ.close_inline_popup(\"area_search_replace\");};EA.Ãƒâ€ž.area_search=ÃƒÆ’(mode){if(!mode)mode=\"search\";_$(\"area_search_msg\").innerHTML=\"\";var search=_$(\"area_search\").ÃƒÅ ;ÃƒÂ.Ãƒâ€š.focus();ÃƒÂ.Ãƒâ€š.Ãƒâ€šFocused=Ãƒâ€¹;var infos=ÃƒÂ.get_selection_infos();var start=infos[\"selectionStart\"];var pos=-1;var pos_begin=-1;var Ãƒâ€ =search.Ãƒâ€ ;if(_$(\"area_search_replace\").Ãƒâ€¡.visibility!=\"visible\"){ÃƒÂ.show_search();return;}if(search.Ãƒâ€ ==0){_$(\"area_search_msg\").innerHTML=ÃƒÂ.get_translation(\"search_field_empty\");return;}if(mode!=\"replace\"){if(_$(\"area_search_reg_exp\").checked)start++;\nelse start+=search.Ãƒâ€ ;}if(_$(\"area_search_reg_exp\").checked){var opt=\"m\";if(!_$(\"area_search_match_case\").checked)opt+=\"i\";var reg=new RegExp(search,opt);pos=infos[\"full_text\"].substr(start).search(reg);pos_begin=infos[\"full_text\"].search(reg);if(pos!=-1){pos+=start;Ãƒâ€ =infos[\"full_text\"].substr(start).match(reg)[0].Ãƒâ€ ;}\nelse if(pos_begin!=-1){Ãƒâ€ =infos[\"full_text\"].match(reg)[0].Ãƒâ€ ;}}\nelse{if(_$(\"area_search_match_case\").checked){pos=infos[\"full_text\"].indexOf(search,start);pos_begin=infos[\"full_text\"].indexOf(search);}\nelse{pos=infos[\"full_text\"].toLowerCase().indexOf(search.toLowerCase(),start);pos_begin=infos[\"full_text\"].toLowerCase().indexOf(search.toLowerCase());}}if(pos==-1&&pos_begin==-1){_$(\"area_search_msg\").innerHTML=\"<strong>\"+search+\"</strong> \"+ÃƒÂ.get_translation(\"not_found\");return;}\nelse if(pos==-1&&pos_begin !=-1){begin=pos_begin;_$(\"area_search_msg\").innerHTML=ÃƒÂ.get_translation(\"restart_search_at_begin\");}\nelse begin=pos;if(mode==\"replace\"&&pos==infos[\"indexOfCursor\"]){var replace=_$(\"area_replace\").ÃƒÅ ;var new_text=\"\";if(_$(\"area_search_reg_exp\").checked){var opt=\"m\";if(!_$(\"area_search_match_case\").checked)opt+=\"i\";var reg=new RegExp(search,opt);new_text=infos[\"full_text\"].substr(0,begin)+infos[\"full_text\"].substr(start).replace(reg,replace);}\nelse{new_text=infos[\"full_text\"].substr(0,begin)+replace+infos[\"full_text\"].substr(begin+Ãƒâ€ );}ÃƒÂ.Ãƒâ€š.ÃƒÅ =new_text;ÃƒÂ.area_select(begin,Ãƒâ€ );ÃƒÂ.area_search();}\nelse ÃƒÂ.area_select(begin,Ãƒâ€ );};EA.Ãƒâ€ž.area_replace=ÃƒÆ’(){ÃƒÂ.area_search(\"replace\");};EA.Ãƒâ€ž.area_replace_all=ÃƒÆ’(){var base_text=ÃƒÂ.Ãƒâ€š.ÃƒÅ ;var search=_$(\"area_search\").ÃƒÅ ;var replace=_$(\"area_replace\").ÃƒÅ ;if(search.Ãƒâ€ ==0){_$(\"area_search_msg\").innerHTML=ÃƒÂ.get_translation(\"search_field_empty\");return;}var new_text=\"\";var nb_change=0;if(_$(\"area_search_reg_exp\").checked){var opt=\"mg\";if(!_$(\"area_search_match_case\").checked)opt+=\"i\";var reg=new RegExp(search,opt);nb_change=infos[\"full_text\"].match(reg).Ãƒâ€ ;new_text=infos[\"full_text\"].replace(reg,replace);}\nelse{if(_$(\"area_search_match_case\").checked){var tmp_tab=base_text.split(search);nb_change=tmp_tab.Ãƒâ€ -1;new_text=tmp_tab.join(replace);}\nelse{var lower_ÃƒÅ =base_text.toLowerCase();var lower_search=search.toLowerCase();var start=0;var pos=lower_ÃƒÅ .indexOf(lower_search);while(pos!=-1){nb_change++;new_text+=ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(start,pos)+replace;start=pos+search.Ãƒâ€ ;pos=lower_ÃƒÅ .indexOf(lower_search,pos+1);}new_text+=ÃƒÂ.Ãƒâ€š.ÃƒÅ .substring(start);}}if(new_text==base_text){_$(\"area_search_msg\").innerHTML=\"<strong>\"+search+\"</strong> \"+ÃƒÂ.get_translation(\"not_found\");}\nelse{ÃƒÂ.Ãƒâ€š.ÃƒÅ =new_text;_$(\"area_search_msg\").innerHTML=\"<strong>\"+nb_change+\"</strong> \"+ÃƒÂ.get_translation(\"occurrence_replaced\");setTimeout(\"eA.Ãƒâ€š.focus();eA.Ãƒâ€š.Ãƒâ€šFocused=Ãƒâ€¹;\",100);}}; EA.Ãƒâ€ž.change_highlight=ÃƒÆ’(change_to){if(ÃƒÂ.Ãƒâ€¦[\"syntax\"].Ãƒâ€ ==0&&change_to==ÃƒÅ’){ÃƒÂ.switchClassSticky(_$(\"highlight\"),'editAreaButtonDisabled',Ãƒâ€¹);ÃƒÂ.switchClassSticky(_$(\"reset_highlight\"),'editAreaButtonDisabled',Ãƒâ€¹);return ÃƒÅ’;}if(ÃƒÂ.do_highlight==change_to)return ÃƒÅ’;ÃƒÂ.getIESelection();var pos_start=ÃƒÂ.Ãƒâ€š.selectionStart;var pos_end=ÃƒÂ.Ãƒâ€š.selectionEnd;if(ÃƒÂ.do_highlight===Ãƒâ€¹||change_to==ÃƒÅ’)ÃƒÂ.disable_highlight();\nelse ÃƒÂ.enable_highlight();ÃƒÂ.Ãƒâ€š.focus();ÃƒÂ.Ãƒâ€š.selectionStart=pos_start;ÃƒÂ.Ãƒâ€š.selectionEnd=pos_end;ÃƒÂ.setIESelection();};EA.Ãƒâ€ž.disable_highlight=ÃƒÆ’(displayOnly){var t=ÃƒÂ,a=t.Ãƒâ€š,new_Obj,old_class,new_class;t.selection_field.innerHTML=\"\";t.selection_field_text.innerHTML=\"\";t.content_highlight.Ãƒâ€¡.visibility=\"hidden\";new_Obj=t.content_highlight.cloneNode(ÃƒÅ’);new_Obj.innerHTML=\"\";t.content_highlight.ÃƒË†Node.insertBefore(new_Obj,t.content_highlight);t.content_highlight.ÃƒË†Node.removeChild(t.content_highlight);t.content_highlight=new_Obj;old_class=ÃƒË†.getAttribute(a,\"class\");if(old_class){new_class=old_class.replace(\"hidden\",\"\");ÃƒË†.setAttribute(a,\"class\",new_class);}a.Ãƒâ€¡.backgroundColor=\"transÃƒË†\";t.switchClassSticky(_$(\"highlight\"),'editAreaButtonNormal',Ãƒâ€¹);t.switchClassSticky(_$(\"reset_highlight\"),'editAreaButtonDisabled',Ãƒâ€¹);t.do_highlight=ÃƒÅ’;t.switchClassSticky(_$(\"change_smooth_selection\"),'editAreaButtonSelected',Ãƒâ€¹);if(typeof(t.smooth_selection_before_highlight)!=\"undefined\"&&t.smooth_selection_before_highlight===ÃƒÅ’){t.change_smooth_selection_mode(ÃƒÅ’);}};EA.Ãƒâ€ž.enable_highlight=ÃƒÆ’(){var t=ÃƒÂ,a=t.Ãƒâ€š,new_class;t.show_waiting_screen();t.content_highlight.Ãƒâ€¡.visibility=\"visible\";new_class=ÃƒË†.getAttribute(a,\"class\")+\" hidden\";ÃƒË†.setAttribute(a,\"class\",new_class);if(t.isIE)a.Ãƒâ€¡.backgroundColor=\"#FFFFFF\";t.switchClassSticky(_$(\"highlight\"),'editAreaButtonSelected',ÃƒÅ’);t.switchClassSticky(_$(\"reset_highlight\"),'editAreaButtonNormal',ÃƒÅ’);t.smooth_selection_before_highlight=t.smooth_selection;if(!t.smooth_selection)t.change_smooth_selection_mode(Ãƒâ€¹);t.switchClassSticky(_$(\"change_smooth_selection\"),'editAreaButtonDisabled',Ãƒâ€¹);t.do_highlight=Ãƒâ€¹;t.resync_highlight();t.hide_waiting_screen();};EA.Ãƒâ€ž.maj_highlight=ÃƒÆ’(infos){var debug_opti=\"\",tps_start=new Date().getTime(),tps_middle_opti=new Date().getTime();var t=ÃƒÂ,hightlighted_text,updated_highlight;var textToHighlight=infos[\"full_text\"],doSyntaxOpti=ÃƒÅ’,doHtmlOpti=ÃƒÅ’,stay_begin=\"\",stay_end=\"\",trace_new,trace_last;if(t.last_text_to_highlight==infos[\"full_text\"]&&t.resync_highlight!==Ãƒâ€¹)return;if(t.reload_highlight===Ãƒâ€¹){t.reload_highlight=ÃƒÅ’;}\nelse if(textToHighlight.Ãƒâ€ ==0){textToHighlight=\"\\n \";}\nelse{changes=t.checkTextEvolution(t.last_text_to_highlight,textToHighlight);trace_new=t.get_syntax_trace(changes.newTextLine).replace(/\\r/g,'');trace_last=t.get_syntax_trace(changes.lastTextLine).replace(/\\r/g,'');doSyntaxOpti=(trace_new==trace_last);if(!doSyntaxOpti&&trace_new==\"\\n\"+trace_last&&/^[ \t\s]*\\n[ \t\s]*$/.test(changes.newText.replace(/\\r/g,''))&&changes.lastText==\"\"){doSyntaxOpti=Ãƒâ€¹;}if(doSyntaxOpti){tps_middle_opti=new Date().getTime();stay_begin=t.last_hightlighted_text.split(\"\\n\").slice(0,changes.lineStart).join(\"\\n\");if(changes.lineStart>0)stay_begin+=\"\\n\";stay_end=t.last_hightlighted_text.split(\"\\n\").slice(changes.lineLastEnd+1).join(\"\\n\");if(stay_end.Ãƒâ€ >0)stay_end=\"\\n\"+stay_end;if(stay_begin.split('<span').Ãƒâ€  !=stay_begin.split('</span').Ãƒâ€ ||stay_end.split('<span').Ãƒâ€  !=stay_end.split('</span').Ãƒâ€ ){doSyntaxOpti=ÃƒÅ’;stay_end='';stay_begin='';}\nelse{if(stay_begin.Ãƒâ€ ==0&&changes.posLastEnd==-1)changes.newTextLine+=\"\\n\";textToHighlight=changes.newTextLine;}}if(t.Ãƒâ€¦[\"debug\"]){var ch=changes;debug_opti=(doSyntaxOpti?\"Optimisation\":\"No optimisation\")+\" start:\"+ch.posStart+\"(\"+ch.lineStart+\")\"+\" end_new:\"+ch.posNewEnd+\"(\"+ch.lineNewEnd+\")\"+\" end_last:\"+ch.posLastEnd+\"(\"+ch.lineLastEnd+\")\"+\"\\nchanged_text:\"+ch.newText+\"=> trace:\"+trace_new+\"\\nchanged_last_text:\"+ch.lastText+\"=> trace:\"+trace_last+\"\\nchanged_line:\"+ch.newTextLine+\"\\nlast_changed_line:\"+ch.lastTextLine+\"\\nstay_begin:\"+stay_begin.slice(-100)+\"\\nstay_end:\"+stay_end.substr(0,100);+\"\\n\";}}tps_end_opti=new Date().getTime();updated_highlight=t.colorize_text(textToHighlight);tpsAfterReg=new Date().getTime();doSyntaxOpti=doHtmlOpti=ÃƒÅ’;if(doSyntaxOpti){try{var replacedBloc,i,nbStart='',nbEnd='',newHtml,Ãƒâ€ Old,Ãƒâ€ New;replacedBloc=t.last_hightlighted_text.substring(stay_begin.Ãƒâ€ ,t.last_hightlighted_text.Ãƒâ€ -stay_end.Ãƒâ€ );Ãƒâ€ Old=replacedBloc.Ãƒâ€ ;Ãƒâ€ New=updated_highlight.Ãƒâ€ ;for(i=0;i < Ãƒâ€ Old&&i < Ãƒâ€ New&&replacedBloc.charAt(i)==updated_highlight.charAt(i);i++){}nbStart=i;for(i=0;i+nbStart < Ãƒâ€ Old&&i+nbStart < Ãƒâ€ New&&replacedBloc.charAt(Ãƒâ€ Old-i-1)==updated_highlight.charAt(Ãƒâ€ New-i-1);i++){}nbEnd=i;lastHtml=replacedBloc.substring(nbStart,Ãƒâ€ Old-nbEnd);newHtml=updated_highlight.substring(nbStart,Ãƒâ€ New-nbEnd);if(newHtml.indexOf('<span')==-1&&newHtml.indexOf('</span')==-1&&lastHtml.indexOf('<span')==-1&&lastHtml.indexOf('</span')==-1){var beginStr,nbOpendedSpan,nbClosedSpan,nbUnchangedChars,span,textNode;doHtmlOpti=Ãƒâ€¹;beginStr=t.last_hightlighted_text.substr(0,stay_begin.Ãƒâ€ +nbStart);newHtml=newHtml.replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&');nbOpendedSpan=beginStr.split('<span').Ãƒâ€ -1;nbClosedSpan=beginStr.split('</span').Ãƒâ€ -1;span=t.content_highlight.getElementsByTagName('span')[ nbOpendedSpan ];ÃƒË†Span=span;maxStartOffset=maxEndOffset=0;if(nbOpendedSpan==nbClosedSpan){while(ÃƒË†Span.ÃƒË†Node !=t.content_highlight&&ÃƒË†Span.ÃƒË†Node.tagName !='PRE'){ÃƒË†Span=ÃƒË†Span.ÃƒË†Node;}}\nelse{maxStartOffset=maxEndOffset=beginStr.Ãƒâ€ +1;nbClosed=beginStr.substr(Math.max(0,beginStr.lastIndexOf('<span',maxStartOffset-1))).split('</span').Ãƒâ€ -1;while(nbClosed > 0){nbClosed--;ÃƒË†Span=ÃƒË†Span.ÃƒË†Node;}while(ÃƒË†Span.ÃƒË†Node !=t.content_highlight&&ÃƒË†Span.ÃƒË†Node.tagName !='PRE'&&(tmpMaxStartOffset=Math.max(0,beginStr.lastIndexOf('<span',maxStartOffset-1)))<(tmpMaxEndOffset=Math.max(0,beginStr.lastIndexOf('</span',maxEndOffset-1)))){maxStartOffset=tmpMaxStartOffset;maxEndOffset=tmpMaxEndOffset;}}if(ÃƒË†Span.ÃƒË†Node==t.content_highlight||ÃƒË†Span.ÃƒË†Node.tagName=='PRE'){maxStartOffset=Math.max(0,beginStr.indexOf('<span'));}if(maxStartOffset==beginStr.Ãƒâ€ ){nbSubSpanBefore=0;}\nelse{lastEndPos=Math.max(0,beginStr.lastIndexOf('>',maxStartOffset));nbSubSpanBefore=beginStr.substr(lastEndPos).split('<span').Ãƒâ€ -1;}if(nbSubSpanBefore==0){textNode=ÃƒË†Span.firstChild;}\nelse{lastSubSpan=ÃƒË†Span.getElementsByTagName('span')[ nbSubSpanBefore-1 ];while(lastSubSpan.ÃƒË†Node !=ÃƒË†Span){lastSubSpan=lastSubSpan.ÃƒË†Node;}if(lastSubSpan.nextSibling==null||lastSubSpan.nextSibling.nodeType !=3){textNode=document.createTextNode('');lastSubSpan.ÃƒË†Node.insertBefore(textNode,lastSubSpan.nextSibling);}\nelse{textNode=lastSubSpan.nextSibling;}}if((lastIndex=beginStr.lastIndexOf('>'))==-1){nbUnchangedChars=beginStr.Ãƒâ€ ;}\nelse{nbUnchangedChars=beginStr.substr(lastIndex+1).replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&amp;/g,'&').Ãƒâ€ ;}if(t.isIE){nbUnchangedChars-=(beginStr.substr(beginStr.Ãƒâ€ -nbUnchangedChars).split(\"\\n\").Ãƒâ€ -1);textNode.replaceData(nbUnchangedChars,lastHtml.replace(/\\n/g,'').Ãƒâ€ ,newHtml.replace(/\\n/g,''));}\nelse{textNode.replaceData(nbUnchangedChars,lastHtml.Ãƒâ€ ,newHtml);}}}catch(e){doHtmlOpti=ÃƒÅ’;}}tpsAfterOpti2=new Date().getTime();hightlighted_text=stay_begin+updated_highlight+stay_end;if(!doHtmlOpti){var new_Obj=t.content_highlight.cloneNode(ÃƒÅ’);if((t.isIE&&t.isIE < 8)||(t.isOpera&&t.isOpera < 9.6))new_Obj.innerHTML=\"<pre><span class='\"+t.Ãƒâ€¦[\"syntax\"]+\"'>\"+hightlighted_text+\"</span></pre>\";\nelse new_Obj.innerHTML=\"<span class='\"+t.Ãƒâ€¦[\"syntax\"]+\"'>\"+hightlighted_text+\"</span>\";t.content_highlight.ÃƒË†Node.replaceChild(new_Obj,t.content_highlight);t.content_highlight=new_Obj;}t.last_text_to_highlight=infos[\"full_text\"];t.last_hightlighted_text=hightlighted_text;tps3=new Date().getTime();if(t.Ãƒâ€¦[\"debug\"]){t.debug.ÃƒÅ =\"Tps optimisation \"+(tps_end_opti-tps_start)+\" | tps reg exp:\"+(tpsAfterReg-tps_end_opti)+\" | tps opti HTML:\"+(tpsAfterOpti2-tpsAfterReg)+' '+(doHtmlOpti ? 'yes':'no')+\" | tps update highlight content:\"+(tps3-tpsAfterOpti2)+\" | tpsTotal:\"+(tps3-tps_start)+\"(\"+tps3+\")\\n\"+debug_opti;}};EA.Ãƒâ€ž.resync_highlight=ÃƒÆ’(reload_now){ÃƒÂ.reload_highlight=Ãƒâ€¹;ÃƒÂ.last_text_to_highlight=\"\";ÃƒÂ.focus();if(reload_now)ÃƒÂ.check_line_selection(ÃƒÅ’);}; EA.Ãƒâ€ž.comment_or_quote=ÃƒÆ’(){var new_class=\"\",close_tag=\"\",sy,arg,i;sy=ÃƒË†.eAL.syntax[eA.current_code_lang];arg=EA.Ãƒâ€ž.comment_or_quote.arguments[0];for(i in sy[\"quotes\"]){if(arg.indexOf(i)==0){new_class=\"quotesmarks\";close_tag=sy[\"quotes\"][i];}}if(new_class.Ãƒâ€ ==0){for(var i in sy[\"comments\"]){if(arg.indexOf(i)==0){new_class=\"comments\";close_tag=sy[\"comments\"][i];}}}if(close_tag==\"\\n\"){return \"Ã‚Âµ__\"+new_class+\"__Ã‚Âµ\"+arg.replace(/(\\r?\\n)?$/m,\"Ã‚Âµ_END_Ã‚Âµ$1\");}\nelse{reg=new RegExp(ÃƒË†.eAL.get_escaped_regexp(close_tag)+\"$\",\"m\");if(arg.search(reg)!=-1)return \"Ã‚Âµ__\"+new_class+\"__Ã‚Âµ\"+arg+\"Ã‚Âµ_END_Ã‚Âµ\";\nelse return \"Ã‚Âµ__\"+new_class+\"__Ã‚Âµ\"+arg;}};EA.Ãƒâ€ž.get_syntax_trace=ÃƒÆ’(text){if(ÃƒÂ.Ãƒâ€¦[\"syntax\"].Ãƒâ€ >0&&ÃƒË†.eAL.syntax[ÃƒÂ.Ãƒâ€¦[\"syntax\"]][\"syntax_trace_regexp\"])return text.replace(ÃƒË†.eAL.syntax[ÃƒÂ.Ãƒâ€¦[\"syntax\"]][\"syntax_trace_regexp\"],\"$3\");};EA.Ãƒâ€ž.colorize_text=ÃƒÆ’(text){text=\" \"+text;if(ÃƒÂ.Ãƒâ€¦[\"syntax\"].Ãƒâ€ >0)text=ÃƒÂ.apply_syntax(text,ÃƒÂ.Ãƒâ€¦[\"syntax\"]);return text.substr(1).replace(/&/g,\"&amp;\").replace(/</g,\"&lt;\").replace(/>/g,\"&gt;\").replace(/Ã‚Âµ_END_Ã‚Âµ/g,\"</span>\").replace(/Ã‚Âµ__([a-zA-Z0-9]+)__Ã‚Âµ/g,\"<span class='$1'>\");};EA.Ãƒâ€ž.apply_syntax=ÃƒÆ’(text,lang){var sy;ÃƒÂ.current_code_lang=lang;if(!ÃƒË†.eAL.syntax[lang])return text;sy=ÃƒË†.eAL.syntax[lang];if(sy[\"custom_regexp\"]['before']){for(var i in sy[\"custom_regexp\"]['before']){var convert=\"$1Ã‚Âµ__\"+sy[\"custom_regexp\"]['before'][i]['class']+\"__Ã‚Âµ$2Ã‚Âµ_END_Ã‚Âµ$3\";text=text.replace(sy[\"custom_regexp\"]['before'][i]['regexp'],convert);}}if(sy[\"comment_or_quote_reg_exp\"]){text=text.replace(sy[\"comment_or_quote_reg_exp\"],ÃƒÂ.comment_or_quote);}if(sy[\"keywords_reg_exp\"]){for(var i in sy[\"keywords_reg_exp\"]){text=text.replace(sy[\"keywords_reg_exp\"][i],'Ã‚Âµ__'+i+'__Ã‚Âµ$2Ã‚Âµ_END_Ã‚Âµ');}}if(sy[\"delimiters_reg_exp\"]){text=text.replace(sy[\"delimiters_reg_exp\"],'Ã‚Âµ__delimiters__Ã‚Âµ$1Ã‚Âµ_END_Ã‚Âµ');}if(sy[\"operators_reg_exp\"]){text=text.replace(sy[\"operators_reg_exp\"],'Ã‚Âµ__operators__Ã‚Âµ$1Ã‚Âµ_END_Ã‚Âµ');}if(sy[\"custom_regexp\"]['after']){for(var i in sy[\"custom_regexp\"]['after']){var convert=\"$1Ã‚Âµ__\"+sy[\"custom_regexp\"]['after'][i]['class']+\"__Ã‚Âµ$2Ã‚Âµ_END_Ã‚Âµ$3\";text=text.replace(sy[\"custom_regexp\"]['after'][i]['regexp'],convert);}}return text;};var editArea= eA;EditArea=EA;</script>".replace(/ÃƒÂ/g,'this').replace(/Ãƒâ€š/g,'textarea').replace(/ÃƒÆ’/g,'function').replace(/Ãƒâ€ž/g,'prototype').replace(/Ãƒâ€¦/g,'settings').replace(/Ãƒâ€ /g,'length').replace(/Ãƒâ€¡/g,'style').replace(/ÃƒË†/g,'parent').replace(/Ãƒâ€°/g,'last_selection').replace(/ÃƒÅ /g,'value').replace(/Ãƒâ€¹/g,'true').replace(/ÃƒÅ’/g,'false');
editAreaLoader.template= "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" > <head> <title>EditArea</title> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\"/> [__CSSRULES__] [__JSCODE__] </head> <body> <div id='editor'> <div class='area_toolbar' id='toolbar_1'>[__TOOLBAR__]</div> <div class='area_toolbar' id='tab_browsing_area'><ul id='tab_browsing_list' class='menu'> <li> </li> </ul></div> <div id='result'> <div id='no_file_selected'></div> <div id='container'> <div id='cursor_pos' class='edit_area_cursor'>&nbsp;</div> <div id='end_bracket' class='edit_area_cursor'>&nbsp;</div> <div id='selection_field'></div> <div id='line_number' selec='none'></div> <div id='content_highlight'></div> <div id='test_font_size'></div> <div id='selection_field_text'></div> <textarea id='textarea' wrap='off' onchange='editArea.execCommand(\"onchange\");' onfocus='javascript:editArea.textareaFocused=true;' onblur='javascript:editArea.textareaFocused=false;'> </textarea> </div> </div> <div class='area_toolbar' id='toolbar_2'> <table class='statusbar' cellspacing='0' cellpadding='0'> <tr> <td class='total' selec='none'>{$position}:</td> <td class='infos' selec='none'> {$line_abbr} <span  id='linePos'>0</span>, {$char_abbr} <span id='currPos'>0</span> </td> <td class='total' selec='none'>{$total}:</td> <td class='infos' selec='none'> {$line_abbr} <span id='nbLine'>0</span>, {$char_abbr} <span id='nbChar'>0</span> </td> <td class='resize'> <span id='resize_area'><img src='[__BASEURL__]images/statusbar_resize.gif' alt='resize' selec='none'></span> </td> </tr> </table> </div> </div> <div id='processing'> <div id='processing_text'> {$processing} </div> </div> <div id='area_search_replace' class='editarea_popup'> <table cellspacing='2' cellpadding='0' style='width: 100%'> <tr> <td selec='none'>{$search}</td> <td><input type='text' id='area_search' /></td> <td id='close_area_search_replace'> <a onclick='Javascript:editArea.execCommand(\"hidden_search\")'><img selec='none' src='[__BASEURL__]images/close.gif' alt='{$close_popup}' title='{$close_popup}' /></a><br /> </tr><tr> <td selec='none'>{$replace}</td> <td><input type='text' id='area_replace' /></td> <td><img id='move_area_search_replace' onmousedown='return parent.start_move_element(event,\"area_search_replace\", parent.frames[\"frame_\"+editArea.id]);'  src='[__BASEURL__]images/move.gif' alt='{$move_popup}' title='{$move_popup}' /></td> </tr> </table> <div class='button'> <input type='checkbox' id='area_search_match_case' /><label for='area_search_match_case' selec='none'>{$match_case}</label> <input type='checkbox' id='area_search_reg_exp' /><label for='area_search_reg_exp' selec='none'>{$reg_exp}</label> <br /> <a onclick='Javascript:editArea.execCommand(\"area_search\")' selec='none'>{$find_next}</a> <a onclick='Javascript:editArea.execCommand(\"area_replace\")' selec='none'>{$replace}</a> <a onclick='Javascript:editArea.execCommand(\"area_replace_all\")' selec='none'>{$replace_all}</a><br /> </div> <div id='area_search_msg' selec='none'></div> </div> <div id='edit_area_help' class='editarea_popup'> <div class='close_popup'> <a onclick='Javascript:editArea.execCommand(\"close_all_inline_popup\")'><img src='[__BASEURL__]images/close.gif' alt='{$close_popup}' title='{$close_popup}' /></a> </div> <div><h2>Editarea [__EA_VERSION__]</h2><br /> <h3>{$shortcuts}:</h3> {$tab}: {$add_tab}<br /> {$shift}+{$tab}: {$remove_tab}<br /> {$ctrl}+f: {$search_command}<br /> {$ctrl}+r: {$replace_command}<br /> {$ctrl}+h: {$highlight}<br /> {$ctrl}+g: {$go_to_line}<br /> {$ctrl}+z: {$undo}<br /> {$ctrl}+y: {$redo}<br /> {$ctrl}+e: {$help}<br /> {$ctrl}+q, {$esc}: {$close_popup}<br /> {$accesskey} E: {$toggle}<br /> <br /> <em>{$about_notice}</em> <br /><div class='copyright'>&copy; Christophe Dolivet 2007-2010</div> </div> </div> </body> </html> ";
editAreaLoader.iframe_css= "<style>body,html{margin:0;padding:0;height:100%;border:none;overflow:hidden;background-color:#FFF;}body,html,table,form,textarea{font:12px monospace,sans-serif;}#editor{border:solid #888 1px;overflow:hidden;}#result{z-index:4;overflow-x:auto;overflow-y:scroll;border-top:solid #888 1px;border-bottom:solid #888 1px;position:relative;clear:both;}#result.empty{overflow:hidden;}#container{overflow:hidden;border:solid blue 0;position:relative;z-index:10;padding:0 5px 0 45px;}#textarea{position:relative;top:0;left:0;margin:0;padding:0;width:100%;height:100%;overflow:hidden;z-index:7;border-width:0;background-color:transparent;resize:none;}#textarea,#textarea:hover{outline:none;}#content_highlight{white-space:pre;margin:0;padding:0;position:absolute;z-index:4;overflow:visible;}#selection_field,#selection_field_text{margin:0;background-color:#E1F2F9;position:absolute;z-index:5;top:-100px;padding:0;white-space:pre;overflow:hidden;}#selection_field.show_colors {z-index:3;background-color:#EDF9FC;}#selection_field strong{font-weight:normal;}#selection_field.show_colors *,#selection_field_text * {visibility:hidden;}#selection_field_text{background-color:transparent;}#selection_field_text strong{font-weight:normal;background-color:#3399FE;color:#FFF;visibility:visible;}#container.word_wrap #content_highlight,#container.word_wrap #selection_field,#container.word_wrap #selection_field_text,#container.word_wrap #test_font_size{white-space:pre-wrap;white-space:-moz-pre-wrap !important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;width:99%;}#line_number{position:absolute;overflow:hidden;border-right:solid black 1px;z-index:8;width:38px;padding:0 5px 0 0;margin:0 0 0 -45px;text-align:right;color:#AAAAAA;}#test_font_size{padding:0;margin:0;visibility:hidden;position:absolute;white-space:pre;}pre{margin:0;padding:0;}.hidden{opacity:0.2;filter:alpha(opacity=20);}#result .edit_area_cursor{position:absolute;z-index:6;background-color:#FF6633;top:-100px;margin:0;}#result .edit_area_selection_field .overline{background-color:#996600;}.editarea_popup{border:solid 1px #888888;background-color:#ECE9D8;width:250px;padding:4px;position:absolute;visibility:hidden;z-index:15;top:-500px;}.editarea_popup,.editarea_popup table{font-family:sans-serif;font-size:10pt;}.editarea_popup img{border:0;}.editarea_popup .close_popup{float:right;line-height:16px;border:0;padding:0;}.editarea_popup h1,.editarea_popup h2,.editarea_popup h3,.editarea_popup h4,.editarea_popup h5,.editarea_popup h6{margin:0;padding:0;}.editarea_popup .copyright{text-align:right;}div#area_search_replace{}div#area_search_replace img{border:0;}div#area_search_replace div.button{text-align:center;line-height:1.7em;}div#area_search_replace .button a{cursor:pointer;border:solid 1px #888888;background-color:#DEDEDE;text-decoration:none;padding:0 2px;color:#000000;white-space:nowrap;}div#area_search_replace a:hover{background-color:#EDEDED;}div#area_search_replace  #move_area_search_replace{cursor:move;border:solid 1px #888;}div#area_search_replace  #close_area_search_replace{text-align:right;vertical-align:top;white-space:nowrap;}div#area_search_replace  #area_search_msg{height:18px;overflow:hidden;border-top:solid 1px #888;margin-top:3px;}#edit_area_help{width:350px;}#edit_area_help div.close_popup{float:right;}.area_toolbar{width:100%;margin:0;padding:0;background-color:#ECE9D8;text-align:center;}.area_toolbar,.area_toolbar table{font:11px sans-serif;}.area_toolbar img{border:0;vertical-align:middle;}.area_toolbar input{margin:0;padding:0;}.area_toolbar select{font-family:'MS Sans Serif',sans-serif,Verdana,Arial;font-size:7pt;font-weight:normal;margin:2px 0 0 0 ;padding:0;vertical-align:top;background-color:#F0F0EE;}table.statusbar{width:100%;}.area_toolbar td.infos{text-align:center;width:130px;border-right:solid 1px #888;border-width:0 1px 0 0;padding:0;}.area_toolbar td.total{text-align:right;width:50px;padding:0;}.area_toolbar td.resize{text-align:right;}.area_toolbar span#resize_area{cursor:nw-resize;visibility:hidden;}.editAreaButtonNormal,.editAreaButtonOver,.editAreaButtonDown,.editAreaSeparator,.editAreaSeparatorLine,.editAreaButtonDisabled,.editAreaButtonSelected {border:0; margin:0; padding:0; background:transparent;margin-top:0;margin-left:1px;padding:0;}.editAreaButtonNormal {border:1px solid #ECE9D8 !important;cursor:pointer;}.editAreaButtonOver {border:1px solid #0A246A !important;cursor:pointer;background-color:#B6BDD2;}.editAreaButtonDown {cursor:pointer;border:1px solid #0A246A !important;background-color:#8592B5;}.editAreaButtonSelected {border:1px solid #C0C0BB !important;cursor:pointer;background-color:#F4F2E8;}.editAreaButtonDisabled {filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30);-moz-opacity:0.3;opacity:0.3;border:1px solid #F0F0EE !important;cursor:pointer;}.editAreaSeparatorLine {margin:1px 2px;background-color:#C0C0BB;width:2px;height:18px;}#processing{display:none;background-color:#ECE9D8;border:solid #888 1px;position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;text-align:center;}#processing_text{position:absolute;left:50%;top:50%;width:200px;height:20px;margin-left:-100px;margin-top:-10px;text-align:center;}#tab_browsing_area{display:none;background-color:#CCC9A8;border-top:1px solid #888;text-align:left;margin:0;}#tab_browsing_list {padding:0;margin:0;list-style-type:none;white-space:nowrap;}#tab_browsing_list li {float:left;margin:-1px;}#tab_browsing_list a {position:relative;display:block;text-decoration:none;float:left;cursor:pointer;line-height:14px;}#tab_browsing_list a span {display:block;color:#000;background:#ECE9D8;border:1px solid #888;border-width:1px 1px 0;text-align:center;padding:2px 2px 1px 4px;position:relative;}#tab_browsing_list a b {display:block;border-bottom:2px solid #617994;}#tab_browsing_list a .edited {display:none;}#tab_browsing_list a.edited .edited {display:inline;}#tab_browsing_list a img{margin-left:7px;}#tab_browsing_list a.edited img{margin-left:3px;}#tab_browsing_list a:hover span {background:#F4F2E8;border-color:#0A246A;}#tab_browsing_list .selected a span{background:#046380;color:#FFF;}#no_file_selected{height:100%;width:150%;background:#CCC;display:none;z-index:20;position:absolute;}.non_editable #editor{border-width:0 1px;}.non_editable .area_toolbar{display:none;}#auto_completion_area{background:#FFF;border:solid 1px #888;position:absolute;z-index:15;width:280px;height:180px;overflow:auto;display:none;}#auto_completion_area a,#auto_completion_area a:visited{display:block;padding:0 2px 1px;color:#000;text-decoration:none;}#auto_completion_area a:hover,#auto_completion_area a:focus,#auto_completion_area a.focus{background:#D6E1FE;text-decoration:none;}#auto_completion_area ul{margin:0;padding:0;list-style:none inside;}#auto_completion_area li{padding:0;}#auto_completion_area .prefix{font-style:italic;padding:0 3px;}</style>";
