function EAL(){this.version="0.7.1";date=new Date();this.start_time=date.getTime();this.win="loading";this.error=false;this.baseURL="";this.template="";this.lang=new Object();this.load_syntax=new Object();this.syntax=new Object();this.loadedFiles=new Array();this.waiting_loading=new Object();this.scripts_to_load=new Array();this.sub_scripts_to_load=new Array();this.resize=new Array();this.hidden=new Object();this.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, |, help",begin_toolbar:"",end_toolbar:"",is_multi_files:false,allow_resize:"both",min_width:400,min_height:125,replace_tab_by_spaces:false,allow_toggle:true,language:"en",syntax:"",syntax_selection_allow:"basic,brainfuck,c,cpp,css,html,js,pas,php,python,ruby,sql,vb,xml",display:"onload",max_undo:30,browsers:"known",plugins:"",gecko_spellcheck:false,fullscreen:false,is_editable:true,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:""};this.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","process.png","save",false],["load","load.gif","load",false],["fullscreen","fullscreen.gif","toggle_full_screen",false]];ua=navigator.userAgent;this.nav=new Object();this.nav.isMacOS=(ua.indexOf("Mac OS")!=-1);this.nav.isIE=(navigator.appName=="Microsoft Internet Explorer");if(this.nav.isIE){this.nav.isIE=ua.replace(/^.*?MSIE ([0-9\.]*).*$/,"$1");if(this.nav.isIE<6){this.has_error()}}if(this.nav.isNS=ua.indexOf("Netscape/")!=-1){this.nav.isNS=ua.substr(ua.indexOf("Netscape/")+9);if(this.nav.isNS<8||!this.nav.isIE){this.has_error()}}if(this.nav.isOpera=(ua.indexOf("Opera")!=-1)){this.nav.isOpera=ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i,"$1");if(this.nav.isOpera<9){this.has_error()}this.nav.isIE=false}this.nav.isGecko=(ua.indexOf("Gecko")!=-1);if(this.nav.isFirefox=(ua.indexOf("Firefox")!=-1)){this.nav.isFirefox=ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i,"$1")}if(this.nav.isIceweasel=(ua.indexOf("Iceweasel")!=-1)){this.nav.isFirefox=this.nav.isIceweasel=ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i,"$1")}if(this.nav.isCamino=(ua.indexOf("Camino")!=-1)){this.nav.isCamino=ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i,"$1")}if(this.nav.isSafari=(ua.indexOf("Safari")!=-1)){this.nav.isSafari=ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i,"$1")}if(this.nav.isIE>=6||this.nav.isOpera>=9||this.nav.isFirefox||this.nav.isCamino||this.nav.isSafari>=3){this.nav.isValidBrowser=true}else{this.nav.isValidBrowser=false}this.set_base_url();for(var a=0;a<this.scripts_to_load.length;a++){setTimeout("eAL.load_script('"+this.baseURL+this.scripts_to_load[a]+".js');",1);this.waiting_loading[this.scripts_to_load[a]+".js"]=false}this.add_event(window,"load",EAL.prototype.window_loaded)}EAL.prototype.has_error=function(){this.error=true;for(var a in EAL.prototype){EAL.prototype[a]=function(){}}};EAL.prototype.window_loaded=function(){eAL.win="loaded";if(document.forms){for(var a=0;a<document.forms.length;a++){var b=document.forms[a];b.edit_area_replaced_submit=null;try{b.edit_area_replaced_submit=b.onsubmit;b.onsubmit=""}catch(c){}eAL.add_event(b,"submit",EAL.prototype.submit);eAL.add_event(b,"reset",EAL.prototype.reset)}}eAL.add_event(window,"unload",function(){for(var d in eAs){eAL.delete_instance(d)}})};EAL.prototype.init_ie_textarea=function(b){textarea=document.getElementById(b);try{if(textarea&&typeof(textarea.focused)=="undefined"){textarea.focus();textarea.focused=true;textarea.selectionStart=textarea.selectionEnd=0;get_IE_selection(textarea);eAL.add_event(textarea,"focus",IE_textarea_focus);eAL.add_event(textarea,"blur",IE_textarea_blur)}}catch(a){}};EAL.prototype.init=function(b){if(!b.id){this.has_error()}if(this.error){return}if(eAs[b.id]){eAL.delete_instance(b.id)}for(var a in this.default_settings){if(typeof(b[a])=="undefined"){b[a]=this.default_settings[a]}}if(b.browsers=="known"&&this.nav.isValidBrowser==false){return}if(b.begin_toolbar.length>0){b.toolbar=b.begin_toolbar+","+b.toolbar}if(b.end_toolbar.length>0){b.toolbar=b.toolbar+","+b.end_toolbar}b.tab_toolbar=b.toolbar.replace(/ /g,"").split(",");b.plugins=b.plugins.replace(/ /g,"").split(",");for(var a=0;a<b.plugins.length;a++){if(b.plugins[a].length==0){b.plugins.splice(a,1)}}this.get_template();this.load_script(this.baseURL+"langs/"+b.language+".js");if(b.syntax.length>0){b.syntax=b.syntax.toLowerCase();this.load_script(this.baseURL+"reg_syntax/"+b.syntax+".js")}eAs[b.id]={settings:b};eAs[b.id]["displayed"]=false;eAs[b.id]["hidden"]=false;eAL.start(b.id)};EAL.prototype.delete_instance=function(d){eAL.execCommand(d,"EA_delete");if(window.frames["frame_"+d]&&window.frames["frame_"+d].editArea){if(eAs[d]["displayed"]){eAL.toggle(d,"off")}window.frames["frame_"+d].editArea.execCommand("EA_unload")}var b=document.getElementById("EditAreaArroundInfos_"+d);if(b){b.parentNode.removeChild(b)}var a=document.getElementById("frame_"+d);if(a){a.parentNode.removeChild(a);try{delete window.frames["frame_"+d]}catch(c){}}delete eAs[d]};EAL.prototype.start=function(a){if(this.win!="loaded"){setTimeout("eAL.start('"+a+"');",50);return}for(var e in eAL.waiting_loading){if(eAL.waiting_loading[e]!="loaded"&&typeof(eAL.waiting_loading[e])!="function"){setTimeout("eAL.start('"+a+"');",50);return}}if(!eAL.lang[eAs[a]["settings"]["language"]]||(eAs[a]["settings"]["syntax"].length>0&&!eAL.load_syntax[eAs[a]["settings"]["syntax"]])){setTimeout("eAL.start('"+a+"');",50);return}if(eAs[a]["settings"]["syntax"].length>0){eAL.init_syntax_regexp()}if(!document.getElementById("EditAreaArroundInfos_"+a)&&(eAs[a]["settings"]["debug"]||eAs[a]["settings"]["allow_toggle"])){var j=document.createElement("span");j.id="EditAreaArroundInfos_"+a;var g="";if(eAs[a]["settings"]["allow_toggle"]){checked=(eAs[a]["settings"]["display"]=="onload")?"checked":"";g+="<div id='edit_area_toggle_"+e+"'>";g+="<input id='edit_area_toggle_checkbox_"+a+"' class='toggle_"+a+"' type='checkbox' onclick='eAL.toggle(\""+a+"\");' accesskey='e' "+checked+" />";g+="<label for='edit_area_toggle_checkbox_"+a+"'>{$toggle}</label></div>"}if(eAs[a]["settings"]["debug"]){g+="<textarea id='edit_area_debug_"+a+"' style='z-index: 20;width: 100%;height: 120px;overflow: auto;border: solid black 1px;'></textarea><br />"}g=eAL.translate(g,eAs[a]["settings"]["language"]);j.innerHTML=g;var b=document.getElementById(a).parentNode;var f=document.getElementById(a).nextSibling;if(f==null){b.appendChild(j)}else{b.insertBefore(j,f)}}if(!eAs[a]["initialized"]){this.execCommand(a,"EA_init");if(eAs[a]["settings"]["display"]=="later"){eAs[a]["initialized"]=true;return}}if(this.nav.isIE){eAL.init_ie_textarea(a)}var d="";area=eAs[a];for(var e=0;e<area.settings["tab_toolbar"].length;e++){d+=this.get_control_html(area.settings["tab_toolbar"][e],area.settings["language"])}if(!this.iframe_script){this.iframe_script="";for(var e=0;e<this.sub_scripts_to_load.length;e++){this.iframe_script+='<script language="javascript" type="text/javascript" src="'+this.baseURL+this.sub_scripts_to_load[e]+'.js"><\/script>'}}for(var e=0;e<area.settings["plugins"].length;e++){if(!eAL.all_plugins_loaded){this.iframe_script+='<script language="javascript" type="text/javascript" src="'+this.baseURL+"plugins/"+area.settings["plugins"][e]+"/"+area.settings["plugins"][e]+'.js"><\/script>'}this.iframe_script+='<script language="javascript" type="text/javascript" src="'+this.baseURL+"plugins/"+area.settings["plugins"][e]+"/langs/"+area.settings["language"]+'.js"><\/script>'}if(!this.iframe_css){this.iframe_css="<link href='"+this.baseURL+"edit_area.css' rel='stylesheet' type='text/css' />"}var k=this.template.replace(/\[__BASEURL__\]/g,this.baseURL);k=k.replace("[__TOOLBAR__]",d);k=this.translate(k,area.settings["language"],"template");k=k.replace("[__CSSRULES__]",this.iframe_css);k=k.replace("[__JSCODE__]",this.iframe_script);k=k.replace("[__EA_VERSION__]",this.version);area.textarea=document.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"]]}var b=area.textarea.parentNode;var h=document.createElement("iframe");h.name="frame_"+area.settings["id"];h.id="frame_"+area.settings["id"];h.style.borderWidth="0px";setAttribute(h,"frameBorder","0");h.style.overflow="hidden";h.style.display="none";var f=area.textarea.nextSibling;if(f==null){b.appendChild(h)}else{b.insertBefore(h,f)}var c=window.frames["frame_"+area.settings["id"]];c.document.open();c.eAs=eAs;c.area_id=area.settings["id"];c.document.area_id=area.settings["id"];c.document.write(k);c.document.close()};EAL.prototype.toggle=function(b,a){if(!a){a=(eAs[b]["displayed"]==true)?"off":"on"}if(eAs[b]["displayed"]==true&&a=="off"){this.toggle_off(b)}else{if(eAs[b]["displayed"]==false&&a=="on"){this.toggle_on(b)}}return false};EAL.prototype.toggle_off=function(a){if(window.frames["frame_"+a]){var b=window.frames["frame_"+a];if(b.editArea.fullscreen.isFull){b.editArea.toggle_full_screen(false)}eAs[a]["displayed"]=false;eAs[a]["textarea"].wrap="off";setAttribute(eAs[a]["textarea"],"wrap","off");var f=eAs[a]["textarea"].parentNode;var g=eAs[a]["textarea"].nextSibling;f.removeChild(eAs[a]["textarea"]);f.insertBefore(eAs[a]["textarea"],g);eAs[a]["textarea"].value=b.editArea.textarea.value;var c=b.editArea.last_selection.selectionStart;var k=b.editArea.last_selection.selectionEnd;var d=b.document.getElementById("result").scrollTop;var h=b.document.getElementById("result").scrollLeft;document.getElementById("frame_"+a).style.display="none";eAs[a]["textarea"].style.display="inline";eAs[a]["textarea"].focus();if(this.nav.isIE){eAs[a]["textarea"].selectionStart=c;eAs[a]["textarea"].selectionEnd=k;eAs[a]["textarea"].focused=true;set_IE_selection(eAs[a]["textarea"])}else{if(this.nav.isOpera){eAs[a]["textarea"].setSelectionRange(0,0)}try{eAs[a]["textarea"].setSelectionRange(c,k)}catch(j){}}eAs[a]["textarea"].scrollTop=d;eAs[a]["textarea"].scrollLeft=h;b.editArea.execCommand("toggle_off")}};EAL.prototype.toggle_on=function(h){if(window.frames["frame_"+h]){var g=window.frames["frame_"+h];area=window.frames["frame_"+h].editArea;area.textarea.value=eAs[h]["textarea"].value;var f=0;var a=0;var d=0;var e=0;if(eAs[h]["textarea"].use_last==true){var f=eAs[h]["textarea"].last_selectionStart;var a=eAs[h]["textarea"].last_selectionEnd;var d=eAs[h]["textarea"].last_scrollTop;var e=eAs[h]["textarea"].last_scrollLeft;eAs[h]["textarea"].use_last=false}else{try{var f=eAs[h]["textarea"].selectionStart;var a=eAs[h]["textarea"].selectionEnd;var d=eAs[h]["textarea"].scrollTop;var e=eAs[h]["textarea"].scrollLeft}catch(b){}}this.set_editarea_size_from_textarea(h,document.getElementById("frame_"+h));eAs[h]["textarea"].style.display="none";document.getElementById("frame_"+h).style.display="inline";area.execCommand("focus");eAs[h]["displayed"]=true;area.execCommand("update_size");window.frames["frame_"+h].document.getElementById("result").scrollTop=d;window.frames["frame_"+h].document.getElementById("result").scrollLeft=e;area.area_select(f,a-f);area.execCommand("toggle_on")}else{var c=document.getElementById(h);c.last_selectionStart=c.selectionStart;c.last_selectionEnd=c.selectionEnd;c.last_scrollTop=c.scrollTop;c.last_scrollLeft=c.scrollLeft;c.use_last=true;eAL.start(h)}};EAL.prototype.set_editarea_size_from_textarea=function(e,d){var c=document.getElementById(e);var b=Math.max(eAs[e]["settings"]["min_width"],c.offsetWidth)+"px";var a=Math.max(eAs[e]["settings"]["min_height"],c.offsetHeight)+"px";if(c.style.width.indexOf("%")!=-1){b=c.style.width}if(c.style.height.indexOf("%")!=-1){a=c.style.height}d.style.width=b;d.style.height=a};EAL.prototype.set_base_url=function(){if(!this.baseURL){var b=document.getElementsByTagName("script");for(var a=0;a<b.length;a++){if(b[a].src&&b[a].src.match(/edit_area_[^\\\/]*$/i)){var d=b[a].src;d=d.substring(0,d.lastIndexOf("/"));this.baseURL=d;this.file_name=b[a].src.substr(b[a].src.lastIndexOf("/")+1);break}}}var e=document.location.href;if(e.indexOf("?")!=-1){e=e.substring(0,e.indexOf("?"))}var c=e;e=e.substring(0,e.lastIndexOf("/"));if(this.baseURL.indexOf("://")==-1&&this.baseURL.charAt(0)!="/"){this.baseURL=e+"/"+this.baseURL}this.baseURL+="/"};EAL.prototype.get_button_html=function(f,b,a,e,d){if(!d){d=this.baseURL}var c="editArea.execCommand('"+a+"')";html='<a id="a_'+f+'" href="javascript:'+c+'" onclick="'+c+';return false;" onmousedown="return false;" target="_self" fileSpecific="'+(e?"yes":"no")+'">';html+='<img id="'+f+'" src="'+d+"images/"+b+'" title="{$'+f+'}" width="20" height="20" class="editAreaButtonNormal" onmouseover="editArea.switchClass(this,\'editAreaButtonOver\');" onmouseout="editArea.restoreClass(this);" onmousedown="editArea.restoreAndSwitchClass(this,\'editAreaButtonDown\');" /></a>';return html};EAL.prototype.get_control_html=function(b,e){for(var d=0;d<this.advanced_buttons.length;d++){var a=this.advanced_buttons[d];if(a[0]==b){return this.get_button_html(a[0],a[1],a[2],a[3])}}switch(b){case"*":case"return":return"<br />";case"|":case"separator":return'<img src="'+this.baseURL+'images/spacer.gif" width="1" height="15" class="editAreaSeparatorLine">';case"select_font":c="<select id='area_font_size' onchange='javascript:editArea.execCommand(\"change_font_size\")' fileSpecific='yes'>			<option value='-1'>{$font_size}</option>			<option value='8'>8 pt</option>			<option value='9'>9 pt</option>			<option value='10'>10 pt</option>			<option value='11'>11 pt</option>			<option value='12'>12 pt</option>			<option value='14'>14 pt</option>		</select>";return c;case"syntax_selection":var c="<select id='syntax_selection' onchange='javascript:editArea.execCommand(\"change_syntax\", this.value)' fileSpecific='yes'>";c+="<option value='-1'>{$syntax_selection}</option>";c+="</select>";return c}return"<span id='tmp_tool_"+b+"'>["+b+"]</span>"};EAL.prototype.get_template=function(){if(this.template==""){var a=null;if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}else{alert("XMLHTTPRequest not supported. EditArea not loaded");return}}a.open("GET",this.baseURL+"template.html",false);a.send(null);if(a.readyState==4){this.template=a.responseText}else{this.has_error()}}};EAL.prototype.translate=function(c,b,a){if(a=="word"){c=eAL.get_word_translation(c,b)}else{if(a="template"){eAL.current_language=b;c=c.replace(/\{\$([^\}]+)\}/gm,eAL.translate_template)}}return c};EAL.prototype.translate_template=function(){return eAL.get_word_translation(EAL.prototype.translate_template.arguments[1],eAL.current_language)};EAL.prototype.get_word_translation=function(c,b){for(var a in eAL.lang[b]){if(a==c){return eAL.lang[b][a]}}return"_"+c};EAL.prototype.load_script=function(b){if(this.loadedFiles[b]){return}try{var a=document.createElement("script");a.type="text/javascript";a.src=b;a.charset="UTF-8";var c=document.getElementsByTagName("head");c[0].appendChild(a)}catch(d){document.write('<script language="javascript" type="text/javascript" src="'+b+'" charset="UTF-8"><\/script>')}this.loadedFiles[b]=true};EAL.prototype.add_event=function(c,a,b){if(c.attachEvent){c.attachEvent("on"+a,b)}else{c.addEventListener(a,b,false)}};EAL.prototype.remove_event=function(c,a,b){if(c.detachEvent){c.detachEvent("on"+a,b)}else{c.removeEventListener(a,b,false)}};EAL.prototype.reset=function(g){var c=eAL.nav.isIE?window.event.srcElement:g.target;if(c.tagName!="FORM"){c=c.form}for(var d in eAs){var f=false;for(var a=0;a<c.elements.length;a++){if(c.elements[a].id==d){f=true}}if(window.frames["frame_"+d]&&f&&eAs[d]["displayed"]==true){var b='window.frames["frame_'+d+'"].editArea.textarea.value=document.getElementById("'+d+'").value;';b+='window.frames["frame_'+d+'"].editArea.execCommand("focus");';b+='window.frames["frame_'+d+'"].editArea.check_line_selection();';b+='window.frames["frame_'+d+'"].editArea.execCommand("reset");';window.setTimeout(b,10)}}return};EAL.prototype.submit=function(f){var b=eAL.nav.isIE?window.event.srcElement:f.target;if(b.tagName!="FORM"){b=b.form}for(var c in eAs){var d=false;for(var a=0;a<b.elements.length;a++){if(b.elements[a].id==c){d=true}}if(d){if(window.frames["frame_"+c]&&eAs[c]["displayed"]==true){document.getElementById(c).value=window.frames["frame_"+c].editArea.textarea.value}eAL.execCommand(c,"EA_submit")}}if(typeof(b.edit_area_replaced_submit)=="function"){res=b.edit_area_replaced_submit();if(res==false){if(eAL.nav.isIE){return false}else{f.preventDefault()}}}return};EAL.prototype.getValue=function(a){if(window.frames["frame_"+a]&&eAs[a]["displayed"]==true){return window.frames["frame_"+a].editArea.textarea.value}else{if(elem=document.getElementById(a)){return elem.value}}return false};EAL.prototype.setValue=function(b,a){if(window.frames["frame_"+b]&&eAs[b]["displayed"]==true){window.frames["frame_"+b].editArea.textarea.value=a;window.frames["frame_"+b].editArea.execCommand("focus");window.frames["frame_"+b].editArea.check_line_selection(false);window.frames["frame_"+b].editArea.execCommand("onchange")}else{if(elem=document.getElementById(b)){elem.value=a}}};EAL.prototype.getSelectionRange=function(c){var b={start:0,end:0};if(window.frames["frame_"+c]&&eAs[c]["displayed"]==true){var a=window.frames["frame_"+c].editArea;b.start=a.textarea.selectionStart;b.end=a.textarea.selectionEnd}else{if(elem=document.getElementById(c)){b=getSelectionRange(elem)}}return b};EAL.prototype.setSelectionRange=function(c,b,a){if(window.frames["frame_"+c]&&eAs[c]["displayed"]==true){window.frames["frame_"+c].editArea.area_select(b,a-b);if(!this.nav.isIE){window.frames["frame_"+c].editArea.check_line_selection(false);window.frames["frame_"+c].editArea.scroll_to_view()}}else{if(elem=document.getElementById(c)){setSelectionRange(elem,b,a)}}};EAL.prototype.getSelectedText=function(b){var a=this.getSelectionRange(b);return this.getValue(b).substring(a.start,a.end)};EAL.prototype.setSelectedText=function(g,a){a=a.replace(/\r/g,"");var b=this.getSelectionRange(g);var f=this.getValue(g);if(window.frames["frame_"+g]&&eAs[g]["displayed"]==true){var d=window.frames["frame_"+g].document.getElementById("result").scrollTop;var e=window.frames["frame_"+g].document.getElementById("result").scrollLeft}else{var d=document.getElementById(g).scrollTop;var e=document.getElementById(g).scrollLeft}f=f.substring(0,b.start)+a+f.substring(b.end);this.setValue(g,f);var c=b.start+a.length;this.setSelectionRange(g,b.start,c);if(a!=this.getSelectedText(g).replace(/\r/g,"")){this.setSelectionRange(g,b.start,c+a.split("\n").length-1)}if(window.frames["frame_"+g]&&eAs[g]["displayed"]==true){window.frames["frame_"+g].document.getElementById("result").scrollTop=d;window.frames["frame_"+g].document.getElementById("result").scrollLeft=e;window.frames["frame_"+g].editArea.execCommand("onchange")}else{document.getElementById(g).scrollTop=d;document.getElementById(g).scrollLeft=e}};EAL.prototype.insertTags=function(e,a,c){var b=this.getSelectionRange(e);text=a+this.getSelectedText(e)+c;eAL.setSelectedText(e,text);var d=this.getSelectionRange(e);if(b.end>b.start){this.setSelectionRange(e,d.end,d.end)}else{this.setSelectionRange(e,b.start+a.length,b.start+a.length)}};EAL.prototype.hide=function(d){if(document.getElementById(d)&&!this.hidden[d]){this.hidden[d]=new Object();this.hidden[d]["selectionRange"]=this.getSelectionRange(d);if(document.getElementById(d).style.display!="none"){this.hidden[d]["scrollTop"]=document.getElementById(d).scrollTop;this.hidden[d]["scrollLeft"]=document.getElementById(d).scrollLeft}if(window.frames["frame_"+d]){this.hidden[d]["toggle"]=eAs[d]["displayed"];if(window.frames["frame_"+d]&&eAs[d]["displayed"]==true){var b=window.frames["frame_"+d].document.getElementById("result").scrollTop;var c=window.frames["frame_"+d].document.getElementById("result").scrollLeft}else{var b=document.getElementById(d).scrollTop;var c=document.getElementById(d).scrollLeft}this.hidden[d]["scrollTop"]=b;this.hidden[d]["scrollLeft"]=c;if(eAs[d]["displayed"]==true){eAL.toggle_off(d)}}var a=document.getElementById("EditAreaArroundInfos_"+d);if(a){a.style.display="none"}document.getElementById(d).style.display="none"}};EAL.prototype.show=function(b){if((elem=document.getElementById(b))&&this.hidden[b]){elem.style.display="inline";elem.scrollTop=this.hidden[b]["scrollTop"];elem.scrollLeft=this.hidden[b]["scrollLeft"];var a=document.getElementById("EditAreaArroundInfos_"+b);if(a){a.style.display="inline"}if(window.frames["frame_"+b]){elem.style.display="inline";if(this.hidden[b]["toggle"]==true){eAL.toggle_on(b)}scrollTop=this.hidden[b]["scrollTop"];scrollLeft=this.hidden[b]["scrollLeft"];if(window.frames["frame_"+b]&&eAs[b]["displayed"]==true){window.frames["frame_"+b].document.getElementById("result").scrollTop=scrollTop;window.frames["frame_"+b].document.getElementById("result").scrollLeft=scrollLeft}else{elem.scrollTop=scrollTop;elem.scrollLeft=scrollLeft}}sel=this.hidden[b]["selectionRange"];this.setSelectionRange(b,sel.start,sel.end);delete this.hidden[b]}};EAL.prototype.getCurrentFile=function(a){return this.execCommand(a,"get_file",this.execCommand(a,"curr_file"))};EAL.prototype.getFile=function(b,a){return this.execCommand(b,"get_file",a)};EAL.prototype.getAllFiles=function(a){return this.execCommand(a,"get_all_files()")};EAL.prototype.openFile=function(b,a){return this.execCommand(b,"open_file",a)};EAL.prototype.closeFile=function(b,a){return this.execCommand(b,"close_file",a)};EAL.prototype.setFileEditedMode=function(e,c,d){var b=new RegExp("\\\\","g");var a=new RegExp('"',"g");return this.execCommand(e,'set_file_edited_mode("'+c.replace(b,"\\\\").replace(a,'\\"')+'", '+d+")")};EAL.prototype.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=new Object();function getAttribute(f,b){try{var a=f.getAttribute(b)}catch(d){}if(!a){for(var c=0;c<f.attributes.length;c++){var e=f.attributes[c].name.toLowerCase();if(e==b){a=f.attributes[c].value;return a}}}return a}function setAttribute(c,a,b){if(a=="class"){c.setAttribute("className",b);c.setAttribute("class",b)}else{c.setAttribute(a,b)}}function getChildren(b,j,g,c,f,e){if(!f){var f="single"}if(!e){var e=-1}if(b){var a=b.childNodes;var k=null;var d=new Array();for(var h=0;h<a.length;h++){strTagName=new String(a[h].tagName);children_class="?";if(strTagName!="undefined"){child_attribute=getAttribute(a[h],g);if((strTagName.toLowerCase()==j.toLowerCase()||j=="")&&(g==""||child_attribute==c)){if(f=="all"){d.push(a[h])}else{return a[h]}}if(e!=0){k=getChildren(a[h],j,g,c,f,e-1);if(f=="all"){if(k.length>0){d=d.concat(k)}}else{if(k!=null){return k}}}}}if(f=="all"){return d}}return null}function isChildOf(b,a){if(b){if(b==a){return true}while(b.parentNode!="undefined"){return isChildOf(b.parentNode,a)}}return false}function getMouseX(a){if(a!=null&&typeof(a.pageX)!="undefined"){return a.pageX}else{return(a!=null?a.x:event.x)+document.documentElement.scrollLeft}}function getMouseY(a){if(a!=null&&typeof(a.pageY)!="undefined"){return a.pageY}else{return(a!=null?a.y:event.y)+document.documentElement.scrollTop}}function calculeOffsetLeft(a){return calculeOffset(a,"offsetLeft")}function calculeOffsetTop(a){return calculeOffset(a,"offsetTop")}function calculeOffset(b,a){var c=0;while(b){c+=b[a];b=b.offsetParent}return c}function get_css_property(a,b){if(document.defaultView){return document.defaultView.getComputedStyle(a,null).getPropertyValue(b)}else{if(a.currentStyle){var b=b.replace(/-\D/gi,function(c){return c.charAt(c.length-1).toUpperCase()});return a.currentStyle[b]}else{return null}}}var move_current_element;function start_move_element(b,d,c){var a=(b.target||b.srcElement).id;if(d){a=d}if(!c){c=window}if(c.event){b=c.event}move_current_element=c.document.getElementById(a);move_current_element.frame=c;c.document.onmousemove=move_element;c.document.onmouseup=end_move_element;mouse_x=getMouseX(b);mouse_y=getMouseY(b);move_current_element.start_pos_x=mouse_x-(move_current_element.style.left.replace("px","")||calculeOffsetLeft(move_current_element));move_current_element.start_pos_y=mouse_y-(move_current_element.style.top.replace("px","")||calculeOffsetTop(move_current_element));return false}function end_move_element(a){move_current_element.frame.document.onmousemove="";move_current_element.frame.document.onmouseup="";move_current_element=null}function move_element(f){if(move_current_element.frame&&move_current_element.frame.event){f=move_current_element.frame.event}var d=getMouseX(f);var a=getMouseY(f);var g=a-move_current_element.start_pos_y;var c=d-move_current_element.start_pos_x;var b=move_current_element.frame.document.body.offsetWidth-move_current_element.offsetWidth;max_top=move_current_element.frame.document.body.offsetHeight-move_current_element.offsetHeight;g=Math.min(Math.max(0,g),max_top);c=Math.min(Math.max(0,c),b);move_current_element.style.top=g+"px";move_current_element.style.left=c+"px";return false}var nav=eAL.nav;function getSelectionRange(a){return{start:a.selectionStart,end:a.selectionEnd}}function setSelectionRange(b,c,a){b.focus();c=Math.max(0,Math.min(b.value.length,c));a=Math.max(c,Math.min(b.value.length,a));if(nav.isOpera){b.selectionEnd=1;b.selectionStart=0;b.selectionEnd=1;b.selectionStart=0}b.selectionStart=c;b.selectionEnd=a;if(nav.isIE){set_IE_selection(b)}}function get_IE_selection(l){if(l&&l.focused){if(!l.ea_line_height){var b=document.createElement("div");b.style.fontFamily=get_css_property(l,"font-family");b.style.fontSize=get_css_property(l,"font-size");b.style.visibility="hidden";b.innerHTML="0";document.body.appendChild(b);l.ea_line_height=b.offsetHeight;document.body.removeChild(b)}var k=document.selection.createRange();var d=k.duplicate();d.moveToElementText(l);d.setEndPoint("EndToEnd",k);if(d.parentElement()==l){var j=l;var e=0;while(j.parentNode){e+=j.scrollTop;j=j.parentNode}var g=k.offsetTop-calculeOffsetTop(l)+e;var h=Math.round((g/l.ea_line_height)+1);var c=Math.round(k.boundingHeight/l.ea_line_height);var a=d.text.length-k.text.length;var f=l.value.substr(0,a).split("\n");a+=(h-f.length)*2;l.selectionStart=a;var m=l.selectionStart+k.text.length;f=l.value.substr(0,a+k.text.length).split("\n");m+=(h+c-1-f.length)*2;l.selectionEnd=m}}setTimeout("get_IE_selection(document.getElementById('"+l.id+"'));",50)}function IE_textarea_focus(){event.srcElement.focused=true}function IE_textarea_blur(){event.srcElement.focused=false}function set_IE_selection(c){if(!window.closed){var a=c.value.substr(0,c.selectionStart).split("\n").length-1;var b=c.value.substr(0,c.selectionEnd).split("\n").length-1;var d=document.selection.createRange();d.moveToElementText(c);d.setEndPoint("EndToStart",d);d.moveStart("character",c.selectionStart-a);d.moveEnd("character",c.selectionEnd-b-(c.selectionStart-a));d.select()}}eAL.waiting_loading["elements_functions.js"]="loaded";EAL.prototype.start_resize_area=function(){document.onmouseup=eAL.end_resize_area;document.onmousemove=eAL.resize_area;eAL.toggle(eAL.resize.id);var b=eAs[eAL.resize.id]["textarea"];var e=document.getElementById("edit_area_resize");if(!e){e=document.createElement("div");e.id="edit_area_resize";e.style.border="dashed #888888 1px"}var d=b.offsetWidth-2;var a=b.offsetHeight-2;e.style.display="block";e.style.width=d+"px";e.style.height=a+"px";var c=b.parentNode;c.insertBefore(e,b);b.style.display="none";eAL.resize.start_top=calculeOffsetTop(e);eAL.resize.start_left=calculeOffsetLeft(e)};EAL.prototype.end_resize_area=function(d){document.onmouseup="";document.onmousemove="";var f=document.getElementById("edit_area_resize");var b=eAs[eAL.resize.id]["textarea"];var c=Math.max(eAs[eAL.resize.id]["settings"]["min_width"],f.offsetWidth-4);var a=Math.max(eAs[eAL.resize.id]["settings"]["min_height"],f.offsetHeight-4);if(eAL.nav.isIE==6){c-=2;a-=2}b.style.width=c+"px";b.style.height=a+"px";f.style.display="none";b.style.display="inline";b.selectionStart=eAL.resize.selectionStart;b.selectionEnd=eAL.resize.selectionEnd;eAL.toggle(eAL.resize.id);return false};EAL.prototype.resize_area=function(d){var c=eAs[eAL.resize.id]["settings"]["allow_resize"];if(c=="both"||c=="y"){new_y=getMouseY(d);var b=Math.max(20,new_y-eAL.resize.start_top);document.getElementById("edit_area_resize").style.height=b+"px"}if(c=="both"||c=="x"){new_x=getMouseX(d);var a=Math.max(20,new_x-eAL.resize.start_left);document.getElementById("edit_area_resize").style.width=a+"px"}return false};eAL.waiting_loading["resize_area.js"]="loaded";EAL.prototype.get_regexp=function(a){res="(\\b)(";for(i=0;i<a.length;i++){if(i>0){res+="|"}res+=this.get_escaped_regexp(a[i])}res+=")(\\b)";reg=new RegExp(res);return res};EAL.prototype.get_escaped_regexp=function(a){return a.replace(/(\.|\?|\*|\+|\\|\(|\)|\[|\]|\}|\{|\$|\^|\|)/g,"\\$1")};EAL.prototype.init_syntax_regexp=function(){var l=new Object();for(var c in this.load_syntax){if(!this.syntax[c]){this.syntax[c]=new Object();this.syntax[c]["keywords_reg_exp"]=new Object();this.keywords_reg_exp_nb=0;if(this.load_syntax[c]["KEYWORDS"]){param="g";if(this.load_syntax[c]["KEYWORD_CASE_SENSITIVE"]===false){param+="i"}for(var h in this.load_syntax[c]["KEYWORDS"]){if(typeof(this.load_syntax[c]["KEYWORDS"][h])=="function"){continue}this.syntax[c]["keywords_reg_exp"][h]=new RegExp(this.get_regexp(this.load_syntax[c]["KEYWORDS"][h]),param);this.keywords_reg_exp_nb++}}if(this.load_syntax[c]["OPERATORS"]){var m="";var k=0;for(var h in this.load_syntax[c]["OPERATORS"]){if(typeof(this.load_syntax[c]["OPERATORS"][h])=="function"){continue}if(k>0){m+="|"}m+=this.get_escaped_regexp(this.load_syntax[c]["OPERATORS"][h]);k++}if(m.length>0){this.syntax[c]["operators_reg_exp"]=new RegExp("("+m+")","g")}}if(this.load_syntax[c]["DELIMITERS"]){var m="";var k=0;for(var h in this.load_syntax[c]["DELIMITERS"]){if(typeof(this.load_syntax[c]["DELIMITERS"][h])=="function"){continue}if(k>0){m+="|"}m+=this.get_escaped_regexp(this.load_syntax[c]["DELIMITERS"][h]);k++}if(m.length>0){this.syntax[c]["delimiters_reg_exp"]=new RegExp("("+m+")","g")}}var n=new Array();this.syntax[c]["quotes"]=new Object();var g=new Array();if(this.load_syntax[c]["QUOTEMARKS"]){for(var h in this.load_syntax[c]["QUOTEMARKS"]){if(typeof(this.load_syntax[c]["QUOTEMARKS"][h])=="function"){continue}var o=this.get_escaped_regexp(this.load_syntax[c]["QUOTEMARKS"][h]);this.syntax[c]["quotes"][o]=o;g[g.length]="("+o+"(?:[^"+o+"\\\\]*(\\\\\\\\)*(\\\\"+o+"?)?)*("+o+"|$))";n.push(o)}}this.syntax[c]["comments"]=new Object();if(this.load_syntax[c]["COMMENT_SINGLE"]){for(var h in this.load_syntax[c]["COMMENT_SINGLE"]){if(typeof(this.load_syntax[c]["COMMENT_SINGLE"][h])=="function"){continue}var o=this.get_escaped_regexp(this.load_syntax[c]["COMMENT_SINGLE"][h]);g[g.length]="("+o+"(.|\\r|\\t)*(\\n|$))";n.push(o);this.syntax[c]["comments"][o]="\n"}}if(this.load_syntax[c]["COMMENT_MULTI"]){for(var h in this.load_syntax[c]["COMMENT_MULTI"]){if(typeof(this.load_syntax[c]["COMMENT_MULTI"][h])=="function"){continue}var b=this.get_escaped_regexp(h);var e=this.get_escaped_regexp(this.load_syntax[c]["COMMENT_MULTI"][h]);g[g.length]="("+b+"(.|\\n|\\r)*?("+e+"|$))";n.push(b);n.push(e);this.syntax[c]["comments"][h]=this.load_syntax[c]["COMMENT_MULTI"][h]}}if(g.length>0){this.syntax[c]["comment_or_quote_reg_exp"]=new RegExp("("+g.join("|")+")","gi")}if(n.length>0){this.syntax[c]["syntax_trace_regexp"]=new RegExp("((.|\n)*?)(\\\\*("+n.join("|")+"|$))","gmi")}if(this.load_syntax[c]["SCRIPT_DELIMITERS"]){this.syntax[c]["script_delimiters"]=new Object();for(var h in this.load_syntax[c]["SCRIPT_DELIMITERS"]){if(typeof(this.load_syntax[c]["SCRIPT_DELIMITERS"][h])=="function"){continue}this.syntax[c]["script_delimiters"][h]=this.load_syntax[c]["SCRIPT_DELIMITERS"]}}this.syntax[c]["custom_regexp"]=new Object();if(this.load_syntax[c]["REGEXPS"]){for(var h in this.load_syntax[c]["REGEXPS"]){if(typeof(this.load_syntax[c]["REGEXPS"][h])=="function"){continue}var d=this.load_syntax[c]["REGEXPS"][h];if(!this.syntax[c]["custom_regexp"][d.execute]){this.syntax[c]["custom_regexp"][d.execute]=new Object()}this.syntax[c]["custom_regexp"][d.execute][h]={regexp:new RegExp(d.search,d.modifiers),"class":d["class"]}}}if(this.load_syntax[c]["STYLES"]){l[c]=new Object();for(var h in this.load_syntax[c]["STYLES"]){if(typeof(this.load_syntax[c]["STYLES"][h])=="function"){continue}if(typeof(this.load_syntax[c]["STYLES"][h])!="string"){for(var f in this.load_syntax[c]["STYLES"][h]){l[c][f]=this.load_syntax[c]["STYLES"][h][f]}}else{l[c][h]=this.load_syntax[c]["STYLES"][h]}}}var a="";for(var h in l[c]){if(l[c][h].length>0){a+="."+c+" ."+h.toLowerCase()+" span{"+l[c][h]+"}\n";a+="."+c+" ."+h.toLowerCase()+"{"+l[c][h]+"}\n"}}this.syntax[c]["styles"]=a}}};eAL.waiting_loading["reg_syntax.js"]="loaded";var editAreaLoader=eAL;var editAreas=eAs;EditAreaLoader=EAL;editAreaLoader.iframe_script='<script language=\'Javascript\' type=\'text/javascript\'> function EA(){this.error=false;this.inlinePopup=new Array({popup_id: "area_search_replace", icon_id: "search"}, {popup_id: "edit_area_help", icon_id: "help"});this.plugins=new Object();this.line_number=0;this.nav=parent.eAL.nav;this.last_selection=new Object();this.last_text_to_highlight="";this.last_hightlighted_text="";this.syntax_list=new Array();this.allready_used_syntax=new Object();this.textareaFocused=false;this.previous=new Array();this.next=new Array();this.last_undo="";this.files=new Object();this.filesIdAssoc=new Object();this.curr_file=\'\';this.assocBracket=new Object();this.revertAssocBracket=new Object();this.assocBracket["("]=")";this.assocBracket["{"]="}";this.assocBracket["["]="]";for(var index in this.assocBracket){this.revertAssocBracket[this.assocBracket[index]]=index;}this.is_editable=true;this.lineHeight=16;this.tab_nb_char=8;if(this.nav[\'isOpera\']) this.tab_nb_char=6;this.is_tabbing=false;this.fullscreen={\'isFull\': false};this.isResizing=false;this.id=area_id;this.settings=eAs[this.id]["settings"];if((""+this.settings[\'replace_tab_by_spaces\']).match(/^[0-9]+$/)){this.tab_nb_char=this.settings[\'replace_tab_by_spaces\'];this.tabulation="";for(var i=0;i<this.tab_nb_char;i++) this.tabulation+=" ";}\nelse{this.tabulation="\t";}if(this.settings["syntax_selection_allow"] && this.settings["syntax_selection_allow"].length>0) this.syntax_list=this.settings["syntax_selection_allow"].replace(/ /g,"").split(",");if(this.settings[\'syntax\']) this.allready_used_syntax[this.settings[\'syntax\']]=true;};EA.prototype.update_size=function(){if(eAs[eA.id] && eAs[eA.id]["displayed"]==true){if(eA.fullscreen[\'isFull\']){parent.document.getElementById("frame_"+eA.id).style.width=parent.document.getElementsByTagName("html")[0].clientWidth + "px";parent.document.getElementById("frame_"+eA.id).style.height=parent.document.getElementsByTagName("html")[0].clientHeight + "px";}if(eA.tab_browsing_area.style.display==\'block\' && !eA.nav[\'isIE\']){eA.tab_browsing_area.style.height="0px";eA.tab_browsing_area.style.height=(eA.result.offsetTop - eA.tab_browsing_area.offsetTop -1)+"px";}var height=document.body.offsetHeight - eA.get_all_toolbar_height() - 4;eA.result.style.height=height +"px";var width=document.body.offsetWidth -2;eA.result.style.width=width+"px";for(var i=0;i<eA.inlinePopup.length;i++){var popup=document.getElementById(eA.inlinePopup[i]["popup_id"]);var max_left=document.body.offsetWidth- popup.offsetWidth;var max_top=document.body.offsetHeight- popup.offsetHeight;if(popup.offsetTop>max_top) popup.style.top=max_top+"px";if(popup.offsetLeft>max_left) popup.style.left=max_left+"px";}}};EA.prototype.init=function(){this.textarea=document.getElementById("textarea");this.container=document.getElementById("container");this.result=document.getElementById("result");this.content_highlight=document.getElementById("content_highlight");this.selection_field=document.getElementById("selection_field");this.processing_screen=document.getElementById("processing");this.editor_area=document.getElementById("editor");this.tab_browsing_area=document.getElementById("tab_browsing_area");if(!this.settings[\'is_editable\']) this.set_editable(false);if(syntax_selec=document.getElementById("syntax_selection")){for(var i=0;i<this.syntax_list.length;i++){var syntax=this.syntax_list[i];var option=document.createElement("option");option.value=syntax;if(syntax==this.settings[\'syntax\']) option.selected="selected";option.innerHTML=this.get_translation("syntax_" + syntax, "word");syntax_selec.appendChild(option);}}spans=parent.getChildren(document.getElementById("toolbar_1"), "span", "", "", "all", -1);for(var i=0;i<spans.length;i++){id=spans[i].id.replace(/tmp_tool_(.*)/, "$1");if(id!=spans[i].id){for(var j in this.plugins){if(typeof(this.plugins[j].get_control_html)=="function" ){html=this.plugins[j].get_control_html(id);if(html!=false){html=this.get_translation(html, "template");var new_span=document.createElement("span");new_span.innerHTML=html;var father=spans[i].parentNode;spans[i].parentNode.replaceChild(new_span, spans[i]);break;}}}}}this.textarea.value=eAs[this.id]["textarea"].value;if(this.settings["debug"]) this.debug=parent.document.getElementById("edit_area_debug_"+this.id);if(document.getElementById("redo") !=null) this.switchClassSticky(document.getElementById("redo"), \'editAreaButtonDisabled\', true);if(typeof(parent.eAL.syntax[this.settings["syntax"]])!="undefined"){for(var i in parent.eAL.syntax){this.add_style(parent.eAL.syntax[i]["styles"]);}}if(this.nav[\'isOpera\']) document.getElementById("editor").onkeypress=keyDown;\nelse document.getElementById("editor").onkeydown=keyDown;for(var i=0;i<this.inlinePopup.length;i++){if(this.nav[\'isIE\'] || this.nav[\'isFirefox\']) document.getElementById(this.inlinePopup[i]["popup_id"]).onkeydown=keyDown;\nelse document.getElementById(this.inlinePopup[i]["popup_id"]).onkeypress=keyDown;}if(this.settings["allow_resize"]=="both" || this.settings["allow_resize"]=="x" || this.settings["allow_resize"]=="y") this.allow_resize(true);parent.eAL.toggle(this.id, "on");this.change_smooth_selection_mode(eA.smooth_selection);this.execCommand("change_highlight", this.settings["start_highlight"]);this.set_font(eA.settings["font_family"], eA.settings["font_size"]);children=parent.getChildren(document.body, "", "selec", "none", "all", -1);for(var i=0;i<children.length;i++){if(this.nav[\'isIE\']) children[i].unselectable=true;\nelse children[i].onmousedown=function(){return false};}if(this.nav[\'isGecko\']){this.textarea.spellcheck=this.settings["gecko_spellcheck"];}if(this.nav[\'isOpera\']){this.editor_area.style.position="absolute";this.selection_field.style.marginTop="-1pt";this.selection_field.style.paddingTop="1pt";document.getElementById("cursor_pos").style.marginTop="-1pt";document.getElementById("end_bracket").style.marginTop="-1pt";this.content_highlight.style.marginTop="-1pt";}if(this.nav[\'isSafari\']){this.editor_area.style.position="absolute";this.selection_field.style.marginTop="-1pt";this.selection_field.style.paddingTop="1pt";this.selection_field.style.marginLeft="3px";this.content_highlight.style.marginTop="-1pt";this.content_highlight.style.marginLeft="3px";document.getElementById("cursor_pos").style.marginLeft="3px";document.getElementById("end_bracket").style.marginLeft="3px";}parent.eAL.add_event(this.result, "click", function(e){if((e.target || e.srcElement)==eA.result){eA.area_select(eA.textarea.value.length, 0);}});if(this.settings[\'is_multi_files\']!=false) this.open_file({\'id\': this.curr_file, \'text\': \'\'});setTimeout("eA.focus();eA.manage_size();eA.execCommand(\'EA_load\');", 10);this.check_undo();this.check_line_selection(true);this.scroll_to_view();for(var i in this.plugins){if(typeof(this.plugins[i].onload)=="function") this.plugins[i].onload();}if(this.settings[\'fullscreen\']==true) this.toggle_full_screen(true);parent.eAL.add_event(window, "resize", eA.update_size);parent.eAL.add_event(parent.window, "resize", eA.update_size);parent.eAL.add_event(top.window, "resize", eA.update_size);parent.eAL.add_event(window, "unload", function(){if(eAs[eA.id] && eAs[eA.id]["displayed"]) eA.execCommand("EA_unload");});};EA.prototype.manage_size=function(onlyOneTime){if(!eAs[this.id]) return false;if(eAs[this.id]["displayed"]==true && this.textareaFocused){var resized=false;var area_width=this.textarea.scrollWidth;var area_height=this.textarea.scrollHeight;if(this.nav[\'isOpera\']){area_height=this.last_selection[\'nb_line\']*this.lineHeight;area_width=10000;}if(this.nav[\'isIE\']>=7) area_width-=45;if(this.nav[\'isGecko\'] && this.smooth_selection && this.last_selection["nb_line"]) area_height=this.last_selection["nb_line"]*this.lineHeight;if(this.textarea.previous_scrollWidth!=area_width){if(!this.nav[\'isOpera\'] && this.textarea.style.width && (this.textarea.style.width.replace("px","") < area_width)) area_width+=50;if(this.nav[\'isGecko\'] || this.nav[\'isOpera\']) this.container.style.width=(area_width+45)+"px";\nelse this.container.style.width=area_width+"px";this.textarea.style.width=area_width+"px";this.content_highlight.style.width=area_width+"px";this.textarea.previous_scrollWidth=area_width;resized=true;}var area_height=this.textarea.scrollHeight;if(this.nav[\'isOpera\']){area_height=this.last_selection[\'nb_line\']*this.lineHeight;}if(this.nav[\'isGecko\'] && this.smooth_selection && this.last_selection["nb_line"]) area_height=this.last_selection["nb_line"]*this.lineHeight;if(this.textarea.previous_scrollHeight!=area_height){this.container.style.height=(area_height+2)+"px";this.textarea.style.height=area_height+"px";this.content_highlight.style.height=area_height+"px";this.textarea.previous_scrollHeight=area_height;resized=true;}if(this.last_selection["nb_line"] >=this.line_number){var div_line_number="";for(i=this.line_number+1;i<this.last_selection["nb_line"]+100;i++){div_line_number+=i+"<br />";this.line_number++;}var span=document.createElement("span");if(this.nav[\'isIE\']) span.unselectable=true;span.innerHTML=div_line_number;document.getElementById("line_number").appendChild(span);}this.textarea.scrollTop="0px";this.textarea.scrollLeft="0px";if(resized==true){this.scroll_to_view();}}if(!onlyOneTime) setTimeout("eA.manage_size();", 100);};EA.prototype.add_event=function(obj, name, handler){if (this.nav[\'isIE\']){obj.attachEvent("on" + name, handler);}\nelse{obj.addEventListener(name, handler, false);}};EA.prototype.execCommand=function(cmd, param){for(var i in this.plugins){if(typeof(this.plugins[i].execCommand)=="function"){if(!this.plugins[i].execCommand(cmd, param)) return;}}switch(cmd){case "save": if(this.settings["save_callback"].length>0) eval("parent."+this.settings["save_callback"]+"(\'"+ this.id +"\', eA.textarea.value);");break;case "load": if(this.settings["load_callback"].length>0) eval("parent."+this.settings["load_callback"]+"(\'"+ this.id +"\');");break;case "onchange": if(this.settings["change_callback"].length>0) eval("parent."+this.settings["change_callback"]+"(\'"+ this.id +"\');");break;case "EA_load": if(this.settings["EA_load_callback"].length>0) eval("parent."+this.settings["EA_load_callback"]+"(\'"+ this.id +"\');");break;case "EA_unload": if(this.settings["EA_unload_callback"].length>0) eval("parent."+this.settings["EA_unload_callback"]+"(\'"+ this.id +"\');");break;case "toggle_on": if(this.settings["EA_toggle_on_callback"].length>0) eval("parent."+this.settings["EA_toggle_on_callback"]+"(\'"+ this.id +"\');");break;case "toggle_off": if(this.settings["EA_toggle_off_callback"].length>0) eval("parent."+this.settings["EA_toggle_off_callback"]+"(\'"+ this.id +"\');");break;case "re_sync": if(!this.do_highlight) break;case "file_switch_on": if(this.settings["EA_file_switch_on_callback"].length>0) eval("parent."+this.settings["EA_file_switch_on_callback"]+"(param);");break;case "file_switch_off": if(this.settings["EA_file_switch_off_callback"].length>0) eval("parent."+this.settings["EA_file_switch_off_callback"]+"(param);");break;case "file_close": if(this.settings["EA_file_close_callback"].length>0) return eval("parent."+this.settings["EA_file_close_callback"]+"(param);");break;default: if(typeof(eval("eA."+cmd))=="function"){if(this.settings["debug"]) eval("eA."+ cmd +"(param);");\nelse try{eval("eA."+ cmd +"(param);");}catch(e){};}}};EA.prototype.get_translation=function(word, mode){if(mode=="template") return parent.eAL.translate(word, this.settings["language"], mode);\nelse return parent.eAL.get_word_translation(word, this.settings["language"]);};EA.prototype.add_plugin=function(plug_name, plug_obj){for(var i=0;i<this.settings["plugins"].length;i++){if(this.settings["plugins"][i]==plug_name){this.plugins[plug_name]=plug_obj;plug_obj.baseURL=parent.eAL.baseURL + "plugins/" + plug_name + "/";if( typeof(plug_obj.init)=="function" ) plug_obj.init();}}};EA.prototype.load_css=function(url){try{link=document.createElement("link");link.type="text/css";link.rel="stylesheet";link.media="all";link.href=url;head=document.getElementsByTagName("head");head[0].appendChild(link);}catch(e){document.write("<link href=\'"+ url +"\' rel=\'stylesheet\' type=\'text/css\' />");}};EA.prototype.load_script=function(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.prototype.add_lang=function(language, values){if(!parent.eAL.lang[language]) parent.eAL.lang[language]=new Object();for(var i in values) parent.eAL.lang[language][i]=values[i];};var eA=new EA();eA.add_event(window, "load", init);function init(){setTimeout("eA.init();", 10);};	EA.prototype.focus=function(){this.textarea.focus();this.textareaFocused=true;};EA.prototype.check_line_selection=function(timer_checkup){if(!eAs[this.id]) return false;if(!this.smooth_selection && !this.do_highlight){}\nelse if(this.textareaFocused && eAs[this.id]["displayed"]==true && this.isResizing==false){infos=this.get_selection_infos();if(this.last_selection["line_start"] !=infos["line_start"] || this.last_selection["line_nb"] !=infos["line_nb"] || infos["full_text"] !=this.last_selection["full_text"] || this.reload_highlight){new_top=this.lineHeight * (infos["line_start"]-1);new_height=Math.max(0, this.lineHeight * infos["line_nb"]);new_width=Math.max(this.textarea.scrollWidth, this.container.clientWidth -50);this.selection_field.style.top=new_top+"px";this.selection_field.style.width=new_width+"px";this.selection_field.style.height=new_height+"px";document.getElementById("cursor_pos").style.top=new_top+"px";if(this.do_highlight==true){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.length, infos["line_start"]+infos["line_nb"]-1);for(i=start;i< end;i++){content+=curr_text[i]+"\\n";}content=content.replace(/&/g,"&amp;");content=content.replace(/</g,"&lt;");content=content.replace(/>/g,"&gt;");if(this.nav[\'isIE\'] || this.nav[\'isOpera\']) this.selection_field.innerHTML="<pre>" + content.replace("\\n", "<br/>") + "</pre>";\nelse this.selection_field.innerHTML=content;if(this.reload_highlight || (infos["full_text"] !=this.last_text_to_highlight && (this.last_selection["line_start"]!=infos["line_start"] || this.last_selection["line_nb"]!=infos["line_nb"] || this.last_selection["nb_line"]!=infos["nb_line"]) ) ) this.maj_highlight(infos);}}if(infos["line_start"] !=this.last_selection["line_start"] || infos["curr_pos"] !=this.last_selection["curr_pos"] || infos["full_text"].length!=this.last_selection["full_text"].length || this.reload_highlight){var selec_char=infos["curr_line"].charAt(infos["curr_pos"]-1);var no_real_move=true;if(infos["line_nb"]==1 && (this.assocBracket[selec_char] || this.revertAssocBracket[selec_char]) ){no_real_move=false;if(this.findEndBracket(infos, selec_char) ===true){document.getElementById("end_bracket").style.visibility="visible";document.getElementById("cursor_pos").style.visibility="visible";document.getElementById("cursor_pos").innerHTML=selec_char;document.getElementById("end_bracket").innerHTML=(this.assocBracket[selec_char] || this.revertAssocBracket[selec_char]);}\nelse{document.getElementById("end_bracket").style.visibility="hidden";document.getElementById("cursor_pos").style.visibility="hidden";}}\nelse{document.getElementById("cursor_pos").style.visibility="hidden";document.getElementById("end_bracket").style.visibility="hidden";}this.displayToCursorPosition("cursor_pos", infos["line_start"], infos["curr_pos"]-1, infos["curr_line"], no_real_move);if(infos["line_nb"]==1 && infos["line_start"]!=this.last_selection["line_start"]) this.scroll_to_view();}this.last_selection=infos;}if(timer_checkup){if(this.do_highlight==true) setTimeout("eA.check_line_selection(true)", 50);\nelse setTimeout("eA.check_line_selection(true)", 50);}};EA.prototype.get_selection_infos=function(){if(this.nav[\'isIE\']) this.getIESelection();start=this.textarea.selectionStart;end=this.textarea.selectionEnd;if(this.last_selection["selectionStart"]==start && this.last_selection["selectionEnd"]==end && this.last_selection["full_text"]==this.textarea.value) return this.last_selection;if(this.tabulation!="\t" && this.textarea.value.indexOf("\t")!=-1){var len=this.textarea.value.length;this.textarea.value=this.replace_tab(this.textarea.value);start=end=start+(this.textarea.value.length-len);this.area_select(start, 0);}var selections=new Object();selections["selectionStart"]=start;selections["selectionEnd"]=end;selections["full_text"]=this.textarea.value;selections["line_start"]=1;selections["line_nb"]=1;selections["curr_pos"]=0;selections["curr_line"]="";selections["indexOfCursor"]=0;selections["selec_direction"]=this.last_selection["selec_direction"];var splitTab=selections["full_text"].split("\\n");var nbLine=Math.max(0, splitTab.length);var nbChar=Math.max(0, selections["full_text"].length - (nbLine - 1));if(selections["full_text"].indexOf("\\r")!=-1) nbChar=nbChar - (nbLine -1);selections["nb_line"]=nbLine;selections["nb_char"]=nbChar;if(start>0){var str=selections["full_text"].substr(0,start);selections["curr_pos"]=start - str.lastIndexOf("\\n");selections["line_start"]=Math.max(1, str.split("\\n").length);}\nelse{selections["curr_pos"]=1;}if(end>start){selections["line_nb"]=selections["full_text"].substring(start,end).split("\\n").length;}selections["indexOfCursor"]=this.textarea.selectionStart;selections["curr_line"]=splitTab[Math.max(0,selections["line_start"]-1)];if(selections["selectionStart"]==this.last_selection["selectionStart"]){if(selections["selectionEnd"]>this.last_selection["selectionEnd"]) selections["selec_direction"]="down";\nelse if(selections["selectionEnd"]==this.last_selection["selectionStart"]) selections["selec_direction"]=this.last_selection["selec_direction"];}\nelse if(selections["selectionStart"]==this.last_selection["selectionEnd"] && selections["selectionEnd"]>this.last_selection["selectionEnd"]){selections["selec_direction"]="down";}\nelse{selections["selec_direction"]="up";}document.getElementById("nbLine").innerHTML=nbLine;document.getElementById("nbChar").innerHTML=nbChar;document.getElementById("linePos").innerHTML=selections["line_start"];document.getElementById("currPos").innerHTML=selections["curr_pos"];return selections;};EA.prototype.getIESelection=function(){var range=document.selection.createRange();var stored_range=range.duplicate();stored_range.moveToElementText( this.textarea );stored_range.setEndPoint( \'EndToEnd\', range );if(stored_range.parentElement() !=this.textarea) return;var scrollTop=this.result.scrollTop + document.body.scrollTop;var relative_top=range.offsetTop - parent.calculeOffsetTop(this.textarea) + scrollTop;var line_start=Math.round((relative_top / this.lineHeight) +1);var line_nb=Math.round(range.boundingHeight / this.lineHeight);var range_start=stored_range.text.length - range.text.length;var tab=this.textarea.value.substr(0, range_start).split("\\n");range_start+=(line_start - tab.length)*2;this.textarea.selectionStart=range_start;var range_end=this.textarea.selectionStart + range.text.length;tab=this.textarea.value.substr(0, range_start + range.text.length).split("\\n");range_end+=(line_start + line_nb - 1 - tab.length)*2;this.textarea.selectionEnd=range_end;};EA.prototype.setIESelection=function(){var nbLineStart=this.textarea.value.substr(0, this.textarea.selectionStart).split("\\n").length - 1;var nbLineEnd=this.textarea.value.substr(0, this.textarea.selectionEnd).split("\\n").length - 1;var range=document.selection.createRange();range.moveToElementText( this.textarea );range.setEndPoint( \'EndToStart\', range );range.moveStart(\'character\', this.textarea.selectionStart - nbLineStart);range.moveEnd(\'character\', this.textarea.selectionEnd - nbLineEnd - (this.textarea.selectionStart - nbLineStart)  );range.select();};EA.prototype.tab_selection=function(){if(this.is_tabbing) return;this.is_tabbing=true;if( this.nav[\'isIE\'] ) this.getIESelection();var start=this.textarea.selectionStart;var end=this.textarea.selectionEnd;var insText=this.textarea.value.substring(start, end);var pos_start=start;var pos_end=end;if (insText.length==0){this.textarea.value=this.textarea.value.substr(0, start) + this.tabulation + this.textarea.value.substr(end);pos_start=start + this.tabulation.length;pos_end=pos_start;}\nelse{start=Math.max(0, this.textarea.value.substr(0, start).lastIndexOf("\\n")+1);endText=this.textarea.value.substr(end);startText=this.textarea.value.substr(0, start);tmp=this.textarea.value.substring(start, end).split("\\n");insText=this.tabulation+tmp.join("\\n"+this.tabulation);this.textarea.value=startText + insText + endText;pos_start=start;pos_end=this.textarea.value.indexOf("\\n", startText.length + insText.length);if(pos_end==-1) pos_end=this.textarea.value.length;}this.textarea.selectionStart=pos_start;this.textarea.selectionEnd=pos_end;if(this.nav[\'isIE\']){this.setIESelection();setTimeout("eA.is_tabbing=false;", 100);}\nelse this.is_tabbing=false;};EA.prototype.invert_tab_selection=function(){if(this.is_tabbing) return;this.is_tabbing=true;if(this.nav[\'isIE\']) this.getIESelection();var start=this.textarea.selectionStart;var end=this.textarea.selectionEnd;var insText=this.textarea.value.substring(start, end);var pos_start=start;var pos_end=end;if (insText.length==0){if(this.textarea.value.substring(start-this.tabulation.length, start)==this.tabulation){this.textarea.value=this.textarea.value.substr(0, start-this.tabulation.length) + this.textarea.value.substr(end);pos_start=Math.max(0, start-this.tabulation.length);pos_end=pos_start;}}\nelse{start=this.textarea.value.substr(0, start).lastIndexOf("\\n")+1;endText=this.textarea.value.substr(end);startText=this.textarea.value.substr(0, start);tmp=this.textarea.value.substring(start, end).split("\\n");insText="";for(i=0;i<tmp.length;i++){for(j=0;j<this.tab_nb_char;j++){if(tmp[i].charAt(0)=="\t"){tmp[i]=tmp[i].substr(1);j=this.tab_nb_char;}\nelse if(tmp[i].charAt(0)==" ") tmp[i]=tmp[i].substr(1);}insText+=tmp[i];if(i<tmp.length-1) insText+="\\n";}this.textarea.value=startText + insText + endText;pos_start=start;pos_end=this.textarea.value.indexOf("\\n", startText.length + insText.length);if(pos_end==-1) pos_end=this.textarea.value.length;}this.textarea.selectionStart=pos_start;this.textarea.selectionEnd=pos_end;if(this.nav[\'isIE\']){this.setIESelection();setTimeout("eA.is_tabbing=false;", 100);}\nelse this.is_tabbing=false;};EA.prototype.press_enter=function(){if(!this.smooth_selection) return false;if(this.nav[\'isIE\']) this.getIESelection();var scrollTop=this.result.scrollTop;var scrollLeft=this.result.scrollLeft;var start=this.textarea.selectionStart;var end=this.textarea.selectionEnd;var start_last_line=Math.max(0 , this.textarea.value.substring(0, start).lastIndexOf("\\n") + 1 );var begin_line=this.textarea.value.substring(start_last_line, start).replace(/^([ \t]*).*/gm, "$1");if(begin_line=="\\n" || begin_line=="\\r" || begin_line.length==0) return false;if(this.nav[\'isIE\'] || this.nav[\'isOpera\']){begin_line="\\r\\n"+ begin_line;}\nelse{begin_line="\\n"+ begin_line;}this.textarea.value=this.textarea.value.substring(0, start) + begin_line + this.textarea.value.substring(end);this.area_select(start+ begin_line.length ,0);if(this.nav[\'isIE\']){this.result.scrollTop=scrollTop;this.result.scrollLeft=scrollLeft;}return true;};EA.prototype.findEndBracket=function(infos, bracket){var start=infos["indexOfCursor"];var normal_order=true;if(this.assocBracket[bracket]) endBracket=this.assocBracket[bracket];\nelse if(this.revertAssocBracket[bracket]){endBracket=this.revertAssocBracket[bracket];normal_order=false;}var end=-1;var nbBracketOpen=0;for(var i=start;i<infos["full_text"].length && 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 false;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").length + 1;var curPos=end - endLastLine;this.displayToCursorPosition("end_bracket", line, curPos, infos["full_text"].substring(endLastLine +1, end));return true;};EA.prototype.displayToCursorPosition=function(id, start_line, cur_pos, lineContent, no_real_move){var elem=document.getElementById("test_font_size");var dest=document.getElementById(id);var postLeft=0;elem.innerHTML="<pre><span id=\'test_font_size_inner\'>"+lineContent.substr(0, cur_pos).replace(/&/g,"&amp;").replace(/</g,"&lt;")+"</span></pre>";posLeft=45 + document.getElementById(\'test_font_size_inner\').offsetWidth;var posTop=this.lineHeight * (start_line-1);if(no_real_move!=true){dest.style.top=posTop+"px";dest.style.left=posLeft+"px";}dest.cursor_top=posTop;dest.cursor_left=posLeft;};EA.prototype.area_select=function(start, length){this.textarea.focus();start=Math.max(0, Math.min(this.textarea.value.length, start));end=Math.max(start, Math.min(this.textarea.value.length, start+length));if(this.nav[\'isIE\']){this.textarea.selectionStart=start;this.textarea.selectionEnd=end;this.setIESelection();}\nelse{if(this.nav[\'isOpera\']){this.textarea.setSelectionRange(0, 0);}this.textarea.setSelectionRange(start, end);}this.check_line_selection();};EA.prototype.area_get_selection=function(){var text="";if( document.selection ){var range=document.selection.createRange();text=range.text;}\nelse{text=this.textarea.value.substring(this.textarea.selectionStart, this.textarea.selectionEnd);}return text;}; EA.prototype.replace_tab=function(text){return text.replace(/((\\n?)([^\t\\n]*)\t)/gi, eA.smartTab);};EA.prototype.smartTab=function(){val="                   ";return EA.prototype.smartTab.arguments[2] + EA.prototype.smartTab.arguments[3] + val.substr(0, eA.tab_nb_char - (EA.prototype.smartTab.arguments[3].length)%eA.tab_nb_char);};EA.prototype.show_waiting_screen=function(){width=this.editor_area.offsetWidth;height=this.editor_area.offsetHeight;if(this.nav[\'isGecko\'] || this.nav[\'isOpera\'] || this.nav[\'isIE\']>=7){width-=2;height-=2;}this.processing_screen.style.display="block";this.processing_screen.style.width=width+"px";this.processing_screen.style.height=height+"px";this.waiting_screen_displayed=true;};EA.prototype.hide_waiting_screen=function(){this.processing_screen.style.display="none";this.waiting_screen_displayed=false;};EA.prototype.add_style=function(styles){if(styles.length>0){newcss=document.createElement("style");newcss.type="text/css";newcss.media="all";document.getElementsByTagName("head")[0].appendChild(newcss);cssrules=styles.split("}");newcss=document.styleSheets[0];if(newcss.rules){for(i=cssrules.length-2;i>=0;i--){newrule=cssrules[i].split("{");newcss.addRule(newrule[0],newrule[1])}}\nelse if(newcss.cssRules){for(i=cssrules.length-1;i>=0;i--){if(cssrules[i].indexOf("{")!=-1){newcss.insertRule(cssrules[i]+"}",0);}}}}};EA.prototype.set_font=function(family, size){var elems=new Array("textarea", "content_highlight", "cursor_pos", "end_bracket", "selection_field", "line_number");if(family && family!="") this.settings["font_family"]=family;if(size && size>0) this.settings["font_size"]=size;if(this.nav[\'isOpera\']) this.settings[\'font_family\']="monospace";var elem_font=document.getElementById("area_font_size");if(elem_font){for(var i=0;i<elem_font.length;i++){if(elem_font.options[i].value && elem_font.options[i].value==this.settings["font_size"]) elem_font.options[i].selected=true;}}document.getElementById("test_font_size").style.fontFamily=""+this.settings["font_family"];document.getElementById("test_font_size").style.fontSize=this.settings["font_size"]+"pt";document.getElementById("test_font_size").innerHTML="0";this.lineHeight=document.getElementById("test_font_size").offsetHeight;for(var i=0;i<elems.length;i++){var elem=document.getElementById(elems[i]);document.getElementById(elems[i]).style.fontFamily=this.settings["font_family"];document.getElementById(elems[i]).style.fontSize=this.settings["font_size"]+"pt";document.getElementById(elems[i]).style.lineHeight=this.lineHeight+"px";}if(this.nav[\'isOpera\']){var start=this.textarea.selectionStart;var end=this.textarea.selectionEnd;var parNod=this.textarea.parentNode, nxtSib=this.textarea.nextSibling;parNod.removeChild(this.textarea);parNod.insertBefore(this.textarea, nxtSib);this.area_select(start, end-start);}this.add_style("pre{font-family:"+this.settings["font_family"]+"}");this.last_line_selected=-1;this.last_selection=new Array();this.resync_highlight();};EA.prototype.change_font_size=function(){var size=document.getElementById("area_font_size").value;if(size>0) this.set_font("", size);};EA.prototype.open_inline_popup=function(popup_id){this.close_all_inline_popup();var popup=document.getElementById(popup_id);var editor=document.getElementById("editor");for(var i=0;i<this.inlinePopup.length;i++){if(this.inlinePopup[i]["popup_id"]==popup_id){var icon=document.getElementById(this.inlinePopup[i]["icon_id"]);if(icon){this.switchClassSticky(icon, \'editAreaButtonSelected\', true);break;}}}popup.style.height="auto";popup.style.overflow="visible";if(document.body.offsetHeight< popup.offsetHeight){popup.style.height=(document.body.offsetHeight-10)+"px";popup.style.overflow="auto";}if(!popup.positionned){var new_left=editor.offsetWidth /2 - popup.offsetWidth /2;var new_top=editor.offsetHeight /2 - popup.offsetHeight /2;popup.style.left=new_left+"px";popup.style.top=new_top+"px";popup.positionned=true;}popup.style.visibility="visible";};EA.prototype.close_inline_popup=function(popup_id){var popup=document.getElementById(popup_id);for(var i=0;i<this.inlinePopup.length;i++){if(this.inlinePopup[i]["popup_id"]==popup_id){var icon=document.getElementById(this.inlinePopup[i]["icon_id"]);if(icon){this.switchClassSticky(icon, \'editAreaButtonNormal\', false);break;}}}popup.style.visibility="hidden";};EA.prototype.close_all_inline_popup=function(e){for(var i=0;i<this.inlinePopup.length;i++){this.close_inline_popup(this.inlinePopup[i]["popup_id"]);}this.textarea.focus();};EA.prototype.show_help=function(){this.open_inline_popup("edit_area_help");};EA.prototype.new_document=function(){this.textarea.value="";this.area_select(0,0);};EA.prototype.get_all_toolbar_height=function(){var area=document.getElementById("editor");var results=parent.getChildren(area, "div", "class", "area_toolbar", "all", "0");var height=0;for(var i=0;i<results.length;i++){height+=results[i].offsetHeight;}return height;};EA.prototype.go_to_line=function(line){if(!line){var icon=document.getElementById("go_to_line");if(icon !=null){this.restoreClass(icon);this.switchClassSticky(icon, \'editAreaButtonSelected\', true);}line=prompt(this.get_translation("go_to_line_prompt"));if(icon !=null) this.switchClassSticky(icon, \'editAreaButtonNormal\', false);}if(line && line!=null && line.search(/^[0-9]+$/)!=-1){var start=0;var lines=this.textarea.value.split("\\n");if(line > lines.length) start=this.textarea.value.length;\nelse{for(var i=0;i<Math.min(line-1, lines.length);i++) start+=lines[i].length + 1;}this.area_select(start, 0);}};EA.prototype.change_smooth_selection_mode=function(setTo){if(this.do_highlight) return;if(setTo !=null){if(setTo ===false) this.smooth_selection=true;\nelse this.smooth_selection=false;}var icon=document.getElementById("change_smooth_selection");this.textarea.focus();if(this.smooth_selection===true){this.switchClassSticky(icon, \'editAreaButtonNormal\', false);this.smooth_selection=false;document.getElementById("selection_field").style.display="none";document.getElementById("cursor_pos").style.display="none";document.getElementById("end_bracket").style.display="none";}\nelse{this.switchClassSticky(icon, \'editAreaButtonSelected\', false);this.smooth_selection=true;document.getElementById("selection_field").style.display="block";document.getElementById("cursor_pos").style.display="block";document.getElementById("end_bracket").style.display="block";}};EA.prototype.scroll_to_view=function(show){if(!this.smooth_selection) return;var zone=document.getElementById("result");var cursor_pos_top=document.getElementById("cursor_pos").cursor_top;if(show=="bottom") cursor_pos_top+=(this.last_selection["line_nb"]-1)* this.lineHeight;var max_height_visible=zone.clientHeight + zone.scrollTop;var miss_top=cursor_pos_top + this.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=document.getElementById("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.prototype.check_undo=function(only_once){if(!eAs[this.id]) return false;if(this.textareaFocused && eAs[this.id]["displayed"]==true){var text=this.textarea.value;if(this.previous.length<=1) this.switchClassSticky(document.getElementById("undo"), \'editAreaButtonDisabled\', true);if(!this.previous[this.previous.length-1] || this.previous[this.previous.length-1]["text"] !=text){this.previous.push({"text": text, "selStart": this.textarea.selectionStart, "selEnd": this.textarea.selectionEnd});if(this.previous.length > this.settings["max_undo"]+1) this.previous.shift();}if(this.previous.length >=2) this.switchClassSticky(document.getElementById("undo"), \'editAreaButtonNormal\', false);}if(!only_once) setTimeout("eA.check_undo()", 3000);};EA.prototype.undo=function(){if(this.previous.length > 0){if(this.nav[\'isIE\']) this.getIESelection();this.next.push({"text": this.textarea.value, "selStart": this.textarea.selectionStart, "selEnd": this.textarea.selectionEnd});var prev=this.previous.pop();if(prev["text"]==this.textarea.value && this.previous.length > 0) prev=this.previous.pop();this.textarea.value=prev["text"];this.last_undo=prev["text"];this.area_select(prev["selStart"], prev["selEnd"]-prev["selStart"]);this.switchClassSticky(document.getElementById("redo"), \'editAreaButtonNormal\', false);this.resync_highlight(true);this.check_file_changes();}};EA.prototype.redo=function(){if(this.next.length > 0){var next=this.next.pop();this.previous.push(next);this.textarea.value=next["text"];this.last_undo=next["text"];this.area_select(next["selStart"], next["selEnd"]-next["selStart"]);this.switchClassSticky(document.getElementById("undo"), \'editAreaButtonNormal\', false);this.resync_highlight(true);this.check_file_changes();}if(	this.next.length==0) this.switchClassSticky(document.getElementById("redo"), \'editAreaButtonDisabled\', true);};EA.prototype.check_redo=function(){if(eA.next.length==0 || eA.textarea.value!=eA.last_undo){eA.next=new Array();eA.switchClassSticky(document.getElementById("redo"), \'editAreaButtonDisabled\', true);}\nelse{this.switchClassSticky(document.getElementById("redo"), \'editAreaButtonNormal\', false);}};EA.prototype.switchClass=function(element, class_name, lock_state){var lockChanged=false;if (typeof(lock_state) !="undefined" && element !=null){element.classLock=lock_state;lockChanged=true;}if (element !=null && (lockChanged || !element.classLock)){element.oldClassName=element.className;element.className=class_name;}};EA.prototype.restoreAndSwitchClass=function(element, class_name){if (element !=null && !element.classLock){this.restoreClass(element);this.switchClass(element, class_name);}};EA.prototype.restoreClass=function(element){if (element !=null && element.oldClassName && !element.classLock){element.className=element.oldClassName;element.oldClassName=null;}};EA.prototype.setClassLock=function(element, lock_state){if (element !=null) element.classLock=lock_state;};EA.prototype.switchClassSticky=function(element, class_name, lock_state){var lockChanged=false;if (typeof(lock_state) !="undefined" && element !=null){element.classLock=lock_state;lockChanged=true;}if (element !=null && (lockChanged || !element.classLock)){element.className=class_name;element.oldClassName=class_name;}};EA.prototype.scroll_page=function(params){var dir=params["dir"];var shift_pressed=params["shift"];screen_height=document.getElementById("result").clientHeight;var lines=this.textarea.value.split("\\n");var new_pos=0;var length=0;var char_left=0;var line_nb=0;if(dir=="up"){var scroll_line=Math.ceil((screen_height -30)/this.lineHeight);if(this.last_selection["selec_direction"]=="up"){for(line_nb=0;line_nb< Math.min(this.last_selection["line_start"]-scroll_line, lines.length);line_nb++){new_pos+=lines[line_nb].length + 1;}char_left=Math.min(lines[Math.min(lines.length-1, line_nb)].length, this.last_selection["curr_pos"]-1);if(shift_pressed) length=this.last_selection["selectionEnd"]-new_pos-char_left;this.area_select(new_pos+char_left, length);view="top";}\nelse{view="bottom";for(line_nb=0;line_nb< Math.min(this.last_selection["line_start"]+this.last_selection["line_nb"]-1-scroll_line, lines.length);line_nb++){new_pos+=lines[line_nb].length + 1;}char_left=Math.min(lines[Math.min(lines.length-1, line_nb)].length, this.last_selection["curr_pos"]-1);if(shift_pressed){start=Math.min(this.last_selection["selectionStart"], new_pos+char_left);length=Math.max(new_pos+char_left, this.last_selection["selectionStart"] )- start;if(new_pos+char_left < this.last_selection["selectionStart"]) view="top";}\nelse start=new_pos+char_left;this.area_select(start, length);}}\nelse{var scroll_line=Math.floor((screen_height-30)/this.lineHeight);if(this.last_selection["selec_direction"]=="down"){view="bottom";for(line_nb=0;line_nb< Math.min(this.last_selection["line_start"]+this.last_selection["line_nb"]-2+scroll_line, lines.length);line_nb++){if(line_nb==this.last_selection["line_start"]-1) char_left=this.last_selection["selectionStart"] -new_pos;new_pos+=lines[line_nb].length + 1;}if(shift_pressed){length=Math.abs(this.last_selection["selectionStart"]-new_pos);length+=Math.min(lines[Math.min(lines.length-1, line_nb)].length, this.last_selection["curr_pos"]);this.area_select(Math.min(this.last_selection["selectionStart"], new_pos), length);}\nelse{this.area_select(new_pos+char_left, 0);}}\nelse{view="top";for(line_nb=0;line_nb< Math.min(this.last_selection["line_start"]+scroll_line-1, lines.length, lines.length);line_nb++){if(line_nb==this.last_selection["line_start"]-1) char_left=this.last_selection["selectionStart"] -new_pos;new_pos+=lines[line_nb].length + 1;}if(shift_pressed){length=Math.abs(this.last_selection["selectionEnd"]-new_pos-char_left);length+=Math.min(lines[Math.min(lines.length-1, line_nb)].length, this.last_selection["curr_pos"])- char_left-1;this.area_select(Math.min(this.last_selection["selectionEnd"], new_pos+char_left), length);if(new_pos+char_left > this.last_selection["selectionEnd"]) view="bottom";}\nelse{this.area_select(new_pos+char_left, 0);}}}this.check_line_selection();this.scroll_to_view(view);};EA.prototype.start_resize=function(e){parent.eAL.resize["id"]=eA.id;parent.eAL.resize["start_x"]=(e)? e.pageX : event.x + document.body.scrollLeft;parent.eAL.resize["start_y"]=(e)? e.pageY : event.y + document.body.scrollTop;if(eA.nav[\'isIE\']){eA.textarea.focus();eA.getIESelection();}parent.eAL.resize["selectionStart"]=eA.textarea.selectionStart;parent.eAL.resize["selectionEnd"]=eA.textarea.selectionEnd;parent.eAL.start_resize_area();};EA.prototype.toggle_full_screen=function(to){if(typeof(to)=="undefined") to=!this.fullscreen[\'isFull\'];var old=this.fullscreen[\'isFull\'];this.fullscreen[\'isFull\']=to;var icon=document.getElementById("fullscreen");if(to && to!=old){var selStart=this.textarea.selectionStart;var selEnd=this.textarea.selectionEnd;var html=parent.document.getElementsByTagName("html")[0];var frame=parent.document.getElementById("frame_"+this.id);this.fullscreen[\'old_overflow\']=parent.get_css_property(html, "overflow");this.fullscreen[\'old_height\']=parent.get_css_property(html, "height");this.fullscreen[\'old_width\']=parent.get_css_property(html, "width");this.fullscreen[\'old_scrollTop\']=html.scrollTop;this.fullscreen[\'old_scrollLeft\']=html.scrollLeft;this.fullscreen[\'old_zIndex\']=parent.get_css_property(frame, "z-index");if(this.nav[\'isOpera\']){html.style.height="100%";html.style.width="100%";}html.style.overflow="hidden";html.scrollTop=0;html.scrollLeft=0;frame.style.position="absolute";frame.style.width=html.clientWidth+"px";frame.style.height=html.clientHeight+"px";frame.style.display="block";frame.style.zIndex="999999";frame.style.top="0px";frame.style.left="0px";frame.style.top="-"+parent.calculeOffsetTop(frame)+"px";frame.style.left="-"+parent.calculeOffsetLeft(frame)+"px";this.switchClassSticky(icon, \'editAreaButtonSelected\', false);this.fullscreen[\'allow_resize\']=this.resize_allowed;this.allow_resize(false);if(this.nav[\'isFirefox\']){parent.eAL.execCommand(this.id, "update_size();");this.area_select(selStart, selEnd-selStart);this.scroll_to_view();this.focus();}\nelse{setTimeout("parent.eAL.execCommand(\'"+ this.id +"\', \'update_size();\');eA.focus();", 10);}}\nelse if(to!=old){var selStart=this.textarea.selectionStart;var selEnd=this.textarea.selectionEnd;var frame=parent.document.getElementById("frame_"+this.id);frame.style.position="static";frame.style.zIndex=this.fullscreen[\'old_zIndex\'];var html=parent.document.getElementsByTagName("html")[0];if(this.nav[\'isOpera\']){html.style.height="auto";html.style.width="auto";html.style.overflow="auto";}\nelse if(this.nav[\'isIE\'] && parent!=top){html.style.overflow="auto";}\nelse html.style.overflow=this.fullscreen[\'old_overflow\'];html.scrollTop=this.fullscreen[\'old_scrollTop\'];html.scrollTop=this.fullscreen[\'old_scrollLeft\'];parent.eAL.hide(this.id);parent.eAL.show(this.id);this.switchClassSticky(icon, \'editAreaButtonNormal\', false);if(this.fullscreen[\'allow_resize\']) this.allow_resize(this.fullscreen[\'allow_resize\']);if(this.nav[\'isFirefox\']){this.area_select(selStart, selEnd-selStart);setTimeout("eA.scroll_to_view();", 10);}}};EA.prototype.allow_resize=function(allow){var resize=document.getElementById("resize_area");if(allow){resize.style.visibility="visible";parent.eAL.add_event(resize, "mouseup", eA.start_resize);}\nelse{resize.style.visibility="hidden";parent.eAL.remove_event(resize, "mouseup", eA.start_resize);}this.resize_allowed=allow;};EA.prototype.change_syntax=function(new_syntax, is_waiting){if(new_syntax==this.settings[\'syntax\']) return true;var founded=false;for(var i=0;i<this.syntax_list.length;i++){if(this.syntax_list[i]==new_syntax) founded=true;}if(founded==true){if(!parent.eAL.load_syntax[new_syntax]){if(!is_waiting) parent.eAL.load_script(parent.eAL.baseURL + "reg_syntax/" + new_syntax + ".js");setTimeout("eA.change_syntax(\'"+ new_syntax +"\', true);", 100);this.show_waiting_screen();}\nelse{if(!this.allready_used_syntax[new_syntax]){parent.eAL.init_syntax_regexp();this.add_style(parent.eAL.syntax[new_syntax]["styles"]);this.allready_used_syntax[new_syntax]=true;}var sel=document.getElementById("syntax_selection");if(sel && sel.value!=new_syntax){for(var i=0;i<sel.length;i++){if(sel.options[i].value && sel.options[i].value==new_syntax) sel.options[i].selected=true;}}this.settings[\'syntax\']=new_syntax;this.resync_highlight(true);this.hide_waiting_screen();return true;}}return false;};EA.prototype.set_editable=function(is_editable){if(is_editable){document.body.className="";this.textarea.readOnly=false;this.is_editable=true;}\nelse{document.body.className="non_editable";this.textarea.readOnly=true;this.is_editable=false;}if(eAs[this.id]["displayed"]==true) this.update_size();};EA.prototype.open_file=function(settings){if(settings[\'id\']!="undefined"){var id=settings[\'id\'];var new_file=new Object();new_file[\'id\']=id;new_file[\'title\']=id;new_file[\'text\']="";new_file[\'last_selection\']="";new_file[\'last_text_to_highlight\']="";new_file[\'last_hightlighted_text\']="";new_file[\'previous\']=new Array();new_file[\'next\']=new Array();new_file[\'last_undo\']="";new_file[\'smooth_selection\']=this.settings[\'smooth_selection\'];new_file[\'do_highlight\']=this.settings[\'start_highlight\'];new_file[\'syntax\']=this.settings[\'syntax\'];new_file[\'scroll_top\']=0;new_file[\'scroll_left\']=0;new_file[\'selection_start\']=0;new_file[\'selection_end\']=0;new_file[\'edited\']=false;new_file[\'font_size\']=this.settings["font_size"];new_file[\'font_family\']=this.settings["font_family"];new_file[\'toolbar\']={\'links\':{}, \'selects\': {}};new_file[\'compare_edited_text\']=new_file[\'text\'];this.files[id]=new_file;this.update_file(id, settings);this.files[id][\'compare_edited_text\']=this.files[id][\'text\'];var html_id=\'tab_file_\'+encodeURIComponent(id);this.filesIdAssoc[html_id]=id;this.files[id][\'html_id\']=html_id;if(!document.getElementById(this.files[id][\'html_id\']) && id!=""){this.tab_browsing_area.style.display="block";var elem=document.createElement(\'li\');elem.id=this.files[id][\'html_id\'];var close="<img src=\\""+ parent.eAL.baseURL +"images/close.gif\\" title=\\""+ this.get_translation(\'close_tab\', \'word\') +"\\" onclick=\\"eA.execCommand(\'close_file\', eA.filesIdAssoc[\'"+ html_id +"\']);return false;\\" class=\\"hidden\\" onmouseover=\\"this.className=\'\'\\" onmouseout=\\"this.className=\'hidden\'\\" />";elem.innerHTML="<a onclick=\\"javascript:eA.execCommand(\'switch_to_file\', eA.filesIdAssoc[\'"+ html_id +"\']);\\" selec=\\"none\\"><b><span><strong class=\\"edited\\">*</strong>"+ this.files[id][\'title\'] + close +"</span></b></a>";document.getElementById(\'tab_browsing_list\').appendChild(elem);var elem=document.createElement(\'text\');this.update_size();}if(id!="") this.execCommand(\'file_open\', this.files[id]);this.switch_to_file(id, true);return true;}\nelse return false;};EA.prototype.close_file=function(id){if(this.files[id]){this.save_file(id);if(this.execCommand(\'file_close\', this.files[id])!==false){var li=document.getElementById(this.files[id][\'html_id\']);li.parentNode.removeChild(li);if(id==this.curr_file){var next_file="";var is_next=false;for(var i in this.files){if(is_next){next_file=i;break;}\nelse if(i==id) is_next=true;\nelse next_file=i;}this.switch_to_file(next_file);}delete (this.files[id]);this.update_size();}}};EA.prototype.save_file=function(id){if(this.files[id]){var save=this.files[id];save[\'last_selection\']=this.last_selection;save[\'last_text_to_highlight\']=this.last_text_to_highlight;save[\'last_hightlighted_text\']=this.last_hightlighted_text;save[\'previous\']=this.previous;save[\'next\']=this.next;save[\'last_undo\']=this.last_undo;save[\'smooth_selection\']=this.smooth_selection;save[\'do_highlight\']=this.do_highlight;save[\'syntax\']=this.settings[\'syntax\'];save[\'text\']=this.textarea.value;save[\'scroll_top\']=this.result.scrollTop;save[\'scroll_left\']=this.result.scrollLeft;save[\'selection_start\']=this.last_selection["selectionStart"];save[\'selection_end\']=this.last_selection["selectionEnd"];save[\'font_size\']=this.settings["font_size"];save[\'font_family\']=this.settings["font_family"];save[\'toolbar\']={\'links\':{}, \'selects\': {}};var links=document.getElementById("toolbar_1").getElementsByTagName("a");for(var i=0;i<links.length;i++){if(links[i].getAttribute(\'fileSpecific\')==\'yes\'){var save_butt=new Object();var img=links[i].getElementsByTagName(\'img\')[0];save_butt[\'classLock\']=img.classLock;save_butt[\'className\']=img.className;save_butt[\'oldClassName\']=img.oldClassName;save[\'toolbar\'][\'links\'][links[i].id]=save_butt;}}var selects=document.getElementById("toolbar_1").getElementsByTagName("select");for(var i=0;i<selects.length;i++){if(selects[i].getAttribute(\'fileSpecific\')==\'yes\'){save[\'toolbar\'][\'selects\'][selects[i].id]=selects[i].value;}}this.files[id]=save;return save;}\nelse return false;};EA.prototype.update_file=function(id, new_values){for(var i in new_values){this.files[id][i]=new_values[i];}};EA.prototype.display_file=function(id){if(id==\'\'){this.textarea.readOnly=true;this.tab_browsing_area.style.display="none";document.getElementById("no_file_selected").style.display="block";this.result.className="empty";if(!this.files[\'\']) this.open_file({id: \'\'});}\nelse{this.result.className="";this.textarea.readOnly=!this.is_editable;document.getElementById("no_file_selected").style.display="none";this.tab_browsing_area.style.display="block";}this.check_redo(true);this.check_undo(true);this.curr_file=id;var lis=this.tab_browsing_area.getElementsByTagName(\'li\');for(var i=0;i<lis.length;i++){if(lis[i].id==this.files[id][\'html_id\']) lis[i].className=\'selected\';\nelse lis[i].className=\'\';}var new_file=this.files[id];this.textarea.value=new_file[\'text\'];this.set_font(new_file[\'font_family\'], new_file[\'font_size\']);this.area_select(new_file[\'last_selection\'][\'selection_start\'], new_file[\'last_selection\'][\'selection_end\'] - new_file[\'last_selection\'][\'selection_start\']);this.manage_size(true);this.result.scrollTop=new_file[\'scroll_top\'];this.result.scrollLeft=new_file[\'scroll_left\'];this.previous=new_file[\'previous\'];this.next=new_file[\'next\'];this.last_undo=new_file[\'last_undo\'];this.check_redo(true);this.check_undo(true);this.execCommand("change_highlight", new_file[\'do_highlight\']);this.execCommand("change_syntax", new_file[\'syntax\']);this.execCommand("change_smooth_selection_mode", new_file[\'smooth_selection\']);var links=new_file[\'toolbar\'][\'links\'];for(var i in links){if(img=document.getElementById(i).getElementsByTagName(\'img\')[0]){var save_butt=new Object();img.classLock=links[i][\'classLock\'];img.className=links[i][\'className\'];img.oldClassName=links[i][\'oldClassName\'];}}var selects=new_file[\'toolbar\'][\'selects\'];for(var i in selects){var options=document.getElementById(i).options;for(var j=0;j<options.length;j++){if(options[j].value==selects[i]) document.getElementById(i).options[j].selected=true;}}};EA.prototype.switch_to_file=function(file_to_show, force_refresh){if(file_to_show!=this.curr_file || force_refresh){this.save_file(this.curr_file);if(this.curr_file!=\'\') this.execCommand(\'file_switch_off\', this.files[this.curr_file]);this.display_file(file_to_show);if(file_to_show!=\'\') this.execCommand(\'file_switch_on\', this.files[file_to_show]);}};EA.prototype.get_file=function(id){if(id==this.curr_file) this.save_file(id);return this.files[id];};EA.prototype.get_all_files=function(){tmp_files=this.files;this.save_file(this.curr_file);if(tmp_files[\'\']) delete(this.files[\'\']);return tmp_files;};EA.prototype.check_file_changes=function(){var id=this.curr_file;if(this.files[id] && this.files[id][\'compare_edited_text\']!=undefined){if(this.files[id][\'compare_edited_text\'].length==this.textarea.value.length && this.files[id][\'compare_edited_text\']==this.textarea.value){if(this.files[id][\'edited\']!=false) this.set_file_edited_mode(id, false);}\nelse{if(this.files[id][\'edited\']!=true) this.set_file_edited_mode(id, true);}}};EA.prototype.set_file_edited_mode=function(id, to){if(this.files[id] && document.getElementById(this.files[id][\'html_id\'])){var link=document.getElementById(this.files[id][\'html_id\']).getElementsByTagName(\'a\')[0];if(to==true){link.className=\'edited\';}\nelse{link.className=\'\';if(id==this.curr_file) text=this.textarea.value;\nelse text=this.files[id][\'text\'];this.files[id][\'compare_edited_text\']=text;}this.files[id][\'edited\']=to;}};var clavier_cds=new Object(146);clavier_cds[8]="Retour arriere";clavier_cds[9]="Tabulation";clavier_cds[12]="Milieu (pave numerique)";clavier_cds[13]="Entrer";clavier_cds[16]="Shift";clavier_cds[17]="Ctrl";clavier_cds[18]="Alt";clavier_cds[19]="Pause";clavier_cds[20]="Verr Maj";clavier_cds[27]="Esc";clavier_cds[32]="Espace";clavier_cds[33]="Page up";clavier_cds[34]="Page down";clavier_cds[35]="End";clavier_cds[36]="Begin";clavier_cds[37]="Fleche gauche";clavier_cds[38]="Fleche haut";clavier_cds[39]="Fleche droite";clavier_cds[40]="Fleche bas";clavier_cds[44]="Impr ecran";clavier_cds[45]="Inser";clavier_cds[46]="Suppr";clavier_cds[91]="Menu Demarrer Windows / touche pomme Mac";clavier_cds[92]="Menu Demarrer Windows";clavier_cds[93]="Menu contextuel Windows";clavier_cds[112]="F1";clavier_cds[113]="F2";clavier_cds[114]="F3";clavier_cds[115]="F4";clavier_cds[116]="F5";clavier_cds[117]="F6";clavier_cds[118]="F7";clavier_cds[119]="F8";clavier_cds[120]="F9";clavier_cds[121]="F10";clavier_cds[122]="F11";clavier_cds[123]="F12";clavier_cds[144]="Verr Num";clavier_cds[145]="Arret defil";function keyDown(e){if(!e){e=event;}for(var i in eA.plugins){if(typeof(eA.plugins[i].onkeydown)=="function"){if(eA.plugins[i].onkeydown(e)===false){if(eA.nav[\'isIE\']) e.keyCode=0;return false;}}}var target_id=(e.target || e.srcElement).id;var use=false;if (clavier_cds[e.keyCode]) letter=clavier_cds[e.keyCode];\nelse letter=String.fromCharCode(e.keyCode);var low_letter=letter.toLowerCase();if(letter=="Page up" && !eA.nav[\'isOpera\']){eA.execCommand("scroll_page", {"dir": "up", "shift": ShiftPressed(e)});use=true;}\nelse if(letter=="Page down" && !eA.nav[\'isOpera\']){eA.execCommand("scroll_page", {"dir": "down", "shift": ShiftPressed(e)});use=true;}\nelse if(eA.is_editable==false){return true;}\nelse if(letter=="Tabulation" && target_id=="textarea" && !CtrlPressed(e) && !AltPressed(e)){if(ShiftPressed(e)) eA.execCommand("invert_tab_selection");\nelse eA.execCommand("tab_selection");use=true;if(eA.nav[\'isOpera\'] || (eA.nav[\'isFirefox\'] && eA.nav[\'isMacOS\']) ) setTimeout("eA.execCommand(\'focus\');", 1);}\nelse if(letter=="Entrer" && target_id=="textarea"){if(eA.press_enter()) use=true;}\nelse if(letter=="Entrer" && target_id=="area_search"){eA.execCommand("area_search");use=true;}\nelse  if(letter=="Esc"){eA.execCommand("close_all_inline_popup", e);use=true;}\nelse if(CtrlPressed(e) && !AltPressed(e) && !ShiftPressed(e)){switch(low_letter){case "f": eA.execCommand("area_search");use=true;break;case "r": eA.execCommand("area_replace");use=true;break;case "q": eA.execCommand("close_all_inline_popup", e);use=true;break;case "h": eA.execCommand("change_highlight");use=true;break;case "g": setTimeout("eA.execCommand(\'go_to_line\');", 5);use=true;break;case "e": eA.execCommand("show_help");use=true;break;case "z": use=true;eA.execCommand("undo");break;case "y": use=true;eA.execCommand("redo");break;default: break;}}if(eA.next.length > 0){setTimeout("eA.check_redo();", 10);}setTimeout("eA.check_file_changes();", 10);if(use){if(eA.nav[\'isIE\']) e.keyCode=0;return false;}return true;};function AltPressed(e){if (window.event){return (window.event.altKey);}\nelse{if(e.modifiers) return (e.altKey || (e.modifiers % 2));\nelse return e.altKey;}};function CtrlPressed(e){if (window.event){return (window.event.ctrlKey);}\nelse{return (e.ctrlKey || (e.modifiers==2) || (e.modifiers==3) || (e.modifiers>5));}};function ShiftPressed(e){if (window.event){return (window.event.shiftKey);}\nelse{return (e.shiftKey || (e.modifiers>3));}};	EA.prototype.show_search=function(){if(document.getElementById("area_search_replace").style.visibility=="visible"){this.hidden_search();}\nelse{this.open_inline_popup("area_search_replace");var text=this.area_get_selection();var search=text.split("\\n")[0];document.getElementById("area_search").value=search;document.getElementById("area_search").focus();}};EA.prototype.hidden_search=function(){this.close_inline_popup("area_search_replace");};EA.prototype.area_search=function(mode){if(!mode) mode="search";document.getElementById("area_search_msg").innerHTML="";var search=document.getElementById("area_search").value;this.textarea.focus();this.textarea.textareaFocused=true;var infos=this.get_selection_infos();var start=infos["selectionStart"];var pos=-1;var pos_begin=-1;var length=search.length;if(document.getElementById("area_search_replace").style.visibility!="visible"){this.show_search();return;}if(search.length==0){document.getElementById("area_search_msg").innerHTML=this.get_translation("search_field_empty");return;}if(mode!="replace" ){if(document.getElementById("area_search_reg_exp").checked) start++;\nelse start+=search.length;}if(document.getElementById("area_search_reg_exp").checked){var opt="m";if(!document.getElementById("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;length=infos["full_text"].substr(start).match(reg)[0].length;}\nelse if(pos_begin!=-1){length=infos["full_text"].match(reg)[0].length;}}\nelse{if(document.getElementById("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){document.getElementById("area_search_msg").innerHTML="<strong>"+search+"</strong> "+this.get_translation("not_found");return;}\nelse if(pos==-1 && pos_begin !=-1){begin=pos_begin;document.getElementById("area_search_msg").innerHTML=this.get_translation("restart_search_at_begin");}\nelse begin=pos;if(mode=="replace" && pos==infos["indexOfCursor"]){var replace=document.getElementById("area_replace").value;var new_text="";if(document.getElementById("area_search_reg_exp").checked){var opt="m";if(!document.getElementById("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 + length);}this.textarea.value=new_text;this.area_select(begin, length);this.area_search();}\nelse this.area_select(begin, length);};EA.prototype.area_replace=function(){this.area_search("replace");};EA.prototype.area_replace_all=function(){var base_text=this.textarea.value;var search=document.getElementById("area_search").value;var replace=document.getElementById("area_replace").value;if(search.length==0){document.getElementById("area_search_msg").innerHTML=this.get_translation("search_field_empty");return;}var new_text="";var nb_change=0;if(document.getElementById("area_search_reg_exp").checked){var opt="mg";if(!document.getElementById("area_search_match_case").checked) opt+="i";var reg=new RegExp(search, opt);nb_change=infos["full_text"].match(reg).length;new_text=infos["full_text"].replace(reg, replace);}\nelse{if(document.getElementById("area_search_match_case").checked){var tmp_tab=base_text.split(search);nb_change=tmp_tab.length -1;new_text=tmp_tab.join(replace);}\nelse{var lower_value=base_text.toLowerCase();var lower_search=search.toLowerCase();var start=0;var pos=lower_value.indexOf(lower_search);while(pos!=-1){nb_change++;new_text+=this.textarea.value.substring(start , pos)+replace;start=pos+ search.length;pos=lower_value.indexOf(lower_search, pos+1);}new_text+=this.textarea.value.substring(start);}}if(new_text==base_text){document.getElementById("area_search_msg").innerHTML="<strong>"+search+"</strong> "+this.get_translation("not_found");}\nelse{this.textarea.value=new_text;document.getElementById("area_search_msg").innerHTML="<strong>"+nb_change+"</strong> "+this.get_translation("occurrence_replaced");setTimeout("eA.textarea.focus();eA.textarea.textareaFocused=true;", 100);}}; EA.prototype.change_highlight=function(change_to){if(this.settings["syntax"].length==0 && change_to==false){this.switchClassSticky(document.getElementById("highlight"), \'editAreaButtonDisabled\', true);this.switchClassSticky(document.getElementById("reset_highlight"), \'editAreaButtonDisabled\', true);return false;}if(this.do_highlight==change_to) return false;if(this.nav[\'isIE\']) this.getIESelection();var pos_start=this.textarea.selectionStart;var pos_end=this.textarea.selectionEnd;if(this.do_highlight===true || change_to==false) this.disable_highlight();\nelse this.enable_highlight();this.textarea.focus();this.textarea.selectionStart=pos_start;this.textarea.selectionEnd=pos_end;if(this.nav[\'isIE\']) this.setIESelection();};EA.prototype.disable_highlight=function(displayOnly){document.getElementById("selection_field").innerHTML="";this.content_highlight.style.visibility="hidden";var new_Obj=this.content_highlight.cloneNode(false);new_Obj.innerHTML="";this.content_highlight.parentNode.insertBefore(new_Obj, this.content_highlight);this.content_highlight.parentNode.removeChild(this.content_highlight);this.content_highlight=new_Obj;var old_class=parent.getAttribute(this.textarea,"class");if(old_class){var new_class=old_class.replace("hidden","");parent.setAttribute(this.textarea, "class", new_class);}this.textarea.style.backgroundColor="transparent";this.switchClassSticky(document.getElementById("highlight"), \'editAreaButtonNormal\', true);this.switchClassSticky(document.getElementById("reset_highlight"), \'editAreaButtonDisabled\', true);this.do_highlight=false;this.switchClassSticky(document.getElementById("change_smooth_selection"), \'editAreaButtonSelected\', true);if(typeof(this.smooth_selection_before_highlight)!="undefined" && this.smooth_selection_before_highlight===false){this.change_smooth_selection_mode(false);}};EA.prototype.enable_highlight=function(){this.show_waiting_screen();this.content_highlight.style.visibility="visible";var new_class=parent.getAttribute(this.textarea,"class")+" hidden";parent.setAttribute(this.textarea, "class", new_class);if(this.nav[\'isIE\']) this.textarea.style.backgroundColor="#FFFFFF";this.switchClassSticky(document.getElementById("highlight"), \'editAreaButtonSelected\', false);this.switchClassSticky(document.getElementById("reset_highlight"), \'editAreaButtonNormal\', false);this.smooth_selection_before_highlight=this.smooth_selection;if(!this.smooth_selection) this.change_smooth_selection_mode(true);this.switchClassSticky(document.getElementById("change_smooth_selection"), \'editAreaButtonDisabled\', true);this.do_highlight=true;this.resync_highlight();this.hide_waiting_screen();};EA.prototype.maj_highlight=function(infos){if(this.last_highlight_base_text==infos["full_text"] && this.resync_highlight!==true) return;if(infos["full_text"].indexOf("\\r")!=-1) text_to_highlight=infos["full_text"].replace(/\\r/g, "");\nelse text_to_highlight=infos["full_text"];var start_line_pb=-1;var end_line_pb=-1;var stay_begin="";var stay_end="";var debug_opti="";var date=new Date();var tps_start=date.getTime();var tps_middle_opti=date.getTime();if(this.reload_highlight===true){this.reload_highlight=false;}\nelse if(text_to_highlight.length==0){text_to_highlight="\\n ";}\nelse{var base_step=200;var cpt=0;var end=Math.min(text_to_highlight.length, this.last_text_to_highlight.length);var step=base_step;while(cpt<end && step>=1){if(this.last_text_to_highlight.substr(cpt, step)==text_to_highlight.substr(cpt, step)){cpt+=step;}\nelse{step=Math.floor(step/2);}}var pos_start_change=cpt;var line_start_change=text_to_highlight.substr(0, pos_start_change).split("\\n").length -1;cpt_last=this.last_text_to_highlight.length;cpt=text_to_highlight.length;step=base_step;while(cpt>=0 && cpt_last>=0 && step>=1){if(this.last_text_to_highlight.substr(cpt_last-step, step)==text_to_highlight.substr(cpt-step, step)){cpt-=step;cpt_last-=step;}\nelse{step=Math.floor(step/2);}}var pos_new_end_change=cpt;var pos_last_end_change=cpt_last;if(pos_new_end_change<=pos_start_change){if(this.last_text_to_highlight.length < text_to_highlight.length){pos_new_end_change=pos_start_change + text_to_highlight.length - this.last_text_to_highlight.length;pos_last_end_change=pos_start_change;}\nelse{pos_last_end_change=pos_start_change + this.last_text_to_highlight.length - text_to_highlight.length;pos_new_end_change=pos_start_change;}}var change_new_text=text_to_highlight.substring(pos_start_change, pos_new_end_change);var change_last_text=this.last_text_to_highlight.substring(pos_start_change, pos_last_end_change);var line_new_end_change=text_to_highlight.substr(0, pos_new_end_change).split("\\n").length -1;var line_last_end_change=this.last_text_to_highlight.substr(0, pos_last_end_change).split("\\n").length -1;var change_new_text_line=text_to_highlight.split("\\n").slice(line_start_change, line_new_end_change+1).join("\\n");var change_last_text_line=this.last_text_to_highlight.split("\\n").slice(line_start_change, line_last_end_change+1).join("\\n");var trace_new=this.get_syntax_trace(change_new_text_line);var trace_last=this.get_syntax_trace(change_last_text_line);if(trace_new==trace_last){date=new Date();tps_middle_opti=date.getTime();stay_begin=this.last_hightlighted_text.split("\\n").slice(0, line_start_change).join("\\n");if(line_start_change>0) stay_begin+="\\n";stay_end=this.last_hightlighted_text.split("\\n").slice(line_last_end_change+1).join("\\n");if(stay_end.length>0) stay_end="\\n"+stay_end;if(stay_begin.length==0 && pos_last_end_change==-1) change_new_text_line+="\\n";text_to_highlight=change_new_text_line;}if(this.settings["debug"]){debug_opti=(trace_new==trace_last)?"Optimisation": "No optimisation";debug_opti+=" start: "+pos_start_change +"("+line_start_change+")";debug_opti+=" end_new: "+ pos_new_end_change+"("+line_new_end_change+")";debug_opti+=" end_last: "+ pos_last_end_change+"("+line_last_end_change+")";debug_opti+="\\nchanged_text: "+change_new_text+" => trace: "+trace_new;debug_opti+="\\nchanged_last_text: "+change_last_text+" => trace: "+trace_last;debug_opti+="\\nchanged_line: "+change_new_text_line;debug_opti+="\\nlast_changed_line: "+change_last_text_line;debug_opti+="\\nstay_begin: "+ stay_begin.slice(-200);debug_opti+="\\nstay_end: "+ stay_end;debug_opti+="\\n";}}date=new Date();tps_end_opti=date.getTime();var updated_highlight=this.colorize_text(text_to_highlight);date=new Date();tps2=date.getTime();var hightlighted_text=stay_begin + updated_highlight + stay_end;date=new Date();inner1=date.getTime();var new_Obj=this.content_highlight.cloneNode(false);if(this.nav[\'isIE\'] || this.nav[\'isOpera\']) new_Obj.innerHTML="<pre><span class=\'"+ this.settings["syntax"] +"\'>" + hightlighted_text.replace("\\n", "<br/>") + "</span></pre>";\nelse new_Obj.innerHTML="<span class=\'"+ this.settings["syntax"] +"\'>"+ hightlighted_text +"</span>";this.content_highlight.parentNode.insertBefore(new_Obj, this.content_highlight);this.content_highlight.parentNode.removeChild(this.content_highlight);this.content_highlight=new_Obj;if(infos["full_text"].indexOf("\\r")!=-1) this.last_text_to_highlight=infos["full_text"].replace(/\\r/g, "");\nelse this.last_text_to_highlight=infos["full_text"];this.last_hightlighted_text=hightlighted_text;date=new Date();tps3=date.getTime();if(this.settings["debug"]){tot1=tps_end_opti-tps_start;tot_middle=tps_end_opti- tps_middle_opti;tot2=tps2-tps_end_opti;tps_join=inner1-tps2;tps_td2=tps3-inner1;this.debug.value="Tps optimisation "+tot1+" (second part: "+tot_middle+") | tps reg exp: "+tot2+" | tps join: "+tps_join;this.debug.value+=" | tps update highlight content: "+tps_td2+"("+tps3+")\\n";this.debug.value+=debug_opti;}};EA.prototype.resync_highlight=function(reload_now){this.reload_highlight=true;this.last_highlight_base_text="";this.focus();if(reload_now) this.check_line_selection(false);}; EA.prototype.comment_or_quote=function(){var new_class="";var close_tag="";for(var i in parent.eAL.syntax[eA.current_code_lang]["quotes"]){if(EA.prototype.comment_or_quote.arguments[0].indexOf(i)==0){new_class="quotesmarks";close_tag=parent.eAL.syntax[eA.current_code_lang]["quotes"][i];}}if(new_class.length==0){for(var i in parent.eAL.syntax[eA.current_code_lang]["comments"]){if(EA.prototype.comment_or_quote.arguments[0].indexOf(i)==0){new_class="comments";close_tag=parent.eAL.syntax[eA.current_code_lang]["comments"][i];}}}if(close_tag=="\\n"){return "µ__"+ new_class +"__µ"+EA.prototype.comment_or_quote.arguments[0].replace(/(\\r?\\n)?$/m, "µ_END_µ$1");}\nelse{reg=new RegExp(parent.eAL.get_escaped_regexp(close_tag)+"$", "m");if(EA.prototype.comment_or_quote.arguments[0].search(reg)!=-1) return "µ__"+ new_class +"__µ"+EA.prototype.comment_or_quote.arguments[0]+"µ_END_µ";\nelse return "µ__"+ new_class +"__µ"+EA.prototype.comment_or_quote.arguments[0];}};EA.prototype.get_syntax_trace=function(text){if(this.settings["syntax"].length>0 && parent.eAL.syntax[this.settings["syntax"]]["syntax_trace_regexp"]) return text.replace(parent.eAL.syntax[this.settings["syntax"]]["syntax_trace_regexp"], "$3");};EA.prototype.colorize_text=function(text){text=" "+text;if(this.settings["syntax"].length>0) text=this.apply_syntax(text, this.settings["syntax"]);text=text.substr(1);text=text.replace(/&/g,"&amp;");text=text.replace(/</g,"&lt;");text=text.replace(/>/g,"&gt;");text=text.replace(/µ_END_µ/g,"</span>");text=text.replace(/µ__([a-zA-Z0-9]+)__µ/g,"<span class=\'$1\'>");return text;};EA.prototype.apply_syntax=function(text, lang){this.current_code_lang=lang;if(!parent.eAL.syntax[lang]) return text;if(parent.eAL.syntax[lang]["custom_regexp"][\'before\']){for( var i in parent.eAL.syntax[lang]["custom_regexp"][\'before\']){var convert="$1µ__"+ parent.eAL.syntax[lang]["custom_regexp"][\'before\'][i][\'class\'] +"__µ$2µ_END_µ$3";text=text.replace(parent.eAL.syntax[lang]["custom_regexp"][\'before\'][i][\'regexp\'], convert);}}if(parent.eAL.syntax[lang]["comment_or_quote_reg_exp"]){text=text.replace(parent.eAL.syntax[lang]["comment_or_quote_reg_exp"], this.comment_or_quote);}if(parent.eAL.syntax[lang]["keywords_reg_exp"]){for(var i in parent.eAL.syntax[lang]["keywords_reg_exp"]){text=text.replace(parent.eAL.syntax[lang]["keywords_reg_exp"][i], \'µ__\'+i+\'__µ$2µ_END_µ\');}}if(parent.eAL.syntax[lang]["delimiters_reg_exp"]){text=text.replace(parent.eAL.syntax[lang]["delimiters_reg_exp"], \'µ__delimiters__µ$1µ_END_µ\');}if(parent.eAL.syntax[lang]["operators_reg_exp"]){text=text.replace(parent.eAL.syntax[lang]["operators_reg_exp"], \'µ__operators__µ$1µ_END_µ\');}if(parent.eAL.syntax[lang]["custom_regexp"][\'after\']){for( var i in parent.eAL.syntax[lang]["custom_regexp"][\'after\']){var convert="$1µ__"+ parent.eAL.syntax[lang]["custom_regexp"][\'after\'][i][\'class\'] +"__µ$2µ_END_µ$3";text=text.replace(parent.eAL.syntax[lang]["custom_regexp"][\'after\'][i][\'regexp\'], convert);}}return text;};var editArea= eA;EditArea=EA;<\/script>';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\" /> [__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> <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</div> </div> </div> </div> </body> </html> ";editAreaLoader.iframe_css="<style>body, html{margin: 0;padding: 0;height: 100%;border: none;overflow: hidden;background-color: #FFFFFF;}body, html, table, form, textarea{font: 12px monospace, sans-serif;}#editor{border: solid #888888 1px;overflow: visible;}#result{z-index: 4;overflow: auto;border-top: solid #888888 1px;border-bottom: solid #888888 1px;position: relative;clear: both;}#result.empty{overflow: hidden;}#container{overflow: hidden;border: solid blue 0px;position: relative;z-index: 10;padding: 0 5px 0px 0;}#textarea{position: relative;top: 0px;left: 0px;padding: 0px 0px 0px 45px;width: 100%;height: 100%;overflow: hidden;z-index: 7;border: solid green 0px;background-color: transparent;}#textarea, #textarea:hover{outline: none;}#content_highlight{white-space: pre;padding: 1px 0 0 45px;position : absolute;z-index: 4;overflow: visible;border: solid yellow 0px;}#selection_field{padding: 0px 0px 0 45px;background-color: #E1F2F9;height: 1px;position: absolute;z-index: 5;top: -100px;margin: 1px 0 0 0px;white-space: pre;overflow: hidden;}#line_number{position: absolute;overflow: hidden;border-right: solid black 1px;z-index:8;width: 38px;padding-right: 5px;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: 1px 0 0 0px;}#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: 0px;padding: 0px;}.editarea_popup h1,.editarea_popup h2,.editarea_popup h3,.editarea_popup h4,.editarea_popup h5,.editarea_popup h6{margin: 0px;padding: 0px;}.editarea_popup .copyright{text-align: right;}div#area_search_replace{}div#area_search_replace img{border: 0px;}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 #888888;}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 #888888;margin-top: 3px;}#edit_area_help{width: 350px;}#edit_area_help div.close_popup{float: right;}.area_toolbar{width: 100%;margin: 0px;padding: 0px;background-color: lightGrey;text-align: center;}.area_toolbar, .area_toolbar table{font: 11px sans-serif;}.area_toolbar img{border: 0px;vertical-align: middle;}.area_toolbar input{margin: 0px;padding: 0px;}.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 #888888;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: 0px; margin: 0px; padding: 0px; background: transparent;margin-top: 0px;margin-left: 1px;padding: 0px;}.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 #888888 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 #888888;text-align: left;margin: 0px;}#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 #888888;border-width: 1px 1px 0px;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;}</style>";