
function CF_bind(o,m){var args=new Array();for(var i=2;i<arguments.length;++i){args.push(arguments[i]);}
return function(){var tmp=args.slice(0,args.length);for(var i=0;i<arguments.length;++i){tmp.push(arguments[i]);}
return m.apply(o,tmp);}}
function get(id){return document.getElementById(id);}
function CF_hide(e){e.style.visibility='hidden';e.style.position='relative';e.style.zIndex='-1';}
function getElementsByClassName(searchClass,node,tag){if(!document.all){if(node){return node.getElementsByClassName(searchClass);}else{return document.getElementsByClassName(searchClass);}}else{var classElements=new Array();if(node==null)
node=document;if(tag==null)
tag='*';var els=node.getElementsByTagName(tag);var elsLen=els.length;var pattern=new RegExp("(^|\\s)"+searchClass+"(\\s|$)");for(i=0,j=0;i<elsLen;i++){if(pattern.test(els[i].className)){classElements[j]=els[i];j++;}}
return classElements;}}
function str_pad(input,pad_length,pad_string,pad_type){var half='',pad_to_go;var str_pad_repeater=function(s,len){var collect='',i;while(collect.length<len)collect+=s;collect=collect.substr(0,len);return collect;};if(pad_type!='STR_PAD_LEFT'&&pad_type!='STR_PAD_RIGHT'&&pad_type!='STR_PAD_BOTH'){pad_type='STR_PAD_RIGHT';}
if((pad_to_go=pad_length-input.length)>0){if(pad_type=='STR_PAD_LEFT'){input=str_pad_repeater(pad_string,pad_to_go)+input;}
else if(pad_type=='STR_PAD_RIGHT'){input=input+str_pad_repeater(pad_string,pad_to_go);}
else if(pad_type=='STR_PAD_BOTH'){half=str_pad_repeater(pad_string,Math.ceil(pad_to_go/2));input=half+input+half;input=input.substr(0,pad_length);}}
return input;}
function color2hex(Stringval){if(Stringval.substring(0,1)=="#"){return Stringval.substring(1,7);}else{Stringval=Stringval.replace(/rgb/,'rgb2hex');Result=eval(Stringval);return Result;}}
function rgb2hex(r,g,b){var n=(r<<16)+(g<<8)+b;var iValColor=dechex(n);var sChaineColor='';for(iCharChaineColor=iValColor.length;iCharChaineColor<6;iCharChaineColor++){sChaineColor='0'+sChaineColor;}
return sChaineColor+iValColor;}
function dechex(dec){var hexa='0123456789ABCDEF',hex='';while(dec>15){tmp=dec-(Math.floor(dec/16))*16;hex=hexa.charAt(tmp)+hex;dec=Math.floor(dec/16);}
hex=hexa.charAt(dec)+hex;return(hex);}
function CF_HTMLEncode(wText){if(typeof(wText)!="string"){wText=wText.toString();}
wText=wText.replace(/&/g,"&amp;");wText=wText.replace(/"/g,"&#034;");wText=wText.replace(/</g,"&lt;");wText=wText.replace(/>/g,"&gt;");wText=wText.replace(/\(/g,"&#40;");wText=wText.replace(/\)/g,"&#41;");wText=wText.replace(/\//g,"&frasl;");wText=wText.replace(/\\/g,"&#92;");wText=wText.replace(/'/g,"&#146;");return wText;}
function CF_HTMLDecode(wText){if(typeof(wText)!="string"){wText=wText.toString();}
wText=wText.replace(/&amp;/g,"&");wText=wText.replace(/&#034;/g,'"');wText=wText.replace(/&#039;/g,'\'');wText=wText.replace(/&lt;/g,"<");wText=wText.replace(/&gt;/g,">");wText=wText.replace(/&quot;/g,'"');wText=wText.replace(/&#146;/g,"'");return wText;}
function addListener(element,type,expression,useCapture){useCapture=useCapture||false;if(window.addEventListener){element.addEventListener(type,expression,useCapture);return true;}else if(window.attachEvent){element.attachEvent('on'+type,expression);return true;}else return false;}
function toggle(el){if(el.style.display=='none'){el.style.display=''}else{el.style.display='none'}}
function toggleClassName(el,class_value){if(el.oldClassName){el.className=el.oldClassName;el.oldClassName=null;}else{el.oldClassName=el.className;el.className=class_value;}}
function setOpacity(el,value){el.style.opacity=value;el.style.filter='alpha(opacity='+value*100+')';}
function CF_ajax(url,opts){this.XMLHttpFactories=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];if(typeof CF_hash_check=='undefined'){CF_hash_check='';}
this.parameters=opts.parameters;this.method=opts.method.toUpperCase();this.postDataMode=(this.method=="POST")?true:false;this.url=(this.postDataMode)?url+'?hash_check='+CF_hash_check:url+'?'+this.parameters+'&hash_check='+CF_hash_check;this.callbackFunction=opts.onComplete;this.sendRequest();}
CF_ajax.prototype.sendRequest=function(){var req=this.createXMLHTTPObject();var callback=this.callbackFunction;if(!req)return;req.open(this.method,this.url,true);req.setRequestHeader('User-Agent','XMLHTTP/1.0');if(this.postDataMode)
req.setRequestHeader('Content-type','application/x-www-form-urlencoded');req.onreadystatechange=function(){if(req.readyState!=4)return;if(req.status!=200&&req.status!=304){return;}
if(callback)
callback(req);}
if(req.readyState==4)return;req.send(this.parameters);}
CF_ajax.prototype.createXMLHTTPObject=function(){var xmlhttp=false;for(var i=0;i<this.XMLHttpFactories.length;i++){try{xmlhttp=this.XMLHttpFactories[i]();}
catch(e){continue;}
break;}
return xmlhttp;}
function hasClassName(element,className){var elementClassName=element.className;return(elementClassName.length>0&&(elementClassName==className||new RegExp("(^|\\s)"+className+"(\\s|$)").test(elementClassName)));};function addClassName(element,className){if(!hasClassName(element,className))
element.className+=(element.className?' ':'')+className;return element;};function removeClassName(element,className){element.className=element.className.replace(new RegExp("(^|\\s+)"+className+"(\\s+|$)"),' ');return element;};function duration2time(duration){var min='00',sec='00';if(duration<60){sec=duration;}else{var sec=duration%60;var min=(duration-sec)/60;sec=(sec<10)?'0'+sec:sec;min=(min<10)?'0'+min:min;}
return min+':'+sec;}
function CF_info_bottom(text,id,timeout,position){var div=get(id);if(!div){div=document.createElement('div');div.id=id;document.body.appendChild(div);}
div.innerHTML=text;div.setAttribute('style','-moz-border-radius:10px;-webkit-border-radius:5px;-webkit-box-shadow:0 0 5px rgba(0,0,0,0.5)');div.style.display='block';div.style.padding='20px';div.style.backgroundColor='#477E47';div.style.color='#FFFFFF';div.style.fontWeight='bold';div.style.width='250px';div.style.textAlign='center';div.style.border='1px solid #FFFFFF';div.style.zIndex='10000';if(!position||position=='bottom'){if(typeof(window.innerHeight)=='number'){var width=window.innerWidth-300;var height=window.innerHeight-70;div.style.position='fixed';div.style.top=height+'px';div.style.left=width+'px';}else{var width=document.documentElement.scrollLeft+document.documentElement.clientWidth-300;var height=document.documentElement.scrollTop+document.documentElement.clientHeight-70;div.style.position='absolute';div.style.top=height+'px';div.style.left=width+'px';}}else if(position=='center'){var doc=document;var popup=get_current_popup();var offsetTop=0;if(popup){doc=parent.document;offsetTop=parseInt(popup.popup.style.top.replace('px',''));}
var height=Math.max(doc.documentElement.scrollTop,doc.body.scrollTop)
+doc.documentElement.clientHeight/2-25;height=height-offsetTop;if(height<0)height=0;div.style.position='absolute';div.style.top=height+'px';div.style.left='50%';div.style.marginLeft='-150px';doc=null;popup=null;}
this.div=div;this.timeout=timeout;div=null;timeout=null;}
CF_info_bottom.prototype.remove=function(callback){setTimeout(CF_bind(this,this.remove_callback,callback),this.timeout);}
CF_info_bottom.prototype.remove_callback=function(callback){this.div.style.display='none';if(callback){callback();}}
function CF_memorize_center(form_elm){new CF_info_bottom('Mémorisation des changements','memorize',600,'center');setTimeout(function(){form_elm.submit();},500);return false;}
function CF_fake_popup(width,callback){this.width=width;this.callback=callback;var parent_body=document.body;var doc=document;try{if(parent&&parent.CF_fake_popup_instance){this.zindex=parent.CF_fake_popup_instance.get_zindex()+2;this.previous_CF_fake_popup_instance=parent.CF_fake_popup_instance;parent_body=parent.document.body;doc=parent.document;}else if(window.CF_fake_popup_instance){this.zindex=window.CF_fake_popup_instance.get_zindex()+2;this.previous_CF_fake_popup_instance=window.CF_fake_popup_instance;}else{this.zindex=2;this.previous_CF_fake_popup_instance=null;}}catch(e){this.zindex=2;this.previous_CF_fake_popup_instance=null;}
this.set_current_popup(this);var hide=doc.createElement('div');parent_body.appendChild(hide);if(document.all||navigator.userAgent.match(/firefox\/2/i)){hide.style.position='absolute';}else{hide.style.position='fixed';}
hide.style.left='0px';hide.style.top='0px';hide.style.width='100%';hide.style.height='100%';hide.style.filter='alpha(opacity=40)';hide.style.opacity='.40';hide.style.backgroundColor='#000';hide.style.display='block';hide.style.zIndex=this.zindex;if(parent_body&&parent_body.clientHeight){hide.style.width=parent_body.clientWidth;hide.style.height=parent_body.clientHeight;}
var popup=doc.createElement('div');parent_body.appendChild(popup);popup.style.position='absolute';popup.style.left='50%';popup.style.top='50px';popup.style.width=width+'px';popup.style.marginLeft='-'+(width/2)+'px';popup.style.textAlign='right';popup.style.zIndex=this.zindex+1;popup.className='popup_overlay';popup.style.backgroundImage='url('+'http://imdoc.fr'+'/popup_background.png)';popup.style.padding='10px';var offset=0;if(doc.body&&doc.body.clientHeight){offset=doc.body.scrollTop;}
if(doc.documentElement&&doc.documentElement.clientHeight){offset=Math.max(offset,doc.documentElement.scrollTop);}
popup.style.top=(offset+30)+'px';var body=doc.createElement('div');popup.appendChild(body);body.className='popup_body';body.style.position='relative';body.style.padding='5px';body.style.backgroundColor='#FFFFFF';var img=doc.createElement('div');body.appendChild(img);img.style.position='absolute';img.style.right='5px';if(document.all)img.style.right='15px';img.className='popup_close';img.style.cursor='pointer';img.style.backgroundImage='url('+'http://imdoc.fr'+'/popup_close.png)';img.style.backgroundRepeat='no-repeat';img.style.width='23px';img.style.height='25px';img.onclick=CF_bind(this,remove_current_popup,false);var title=doc.createElement('div');body.appendChild(title);title.className='popup_title';title.style.overflow='hidden';title.style.height='18px';title.style.textAlign='left';title.style.padding='4px';title.style.fontWeight='bold';title.style.fontSize='16px';title.style.backgroundColor='#bfbfbf';title.style.color='#FFFFFF';title.style.paddingLeft='10px';this.hide=hide;this.popup=popup;this.body=body;this.img=img;this.title=title;this.attached=null;parent_body=null;doc=null;title=null;img=null;body=null;popup=null;hide=null;}
CF_fake_popup.prototype.set_current_popup=function(popup){window.CF_fake_popup_instance=popup;if(this.previous_CF_fake_popup_instance){this.previous_CF_fake_popup_instance.set_current_popup(popup);}}
CF_fake_popup.prototype.get_zindex=function(){return this.zindex;}
CF_fake_popup.prototype.attach_url=function(url){if(url&&!this.attached){try{var doc=(parent)?parent.document:document;}catch(e){var doc=document;}
this.set_title('Chargement en cours...');var iframe=doc.createElement('iframe');iframe.style.width='100%';iframe.style.border='0';iframe.setAttribute('frameBorder','0');iframe.src=url;this.attached=iframe;this.body.appendChild(iframe);this.wait();if(iframe.attachEvent)iframe.attachEvent('onload',CF_bind(this,this.display));else if(iframe.addEventListener)iframe.addEventListener('load',CF_bind(this,this.display),false);else iframe.onload=CF_bind(this,this.display);doc=null;iframe=null;}}
CF_fake_popup.prototype.attach_blank_iframe=function(name){if(!this.attached){try{var doc=(parent)?parent.document:document;}catch(e){var doc=document;}
this.set_title('Chargement en cours...');var iframe=null;var iframes=doc.getElementsByTagName('iframe');for(var i=0;i<iframes.length;i++){if(iframes[i].name==name){iframe=iframes[i];break;}}
if(!iframe){if(document.all){iframe=doc.createElement('<iframe name="'+name+'">');}else{iframe=doc.createElement('iframe');iframe.name=name;}}
iframe.style.width='100%';iframe.style.border='0';iframe.setAttribute('frameBorder','0');this.body.appendChild(iframe);this.attached=iframe;this.wait();iframe.onload=CF_bind(this,this.display);if((iframe.onload)&&(document.all)){this.display();}
iframe=null;iframes=null;}}
CF_fake_popup.prototype.set_title=function(title){this.title.innerHTML=title;}
CF_fake_popup.prototype.remove=function(validation){if(this.callback){this.callback(validation);}
this.hide.parentNode.removeChild(this.hide);this.popup.style.display='none';this.set_current_popup(this.previous_CF_fake_popup_instance);return false;}
CF_fake_popup.prototype.wait=function(){try{var doc=(parent)?parent.document:document;}catch(e){var doc=document;}
this.attached.style.display='none';this.wait_div=doc.createElement('div');this.wait_div.style.display='block';this.wait_div.style.textAlign='center';this.wait_div.style.height='200px';this.wait_div.style.backgroundColor='#FFFFFF';var img=doc.createElement('img');img.src='http://imdoc.fr'+'/design/wysiwyg/wait.gif';img.style.marginTop='80px';img.alt='wait';this.wait_div.appendChild(img);img=null;this.popup.appendChild(this.wait_div);}
CF_fake_popup.prototype.display=function(){if(this.attached){this.wait_div.style.visibility='hidden';this.wait_div.style.overflow='hidden';this.attached.style.display='block';if(this.attached.contentWindow){try{var doc_iframe=this.attached.contentWindow.document||this.attached.contentDocument;if(doc_iframe.body||doc_iframe.documentElement);if(doc_iframe&&doc_iframe.title){this.set_title(doc_iframe.title);}
this.attached.style.overflow='hidden';}catch(e){var title=this.attached.src;if(title.match('https://')){title='<a href="'+title+'" target="_blank"><img src="'+'http://imdoc.fr'+'/design/secure.gif" alt="" /></a> '+title;}
this.set_title(title);this.attached.style.overflow='auto';}}
if(this.wait_div.style.display!='none'){this.attached.style.height='1px';if(document.all){this.progress=100;}else{this.progress=-100;}
if(this.interval)clearInterval(this.interval);this.interval=setInterval(CF_bind(this,this.display_popup_progress),15);}else{if(document.all){this.progress=100;}else{this.progress=0;}
if(this.interval)clearInterval(this.interval);this.interval=setInterval(CF_bind(this,this.update_popup_progress),15);}}}
CF_fake_popup.prototype.display_popup_progress=function(){try{var doc_iframe=this.attached.contentWindow.document||this.attached.contentDocument;if(doc_iframe.body||doc_iframe.documentElement);}catch(e){var doc_iframe=null;}
if(this.progress<0){var total_height=200.0;this.wait_div.style.height=(total_height*Math.abs(this.progress)/100)+'px';}else if(this.progress<=100){this.wait_div.style.display='none';if(doc_iframe&&document.all&&doc_iframe.body){this.iframe_real_height=doc_iframe.body.offsetHeight;}else if(doc_iframe&&!document.all){this.iframe_real_height=doc_iframe.documentElement.offsetHeight;}else{this.iframe_real_height=500;}
this.attached.style.height=(this.iframe_real_height*this.progress/100)+20+'px';}else{if(this.interval)clearInterval(this.interval);}
this.progress=this.progress+10;}
CF_fake_popup.prototype.update_popup_progress=function(){if(!this.attached){return;}
try{var doc_iframe=this.attached.contentWindow.document||this.attached.contentDocument;if(doc_iframe.body||doc_iframe.documentElement);}catch(e){var doc_iframe=null;}
if(this.progress<=100){var real_height=500;if(doc_iframe&&document.all&&doc_iframe.body){real_height=doc_iframe.body.offsetHeight;}else if(doc_iframe&&!document.all){real_height=doc_iframe.documentElement.offsetHeight;}
var src=this.iframe_real_height*(100-this.progress)/100;var dst=real_height*this.progress/100;this.attached.style.height=(src+dst)+'px';}else{if(doc_iframe&&document.all&&doc_iframe.body){this.iframe_real_height=doc_iframe.body.offsetHeight;}else if(doc_iframe&&!document.all){this.iframe_real_height=doc_iframe.documentElement.offsetHeight;}else{this.iframe_real_height=500;}
if(this.interval)clearInterval(this.interval);}
this.progress=this.progress+10;}
function refresh_window(validate){if(validate){window.location.href=window.location.href.split('#')[0];}}
function reload_window(validate){if(validate){window.location.reload();}}
function refresh_toolbar(){window.toolbar.attachUpdateNotification(true);}
function get_current_popup(){try{if(document.getElementById('parent_not_allowed'))return false;if(parent&&parent.CF_fake_popup_instance){return parent.CF_fake_popup_instance;}else if(window.CF_fake_popup_instance){return window.CF_fake_popup_instance;}else{return false;}}catch(e){if(window.CF_fake_popup_instance){return window.CF_fake_popup_instance;}else{return false;}}}
function resize_current_popup(){var p=get_current_popup();if(p){p.display();}}
function remove_current_popup(validation){if(validation==undefined){validation=false;}
var p=get_current_popup();if(p){p.remove(validation);}
return false;}
function remove_all_current_popup(){var p=get_current_popup();var next=null;while(p){next=p.previous_CF_fake_popup_instance;p.remove();p=next;}
return false;}
function CF_popup(e,width,callback){if(e.href){if(!width)width='800';if(!callback)callback=refresh_window;var p=new CF_fake_popup(width,callback);p.attach_url(e.href);return false;}else{return true;}}
function CF_popup_windows(href,title){window.open(href,title,"toolbar=no, directories=no, menubar=no, help=no,status=no,scrollbars=no,resizable=no, width=800, height=600");return false;}
function CF_popup_form(form,width,callback){if(!width)width='800';if(!callback)callback=refresh_window;var p=new CF_fake_popup(width,callback);p.attach_blank_iframe(form.target);return true;}
function check_is_int(e){if(e.value!=parseInt(e.value)){alert('Merci d\'entrer un chiffre entier');e.value=parseInt(e.value);}}
function check_is_float(e){if(e.value!=parseFloat(e.value)){alert('Merci d\'entrer un nombre décimal');e.value=parseFloat(e.value);}}
function CF_digg(id_media,e){if(CF_current_user){get('digg').style.display='none';get('digged').style.display='block';if(get('digged_0').style.display!='none'){get('digged_0').style.display='none';get('digged_1').style.display='inline';}else{get('digged_1').style.display='none';get('digged_2').style.display='inline';var strong=get('digged_2').getElementsByTagName('strong')[0];var strong_digg=get('digg_2').getElementsByTagName('strong')[0];var val=parseInt(strong_digg.innerHTML);strong.innerHTML=strong_digg.innerHTML.replace(val,1+val);}
var opts={method:"get",parameters:'id_media='+id_media
+'&rd='+Math.random(),onComplete:null};new CF_ajax('http://club.ados.fr'+'/widget/update_digg.php',opts);}else{var div=get('CF_live_info');if(!div){div=document.createElement('div');div.id='CF_live_info';div.innerHTML='Vous devez vous connecter ou devenir membre pour voter. Merci !';div.style.position='absolute';div.style.backgroundColor='#FFD';div.style.color='#000';div.style.border='1px solid #000';div.style.textAlign='left';div.style.padding='5px';div.style.zIndex='1';div.style.fontSize='12px';document.body.appendChild(div);}
div.style.display=div.style.display=='block'?'none':'block';var x;var y;if(e&&e.pageX){x=e.pageX;y=e.pageY;}else{x=window.event.clientX+document.documentElement.scrollLeft;y=window.event.clientY+document.documentElement.scrollTop;}
div.style.top=(y+20)+'px';div.style.left=(x)+'px';div=null;setTimeout(function(){get('CF_live_info').style.display='none';},3000);}
return false;}
function edit_status(){if(!get('user_status_header_data')){var main=get('user_status_header').getElementsByTagName('strong')[0];var form=document.createElement('form');var input=document.createElement('input');input.id='user_status_header_data';input.value=CF_HTMLDecode(main.innerHTML);main.innerHTML='';form.appendChild(input);main.appendChild(form);form.onsubmit=edit_status_validate;get('user_status_header_link').style.display='none';get('user_status_header_validate').style.display='block';main=null;form=null;input=null;}
return false;}
function edit_status_validate(){var value=get('user_status_header_data').value;get('user_status_header').getElementsByTagName('strong')[0].innerHTML=CF_HTMLEncode(value);get('user_status_header_link').style.display='block';get('user_status_header_validate').style.display='none';var opts={method:'get',parameters:'id_user='+CF_profil_id
+'&status='+encodeURIComponent(value)
+'&hash_check='+CF_hash_check
+'&rd='+Math.random(),onComplete:null};new CF_ajax('http://club.ados.fr'+'/widget/toolbar/update_user_status.php',opts);return false;}
function CF_open_url_into_new_window(url){window.open(url,null,'width='+screen.width+',height='+screen.height+'');return false;}
function CF_move_mouse(e){e=e||window.event;var elm=e.target;if(!elm){elm=e.srcElement;}
if(elm&&elm.title){elm.title2js=elm.title;try{elm.title='';}catch(e){return;}}
var div=window.CF_title2js_div;if(elm&&elm.title2js){if(div==null){div=document.createElement('div');div.id='title2js';div.style.position='absolute';div.style.backgroundColor='#FFD';div.style.color='#000';div.style.border='1px solid #000';div.style.textAlign='left';div.style.padding='2px';div.style.zIndex='10';div.style.fontSize='11px';document.body.appendChild(div);window.CF_title2js_div=div;}
var x=e.pageX;var y=e.pageY;if(!x){x=e.clientX+document.documentElement.scrollLeft;y=e.clientY+document.documentElement.scrollTop;}
div.innerHTML=elm.title2js;div.style.display='block';var x_tot=document.documentElement.clientWidth+document.documentElement.scrollLeft;var y_tot=document.documentElement.clientHeight+document.documentElement.scrollTop;var width=div.offsetWidth;var height=div.offsetHeight;if(x+width>x_tot&&y+height>y_tot){x=x-width-10;y=y-height-10;}else if(x+width>x_tot){x=x_tot-width-10;}else if(y+height>y_tot){y=y_tot-height-10;}
div.style.top=(y+20)+'px';div.style.left=(x)+'px';}else if(div){div.style.display='none';}
elm=null;div=null;}
function load(){var temp=navigator.appVersion.split('MSIE');var version=parseFloat(temp[1]);if(false&&!navigator.appVersion.match('MSIE')||version>6){if(document.attachEvent){document.attachEvent('onmousemove',CF_move_mouse);}else if(document.addEventListener){document.addEventListener('mousemove',CF_move_mouse,false);}}
if(window.location.href.match('CF_popup=')){var popup=window.location.href.split('CF_popup=')[1].split('&')[0];var options_start=window.location.href.indexOf('CF_popup=')+'CF_popup='.length+popup.length+1;var options=window.location.href.substring(options_start);if(typeof(options)=='undefined'){options='';}else{options=encodeURIComponent(options);}
var opts={method:'get',parameters:'&popup='+popup
+'&options='+options
+'&rd='+Math.random(),onComplete:function(ajax){var url=eval('('+ajax.responseText+')');if(url){var fake_popup=new CF_fake_popup(800,function(){window.location.href=window.location.href.replace('CF_popup=','')});fake_popup.attach_url(url);}}};new CF_ajax('http://club.ados.fr'+'/widget/get_url_popup.php',opts);}
if(get('user_status_header_link')){get('user_status_header').onclick=edit_status;get('user_status_header').style.cursor='pointer';get('user_status_header_link').onclick=edit_status;get('user_status_header_validate').onclick=edit_status_validate;}
if(navigator.userAgent.indexOf('iPhone')!=-1&&document.location.indexOf('doctissimo.fr')!=-1){var a=document.createElement('a');a.id='doctissimo_iphone_promotion';a.innerHTML='Vous utiliser un iPhone ? Téléchargez l\'application de Doctissimo, conçue pour le forum !';a.href='http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=324685957&mt=8&s=143441';a.style.display='block';a.style.position='absolute';a.style.top='-2px';a.style.left='2px';a.style.padding='21px 20px 22px 55px';a.style.border='2px solid #CCC';a.style.fontSize='16px';a.style.backgroundColor='#FFF';a.style.backgroundImage='url('+'http://club.ados.fr'+'/static/design/icones/apple-iphone.jpg)';a.style.backgroundRepeat='no-repeat';a.style.zIndex='100';document.body.appendChild(a);}}
function on_dom_ready(fn){if(window.attachEvent&&!window.addEventListener){var d=window.document,done=false,init=function(){if(!done){done=true;fn();}};(function(){try{d.documentElement.doScroll('left');}catch(e){setTimeout(arguments.callee,50);return;}
init();})();d.onreadystatechange=function(){if(d.readyState=='complete'){d.onreadystatechange=null;init();}};}else if(window.addEventListener){window.addEventListener('DOMContentLoaded',fn,false);}}
on_dom_ready(load);function montrer_spoiler(value){var actual=document.getElementById(value).style.visibility;if(actual=='visible')document.getElementById(value).style.visibility='hidden';else document.getElementById(value).style.visibility='visible';}
function tooltip_show(e,id){var tooltip=document.getElementById(id);tooltip.parentNode.style.zIndex=1;tooltip.style.display='block';}
function tooltip_hide(id){var tooltip=document.getElementById(id);tooltip.parentNode.style.zIndex=0;tooltip.style.display='none';}
function CF_decryptlink(){this.keyStr="ABCDEFGHIJKLMNOP"+"QRSTUVWXYZabcdef"+"ghijklmnopqrstuv"+"wxyz0123456789+/"+"=";var tagsA=document.getElementsByTagName("span");for(var i=0;i<tagsA.length;i++){if(tagsA[i].className.substring(0,12)=="cf_cryptlink"){var url=this.decode(tagsA[i].className.substring(12));var nlink=document.createElement("a");nlink.href=url;nlink.className="cHeader";for(var j=0;j<tagsA[i].childNodes.length;j++){nlink.appendChild(tagsA[i].childNodes[j]);}
tagsA[i].appendChild(nlink);}else if(tagsA[i].className.substring(0,20)=="cf_noclass_cryptlink"){var url=this.decode(tagsA[i].className.substring(20));var nlink=document.createElement("a");nlink.href=url;for(var j=0;j<tagsA[i].childNodes.length;j++){nlink.appendChild(tagsA[i].childNodes[j]);}
tagsA[i].appendChild(nlink);}}}
CF_decryptlink.prototype.decode=function(input){var output="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;var base64test=/[^A-Za-z0-9\+\/\=]/g;if(base64test.exec(input)){alert("There were invalid base64 characters in the input text.\n"+"Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\n"+"Expect errors in decoding.");}
input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=this.keyStr.indexOf(input.charAt(i++));enc2=this.keyStr.indexOf(input.charAt(i++));enc3=this.keyStr.indexOf(input.charAt(i++));enc4=this.keyStr.indexOf(input.charAt(i++));chr1=(enc1<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;output=output+String.fromCharCode(chr1);if(enc3!=64){output=output+String.fromCharCode(chr2);}
if(enc4!=64){output=output+String.fromCharCode(chr3);}
chr1=chr2=chr3="";enc1=enc2=enc3=enc4="";}while(i<input.length);return unescape(output);}
document.write("<div id=\"element_div\"></div>");document.write("<div id=\"cf_toolbar_css\"></div>");if(typeof CF_is_crossdomain=='undefined'){CF_document_domain='http://'+document.domain;if('http://club.ados.fr'==CF_document_domain){CF_IS_CROSSDOMAIN=false;}else{CF_IS_CROSSDOMAIN=true;}}else{CF_IS_CROSSDOMAIN=CF_is_crossdomain;}
CF_WIDGET_DIR='http://club.ados.fr'+'/widget/toolbar';var dom=document.domain.split('.');CF_BASE_WIDTH=160;CF_NOTIFICATION_WIDTH=90;CF_BASE_HEIGHT=30;CF_AVATAR_STYLE="align=\"center\" style=\"width:70px;height:70px;cursor:pointer\"";CF_BACKGROUND_COLOR_1='rgb(105,78,145)';CF_BACKGROUND_COLOR_2='transparent';CF_BACKGROUND_COLOR_3='rgb(105,78,145)';CF_BACKGROUND_COLOR_4='rgb(105,78,145)';CF_SEARCH_IMAGE_BORDER='1px solid '+'rgb(210,182,253)';CF_FONT_COLOR_1='white';CF_FONT_COLOR_2='black';CF_FONT_SIZE='10px';CF_BUBBLE_COLOR='rgb(115,36,205)';CF_BORDER_STYLE_1='1px dashed white';CF_BORDER_STYLE_2='1px solid '+'rgb(105,78,145)';CF_BORDER_STYLE_3='1px solid '+'rgb(105,78,145)';CF_COOKIE_ID_FIELD="CF_user_id=";var temp=navigator.appVersion.split('MSIE');var version=parseFloat(temp[1]);if(!navigator.appVersion.match('MSIE')||version>6){CF_ID_USER=CF_LireCookie('CF_user_id');}else{CF_ID_USER='';}
CF_USER_PASS=CF_LireCookie('CF_user_pass');CF_REFRESH_DELAY=180;CF_ELEMENT_COUNTER=0;CF_NOTIFICATION_NO_ELEMENT='Aucun élément';CF_SEARCH_OPTIONS="<span id=\"member\">"+'Membres'+"</span> | <span id=\"photo\">"+'Photos'+"</span> | <span id=\"video\">"+'Vidéos'+"</span> | <span id=\"tag\">"+'Tags'+"</span>";CF_SEARCH_TITLE='Résultats de la recherche ';CF_CURRENT_OBJECT='';CF_MODERATION_SEARCH_TITLE='Recherche d\'utilisateur';CF_MODERATION_SHOW_ALERTS='Voir les alertes';CF_TOOLBAR_SPRITE_PATH='http://imdoc.fr'+'/site/site-'+'3'+'/toolbar_sprite.png)';CF_USER_STATUS_INFO_TEXT='Mon humeur, mes envies, mon message au Club!...';CF_USER_STATUS_TITLE_TEXT='Modifier mon statut :';CF_MODERATOR_NOTIF_TEXT='Gestion Modération';CF_DEBUG_TOOLBAR=false;function CF_createRequestObject(){var http;if(window.XMLHttpRequest){http=new XMLHttpRequest();}else if(window.ActiveXObject){http=new ActiveXObject("Microsoft.XMLHTTP");}
return http;}
function CF_createAjaxRequest(url,callback){if(CF_IS_CROSSDOMAIN){var cross_script=get('cross_domain_script');if(cross_script){cross_script.parentNode.removeChild(cross_script);}
cross_script=document.createElement("script");cross_script.setAttribute("src",url+"&callback="+callback);cross_script.id='cross_domain_script';document.body.appendChild(cross_script);cross_script=null;}else{var http=CF_createRequestObject();http.open('get',url,false);http.send(null);callback(http);}}
if(CF_ID_USER!=''){if(CF_IS_CROSSDOMAIN){CF_CURRENT_OBJECT=window;CF_createAjaxRequest(CF_WIDGET_DIR+'/get_validate_cookie.php?id_user='+CF_ID_USER+'&user_pass='+CF_USER_PASS+'&nocache='+Math.random(),'CF_test_cookie');}else{CF_test_cookie(true);}}
function CF_test_cookie(result){if(result){var url=CF_WIDGET_DIR+'/get_toolbar_display.php?id_user='+CF_ID_USER+'&nocache='+Math.random();if(!(document.cookie.match("CF_display_toolbar"))){if(CF_IS_CROSSDOMAIN){CF_createAjaxRequest(url,'CF_test_display');}else{CF_createAjaxRequest(url,CF_test_display);}}else{var display_cookie=CF_LireCookie("CF_display_toolbar");if(display_cookie=='true'){create_CF_Toolbar();}else{if(CF_IS_CROSSDOMAIN){CF_createAjaxRequest(url,'CF_test_display');}else{CF_createAjaxRequest(url,CF_test_display);}}}}}
function CF_test_display(result)
{var display_toolbar;if(CF_IS_CROSSDOMAIN){display_toolbar=eval('('+result+')');}else{display_toolbar=eval('('+result.responseText+')');}
if(display_toolbar==1){create_CF_Toolbar();}
var date=new Date();date.setTime(date.getTime()+(15*24*60*60*1000));document.cookie="CF_display_toolbar="+display_toolbar+"; expires="+date.toGMTString()+"; path="+'/'+"; domain="+'.ados.fr';}
function create_CF_Toolbar(){setTimeout(CF_continue_creation,0);}
function CF_continue_creation(){var element_div=document.getElementById('element_div');window.toolbar=new CF_Toolbar(element_div);element_div=null;window.toolbar.buildToolbar();}
function CF_creerElemHTML(elt_pere,type_elt,id_elt,src_elt,bg_elt,class_elt,inHTML_elt,font_color_elt,border_elt){var elt_temp=document.createElement(type_elt);if(id_elt.match("form")){id_elt='moderate';}
elt_temp.setAttribute("id",id_elt);elt_temp.style.width='100%';elt_temp.style.height='auto';elt_temp.style.color=font_color_elt;elt_temp.style.borderBottom=border_elt;elt_temp.style.fontSize=CF_FONT_SIZE;elt_temp.style.textAlign='left';switch(type_elt){case"img":elt_temp.setAttribute("id",id_elt);elt_temp.setAttribute("src",src_elt);break;case"div":elt_temp.setAttribute("class",class_elt);elt_temp.innerHTML=inHTML_elt;if(bg_elt!='')
elt_temp.style.backgroundColor=bg_elt;break;case"span":if(id_elt!='')
elt_temp.setAttribute("id",id_elt);if(bg_elt!='')
elt_temp.style.backgroundColor=bg_elt;elt_temp.innerHTML=inHTML_elt;break;default:break;}
elt_pere.insertBefore(elt_temp,elt_pere.firstChild);elt_temp=null;}
function CF_getElementCorner(target_element){var bottom=0;var left=0;var top=0;var initial_target=target_element;var hauteur_page=0;var largeur_page=0;while(target_element){top+=target_element.offsetTop;left+=target_element.offsetLeft;target_element=target_element.offsetParent;}
if(typeof(window.innerHeight)=='number'){hauteur_page=document.documentElement.clientHeight;largeur_page=document.documentElement.clientWidth;}else if(document.documentElement&&document.documentElement.clientHeight){hauteur_page=document.documentElement.clientHeight;largeur_page=document.documentElement.clientWidth;}else if(document.body&&document.body.clientHeight){hauteur_page=document.body.clientHeight;largeur_page=document.body.clientWidth;}
bottom=hauteur_page-top;if(bottom!=CF_BASE_HEIGHT){bottom-=3;}
if(initial_target.style.right){left=largeur_page-left;}else{if(left!=0){left-=initial_target.offsetLeft+1;}}
return(new Array(left,bottom));}
function CF_addSpecialFooter(position,father,color){var footer=document.createElement("div");footer.style.width='10px';footer.style.height='5px';footer.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';footer.style.backgroundPosition='0px -125px';footer.style.backgroundColor=color;footer.style.position='absolute';if(position=='right'){footer.style.right='5px';}else{footer.style.left='5px';}
father.appendChild(footer);return father.lastChild;}
function CF_getCookieVal(offset){var endstr=document.cookie.indexOf(';',offset);if(endstr==-1)endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}
function CF_LireCookie(nom){var arg=nom+'=';var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg)return CF_getCookieVal(j);i=document.cookie.indexOf(' ',i)+1;if(i==0)break;}
return'';}
function CF_setElementStyle(element,position,right,left,bottom,height,width,margintop,marginleft,marginright,marginbottom,paddingtop,paddingleft,paddingright,paddingbottom,bordertop,borderright,borderleft,borderbottom,zIndex,cursor,fontfamily,fontweight,fontsize,color,backgroundcolor,textalign,textdecoration){if(position!=null)
element.style.position=position;if(right!=null)
element.style.right=right;if(left!=null)
element.style.left=left;if(bottom!=null)
element.style.bottom=bottom;if(height!=null)
element.style.height=height;if(width!=null)
element.style.width=width;if(margintop!=null)
element.style.marginTop=margintop;if(marginleft!=null)
element.style.marginLeft=marginleft;if(marginright!=null)
element.style.marginRight=marginright;if(marginbottom!=null)
element.style.marginBottom=marginbottom;if(paddingtop!=null)
element.style.paddingTop=paddingtop;if(paddingleft!=null)
element.style.paddingLeft=paddingleft;if(paddingright!=null)
element.style.paddingRight=paddingright;if(paddingbottom!=null)
element.style.paddingBottom=paddingbottom;if(bordertop!=null)
element.style.borderTop=bordertop;if(borderleft!=null)
element.style.borderLeft=borderleft;if(borderright!=null)
element.style.borderRight=borderright;if(borderbottom!=null)
element.style.borderBottom=borderbottom;if(zIndex!=null)
element.style.zIndex=1000+(zIndex-0);if(cursor!=null)
element.style.cursor=cursor;if(fontfamily!=null)
element.style.fontFamily=fontfamily;if(fontweight!=null)
element.style.fontWeight=fontweight;if(fontsize!=null)
element.style.fontSize=fontsize;if(color!=null)
element.style.color=color;if(backgroundcolor!=null)
element.style.backgroundColor=backgroundcolor;if(textalign!=null)
element.style.textAlign=textalign;if(textdecoration!=null)
element.style.textDecoration=textdecoration;}
function CF_Toolbar(div){this.with_cook=false;this.toolbar_array=new Array();this.menu_start_array=new Array();this.init_update_notification=new Array();this.quick_launch_init_array=new Array();this.user_status_text=null;this.moderation_search=null;this.element_div=div;this.element_div.style.fontFamily='verdana';this.element_div.style.fontSize='12px';document.body.style.paddingBottom=CF_BASE_HEIGHT+'px';this.construction_stop=false;this.notification_array=new Array();this.makeBar();this.save_cook_quick_launch=null;this.buildmade=false;}
CF_Toolbar.prototype.buildToolbar=function(){if(document.cookie.match("CF_toolbar")){var toolbar_cookie=CF_LireCookie("CF_toolbar");var json=eval('('+toolbar_cookie+')');if(json.notification_update){for(var i=0;i<json.notification_update.length;i++){this.init_update_notification[i]=new Array(json.notification_update[i].value,json.notification_update[i].url,json.notification_update[i].bubble_text);}
for(var j=0;j<json.quick_launch.length;j++){this.quick_launch_init_array[j]=new Array(json.quick_launch[j].id,json.quick_launch[j].url,json.quick_launch[j].img);}
if(json.moderator_notification){this.moderator_array=new Array();this.moderator_array[0]=json.moderator_notification.pending_alerts;this.moderator_array[1]=json.moderator_notification.url;}
this.save_cook_quick_launch=toolbar_cookie.substring(toolbar_cookie.indexOf('quick_launch')-1,toolbar_cookie.length);this.with_cook=true;this.continueBuilding();}else{this.fullInitArray();}}else{this.fullInitArray();}}
CF_Toolbar.prototype.continueBuilding=function(){if(!(this.buildmade)){this.start_menu=new CF_StartMenu(this);this.search_menu=new CF_SearchMenu(this);var first_notif_previous=this.search_menu.input_div;if(this.moderator_array){this.moderator_notification=new CF_ModeratorNotification(this);first_notif_previous=this.moderator_notification.element_div;}
var url_messagerie='';if(this.init_update_notification[0][1]==''){url_messagerie=CF_WIDGET_DIR+'/get_menu_notif_message.php?idusr='+CF_ID_USER;}else{url_messagerie=this.init_update_notification[0][1];}
url_chat=this.init_update_notification[1][1];this.notification_array[this.notification_array.length]=new CF_Notification(this,'personnal_messages','',this.init_update_notification[0][0],url_messagerie,first_notif_previous,7,this.init_update_notification[0][2]);if(url_chat&&url_chat.length>0){this.notification_array[this.notification_array.length]=new CF_Notification(this,'chat','',this.init_update_notification[1][0],url_chat,this.notification_array[this.notification_array.length-1].element_div,10,this.init_update_notification[1][2]);}
this.notification_array[this.notification_array.length]=new CF_Notification(this,'forum_flags','',this.init_update_notification[2][0],CF_WIDGET_DIR+'/get_forum_toolbar.php?id_user='+CF_ID_USER+'&action=give_topics_flag',this.notification_array[this.notification_array.length-1].element_div,8,this.init_update_notification[2][2]);this.notification_array[this.notification_array.length]=new CF_Notification(this,'friends_asks','',this.init_update_notification[3][0],this.init_update_notification[3][1],this.notification_array[this.notification_array.length-1].element_div,14,this.init_update_notification[3][2]);this.notification_array[this.notification_array.length]=new CF_Notification(this,'friends_online','',this.init_update_notification[4][0],CF_WIDGET_DIR+'/get_menu_friends_ol.php?idusr='+CF_ID_USER,this.notification_array[this.notification_array.length-1].element_div,9,this.init_update_notification[4][2]);this.makeQuickLaunchZone();var this_object=this;setInterval(function(e){this_object.attachUpdateNotification()},CF_REFRESH_DELAY*1000);if(document.all){document.body.attachEvent("onmousedown",CF_bind(this,this.bodyClick));}else{document.body.addEventListener("mousedown",CF_bind(this,this.bodyClick),false);}
this.showAllRightElements();this.buildmade=true;first_notif_previous=null;if(this.with_cook==true){this.fullInitArray();}else{this.continueBuilding();}}else{this.start_menu.menu_start_array=this.menu_start_array;this.hideAllMenus();if(this.notification_array&&this.init_update_notification){for(var i=0;i<this.notification_array.length;i++){var notif=this.notification_array[i];notif.updated_notification_text.innerHTML=this.init_update_notification[i][0];}}}
this.showAllRightElements();}
CF_Toolbar.prototype.makeBar=function(){this.bar=document.createElement("span");this.bar.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' repeat-x';this.bar.style.backgroundPosition='0px -150px';CF_setElementStyle(this.bar,'fixed','0px',null,'0px',CF_BASE_HEIGHT+'px','100%',null,null,null,null,null,null,null,null,null,null,null,null,'1',null,null,null,null,null,CF_BACKGROUND_COLOR_1,null,null);this.element_div.appendChild(this.bar);this.bar=this.element_div.lastChild;}
CF_Toolbar.prototype.makeQuickLaunchZone=function(){this.quick_launch_zone=document.createElement("div");CF_setElementStyle(this.quick_launch_zone,'fixed',null,CF_BASE_WIDTH+'px','0px',CF_BASE_HEIGHT-2+'px','auto',null,null,null,null,'2px','4px','4px',null,null,CF_BORDER_STYLE_2,CF_BORDER_STYLE_2,null,'2',null,null,null,null,null,CF_BACKGROUND_COLOR_1,null,null);this.quick_launch_zone.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' repeat-x';this.quick_launch_zone.style.backgroundPosition='0px -150px';this.element_div.appendChild(this.quick_launch_zone);this.quick_launch_zone=this.element_div.lastChild;this.quick_launch_array=new Array();for(var i=0;i<this.quick_launch_init_array.length;i++){this.quick_launch_array[i]=new CF_QuickLaunchItem(this,this.quick_launch_init_array[i][1],this.quick_launch_init_array[i][2],this.quick_launch_init_array[i][0]);}}
CF_Toolbar.prototype.fullAllInitArray=function(ajax_object){var json;var result;if(CF_IS_CROSSDOMAIN){result=ajax_object;}else{result=ajax_object.responseText;}
json=eval('('+result+')');var array_temp;var array_temp2;for(var i=0;i<json.start_menu.length;i++){array_temp=null;if(json.start_menu[i].menu!=''){array_temp=new Array();for(var j=0;j<json.start_menu[i].menu.length;j++){array_temp2=null;if(json.start_menu[i].menu[j].menu!=''){array_temp2=new Array();for(var k=0;k<json.start_menu[i].menu[j].menu.length;k++){array_temp2[k]=new Array(json.start_menu[i].menu[j].menu[k].img,CF_HTMLEncode(json.start_menu[i].menu[j].menu[k].title),json.start_menu[i].menu[j].menu[k].url,null,1,CF_BACKGROUND_COLOR_2,CF_FONT_COLOR_2,CF_BORDER_STYLE_3);}}
array_temp[j]=new Array(json.start_menu[i].menu[j].img,CF_HTMLEncode(json.start_menu[i].menu[j].title),json.start_menu[i].menu[j].url,array_temp2,1,CF_BACKGROUND_COLOR_2,CF_FONT_COLOR_2,CF_BORDER_STYLE_3);}}
this.menu_start_array[i]=new Array(json.start_menu[i].img,CF_HTMLEncode(json.start_menu[i].title),json.start_menu[i].url,array_temp,1,CF_BACKGROUND_COLOR_1,CF_FONT_COLOR_1,CF_BORDER_STYLE_1);}
this.user_status_text=json.user_status;for(var i=0;i<json.notification_update.length;i++){this.init_update_notification[i]=new Array(json.notification_update[i].value,json.notification_update[i].url,json.notification_update[i].bubble_text);}
for(var j=0;j<json.quick_launch.length;j++){this.quick_launch_init_array[j]=new Array(json.quick_launch[j].id,json.quick_launch[j].url,json.quick_launch[j].img);}
if(json.moderator_notification){if(this.moderator_array&&this.moderator_array[0]!=json.moderator_notification.pending_alerts){this.attachUpdateNotification(true);}
this.moderator_array=new Array();this.moderator_array[0]=json.moderator_notification.pending_alerts;this.moderator_array[1]=json.moderator_notification.url;}
if(this.with_cook==false){var expires=CF_REFRESH_DELAY*5*1000;var today=new Date();var text_cook='{'+result.substring(result.indexOf("notification_update")-1,result.length)+';';today.setTime(today.getTime());var expires_date=new Date(today.getTime()+expires);}
var toolbar_cookie=CF_LireCookie("CF_toolbar");this.save_cook_quick_launch=toolbar_cookie.substring(toolbar_cookie.indexOf('quick_launch')-1,toolbar_cookie.length);this.continueBuilding();this.updateNotification(ajax_object);}
CF_Toolbar.prototype.fullInitArray=function(){CF_CURRENT_OBJECT=this;var url=CF_WIDGET_DIR+'/toolbar_init.php?id_user='+CF_ID_USER+'&nocache='+Math.random();if(CF_IS_CROSSDOMAIN){CF_createAjaxRequest(url,'fullAllInitArray');}else{CF_createAjaxRequest(url,CF_bind(this,this.fullAllInitArray));}}
CF_Toolbar.prototype.showAllRightElements=function(){this.search_menu.show();if(this.moderator_array){this.moderator_notification.element_div.style.display='block';}
for(var i=0;i<this.notification_array.length;i++){if((this.notification_array[i].updated_notification_text.style.display=='none')&&((this.notification_array[i].url.match('.php'))||(this.notification_array[i].url.match('popup')))){this.notification_array[i].hide();}else{this.notification_array[i].show();}}}
CF_Toolbar.prototype.attachUpdateNotification=function(force_update){var date_cookie=CF_LireCookie('CF_time');var date_temp=new Date();if(!force_update&&(parseInt(date_temp.getTime())-parseInt(date_cookie))<(1000*CF_REFRESH_DELAY/2)){this.updateNotification('cookie');}else{CF_CURRENT_OBJECT=this;var url=CF_WIDGET_DIR+'/toolbar_update.php?nocache='+Math.random()+'&id_user='+CF_ID_USER;if(CF_IS_CROSSDOMAIN){CF_createAjaxRequest(url,'updateNotification');}else{CF_createAjaxRequest(url,CF_bind(this,this.updateNotification));}}}
CF_Toolbar.prototype.updateNotification=function(ajax_object){var json;if(ajax_object=='cookie'){var toolbar_cookie=CF_LireCookie("CF_toolbar");json=eval('('+toolbar_cookie+')');if((window.console)&&(CF_DEBUG_TOOLBAR)){console.log(toolbar_cookie);}
var display_toolbar=CF_LireCookie("CF_display_toolbar");}else{var result;if(CF_IS_CROSSDOMAIN){result=ajax_object;}else{result=ajax_object.responseText;}
json=eval('('+result+')');if((window.console)&&(CF_DEBUG_TOOLBAR)){console.log(result);}
var display_toolbar=json.toolbar_display.value;}
if((display_toolbar=='true')||(display_toolbar==true)){if(json.moderator_notification){this.moderator_notification.alert_number=json.moderator_notification.pending_alerts;this.moderator_notification.updated_notification_text.innerHTML=json.moderator_notification.pending_alerts;if(json.moderator_notification.pending_alerts>0){this.moderator_notification.updated_notification_text.style.display='block';this.moderator_notification.menu_search.element_array[0].element_div.style.display='block';this.moderator_notification.menu_search.element_array[0].separator.separator.style.display='block';this.moderator_notification.menu_search.element_array[0].url=json.moderator_notification.url;}else{this.moderator_notification.updated_notification_text.style.display='none';this.moderator_notification.menu_search.element_array[0].element_div.style.display='none';this.moderator_notification.menu_search.element_array[0].separator.separator.style.display='none';}}
for(var i=0;i<json.notification_update.length;i++){for(var j=0;j<this.notification_array.length;j++){if(json.notification_update[i].id==this.notification_array[j].id){if((json.notification_update[i].value)&&(json.notification_update[i].value!='0')&&(json.notification_update[i].value!='')&&(json.notification_update[i].value!='null')&&(json.notification_update[i].value.length!=0)){this.notification_array[j].updated_notification_text.style.display='block';this.notification_array[j].updated_notification_text.innerHTML=json.notification_update[i].value;this.notification_array[j].show();}else{if((json.notification_update[i].url=='')||(json.notification_update[i].url.match('popup'))){this.notification_array[j].hide();}else{this.notification_array[j].url=json.notification_update[i].url;this.notification_array[j].updated_notification_text.style.display='none';this.notification_array[j].show();}}}}}
if(ajax_object!='cookie'){var expires=CF_REFRESH_DELAY*1.5*1000;var today=new Date();if(!result.match('quick_launch')){result=result.substring(0,result.length-1)+','+this.save_cook_quick_launch;if(this.save_cook_quick_launch.substring(this.save_cook_quick_launch.length-1,this.save_cook_quick_launch.length)!='}'){result+='}';}}
today.setTime(today.getTime());var expires_date=new Date(today.getTime()+expires);}}else{while(this.element_div.childNodes[0]){this.element_div.removeChild(this.element_div.lastChild);}}
var date=new Date();date.setTime(date.getTime()+(15*24*60*60*1000));document.cookie="CF_display_toolbar="+display_toolbar+"; expires="+date.toGMTString()+"; path="+'/'+"; domain="+'.ados.fr';}
CF_Toolbar.prototype.hideAllMenus=function(){if(this.element_div.childNodes.length>0){if(this.start_menu.menu_start_menu){this.start_menu.menu_start_menu.hideMenu();}
if(this.search_menu.search_window){this.search_menu.search_window.style.display='none';}
for(var i=0;i<this.notification_array.length;i++){this.notification_array[i].menu_element.hideMenu();}
if(this.moderator_array){this.moderator_notification.menu_search.hideMenu();}}}
CF_Toolbar.prototype.bodyClick=function(){if(document.all){evt=event;}else{evt=arguments[0];}
this.hideAllMenus();evt.cancelBubble=true;}
function CF_ModeratorNotification(father){this.father=father;this.alert_number=this.father.moderator_array[0];this.element_div=document.createElement("div");CF_setElementStyle(this.element_div,'fixed',CF_NOTIFICATION_WIDTH/2+CF_BASE_WIDTH+'px',null,'0px',CF_BASE_HEIGHT-4+'px','auto',null,null,null,null,'4px','4px','6px',null,null,CF_BORDER_STYLE_2,CF_BORDER_STYLE_2,null,'1','pointer',null,null,null,null,null,null,null);this.father.element_div.appendChild(this.element_div);this.element_div=this.father.element_div.lastChild;this.element_div.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' repeat-x';this.element_div.style.backgroundPosition='0px -150px';this.bubble=new CF_InfoBulle(CF_MODERATOR_NOTIF_TEXT,this.element_div,this.father.element_div,'left');this.child_bottom=CF_getElementCorner(this.element_div)[1];this.child_right=CF_getElementCorner(this.element_div)[0]+CF_BASE_WIDTH/2;this.moderation_arrow=document.createElement("div");if(document.all){this.moderation_arrow.style.styleFloat='left';}else{this.moderation_arrow.setAttribute('style','float:left');}
this.moderation_arrow.style.height='25px';this.moderation_arrow.style.width='25px';this.moderation_arrow.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';this.moderation_arrow.style.backgroundPosition=(12*(-25))+'px -75px';this.element_div.appendChild(this.moderation_arrow);this.moderation_arrow=this.element_div.lastChild;this.updated_notification_text=document.createElement("div");if(document.all){this.updated_notification_text.style.styleFloat='left';}else{this.updated_notification_text.setAttribute('style','float:left');}
CF_setElementStyle(this.updated_notification_text,null,null,null,null,'25px','auto','-2px',null,null,null,null,'4px','4px',null,null,null,null,null,null,null,null,null,'9px',CF_FONT_COLOR_1,null,null,null);this.updated_notification_text.innerHTML=this.father.moderator_array[0];this.updated_notification_text.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';this.updated_notification_text.style.backgroundPosition='0px -100px';this.element_div.appendChild(this.updated_notification_text);this.updated_notification_text=this.element_div.lastChild;if(!((this.father.moderator_array[0])&&(this.father.moderator_array[0]!='0')&&(this.father.moderator_array[0]!='')&&(this.father.moderator_array[0]!='null')&&(this.father.moderator_array[0].length!=0))){this.updated_notification_text.style.display='none';}
var inhtml=CF_MODERATION_SEARCH_TITLE+' <br/><form style=\"display: inline\" action=\"'+'http://club.ados.fr'+'/controllers/admin/moderation/moderate_user.php\" method=\"get\" id=\"moderate\"><input type=\"text\" id=\"moderate\" value=\"\" name=\"pseudo\" />&nbsp;<input type=\"submit\" value=\"Info\" id=\"moderate\" /></form>';var array_search=new Array();array_search[0]=new Array('',CF_MODERATION_SHOW_ALERTS,this.father.moderator_array[1],null,1,CF_BACKGROUND_COLOR_1,CF_FONT_COLOR_1,CF_BORDER_STYLE_1);array_search[1]=new Array('',inhtml,'',null,1,CF_BACKGROUND_COLOR_1,CF_FONT_COLOR_1,CF_BORDER_STYLE_1);array_search[2]=new Array('','','',null,1,CF_BACKGROUND_COLOR_1,CF_FONT_COLOR_1,CF_BORDER_STYLE_1);this.menu_search=new CF_Menu(this,array_search,true);this.menu_search.menu_div.style.width=1.4*CF_BASE_WIDTH+'px';this.menu_search.element_array[this.menu_search.element_array.length-1].header_menu_image.style.backgroundPosition=-(6*25-1.4*CF_BASE_WIDTH/2)+'px -200px';this.footer=CF_addSpecialFooter('right',this.menu_search.menu_div,CF_BACKGROUND_COLOR_1);if(this.father.moderator_array[0]==0){this.menu_search.element_array[0].element_div.style.display='none';this.menu_search.element_array[1].element_div.style.border='0px';this.menu_search.element_array[0].separator.separator.style.display='none';}
if(document.all){this.element_div.attachEvent("onmousedown",CF_bind(this,this.moderateSearch));this.element_div.attachEvent("onmouseover",CF_bind(this,this.moderateOver));this.element_div.attachEvent("onmouseout",CF_bind(this,this.moderateOut));}else{this.element_div.addEventListener("mousedown",CF_bind(this,this.moderateSearch),false);this.element_div.addEventListener("mouseover",CF_bind(this,this.moderateOver),false);this.element_div.addEventListener("mouseout",CF_bind(this,this.moderateOut),false);}}
CF_ModeratorNotification.prototype.moderateOver=function(){if(document.all){evt=event;}else{evt=arguments[0];}
if(!(this.menu_search.isDisplayed()))
this.bubble.showInfoBulle();evt.cancelBubble=true;}
CF_ModeratorNotification.prototype.moderateOut=function(){if(document.all){evt=event;}else{evt=arguments[0];}
this.bubble.hideInfoBulle();evt.cancelBubble=true;}
CF_ModeratorNotification.prototype.moderateSearch=function(){if(document.all){evt=event;}else{evt=arguments[0];}
if(!(this.menu_search.isDisplayed())){this.father.hideAllMenus();this.menu_search.showMenu();this.bubble.hideInfoBulle();}else{this.menu_search.hideMenu();}
evt.cancelBubble=true;}
function CF_QuickLaunchItem(father,url,image_position,text){this.father=father;this.url=url;this.element_div=document.createElement("a");this.element_div.setAttribute("id",text);this.element_div.setAttribute("href",this.url);if(document.all){this.element_div.style.styleFloat='left';}else{this.element_div.setAttribute('style','float:left');}
CF_setElementStyle(this.element_div,'relative',null,null,null,'25px','25px',null,null,null,null,null,null,null,null,null,null,null,null,null,'pointer',null,'normal',null,null,null,null,'none');this.element_div.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';this.element_div.style.backgroundPosition=(image_position*(-25))+'px -75px';this.father.quick_launch_zone.appendChild(this.element_div);this.element_div=this.father.quick_launch_zone.lastChild;this.updated_text=document.createElement("div");if(document.all){this.updated_text.style.styleFloat='left';}else{this.updated_text.setAttribute('style','float:left');}
this.info_bubble=new CF_InfoBulle(text,this.element_div,this.father.element_div,'right');this.father.element_div.removeChild(this.info_bubble.element_div);this.element_div.appendChild(this.info_bubble.element_div);this.info_bubble.element_div=this.element_div.lastChild;CF_setElementStyle(this.info_bubble.element_div,'absolute',null,'0px',CF_BASE_HEIGHT-3+'px',null,this.info_bubble.text_bulle.length*7+15+'px',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);if(document.all){this.element_div.attachEvent("onmouseout",CF_bind(this,this.outQuickLaunch));this.element_div.attachEvent("onmouseover",CF_bind(this,this.overQuickLaunch));}else{this.element_div.addEventListener("mouseout",CF_bind(this,this.outQuickLaunch),false);this.element_div.addEventListener("mouseover",CF_bind(this,this.overQuickLaunch),false);}}
CF_QuickLaunchItem.prototype.outQuickLaunch=function(){this.info_bubble.hideInfoBulle();}
CF_QuickLaunchItem.prototype.overQuickLaunch=function(){this.info_bubble.showInfoBulle();}
function CF_UserStatusElement(father,user_status_text){this.father=father;this.desc_text=document.createElement("span");this.desc_text.setAttribute("id","desc_text");CF_setElementStyle(this.desc_text,null,null,null,null,CF_BASE_HEIGHT-5,'100%',null,null,null,null,'4px','4px',null,null,null,null,null,null,'1',null,'Arial','normal','12px',null,null,'center',null);this.father.element_div.appendChild(this.desc_text);this.desc_text=this.father.element_div.lastChild;this.desc_text.style.display='block';this.desc_text.innerHTML=CF_USER_STATUS_TITLE_TEXT;this.element_div=document.createElement("div");this.element_div.setAttribute("id","user_status_div");CF_setElementStyle(this.element_div,null,null,null,null,CF_BASE_HEIGHT,'100%',null,null,null,null,'2px','4px',null,null,null,null,null,null,'1',null,'Arial','normal','12px',null,null,'left',null);this.father.element_div.appendChild(this.element_div);this.element_div=this.father.element_div.lastChild;this.status_text=document.createElement("span");this.status_text.setAttribute("id","status_text");this.status_text.style.paddingTop='4px';this.status_text.style.marginLeft='-6px';this.status_text.style.textAlign='center';this.status_text.style.height='16px';this.element_div.appendChild(this.status_text);this.status_text=this.element_div.lastChild;this.status_text.style.overflow='hidden';this.status_text.style.display='block';this.status_text.innerHTML=user_status_text;this.status_input=document.createElement("input");this.status_input.setAttribute("id","status_input");CF_setElementStyle(this.status_input,null,null,null,null,'14px','95%','4px','0px',null,null,null,null,null,null,'0px','0px','0px','0px','2',null,'Arial',null,'12px',null,null,'center',null);this.element_div.appendChild(this.status_input);this.status_input=this.element_div.lastChild;this.status_input.style.display='none';this.info_bulle=new CF_InfoBulle(CF_USER_STATUS_INFO_TEXT,this.element_div,this.father.element_div,'right');if(document.all){this.element_div.attachEvent("onmouseout",CF_bind(this,this.outUserStatus));this.element_div.attachEvent("onmouseover",CF_bind(this,this.overUserStatus));this.element_div.attachEvent("onmousedown",CF_bind(this,this.clickUserStatus));}else{this.element_div.addEventListener("mouseout",CF_bind(this,this.outUserStatus),false);this.element_div.addEventListener("mousedown",CF_bind(this,this.clickUserStatus),false);this.element_div.addEventListener("mouseover",CF_bind(this,this.overUserStatus),false);}}
CF_UserStatusElement.prototype.manageUserStatus=function(ajax_object){var json;if(CF_IS_CROSSDOMAIN){json=eval('('+ajax_object+')');}else{json=eval('('+ajax_object.responseText+')');}
if(json!=null){this.status_text.innerHTML=CF_HTMLEncode(json);}}
CF_UserStatusElement.prototype.overUserStatus=function(){if(document.all){evt=event;elt_pos=evt.fromElement;}else{evt=arguments[0];elt_pos=evt.relatedTarget;}
if((!(elt_pos.id.match(this.status_input.id)))&&(!(elt_pos.id.match(this.status_text.id)))){this.info_bulle.showInfoBulle();this.status_input.value=CF_HTMLDecode(this.status_text.innerHTML);this.status_text.style.display='none';this.status_input.style.display='block';}
evt.cancelBubble=true;}
CF_UserStatusElement.prototype.outUserStatus=function(){if(document.all){evt=event;elt_pos=evt.toElement;}else{evt=arguments[0];elt_pos=evt.relatedTarget;}
if((!(elt_pos.id.match(this.status_input.id)))&&(!(elt_pos.id.match(this.status_text.id)))&&(!(elt_pos.id.match(this.element_div.id)))){this.info_bulle.hideInfoBulle();this.status_input.style.display='none';this.status_text.style.display='block';if(CF_HTMLEncode(this.status_input.value)!=this.status_text.innerHTML){this.status_text.innerHTML=CF_HTMLEncode(this.status_input.value);if((document.getElementById('user_pseudo'))&&(document.getElementById('user_pseudo').innerHTML==this.father.pseudo)){var user_status_header=document.getElementById('user_status_header');if(user_status_header){user_status_header.getElementsByTagName('strong')[0].innerHTML=CF_HTMLEncode(this.status_input.value);}}
CF_CURRENT_OBJECT=this;var url=CF_WIDGET_DIR+'/update_user_status.php?nocache='+Math.random()+'&id_user='+CF_ID_USER+'&status='+encodeURIComponent(this.status_input.value)+'&hash_check='+CF_hash_check;if(CF_IS_CROSSDOMAIN){CF_createAjaxRequest(url,'manageUserStatus');}else{CF_createAjaxRequest(url,CF_bind(this,this.manageUserStatus));}}}
evt.cancelBubbl=true;}
CF_UserStatusElement.prototype.clickUserStatus=function(){if(document.all){evt=event;}else{evt=arguments[0];}
evt.cancelBubble=true;}
function CF_StartMenu(toolbar){this.father=toolbar;this.isStartMenu=true;this.isBuild=false;this.element_div=document.createElement("div");CF_setElementStyle(this.element_div,'fixed',null,'0px','0px',CF_BASE_HEIGHT-5+'px',CF_BASE_WIDTH+'px',null,null,null,null,'5px',null,null,null,null,null,null,null,'2','pointer',null,'bold','16px',CF_FONT_COLOR_1,CF_BACKGROUND_COLOR_1,'center',null);this.element_div.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' repeat-x';this.element_div.style.backgroundPosition='0px -150px';this.father.element_div.appendChild(this.element_div);this.element_div=this.father.element_div.lastChild;var title_image=document.createElement("div");title_image.setAttribute("id","monclub image");title_image.style.height='25px';title_image.style.width='130px';if(document.all){title_image.style.marginLeft='10px';}else{title_image.style.marginLeft='15px';}
title_image.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';title_image.style.backgroundPosition='-100px -100px';this.element_div.appendChild(title_image);title_image=null;this.child_bottom=CF_getElementCorner(this.element_div)[1];this.child_left=CF_getElementCorner(this.element_div)[0];this.menu_start_array=new Array();if(document.all){this.element_div.attachEvent("onmousedown",CF_bind(this,this.clicStartMenu));}else{this.element_div.addEventListener("mousedown",CF_bind(this,this.clicStartMenu),false);}}
CF_StartMenu.prototype.constructStartMenu=function(){this.menu_start_menu=new CF_Menu(this,this.menu_start_array,true);this.footer=CF_addSpecialFooter('left',this.menu_start_menu.menu_div,CF_BACKGROUND_COLOR_1);}
CF_StartMenu.prototype.clicStartMenu=function(){if(document.all){evt=event;}else{evt=arguments[0];}
if(!(this.isBuild)){this.constructStartMenu();this.isBuild=true;}
if(this.menu_start_menu.isDisplayed()){this.menu_start_menu.hideMenu();}else{this.father.hideAllMenus();this.menu_start_menu.showMenu();}
evt.cancelBubble=true;}
function CF_Notification(notification_father,notification_id,notification_title,notification_number_init,notification_child_url,previous_toolbar_element,image_position,info_bulle_text){this.id=notification_id;this.father=notification_father;this.previous_toolbar_element=previous_toolbar_element;this.previous_toolbar_element.style.display='block';this.isNotification=true;this.url=notification_child_url;this.element_div=document.createElement("div");this.element_div.setAttribute("id",this.id);CF_setElementStyle(this.element_div,'fixed',CF_getElementCorner(this.previous_toolbar_element)[0]+'px',null,CF_getElementCorner(this.previous_toolbar_element)[1]-CF_BASE_HEIGHT+'px',CF_BASE_HEIGHT-4+'px','auto',null,null,null,null,'4px','4px','8px',null,null,null,CF_BORDER_STYLE_2,null,'1','pointer',null,'bold',null,CF_FONT_COLOR_1,null,null,null);this.father.element_div.appendChild(this.element_div);this.element_div=this.father.element_div.lastChild;this.element_div.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' repeat-x';this.element_div.style.backgroundPosition='0px -150px';var notification_image_div=document.createElement("div");if(document.all){notification_image_div.style.styleFloat='left';}else{notification_image_div.setAttribute('style','float:left');}
notification_image_div.style.width='25px';notification_image_div.style.height='25px';notification_image_div.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';notification_image_div.style.backgroundPosition=(image_position*(-25))+'px -75px';this.element_div.appendChild(notification_image_div);var notification_text_div=document.createElement("div");if(document.all){notification_text_div.style.styleFloat='left';}else{notification_text_div.setAttribute('style','float:left');}
notification_text_div.style.height=CF_BASE_HEIGHT+'px';notification_text_div.style.paddingRight='4px';notification_text_div.style.marginTop='2px';notification_text_div.innerHTML=notification_title;;this.element_div.appendChild(notification_text_div);this.child_bottom=CF_getElementCorner(this.element_div)[1];this.child_right=CF_getElementCorner(this.element_div)[0];this.menu_element=new CF_Menu(this,null,true);this.footer=CF_addSpecialFooter('right',this.menu_element.menu_div,CF_BACKGROUND_COLOR_1);this.updated_notification_text=document.createElement("div");if(document.all){this.updated_notification_text.style.styleFloat='left';}else{this.updated_notification_text.setAttribute('style','float:right');}
CF_setElementStyle(this.updated_notification_text,null,null,null,null,'25px','auto','-2px',null,null,null,null,'4px','4px',null,null,null,null,null,null,null,null,null,'9px',null,null,null,null);this.updated_notification_text.innerHTML=notification_number_init;this.updated_notification_text.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';this.updated_notification_text.style.backgroundPosition='0px -100px';this.element_div.appendChild(this.updated_notification_text);this.updated_notification_text=this.element_div.lastChild;if(!((notification_number_init)&&(notification_number_init!='0')&&(notification_number_init!='')&&(notification_number_init!='null')&&(notification_number_init.length!=0))){this.updated_notification_text.style.display='none';}
if(notification_title==''){this.info_bulle=new CF_InfoBulle(info_bulle_text,this.element_div,this.father.element_div,'left');}
if(document.all){this.element_div.attachEvent("onclick",CF_bind(this,this.clickNotification));if(notification_title==''){this.element_div.attachEvent("onmouseover",CF_bind(this,this.overNotification));this.element_div.attachEvent("onmouseout",CF_bind(this,this.outNotification));}}else{this.element_div.addEventListener("click",CF_bind(this,this.clickNotification),false);if(notification_title==''){this.element_div.addEventListener("mouseover",CF_bind(this,this.overNotification),false);this.element_div.addEventListener("mouseout",CF_bind(this,this.outNotification),false);}}
this.child_bottom=CF_getElementCorner(this.element_div)[1];this.child_right=CF_getElementCorner(this.element_div)[0];this.previous_toolbar_element.style.display='none';this.element_div.style.display='none';}
CF_Notification.prototype.hide=function(){var cpt=0;while(this.father.notification_array[cpt]!=this){cpt++;}
if(this.father.notification_array[cpt+1]){this.father.notification_array[cpt+1].previous_toolbar_element=this.previous_toolbar_element;}
this.element_div.style.display='none';for(var j=0;j<this.father.notification_array.length;j++){this.father.notification_array[j].element_div.style.bottom=CF_getElementCorner(this.father.notification_array[j].previous_toolbar_element)[1]-CF_BASE_HEIGHT+'px';this.father.notification_array[j].element_div.style.right=CF_getElementCorner(this.father.notification_array[j].previous_toolbar_element)[0]+'px';var position_temp=this.father.notification_array[j].element_div;this.father.notification_array[j].child_right=CF_getElementCorner(position_temp)[0];}}
CF_Notification.prototype.show=function(){var cpt=0;while(this.father.notification_array[cpt]!=this){cpt++;}
if(this.father.notification_array[cpt+1]){this.father.notification_array[cpt+1].previous_toolbar_element=this.element_div;}
this.element_div.style.display='block';for(var j=0;j<this.father.notification_array.length;j++){this.father.notification_array[j].element_div.style.bottom=CF_getElementCorner(this.father.notification_array[j].previous_toolbar_element)[1]-CF_BASE_HEIGHT+'px';this.father.notification_array[j].element_div.style.right=CF_getElementCorner(this.father.notification_array[j].previous_toolbar_element)[0]+'px';var position_temp=this.father.notification_array[j].element_div;this.father.notification_array[j].child_right=CF_getElementCorner(position_temp)[0];}}
CF_Notification.prototype.overNotification=function(){if(document.all){evt=event;}else{evt=arguments[0];}
if(this.menu_element.menu_div.style.display=='none'){this.info_bulle.showInfoBulle();}
evt.cancelBubble=true;}
CF_Notification.prototype.outNotification=function(){if(document.all){evt=event;}else{evt=arguments[0];}
this.info_bulle.hideInfoBulle();evt.cancelBubble=true;}
CF_Notification.prototype.clickNotification=function(){var date=new Date();date.setTime(date.getTime()-100000);if(document.all){evt=event;}else{evt=arguments[0];}
if(this.url.match('/popup/')){var fake_popup=new CF_fake_popup(800,CF_bind(this,function(){if(typeof(CF_current_user)!='undefined'&&CF_current_user){refresh_window(true);}else{this.father.attachUpdateNotification(true);}}));fake_popup.attach_url(this.url);}else{if(this.url.match('/widget/')){if(this.menu_element.isDisplayed()){this.menu_element.hideMenu();}else{if(this.info_bulle){this.info_bulle.hideInfoBulle();}
this.father.hideAllMenus();CF_CURRENT_OBJECT=this;if(CF_IS_CROSSDOMAIN){CF_createAjaxRequest(this.url+'&nocache='+Math.random(),'fullMNotMess');}else{CF_createAjaxRequest(this.url+'&nocache='+Math.random(),CF_bind(this,this.fullMNotMess));}}}else{var url_chat='http://chat.ados.fr';if(url_chat.length>0&&this.url.match(url_chat)){CF_open_url_into_new_window(url_chat);}else{document.location=this.url.replace(/&amp;/g,'&');}}}
evt.cancelBubble=true;return false;}
CF_Notification.prototype.fullMNotMess=function(ajax_object){var json;if(CF_IS_CROSSDOMAIN){json=eval('('+ajax_object+')');}else{json=eval('('+ajax_object.responseText+')');}
if(this.menu_element!=null){this.menu_element.deleteMenuElements();}
this.menu_element.menu_div.style.right=this.element_div.style.right;var tab_temp=new Array();var previous_notif_val=this.updated_notification_text.innerHTML;if(json==''){tab_temp[0]=new Array('',CF_NOTIFICATION_NO_ELEMENT,'',null,1,CF_BACKGROUND_COLOR_1,CF_FONT_COLOR_1,CF_BORDER_STYLE_1);tab_temp[1]=new Array('','','',null,0.5,'','','');this.updated_notification_text.style.display='none';this.updated_notification_text.innerHTML=0;}else{for(var i=0;i<json.length;i++){var text='';if(json[i].pseudo){text+=CF_HTMLEncode(json[i].pseudo)+' : ';}
text+=CF_HTMLEncode(json[i].title);tab_temp[i]=new Array(json[i].img,text,json[i].url,null,1,CF_BACKGROUND_COLOR_1,CF_FONT_COLOR_1,CF_BORDER_STYLE_1);}
tab_temp[json.length]=new Array('','','',null,0.5,'','','');}
this.menu_element.element_contents_array=tab_temp;this.menu_element.showMenu();this.menu_element.createMenu();if((json[1])&&(json[1].forum_name)&&(json[1].forum_name!=null)){if(json!=''){}
for(var i=0;i<this.menu_element.element_array.length-1;i++){if(i==0){this.menu_element.element_array[i].element_div.style.fontSize='8px';this.menu_element.element_array[i].element_text_div.style.marginLeft='10px';}else{var bubble_temp=new CF_InfoBulle('Forum'+' :'+' '+CF_HTMLEncode(json[i-1].forum_name)
+'<br />'
+'Dossier'+' :'+' '+CF_HTMLEncode(json[i].section),this.menu_element.menu_div,this.menu_element.menu_in_div,'left');bubble_temp.element_div.style.bottom=CF_getElementCorner(this.menu_element.element_array[i].element_div)[1]+2+'px';bubble_temp.element_div.style.textAlign='left';if(document.all){this.menu_element.element_array[i].element_div.attachEvent("onmouseover",CF_bind(this,this.overForumNotification,bubble_temp));this.menu_element.element_array[i].element_div.attachEvent("onmouseout",CF_bind(this,this.outForumNotification,bubble_temp));}else{this.menu_element.element_array[i].element_div.addEventListener("mouseover",CF_bind(this,this.overForumNotification,bubble_temp),false);this.menu_element.element_array[i].element_div.addEventListener("mouseout",CF_bind(this,this.outForumNotification,bubble_temp),false);}}}}
var cookie_notif_string=this.id+'\",\"value\":';var cookie_toolbar=CF_LireCookie('CF_toolbar');if(cookie_toolbar.charAt(cookie_toolbar.indexOf(cookie_notif_string)+cookie_notif_string.length)=='\"'){cookie_notif_string+='\"';}}
CF_Notification.prototype.overForumNotification=function(bulle){var evt;if(document.all){evt=event;}else{evt=arguments[1];}
bulle.showInfoBulle();bulle.element_div.style.right=parseInt(this.menu_element.menu_div.style.right.substring(0,this.menu_element.menu_div.style.right.indexOf('px')))+CF_BASE_WIDTH*0.8+'px';evt.cancelBubble=true;}
CF_Notification.prototype.outForumNotification=function(bulle){var evt;if(document.all){evt=event;}else{evt=arguments[1];}
bulle.hideInfoBulle();evt.cancelBubble=true;}
function CF_InfoBulle(text,father_div,containing_div,direction){this.text_bulle=text;CF_ELEMENT_COUNTER++;var id_bulle='bubble_div'+CF_ELEMENT_COUNTER;this.father=father_div;this.element_div=document.createElement("div");this.element_div.setAttribute("id",id_bulle);CF_setElementStyle(this.element_div,'fixed',null,null,CF_getElementCorner(father_div)[1]+'px','auto','auto',null,null,null,null,'5px','5px','5px','5px','1px outset gray','1px outset gray','0px','1px outset gray','2',null,null,null,null,null,'white',null,null);if(direction=='left'){this.element_div.style.right=father_div.style.right;}else{this.element_div.style.left=CF_BASE_WIDTH+'px';}
containing_div.appendChild(this.element_div);this.element_div=containing_div.lastChild;this.infobulle_content=document.createElement("div");CF_setElementStyle(this.infobulle_content,null,null,null,null,null,null,null,null,null,null,'5px','5px','5px','5px',null,null,null,null,null,null,null,'bold','10px',CF_FONT_COLOR_1,CF_BUBBLE_COLOR,null,null);this.infobulle_content.innerHTML=text;this.element_div.appendChild(this.infobulle_content);this.infobulle_content=this.element_div.lastChild;if(direction=='left'){this.footer_bulle=CF_addSpecialFooter('right',this.element_div,CF_BUBBLE_COLOR);}else{this.footer_bulle=CF_addSpecialFooter('left',this.element_div,CF_BUBBLE_COLOR);}
this.element_div.style.display='none';}
CF_InfoBulle.prototype.hideInfoBulle=function(){this.element_div.style.display='none';}
CF_InfoBulle.prototype.showInfoBulle=function(){if(this.father.style.right){this.element_div.style.right=this.father.style.right;}
this.element_div.style.display='block';}
function CF_SearchMenu(my_father){this.father=my_father;this.last_search='member';this.isBuild=false;this.magnifier_div=document.createElement("div");CF_setElementStyle(this.magnifier_div,'fixed','0px',null,'0px',CF_BASE_HEIGHT-8+'px',CF_NOTIFICATION_WIDTH/2+'px',null,null,null,null,'8px',null,null,null,null,null,null,null,'1',null,null,null,null,null,null,null,null);this.father.element_div.appendChild(this.magnifier_div);this.magnifier_div=this.father.element_div.lastChild;this.element_div=this.magnifier_div;this.magnifier=document.createElement("div");if(document.all){this.magnifier.style.styleFloat='left';}else{this.magnifier.setAttribute('style','float:left');}
this.magnifier.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';this.magnifier.style.backgroundPosition=(5*(-25))+'px -75px';CF_setElementStyle(this.magnifier,null,null,null,null,'15px','19px',null,null,null,null,null,null,null,null,null,null,null,null,null,'pointer',null,null,null,null,'white',null,null);this.magnifier_div.appendChild(this.magnifier);this.magnifier=this.magnifier_div.lastChild;this.input_div=document.createElement("div");CF_setElementStyle(this.input_div,'fixed',CF_getElementCorner(this.magnifier_div)[0]+'px',null,CF_getElementCorner(this.magnifier_div)[1]-CF_BASE_HEIGHT+'px',CF_BASE_HEIGHT-8+'px',CF_BASE_WIDTH-15+'px',null,null,null,null,'8px','15px',null,null,null,null,CF_BORDER_STYLE_2,null,'1',null,null,null,null,null,null,null,null);this.father.element_div.appendChild(this.input_div);this.input_div=this.father.element_div.lastChild;this.search_input=document.createElement("input");this.search_input.setAttribute("align","right");if(document.all){this.search_input.style.styleFloat='right';}else{this.search_input.setAttribute('style','float:right');}
CF_setElementStyle(this.search_input,null,null,null,null,'13px',CF_BASE_WIDTH-16+'px','0px','0px','0px','0px',null,null,null,null,'0px','0px','0px','0px',null,null,null,null,'10px',null,null,null,null);this.input_div.appendChild(this.search_input);this.search_input=this.input_div.lastChild;if(document.all){this.magnifier.attachEvent("onmousedown",CF_bind(this,this.affichRech));this.search_input.attachEvent("onmousedown",this.cancelBubbleSearch);this.search_input.attachEvent("onkeypress",CF_bind(this,this.inputEnter));}else{this.magnifier.addEventListener("mousedown",CF_bind(this,this.affichRech),false);this.search_input.addEventListener("mousedown",this.cancelBubbleSearch,false);this.search_input.addEventListener("keypress",CF_bind(this,this.inputEnter),false);}
this.magnifier_div.style.display='none';this.input_div.style.display='none';}
CF_SearchMenu.prototype.buildSearchMenu=function(){this.search_window=document.createElement("div");CF_setElementStyle(this.search_window,'fixed','0px',null,CF_getElementCorner(this.magnifier_div)[1]+'px','auto',CF_BASE_WIDTH*1.7+'px',null,null,null,null,'5px','5px','5px','5px','1px outset gray','1px outset gray','1px outset gray','1px outset gray',null,null,null,null,null,null,'white',null,null);this.search_window.style.maxHeight='350px';this.father.element_div.appendChild(this.search_window);this.search_window=this.father.element_div.lastChild;this.header_menu_image=document.createElement("div");this.header_menu_image.style.width='100%';this.header_menu_image.style.height='30px';this.header_menu_image.style.cursor='pointer';this.header_menu_image.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';this.header_menu_image.style.backgroundPosition=-(6*25-(CF_BASE_WIDTH*1.7+10)/2)+'px -200px';this.search_window.appendChild(this.header_menu_image);this.header_menu_image=this.search_window.lastChild;this.search_title=document.createElement("div");CF_setElementStyle(this.search_title,null,null,null,null,CF_BASE_HEIGHT/1.5+'px','100%',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,CF_FONT_COLOR_1,CF_BACKGROUND_COLOR_1,null,null);this.search_title.innerHTML=CF_SEARCH_TITLE;this.search_window.appendChild(this.search_title);this.search_title=this.search_window.lastChild;this.search_links_div=document.createElement("div");this.search_links_div.style.width='100%';this.search_links_div.style.height=CF_BASE_HEIGHT/1.5+'px';this.search_links_div.style.backgroundColor=CF_BACKGROUND_COLOR_2;this.search_links_div.innerHTML=CF_SEARCH_OPTIONS;this.search_id_array=new Array;this.search_id_array[0]='member';this.search_id_array[1]='tag';this.search_id_array[2]='photo';this.search_id_array[3]='video';this.search_links_div.style.color=CF_FONT_COLOR_2;this.search_links_div.style.borderBottom=CF_BORDER_STYLE_2;this.search_window.appendChild(this.search_links_div);this.search_links_div=this.search_window.lastChild;this.search_result_div=document.createElement("div");this.search_result_div.setAttribute("id","search_result_div");CF_setElementStyle(this.search_result_div,null,null,null,null,'auto','100%',null,null,null,null,null,null,null,CF_BASE_HEIGHT+5+'px',null,null,null,null,null,null,null,null,null,CF_FONT_COLOR_2,'white',null,null);this.search_result_div.style.maxHeight='250px';this.search_result_div.style.overflowY='auto';this.search_result_div.style.overflowX='hidden';this.search_window.appendChild(this.search_result_div);this.search_result_div=this.search_window.lastChild;if(document.all){this.search_window.attachEvent("onmousedown",this.cancelBubbleSearch);this.header_menu_image.attachEvent("onmouseover",CF_bind(this,this.overHeaderImage));this.header_menu_image.attachEvent("onmouseout",CF_bind(this,this.outHeaderImage));this.header_menu_image.attachEvent("onmousedown",CF_bind(this,this.clickHeaderImage));}else{this.search_window.addEventListener("mousedown",this.cancelBubbleSearch,false);this.header_menu_image.addEventListener("mouseout",CF_bind(this,this.outHeaderImage),false);this.header_menu_image.addEventListener("mouseover",CF_bind(this,this.overHeaderImage),false);this.header_menu_image.addEventListener("mousedown",CF_bind(this,this.clickHeaderImage),false);}
this.search_window.style.display='none';for(var i=0;i<this.search_id_array.length;i++){var search_id=document.getElementById(this.search_id_array[i]);search_id.style.cursor='pointer';if(document.all){search_id.attachEvent("onmousedown",CF_bind(this,this.affichRechFinal,this.search_input,this.search_result_div,this.search_title,this.search_id_array[i]));}else{search_id.addEventListener("mousedown",CF_bind(this,this.affichRechFinal,this.search_input,this.search_result_div,this.search_title,this.search_id_array[i]),false);}}}
CF_SearchMenu.prototype.inputEnter=function(){if(document.all){evt=event;}else{evt=arguments[0];}
if(evt.keyCode==13){this.affichRech(evt);}}
CF_SearchMenu.prototype.overHeaderImage=function(){this.header_menu_image.style.backgroundPosition=-(6*25-(CF_BASE_WIDTH*1.7+10)/2)+'px -250px';}
CF_SearchMenu.prototype.clickHeaderImage=function(){this.search_window.style.display='none';}
CF_SearchMenu.prototype.outHeaderImage=function(){this.header_menu_image.style.backgroundPosition=-(6*25-(CF_BASE_WIDTH*1.7+10)/2)+'px -200px';}
CF_SearchMenu.prototype.hide=function(){this.magnifier_div.style.display='none';this.input_div.style.display='none';}
CF_SearchMenu.prototype.show=function(){this.magnifier_div.style.display='block';this.input_div.style.display='block';}
CF_SearchMenu.prototype.affichRech=function(){var evt;if(document.all){evt=event;}else{evt=arguments[0];}
if(this.search_input.value!=''){if(!(this.isBuild)){this.buildSearchMenu();this.isBuild=true;}
if((this.search_window.style.display=='block')&&(!(evt.keyCode))){this.search_window.style.display='none';}else{this.father.hideAllMenus();this.search_title.innerHTML=CF_SEARCH_TITLE+"<i><b>"+CF_HTMLEncode(this.search_input.value)+"</b></i>";this.search_window.style.display='block';this.affichRechFinal(this.search_input,this.search_result_div,this.search_title,this.last_search);}}
evt.cancelBubble=true;}
CF_SearchMenu.prototype.affichRechFinal=function(in_rech,result_rech,titre_rech,type_rech)
{var evt;if(document.all){evt=event;}else{evt=arguments[3];}
this.last_search=type_rech;for(var i=0;i<this.search_id_array.length;i++){document.getElementById(this.search_id_array[i]).style.fontWeight='normal';}
document.getElementById(type_rech).style.fontWeight='bold';while(result_rech.childNodes[0]!=null){result_rech.removeChild(result_rech.childNodes[0]);}
titre_rech.innerHTML=CF_SEARCH_TITLE+"<i><b>"+CF_HTMLEncode(in_rech.value)+"</b></i>";CF_CURRENT_OBJECT=this;var url=CF_WIDGET_DIR+'/get_searched_item.php?id_user='+CF_ID_USER+'&rech='+in_rech.value+'&type='+type_rech+'&nocache='+Math.random();if(CF_IS_CROSSDOMAIN){CF_createAjaxRequest(url,'fullRechFinal');}else{CF_createAjaxRequest(url,CF_bind(this,this.fullRechFinal));}
evt.cancelBubble=true;}
CF_SearchMenu.prototype.fullRechFinal=function(ajax_object){var json;if(CF_IS_CROSSDOMAIN){json=eval('('+ajax_object+')');}else{json=eval('('+ajax_object.responseText+')');}
for(var i=0;i<json.length;i++){CF_ELEMENT_COUNTER++;var unique_result_div=document.createElement("div")
unique_result_div.setAttribute("id",CF_ELEMENT_COUNTER);if(document.all){unique_result_div.style.styleFloat='left';}else{unique_result_div.setAttribute('style','float:left');}
if(!(document.all)){unique_result_div.style.position='relative';}
CF_setElementStyle(unique_result_div,null,null,null,null,'auto','auto','2px','2px',null,null,'2px','2px',null,null,'3px solid white','3px solid white','3px solid white','3px solid white',null,null,null,null,null,null,null,null,null);this.search_result_div.appendChild(unique_result_div);unique_result_div=this.search_result_div.lastChild;if(json[i].img!=''){unique_result_div.style.padding='7px';unique_result_div.style.border=CF_SEARCH_IMAGE_BORDER;var image_id='image_result'+CF_HTMLEncode(json[i].title);var result_image=document.createElement("img");result_image.setAttribute("src",json[i].img);result_image.setAttribute("id",image_id);CF_setElementStyle(result_image,null,null,null,null,'45px','45px',null,null,null,null,'4px','4px','4px','4px','2px solid white','2px solid white','2px solid white','2px solid white',null,'pointer',null,null,null,null,null,null,null);unique_result_div.appendChild(result_image);result_image=unique_result_div.lastChild;var result_image_bubble=new CF_InfoBulle(CF_HTMLEncode(json[i].title),this.element_div,unique_result_div,'left');result_image_bubble.element_div.style.position='absolute';result_image_bubble.element_div.style.zIndex='1010';result_image_bubble.element_div.style.left='0px';result_image_bubble.element_div.style.bottom='-36px';if(document.all){result_image.attachEvent("onmouseout",CF_bind(this,this.outImageResult,result_image_bubble));result_image.attachEvent("onmouseover",CF_bind(this,this.overImageResult,result_image_bubble));result_image.attachEvent("onmousedown",CF_bind(this,this.clickImageResult,result_image_bubble,json[i].url));result_image_bubble.element_div.attachEvent("onmouseout",CF_bind(this,this.outImageBubble,result_image,result_image_bubble));}else{result_image.addEventListener("mouseout",CF_bind(this,this.outImageResult,result_image_bubble),false);result_image.addEventListener("mouseover",CF_bind(this,this.overImageResult,result_image_bubble),false);result_image.addEventListener("mousedown",CF_bind(this,this.clickImageResult,result_image_bubble,json[i].url),false);result_image_bubble.element_div.addEventListener("mouseout",CF_bind(this,this.outImageBubble,result_image,result_image_bubble),false);}
result_image=null;result_image_bubble=null;}else{var html_content=document.createElement("a");html_content.setAttribute("href",json[i].url);html_content.innerHTML=CF_HTMLEncode(json[i].title);html_content.style.textDecoration='none';unique_result_div.appendChild(html_content);html_content=null;}
unique_result_div=null;}
var float_clear=document.createElement("div");float_clear.setAttribute("id","float_clear_search_result");float_clear.setAttribute('style','clear:both');this.search_result_div.appendChild(float_clear);float_clear=null;}
CF_SearchMenu.prototype.outImageBubble=function(image_result,bubble){var evt;var elt_pos;if(document.all){evt=event;elt_pos=evt.toElement;}else{evt=arguments[2];elt_pos=evt.relatedTarget;}
if(!(elt_pos.id)||(!(elt_pos.id.match(image_result.id)))){bubble.element_div.style.display='none';}}
CF_SearchMenu.prototype.clickImageResult=function(bubble,url){var evt;if(document.all){evt=event;}else{evt=arguments[2];}
document.location=url;evt.cancelBubble=true;}
CF_SearchMenu.prototype.overImageResult=function(bubble){var evt;if(document.all){evt=event;elt_pos=evt.fromElement;evt.srcElement.parentNode.style.position='relative';}else{evt=arguments[1];elt_pos=evt.relatedTarget;}
if((elt_pos.id)&&(elt_pos.id.match("bubble"))&&(!(elt_pos.id.match(bubble.element_div.id)))){elt_pos.style.display='none';}
if(bubble.element_div.style.display=='none'){bubble.element_div.style.width=bubble.text_bulle.length*7+8+'px';bubble.footer_bulle.style.display='none';}
bubble.showInfoBulle();}
CF_SearchMenu.prototype.outImageResult=function(bubble){var evt;if(document.all){evt=event;elt_pos=evt.toElement;evt.srcElement.parentNode.style.position='';}else{evt=arguments[1];elt_pos=evt.relatedTarget;}
if(!(elt_pos.id.match(bubble.element_div.id))){bubble.hideInfoBulle();}}
CF_SearchMenu.prototype.cancelBubbleSearch=function(){var evt;if(document.all){evt=event;}else{evt=arguments[0];}
evt.cancelBubble=true;}
function CF_Menu(menu_father,menu_contents_array,hasHeader){this.father=menu_father;this.element_contents_array=menu_contents_array;this.hasHeader=hasHeader;this.element_array=new Array();this.menu_div=document.createElement("div");CF_setElementStyle(this.menu_div,'fixed',null,null,this.father.child_bottom+'px','auto',CF_BASE_WIDTH-11+'px',null,null,null,null,'5px','5px','5px','5px','1px outset gray','1px outset gray','0px','1px outset gray','1',null,null,null,null,null,'white',null,null);if(this.father.child_left!=null){this.menu_div.style.left=this.father.child_left+'px';}else{this.menu_div.style.right=this.father.child_right-CF_NOTIFICATION_WIDTH+'px';}
if(!(this.hasHeader)){this.menu_div.style.width='auto';}
var father_temp=this.father.father;while(!(father_temp.element_div)){father_temp=father_temp.father.father;}
father_temp.element_div.appendChild(this.menu_div);this.menu_div=father_temp.element_div.lastChild;this.menu_in_div=document.createElement("div");this.menu_in_div.style.zIndex='1002';this.menu_in_div.style.height='auto';this.menu_in_div.style.width='100%';if((this.father.father)&&(!this.father.father.hasHeader)&&(!this.hasHeader)){if(document.all){this.menu_div.style.maxHeight=CF_BASE_HEIGHT*5+'px';this.menu_div.style.overflowY='auto';this.menu_div.style.overflowX='hidden';}else{this.menu_in_div.style.maxHeight=CF_BASE_HEIGHT*5+'px';this.menu_in_div.style.overflowY='auto';this.menu_in_div.style.overflowX='hidden';}}
this.menu_div.style.overflow='hidden';this.menu_div.appendChild(this.menu_in_div);this.menu_in_div=this.menu_div.lastChild;this.createMenu();this.hideMenu();}
CF_Menu.prototype.createMenu=function(){if(this.element_contents_array!=null){for(var i=0;i<this.element_contents_array.length;i++){if((i==this.element_contents_array.length-1)&&(this.hasHeader)){this.element_array[i]=new CF_Menu_Header(this,this.element_contents_array[i]);}else{this.element_array[i]=new CF_Menu_Element(this,this.element_contents_array[i]);}}
if(this.element_array[0]&&this.element_array[0].element_div){this.element_array[0].element_div.style.border='0px';if(!(this.hasHeader)){this.menu_div.style.padding='0px';for(var i=0;i<this.element_array.length;i++){this.element_array[i].element_div.style.width=this.menu_in_div.offsetWidth+'px';}
if(!((document.all)&&(this.father.father)&&(!this.father.father.hasHeader)&&(!this.hasHeader))){this.menu_div.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' repeat-x';var sprite_position=this.menu_div.offsetHeight-75;this.menu_div.style.backgroundPosition='0px '+sprite_position+'px';this.menu_div.style.backgroundAttachement='scroll';}
this.menu_div.style.backgroundColor='white';}}}}
CF_Menu.prototype.deleteMenuElements=function(){for(var i=0;i<this.element_array.length;i++){if(this.element_array[i].element_menu!=null){this.element_array[i].element_menu.deleteMenuElements();}
this.menu_in_div.removeChild(this.element_array[i].element_div);if(this.element_array[i].separator){this.menu_in_div.removeChild(this.element_array[i].separator.separator);}}}
CF_Menu.prototype.hideMenu=function(){for(var i=0;i<this.element_array.length;i++){if(!((this.hasHeader)&&(i==this.element_array.length-1))){if(this.hasHeader){this.element_array[i].element_div.style.backgroundColor=CF_BACKGROUND_COLOR_1;this.element_array[i].element_div.style.color=CF_FONT_COLOR_1;}
if(this.element_array[i].element_menu!=null){this.element_array[i].element_menu.hideMenu();}}}
if(this.hasHeader){this.father.element_div.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' repeat-x';this.father.element_div.style.backgroundPosition='0px -150px';}
this.menu_div.style.display='none';}
CF_Menu.prototype.showMenu=function(){if(this.hasHeader){this.father.element_div.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' repeat-x';this.father.element_div.style.backgroundPosition='0px -300px';}
this.menu_div.style.display='block';}
CF_Menu.prototype.isDisplayed=function(){var return_value=false;if(this.menu_div.style.display=='block'){return_value=true;}
return return_value;}
function CF_AddSeparator(element){var separator=document.createElement('div');separator.style.width='auto';separator.style.height='3px';separator.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';separator.style.backgroundPosition='0px -350px';separator.style.backgroundColor=CF_BACKGROUND_COLOR_1;element.father.menu_in_div.insertBefore(separator,element.element_div);this.separator=element.element_div.previousSibling;separator=null;}
function CF_Menu_Element(father_menu,informations_array){var inhtml='';this.father=father_menu;this.url=informations_array[2];this.title=informations_array[1];CF_ELEMENT_COUNTER++;this.id_element=this.title+CF_ELEMENT_COUNTER;this.element_menu=null;CF_creerElemHTML(this.father.menu_in_div,"div",this.id_element,'',informations_array[5],'','',informations_array[6],informations_array[7]);this.element_div=this.father.menu_in_div.firstChild;CF_setElementStyle(this.element_div,null,null,null,null,null,'100%',null,null,null,null,null,null,null,'2px',null,null,null,null,null,'pointer','verdana','bold','11px',null,null,null,null);if(this.father.hasHeader){this.element_div.style.border='0px';this.separator=new CF_AddSeparator(this);}
if((informations_array[0]!='')&&(!isNaN(informations_array[0]))){var element_image_div=document.createElement("div");element_image_div.setAttribute("id","image_div"+this.id_element);if(document.all){element_image_div.style.styleFloat='left';}else{element_image_div.setAttribute('style','float:left');}
CF_setElementStyle(element_image_div,null,null,null,null,'25px','25px','4px','7px',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);element_image_div.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';if(informations_array[0]!=-1){element_image_div.style.backgroundPosition=(informations_array[0]*(-25))+'px -75px';}else{element_image_div.style.backgroundPosition='0px -75px';}
this.element_div.appendChild(element_image_div);this.element_image_div=this.element_div.lastChild;element_image_div=null;}else{if(informations_array[0]!=''){var element_image_div=document.createElement("img");element_image_div.setAttribute("id","image_div"+this.id_element);element_image_div.setAttribute("src",informations_array[0]);if(document.all){element_image_div.style.styleFloat='left';}else{element_image_div.setAttribute('style','float:left');}
if((this.father.father.id)&&(this.father.father.id=="friends_online")){CF_setElementStyle(element_image_div,null,null,null,null,'25px','25px','4px','4px',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);}else{CF_setElementStyle(element_image_div,null,null,null,null,'20px','20px','4px','4px',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);}
this.element_div.appendChild(element_image_div);this.element_image_div=this.element_div.lastChild;element_image_div=null;}}
var element_text_div=document.createElement("div");if(informations_array[1].match("form")){element_text_div.setAttribute("id","moderate_input");}else{if(!(this.father.hasHeader)){element_text_div.setAttribute("id","text_noh_div"+this.id_element);element_text_div.style.fontSize='11px';}else{element_text_div.setAttribute("id","text_div"+this.id_element);}}
if(document.all){element_text_div.style.styleFloat='left';}else{element_text_div.setAttribute('style','float:left');}
element_text_div.style.height='auto';if((this.father.hasHeader)&&!(this.father.father.isStartMenu)&&(informations_array[0]!='')&&(this.father.father.id!="friends_online")){element_text_div.style.width=CF_BASE_WIDTH-47+'px';}
element_text_div.style.display='block';if(this.father.father.isStartMenu){element_text_div.style.marginTop='7px';element_text_div.style.marginLeft='4px';}else{if((this.father.father.id)&&(this.father.father.id=="friends_online")){element_text_div.style.marginTop='8px';element_text_div.style.marginBottom='6px';element_text_div.style.marginLeft='10px';}else{if(informations_array[0]!=''){element_text_div.style.marginTop='10px';element_text_div.style.marginBottom='6px';element_text_div.style.marginLeft='4px';}else{element_text_div.style.marginTop='6px';element_text_div.style.marginBottom='6px';element_text_div.style.marginLeft='4px';}}}
if(!(this.father.hasHeader)){element_text_div.style.marginRight='30px';}
inhtml+=informations_array[1];element_text_div.innerHTML=inhtml;this.element_div.appendChild(element_text_div);this.element_text_div=this.element_div.lastChild;if(informations_array[3]!=null){var triangle=document.createElement("div");triangle.setAttribute("id","triangle"+this.id_element);if(document.all){triangle.style.styleFloat='right';}else{triangle.setAttribute('style','float:right');}
triangle.style.width='10px';triangle.style.height='10px';if(this.father.father.isStartMenu){triangle.style.marginTop='8px';}else{triangle.style.marginTop='7px';}
triangle.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';triangle.style.backgroundPosition='-25px -125px';this.element_div.appendChild(triangle);this.triangle=this.element_div.lastChild;triangle=null;}
var float_clear=document.createElement("div");float_clear.setAttribute("id","float_clear"+this.id_element);float_clear.setAttribute('style','clear:both');this.element_div.appendChild(float_clear);this.float_clear=this.element_div.lastChild;this.child_bottom=CF_getElementCorner(this.element_div)[1]-CF_BASE_HEIGHT;this.child_left=CF_getElementCorner(this.element_div)[0]+CF_BASE_WIDTH;if((document.all)&&(this.father.hasHeader)){this.child_left-=4;}
if(informations_array[3]!=null){if(!(this.father.hasHeader)){this.child_left+=30;this.element_div.style.width=this.child_left-this.father.father.child_left+'px';}
this.element_menu=new CF_Menu(this,informations_array[3],false);}
if(document.all){this.element_div.attachEvent("onmouseover",CF_bind(this,this.overMenuElement));this.element_div.attachEvent("onmouseout",CF_bind(this,this.outMenuElement));this.element_text_div.attachEvent("onmouseover",CF_bind(this,this.cancelBubbleText));if(this.element_image_div){this.element_image_div.attachEvent("onmouseover",CF_bind(this,this.cancelBubbleText));}
this.element_div.attachEvent("onmousedown",CF_bind(this,this.clickMenuElement));}else{this.element_div.addEventListener("mouseover",CF_bind(this,this.overMenuElement),false);this.element_div.addEventListener("mouseout",CF_bind(this,this.outMenuElement),false);this.element_text_div.addEventListener("mouseover",CF_bind(this,this.cancelBubbleText),false);if(this.element_image_div){this.element_image_div.addEventListener("mouseover",CF_bind(this,this.cancelBubbleText),false);}
this.element_div.addEventListener("mousedown",CF_bind(this,this.clickMenuElement),false);}
float_clear=null;element_text_div=null;}
CF_Menu_Element.prototype.cancelBubbleText=function(){if(document.all){evt=event;}else{evt=arguments[0];}
evt.cancelBubble=true;}
CF_Menu_Element.prototype.overMenuElement=function(){if(document.all){evt=event;elt_pos=evt.srcElement;}else{evt=arguments[0];elt_pos=evt.target;}
var color_temp=this.element_div.style.backgroundColor.replace(' ','');while(color_temp!=color_temp.replace(' ','')){color_temp=color_temp.replace(' ','');}
if((color_temp==CF_BACKGROUND_COLOR_1)||(color_temp==CF_BACKGROUND_COLOR_4)){this.element_div.style.backgroundColor=CF_BACKGROUND_COLOR_2;this.element_div.style.color=CF_FONT_COLOR_2;}else{if(elt_pos.parentNode.innerHTML.match("text_noh_div")){this.element_div.style.backgroundColor=CF_BACKGROUND_COLOR_3;this.element_div.style.color=CF_FONT_COLOR_1;}}
if(this.element_div.nextSibling){this.element_div.nextSibling.style.backgroundPosition='0px -375px';}
for(var i=0;i<this.father.element_array.length;i++){if(!((this.father.hasHeader)&&(i==this.father.element_array.length-1))){if((this.father.element_array[i]!=this)&&(this.father.hasHeader)){this.father.element_array[i].element_div.style.backgroundColor=CF_BACKGROUND_COLOR_1;this.father.element_array[i].element_div.style.color=CF_FONT_COLOR_1;this.father.element_array[i].element_div.innerHTML=this.father.element_array[i].element_div.innerHTML.replace("color: black","color: white");}
if(this.father.element_array[i].element_menu!=null){this.father.element_array[i].element_menu.hideMenu();}}}
if(this.element_menu!=null){this.element_menu.showMenu();}
evt.cancelBubble=true;}
CF_Menu_Element.prototype.outMenuElement=function(){if(document.all){evt=event;elt_pos=evt.toElement;}else{evt=arguments[0];elt_pos=evt.relatedTarget;}
if(this.element_div.nextSibling){this.element_div.nextSibling.style.backgroundPosition='0px -350px';}
try{if((!(elt_pos)||!(elt_pos.id))||((!(this.element_text_div)||(!(elt_pos.id.match(this.element_text_div.id))))&&(!(this.element_image_div)||(!(elt_pos.id.match(this.element_image_div.id))))&&(!(this.triangle)||(!(elt_pos.id.match(this.triangle.id))))&&(!(this.float_clear)||(!(elt_pos.id.match(this.float_clear.id)))))){if(this.father.hasHeader){this.element_div.style.backgroundColor=CF_BACKGROUND_COLOR_1;this.element_div.style.color=CF_FONT_COLOR_1;}else{this.element_div.style.backgroundColor=CF_BACKGROUND_COLOR_2;this.element_div.style.color=CF_FONT_COLOR_2;}}}catch(e){if(this.father.hasHeader){this.element_div.style.backgroundColor=CF_BACKGROUND_COLOR_1;this.element_div.style.color=CF_FONT_COLOR_1;}else{this.element_div.style.backgroundColor=CF_BACKGROUND_COLOR_2;this.element_div.style.color=CF_FONT_COLOR_2;}}
evt.cancelBubble=true;}
CF_Menu_Element.prototype.clickMenuElement=function(){if(document.all){evt=event;}else{evt=arguments[0];}
for(var i=0;i<this.father.element_array.length;i++){if(this.father.element_array[i].element_menu!=null){this.father.element_array[i].element_menu.hideMenu();}}
if(this.element_menu!=null){if(this.element_menu.isDisplayed()){this.element_menu.hideMenu();}else{this.element_menu.showMenu();}
evt.cancelBubble=true;}else{if(this.url.match("popup")){var href_temp=document.createElement("a");href_temp.setAttribute("href",this.url);href_temp.setAttribute("title",this.title);CF_popup(href_temp);href_temp=null;}else{if(this.url.match("toolbar_display")){var ajax_object=CF_createRequestObject();ajax_object.open('get',this.url+'&nocache='+Math.random(),false);ajax_object.send(null);var father_temp=this.father;while(!(father_temp.bar)){father_temp=father_temp.father;}
father_temp.element_div.style.display='none';var date=new Date();date.setTime(date.getTime()+(15*24*60*60*1000));var expires="; expires="+date.toGMTString();document.cookie="CF_display_toolbar=false"+expires+"; path="+'/'+"; domain="+'.ados.fr';}else{if(this.url==''){evt.cancelBubble=true;}else{var url_chat='http://chat.ados.fr';if(url_chat.length>0&&this.url.match(url_chat)){CF_open_url_into_new_window(url_chat);}else{document.location=this.url.replace(/&amp;/g,'&');}}}}}}
function CF_Menu_Header(father_menu,informations_array){var inhtml='';this.element_menu=null;this.father=father_menu;if(informations_array[0]!='')
inhtml+="<img src=\""+informations_array[0]+"\" "+CF_AVATAR_STYLE+" id=\"avatar\"><br/><br/>";this.url=informations_array[2];inhtml+=informations_array[1];if(this.father.father.isStartMenu){this.pseudo=informations_array[1];}
if(informations_array[2]!='')
inhtml+="</a>";var element_div=document.createElement("div");element_div.innerHTML=inhtml;CF_setElementStyle(element_div,null,null,null,null,'auto','100%',null,null,null,null,null,null,null,'10px',null,null,null,'0px',null,null,null,'bold',null,CF_FONT_COLOR_1,CF_BACKGROUND_COLOR_1,'center',null);this.father.menu_in_div.insertBefore(element_div,this.father.menu_in_div.firstChild);this.element_div=this.father.menu_in_div.firstChild;element_div=null;var tab_pos_corner=CF_getElementCorner(this.element_div);this.header_menu_image=document.createElement("div");this.header_menu_image.style.width='100%';this.header_menu_image.style.height='30px';this.header_menu_image.style.cursor='pointer';this.header_menu_image.style.background='url('+CF_TOOLBAR_SPRITE_PATH+' no-repeat';this.header_menu_image.style.backgroundPosition=-(6*25-(CF_BASE_WIDTH-10)/2)+'px -200px';this.element_div.insertBefore(this.header_menu_image,this.element_div.firstChild);this.header_menu_image=this.element_div.firstChild;if(this.father.father.isStartMenu){this.statusUpdater=new CF_UserStatusElement(this,this.father.father.father.user_status_text);}
if(document.all){this.header_menu_image.attachEvent("onmouseover",CF_bind(this,this.overMenuHeaderImage));this.header_menu_image.attachEvent("onmouseout",CF_bind(this,this.outMenuHeaderImage));this.header_menu_image.attachEvent("onmousedown",CF_bind(this,this.clickMenuHeaderImage));this.element_div.attachEvent("onmouseout",CF_bind(this,this.outMenuHeader));this.element_div.attachEvent("onmouseover",CF_bind(this,this.overMenuHeader));this.element_div.attachEvent("onmousedown",CF_bind(this,this.clickMenuHeader));}else{this.header_menu_image.addEventListener("mouseover",CF_bind(this,this.overMenuHeaderImage),false);this.header_menu_image.addEventListener("mouseout",CF_bind(this,this.outMenuHeaderImage),false);this.header_menu_image.addEventListener("mousedown",CF_bind(this,this.clickMenuHeaderImage),false);this.element_div.addEventListener("mouseout",CF_bind(this,this.outMenuHeader),false);this.element_div.addEventListener("mouseover",CF_bind(this,this.overMenuHeader),false);this.element_div.addEventListener("mousedown",CF_bind(this,this.clickMenuHeader),false);}}
CF_Menu_Header.prototype.clickMenuHeader=function(){if(document.all){evt=event;elt_pos=evt.srcElement;}else{evt=arguments[0];elt_pos=evt.target;}
if(elt_pos.id=="avatar"){document.location=this.url;}
evt.cancelBubble=true;}
CF_Menu_Header.prototype.outMenuHeader=function(){if(document.all){evt=event;}else{evt=arguments[0];}
evt.cancelBubble=true;}
CF_Menu_Header.prototype.overMenuHeader=function(){if(document.all){evt=event;}else{evt=arguments[0];}
for(var i=0;i<this.father.element_array.length;i++){if(this.father.element_array[i].element_menu!=null){this.father.element_array[i].element_menu.hideMenu();}}
evt.cancelBubble=true;}
CF_Menu_Header.prototype.clickMenuHeaderImage=function(){if(document.all){evt=event;}else{evt=arguments[0];}
this.father.hideMenu();evt.cancelBubble=true;}
CF_Menu_Header.prototype.overMenuHeaderImage=function(){if(document.all){evt=event;}else{evt=arguments[0];}
for(var i=0;i<this.father.element_array.length;i++){if(this.father.element_array[i].element_menu!=null){this.father.element_array[i].element_menu.hideMenu();}}
var replacer=this.header_menu_image.style.backgroundPosition;replacer=replacer.replace("200px","250px");this.header_menu_image.style.backgroundPosition=replacer;evt.cancelBubble=true;}
CF_Menu_Header.prototype.outMenuHeaderImage=function(){if(document.all){evt=event;}else{evt=arguments[0];}
var replacer=this.header_menu_image.style.backgroundPosition;replacer=replacer.replace("250px","200px");this.header_menu_image.style.backgroundPosition=replacer;evt.cancelBubble=true;}