/* Copyright (c) 2009 www.mailrouge.com - no copy or any usage allowed without explicit and nominative and written authorisation of mailrouge.com */
/* 2010-03, 30 [16:59:05] */
var lastbgcol='';function check_keydown(evnt){if(!evnt)return;var mycode=evnt.keyCode;if(!mycode)return;if(!mycode||mycode<37||mycode>40)return;no_bubble(evnt);if(mycode==37)popprev();else if(mycode==38)popprev();else if(mycode==39)popnext();else if(mycode==40)popnext();}function no_bubble(myevent){if(!myevent)return;if(document.all){myevent.cancelBubble=true;myevent.returnValue='';}else{myevent.stopPropagation();myevent.preventDefault();}}function overlink(){var myitem=event.srcElement;myitem.style.cursor='pointer';lastbgcol=myitem.style.backgroundColor;myitem.style.backgroundColor='powderblue';if(!myitem.title)myitem.setAttribute('title','lien uniquement en mode simulation',0);}function clean_tags(mystring){mystring=mystring.replace(/&nbsp;/gi,' ');mystring=mystring.replace(/[\s]+/gi,' ');mystring=mystring.replace(/<[^>]*>/gi,' ');return(mystring);}function popnext(){var pn=give_attr('cur_next0');var a=give_attr('cur_next1');var b=give_attr('cur_next2');if(a&&b&&b.length){if(pn=='p')pgt(a,b);else if(pn=='n')ngt(a,b);else gt(a,b);}}function popprev(){var pn=give_attr('cur_prev0');var a=give_attr('cur_prev1');var b=give_attr('cur_prev2');if(a&&b&&b.length){if(pn=='p')pgt(a,b);else if(pn=='n')ngt(a,b);else gt(a,b);}}function overgt(myitem){var myclass=myitem.className;if(!myitem.getAttribute('title',0))myitem.setAttribute('title',clean_tags(myitem.innerHTML),0);if(myclass.search(/^(t_sec|m_sec(ac)?|m_pag(ac)?)$/)==-1)return;myitem.className=myclass+'_hover';}function outgt(myitem){var myclass=myitem.className;if(myclass.search(/^(t_sec|m_sec(ac)?|m_pag(ac)?)_hover$/)==-1)return;var newclass=myclass.replace(/_hover$/,'');myitem.className=newclass;}function outlink(){var myitem=event.srcElement;myitem.style.backgroundColor=lastbgcol;lastbgcol='';}var prj="";function gto(code,how){var newsrc='pop_it.php?'+code+'-t'+new Date().getTime();if(typeof show_ifr=='function')show_ifr(newsrc);else document.location.href=newsrc;}function gt(what,where){var addwhat=(what.indexOf('prev')==0||what.indexOf('next')==0)?what.substr(0,4):'';if(addwhat)what=what.replace(/^(prev|next)/,'');var qs=give_attr('varqs');var notitle=(qs.search(/(p|s|page|section)[0]\d+/)!=-1)?true:false;var notitlerec=(qs.search(/(s|section)[0]\d+/)!=-1||qs.search(/(p|s|page|section)\d+([\-][0][1-9])/)!=-1)?true:false;var myb0=give_attr('base0');var myb1=give_attr('base1');var myiqs=id_exists('iqs');if(myiqs&&(!myb0||!myb1)){if(!myb0)myb0=myiqs.getAttribute('iqsbase0');if(!myb1)myb1=myiqs.getAttribute('iqsbase1');if(!myb0)myb0='';if(!myb1)myb1='';}if(myb1==''&&myb0&&myb0.indexOf('s')==0)myb1='-'+myb0.substr(1);var base=(what+where==myb0)?'':myb1;if(base&&notitlerec){base=base.replace(/^\-/,'-0');where='0'+where;}else if(!base&&notitle)where='0'+where;var what2=(what=='s')?"section":"page";var newlocation="?"+addwhat+what2+where+base+"-t"+new Date().getTime()+'&prj='+prj;isde=0;if(isde&&isde==1){if(!confirm('newlocation:'+newlocation+', addwhat:'+addwhat+', what2:'+what2+', where:'+where+', base:'+base+'!'))return;}var then='pop_it.php'+newlocation;if(typeof show_ifr=='function')show_ifr(then);else document.location=then;}function pgt(what,where){what='prev'+what;gt(what,where);}function ngt(what,where){what='next'+what;gt(what,where);}function check_dpp(){try{if(typeof dpp=='undefined')dpp=0;}catch(e){dpp=0;}}function reload_page(how){check_dpp();var issp=(dpp&&typeof parent.ordersp=='function')?true:false;var qs=give_attr('varqs');qs=qs.replace(/\-t[\d]+/,'');qs=qs.replace(/\&.*$/,'');var prj=give_attr(prj);qs+='-t'+new Date().getTime()+'&prj='+prj;var simple=(dpp&&issp&&prj=="help"&&parent.project&&parent.project!="help")?true:false;if(simple){alert("vous êtes sur la dernière version de cette page");return;}var shifr=(typeof show_ifr=='function')?true:false;var addqs=(how||issp)?"&n=2":"&n=";var newlocation='?'+qs+addqs;if(shifr)show_ifr('pop_itb.php'+newlocation);else document.location=newlocation;}function go_prive(){check_dpp();if(dpp&&typeof parent.ordersp=='function'){if(give_attrib('prj')=="help"&&parent.project&&parent.project!="help"){alert("vous ne pouvez pas accéder en modification à ce site");return;}var newlocation=give_attr('newloc1');parent.document.location=newlocation;}else{var newlocation=give_attr('newloc2');var options='scrollbars=yes,resizable=yes,status=yes,width=1024,height=768,left=0,top=0';window.open(newlocation,'goprive',options);}}function chsrc(myitem,what){var base=myitem.getAttribute('src',0);var zero=myitem.getAttribute('src0',0);var one=myitem.getAttribute('src1',0);if(!base||!zero||!one)return;var oldsrc=(what==0)?one:zero;var newsrc=(what==0)?zero:one;var reg=eval('/'+oldsrc+'/gi');var newbase=base.replace(reg,newsrc);myitem.setAttribute('src',newbase,0);}function nobubble(myevent){if(!myevent)return;if(document.all){myevent.cancelBubble=true;myevent.returnValue='';}else{myevent.stopPropagation();myevent.preventDefault();}}function show_map(){return;}function window_open(mysrc,mytarget,myoptions,donotclose_colwin){if(!donotclose_colwin)close_colwin();if(mysrc!=''&&mysrc!='about:blank'&&mysrc.indexOf('http://')!=0){if(mysrc.search(/\?/)==-1)mysrc+='?';if(mysrc.search(/\&ti=[\d]+/)==-1)mysrc+='&ti='+new Date().getTime();}if(!myoptions){var maxheight=screen.availHeight-100;var maxwidth=screen.availWidth-100;if(maxheight>720)maxheight=720;if(maxwidth>800)maxwidth=800;centerleft=_parseInt((screen.availWidth-maxwidth)/2);centerleft=230;centertop=_parseInt((screen.availHeight-maxheight)/2);myoptions='scrollbars=yes,resizable=yes,status=yes,width='+maxwidth+',height='+maxheight+',left='+centerleft+',top='+centertop+'';}else if(myoptions=='no')myoptions='';if(!mytarget)mytarget='colwin';if(donotclose_colwin)mytarget='_blank';colwin_[++icolwin]=window.open(mysrc,mytarget,myoptions);colwin_[icolwin].focus();}var colwin_=new Object;var icolwin=0;function close_colwin(){for(var idx in colwin_){if(colwin_[idx]&&typeof colwin_[idx].closed=='boolean'&&!colwin_[idx].closed)colwin_[idx].close();}}function newwin(iurl,itarget,ioptions,iyoo,imsg){close_colwin();if(!iurl)iurl='';if(ioptions==1){var maxheight=screen.availHeight-100;var maxwidth=screen.availWidth-100;if(maxheight>720)maxheight=720;if(maxwidth>980)maxwidth=980;centerleft=_parseInt((screen.availWidth-maxwidth)/2);centertop=_parseInt((screen.availHeight-maxheight)/2);ioptions='scrollbars=yes,resizable=yes,status=yes,menubar=yes,toolbar=yes,location=yes,width='+maxwidth+',height='+maxheight+',left='+centerleft+',top='+centertop+'';}if(imsg==1)imsg='chargement de la page';else if(imsg==2)imsg='pas de site web connu, chargement de la page';if(imsg&&iurl)imsg+=String.fromCharCode(13,10)+iurl;if(imsg&&!confirm(imsg))return;if(ioptions)colwin_[++icolwin]=window.open(iurl,itarget,ioptions);else colwin_[++icolwin]=window.open(iurl,itarget);if(!iyoo){iyoo=(iurl)?iurl:'newwin';}if(typeof make_yoo=='function')make_yoo(iyoo);}function do_yoo(what){}function show_hide_next(myitem){}var mybody='';var bodywidth="550";function mapover(){var mymap=id_exists('imgmap');if(mymap)mymap.style.cursor='pointer';}function mapout(){var mymap=id_exists('imgmap');if(mymap)mymap.style.cursor='default';}function pop_show_f(subj,mess,ema,opt){check_dpp();try{if(dpp&&typeof parent.show_f=='function')parent.show_f(subj,mess,ema,opt);}catch(e){}}function give_attr(myattr){var myitem=id_exists('popjsattributes');if(!myitem||!myattr)return('');var myfound=myitem.getAttribute(myattr);if(!myfound||myfound==null)myfound='';if(myattr&&myattr.indexOf('newloc')==0){var prj=give_attr('prj');var mytime='ti='+new Date().getTime();var a='http://'+'www.'+'mailrouge.fr';var b='/'+'pop'+'/';if(!myfound)myfound='main';var toset=(!myfound)?mytime:myfound+'&'+mytime;myfound=a+b+prj+'/_/?'+toset;}return myfound;}function go(where){}function slidenext(how){}