
var inputreplace=new Class({Implements:[Options,Events],options:{element:''},initialize:function(options){this.setOptions(options);this.run();},run:function(){var myElements=$$(this.options.element)
var values=myElements.get('value');$$(this.options.element).addEvents({'focus':function(){if(values.contains(this.value))
this.set('value','');},'blur':function(){if(this.value=='')
this.set('value',values[myElements.indexOf(this)]);}});}});var swiffConstruct=function(object){return new Swiff(object.filePath,{id:object.objectId,width:object.width,height:object.height,params:{align:'right',allowScriptAccess:'sameDomain',loop:this.isLoop,play:this.isAutoplay,pluginspage:'http://www.adobe.com/go/getflashplayer',quality:this.quality},vars:object.vars}).replaces($(object.objectId));};window.addEvent('domready',function(){$(document.body).addClass('js');if(Browser.Plugins.Flash.version!=0){flashObjectsArray.each(function(object){swiffConstruct(object);});}else{$$('.swf-object').each(function(object){object.removeClass('loading');new Element('a',{'href':'http://www.adobe.com/go/getflashplayer','html':'<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />'}).replaces(object);});}
$$('a[href^=mailto:]').each(function(el){var at=new RegExp('maeat','g');var dot=new RegExp('maedot','g');el.setProperty('href',el.getProperty('href').replace(dot,'.').replace(at,'@'));el.set('text',el.get('text').replace(dot,'.').replace(at,'@'));});$$('a.external').each(function(e){e.setProperty('target','_blank');});new inputreplace({element:'.replace'});$$('.print').addEvent('click',function(){window.print();return false;});if($chk($('page'))&&$chk($('page').getElements('select'))){$('page').getElements('select').each(function(e){if(!e.hasClass('alreadyCustom')&&e.getProperty('multiple')==''){new CustomSelect($(e),{theme:'custom_select'});}}.bind(this));}
if($chk($$('.enumeration'))){$$('.enumeration').addClass('rebuilt');$each($$('.enumeration'),function(ol){$each(ol.getChildren('li'),function(li,i){puce=new Element('span').set('text',i+1).inject(li,'top');});});}});
