function sendpage() {mailstr="mailto:?body= Je recommande cette page : "+document.title;mailstr+=". Consultable à l'adresse : "+location.href;mailstr+="&subject=[Animint] "+document.title;location.href=mailstr;} function gettoolsstr() {var outilstr='Imprimer cette page';outilstr+='Recommander cette page à un ami';return outilstr;};function no_error() {return true;} window.onerror=no_error;function open_popup(page,hauteur,largeur) {window.open(page,"Popup","status=no,scrollbars=yes,resizable=yes,height="+hauteur+",width="+largeur+",top=0,left=0");} function menu(){var i,x,tB,j=0,tA=new Array(),arg=menu.arguments;if(document.getElementsByTagName) {for(i=4;i0) {var eltName='video_'+AjaxId;var e=gel(eltName);addClass(e,'videon');eltName='videolink_'+AjaxId;e=gel(eltName);addClass(e,'videon');}} function dodisplay(id) {ajax.requestFile="/encyclopedie/base/video.php";ajax.onLoading=whenLoading;ajax.onCompletion=whenCompleted;ajax.setVar("id",id);ajax.runAJAX();return false;} function whenRateLoading(){var e=gel('rating_box');var string='';e.innerHTML=string;} function whenRateCompleted(){var Content=ajax.response;e=gel('rating_box');e.innerHTML=Content;} function setRate() {var frm=document.forms['my_rate'];ajax.requestFile="/outils/profile/ajax_base_rate.php";ajax.onLoading=whenRateLoading;ajax.onCompletion=whenRateCompleted;var do_action=frm.elements['dorate'].value;ajax.setVar('dorate',do_action);ajax.setVar('file_id',frm.elements['file_id'].value);ajax.setVar('uid',frm.elements['uid'].value);ajax.setVar('avis',getCheckedValue(frm.elements['avis']));ajax.runAJAX();return false;} function setVote(id,note,parution_id) {ajax.requestFile='/outils/profile/ajax_base_note.php';ajax.onCompletion=whenNoteCompleted;ajax.onLoading='';ajax.setVar('file_id',id);ajax.setVar('note',note);ajax.setVar('type',0);ajax.setVar('parution_id',parution_id);ajax.runAJAX();} function setVoteType(id,note,type) {ajax.requestFile='/outils/profile/ajax_base_note.php';ajax.onCompletion=whenNoteCompleted;ajax.onLoading='';ajax.setVar('file_id',id);ajax.setVar('type',type);ajax.setVar('note',note);ajax.setVar('parution_id',0);ajax.runAJAX();} function whenNoteLoading(){var e=gel('rating_wait');var string='';e.innerHTML=string;} function whenNoteCompleted() {var res=ajax.response;var ajaxtokens=res.split('AAA');var code=ajaxtokens[0];var id=ajaxtokens[1];var type=ajaxtokens[2];if(code==200) {var note=ajaxtokens[3];var star_width=parseInt(25*note);var el_name='star-'+id+'-type-'+type;var el=gel(el_name);el.style.width=star_width+'px';} else if(code==501) {alert('Votre session a expiré');}} function onload_fiche_start() {ajax=new sack();menu(1,'none','montrer','cacher','div');menu(1,'none','imagecacher','imagevoir','img');return true;} function onload_base_start() {ajax=new sack();return true;} function onload_search_start() {ajax=new sack();return true;} function getCheckedValue(radioObj){if(!radioObj)return"";var radioLength=radioObj.length;if(radioLength==undefined) if(radioObj.checked) return radioObj.value;else return"";for(var i=0;i5':' ▴';this.appendChild(sortrevind);return;} if(this.className.search(/\bsorttable_sorted_reverse\b/)!=-1){sorttable.reverse(this.sorttable_tbody);this.className=this.className.replace('sorttable_sorted_reverse','sorttable_sorted');this.removeChild(document.getElementById('sorttable_sortrevind'));sortfwdind=document.createElement('span');sortfwdind.id="sorttable_sortfwdind";sortfwdind.innerHTML=stIsIE?' 6':' ▾';this.appendChild(sortfwdind);return;} theadrow=this.parentNode;forEach(theadrow.childNodes,function(cell){if(cell.nodeType==1){cell.className=cell.className.replace('sorttable_sorted_reverse','');cell.className=cell.className.replace('sorttable_sorted','');}});sortfwdind=document.getElementById('sorttable_sortfwdind');if(sortfwdind){sortfwdind.parentNode.removeChild(sortfwdind);} sortrevind=document.getElementById('sorttable_sortrevind');if(sortrevind){sortrevind.parentNode.removeChild(sortrevind);} this.className+=' sorttable_sorted';sortfwdind=document.createElement('span');sortfwdind.id="sorttable_sortfwdind";sortfwdind.innerHTML=stIsIE?' 6':' ▾';this.appendChild(sortfwdind);row_array=[];col=this.sorttable_columnindex;rows=this.sorttable_tbody.rows;for(var j=0;j12){return sorttable.sort_ddmm;}else if(second>12){return sorttable.sort_mmdd;}else{sortfn=sorttable.sort_ddmm;}}}} return sortfn;},getInnerText:function(node){hasInputs=(typeof node.getElementsByTagName=='function')&node.getElementsByTagName('input').length;if(node.getAttribute("sorttable_customkey")!=null){return node.getAttribute("sorttable_customkey");} else if(typeof node.textContent!='undefined'&!hasInputs){return node.textContent.replace(/^\s+|\s+$/g,'');} else if(typeof node.innerText!='undefined'&!hasInputs){return node.innerText.replace(/^\s+|\s+$/g,'');} else if(typeof node.text!='undefined'&!hasInputs){return node.text.replace(/^\s+|\s+$/g,'');} else{switch(node.nodeType){case 3:if(node.nodeName.toLowerCase()=='input'){return node.value.replace(/^\s+|\s+$/g,'');} case 4:return node.nodeValue.replace(/^\s+|\s+$/g,'');break;case 1:case 11:var innerText='';for(var i=0;i=0;i--){tbody.appendChild(newrows[i]);} delete newrows;},sort_numeric:function(a,b){aa=parseFloat(a[0].replace(/[^0-9.-]/g,''));if(isNaN(aa))aa=0;bb=parseFloat(b[0].replace(/[^0-9.-]/g,''));if(isNaN(bb))bb=0;return aa-bb;},sort_alpha:function(a,b){if(a[0]==b[0])return 0;if(a[0]0){var q=list[i];list[i]=list[i+1];list[i+1]=q;swap=true;}} t--;if(!swap)break;for(var i=t;i>b;--i){if(comp_func(list[i],list[i-1])<0){var q=list[i];list[i]=list[i-1];list[i-1]=q;swap=true;}} b++;}}} if(document.addEventListener){document.addEventListener("DOMContentLoaded",sorttable.init,false);}/*@cc_on @*//*@if (@_win32) document.write("<\/script>"); var script = document.getElementById("__ie_onload"); script.onreadystatechange = function() { if (this.readyState == "complete") { sorttable.init(); // call the onload handler } }; /*@end @*/if(/WebKit/i.test(navigator.Agent)){var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){sorttable.init();}},10);} window.onload=sorttable.init;function dean_addEvent(element,type,handler){if(element.addEventListener){element.addEventListener(type,handler,false);}else{if(!handler.$$guid)handler.$$guid=dean_addEvent.guid++;if(!element.events)element.events={};var handlers=element.events[type];if(!handlers){handlers=element.events[type]={};if(element["on"+type]){handlers[0]=element["on"+type];}} handlers[handler.$$guid]=handler;element["on"+type]=handleEvent;}};dean_addEvent.guid=1;function removeEvent(element,type,handler){if(element.removeEventListener){element.removeEventListener(type,handler,false);}else{if(element.events&element.events[type]){delete element.events[type][handler.$$guid];}}};function handleEvent(event){var returnValue=true;event=event||fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);var handlers=this.events[event.type];for(var i in handlers){this.$$handleEvent=handlers[i];if(this.$$handleEvent(event)===false){returnValue=false;}} return returnValue;};function fixEvent(event){event.preventDefault=fixEvent.preventDefault;event.stopPropagation=fixEvent.stopPropagation;return event;};fixEvent.preventDefault=function(){this.returnValue=false;};fixEvent.stopPropagation=function(){this.cancelBubble=true;} if(!Array.forEach){Array.forEach=function(array,block,context){for(var i=0;i<array.length;i++){block.call(context,array[i],i,array);}};} Function.prototype.forEach=function(object,block,context){for(var key in object){if(typeof this.prototype[key]=="undefined"){block.call(context,object[key],key,object);}}};String.forEach=function(string,block,context){Array.forEach(string.split(""),function(chr,index){block.call(context,chr,index,string);});};var forEach=function(object,block,context){if(object){var resolve=Object;if(object instanceof Function){resolve=Function;}else if(object.forEach instanceof Function){object.forEach(block,context);return;}else if(typeof object=="string"){resolve=String;}else if(typeof object.length=="number"){resolve=Array;} resolve.forEach(object,block,context);}}; 3h291u