jQuery(document).ready(function(){ var myprevnext='
'; jQuery('body').append(myprevnext); }); /* jQuery(document).ready(function(){ alert('itis : '+jQuery('#largeimg2').length); var myalert=''+jQuery('#largeimg2').length; for(var ii=0;ii<15;ii++){ var myimg=jQuery('#largeimg'+ii); myalert+=' length : '+myimg.length; if(!myimg.length)break; // myimg.removeAttr('onclick').on('click',gonext).css({cursor:'pointer'}); myalert+=' done : '+ii; } alert(ii+' myalert : '+myalert); }); */ document.onkeydown = applyKey; function checkEventObj ( event ){ // --- IE explorer if ( window.event ) return window.event; // --- Netscape and other explorers else return event; } function applyKey (_event_){ // --- Retrieve event object from current web explorer var winObj = checkEventObj(_event_); var intKeyCode = winObj.keyCode; var intAltKey = winObj.altKey; var intCtrlKey = winObj.ctrlKey; // --- Access with [CTRL+Key] if (intCtrlKey) { if(intKeyCode==39)go_next(event); else if(intKeyCode==37)go_prev(event); else if(intKeyCode==40)go_next0(event); else if(intKeyCode==38)go_prev0(event); } } function _parseInt(string,base){ if(!base)base=0; string=parseInt(string); if(isNaN(string))string=base; return(string); } function getBody(){ return(document.getElementsByTagName('body').item(0)); } function getBase(){ if(typeof base0!="undefined" && base0!="")return(base0); var mybase=document.getElementsByTagName('base').item(0); if(mybase){ var mybasehref=mybase.getAttribute('href',0); if(mybasehref)return(mybasehref); } return(''); } function chsrc(myitem,what){ if(!initdone){dowait();return;} var zero=myitem.getAttribute('src0',0); var one=myitem.getAttribute('src1',0); if(!zero || !one)return; var newsrc=(what==0)?zero:one; var oldsrc=myitem.getAttribute('src',0); var src=(oldsrc.indexOf('/')!=-1)?oldsrc.replace(/\/[^\/]*$/,'/'+newsrc):newsrc; myitem.setAttribute('src',src,0); } function goprev0(){ if(!initdone){dowait();return;} cleardiapo(); var newlocation=(!sdomok || sdomok!="1")?base0+prev0+'.php':sdomurl.replace(/#page#/,prev0); if(andlastpage)newlocation+='?l=l'; document.location=newlocation; } function gonextdiapo(){ if(!initdone){dowait();return;} allowclear=false; gonext0(); allowclear=true; } function gonextdiapo2(){ if(!initdone){dowait();return;} allowclear=false; gonext(); allowclear=true; } var allowclear=true; var isdiapoon=false; function cleardiapo(){ if(!initdone){dowait();return;} if(!allowclear || !isdiapoon)return; if(isdiapo){ window.clearTimeout(isdiapo); } if(isdiapo2){ window.clearInterval(isdiapo2); } isdiapoon=false; confirm(bib_cleardiapo); diapo=diapo2=0; allowclear=true; var mydivdiapo=id_exists('divdiapo'); if(mydivdiapo)mydivdiapo.parentNode.removeChild(mydivdiapo); var back=id_exists('backhome'); if(back)back.className='divbck'; id_exists('form1').style.display='none'; var mytopleft=id_exists('topleft'); var mywaitplease=id_exists('waitplease'); if(mytopleft)mytopleft.className='topleft'; if(mywaitplease)mywaitplease.className='topleft'; } function do_diapo(what){ if(what==0 || !what){allowclear=true;cleardiapo();full_menu(1);return;} cleardiapo(); var myspeed=5; for(var i=0;i100)mywhat.style.width=iwidth+'px'; if(iheight>100)mywhat.style.height=iheight+'px'; } mywhat.style.top=mybody.scrollTop+itop+'px'; mywhat.style.left=mybody.scrollLeft+ileft+'px'; mywhat.style.display=''; var myimgquit=id_exists('imgquit'); if(myimgquit){ myimgquit.style.display=''; myimgquit.style.top=mybody.scrollTop+120+'px'; myimgquit.style.left=mybody.scrollLeft+(ileft-10)+'px'; } var myobj=mymaintable; if(myobj){ myobj.style.filter=(todisplay=='')?'alpha(opacity=50)':''; myobj.style.opacity=(todisplay=='')?'.5':''; } } function hide_ifr(){ var objlist=new Array('imgquit','blog','colifr','aboutifr'); for(var idx in objlist){ var idy=objlist[idx]; var idz=id_exists(idy); if(!idz)continue; idz.style.display='none'; } var myobj=mymaintable; if(myobj){ myobj.style.filter=''; myobj.style.opacity=''; } window.scrollTo(0,0); } function go_next0(event){ gonext0(); event.stopPropagation(); }; function go_next(event){ gonext(); event.stopPropagation(); }; function go_prev0(event){ goprev0(); event.stopPropagation(); }; function go_prev(event){ goprev(); event.stopPropagation(); }; function gonext0(){ if(!initdone){dowait();return;} cleardiapo(); var newlocation=(!sdomok || sdomok!="1")?base0+next0+'.php':sdomurl.replace(/#page#/,next0); if(isdiapoon && (diapo || diapo2)){ diapodone=_parseInt(diapodone,0); var diapodone2=(diapo2)?(diapodone+_parseInt(totalpages)):diapodone+1; if(diapo)newlocation+='?a='+diapo+'&a0='+startdiapo+'&a9='+diapodone2; else if(diapo2)newlocation+='?a2='+diapo2+'&a0='+startdiapo+'&a9='+diapodone2; } // if(!confirm('gonext0 function '+br+newlocation+br+'diapodone:'+diapodone+', diapodone2:'+diapodone2+'!'+br+'diapo:'+diapo+', diapo2:'+diapo2+'!'))return; document.location=newlocation; } function gonext(){ if(!initdone){dowait();return;} cleardiapo(); var ii=(lastimgopen!=-1)?lastimgopen+1:0; var isbreak=false; var islo2=true; for(var k=1;k<=2;k++){ if(isbreak)break; for(var i=ii;i<=totalpages-1;i++){ if(islo2 && i==totalpages-1){gonext0();return;} var mysmall=id_exists('im'+i); if(mysmall){ nostop=true; resetsize(mysmall); aff_diapo(); nostop=false; isbreak=true; break; } if(i==totalpages-1){ close_all(); lastimgopen=-1; isbreak=true; break; } } ii=0; } } var andlastpage=false; function goprev(){ if(!initdone){dowait();return;} cleardiapo(); var islo2=true; if(islo2 && currentpage==1){ andlastpage=true; goprev0();return; } if(lastimgopen==0){ close_all(); lastimgopen=-1; return; } var ii=(lastimgopen>0)?lastimgopen-1:19; for(var i=ii;i>=0;i--){ var mysmall=id_exists('im'+i); if(mysmall){ nostop=true; resetsize(mysmall); nostop=false; break; } } } var imgopen=-1; var lastimgopen=-1; var nostop=false; // function check_set_title(thisi,myitem,toadd){ // if(!myitem.getAttribute('title',0) && id_exists('txt'+thisi)){ // var mytext=(document.all)?id_exists('txt'+thisi).innerText:id_exists('txt'+thisi).innerHTML; // var mytitle=(!mytext)?"":cleantags(mytext); // if(toadd)mytitle+=' '+toadd; // myitem.setAttribute('title',mytitle,0); // } // } function check_set_title(thisi,myitem,toadd,toreturn){//from stch var mytxt=mytxt1=mytxt2=''; if((myitem && !myitem.getAttribute('title',0)) || toreturn){ if(!smainarea || smainarea=="0"){ var one=id_exists('tittxt'+thisi); var two=id_exists('txttxt'+thisi); if(one){ mytxt1=(document.all)?one.innerText:cleantags(one.innerHTML); } if(two){ mytxt2=(document.all)?two.innerText:cleantags(two.innerHTML); } if(mytxt1 && mytxt2){ if(mytxt1.indexOf(mytxt2)>=0)mytxt=mytxt1; else if(mytxt2.indexOf(mytxt1)>=0)mytxt=mytxt2; else mytxt=mytxt1+' '+mytxt2; }else if(mytxt1||mytxt2)mytxt=(!mytxt1)?mytxt2:mytxt1; else{ var three=id_exists('txt'+thisi); if(three)mytxt=(document.all)?three.innerText:cleantags(three.innerHTML); } }else if(smainarea && smainarea!="0"){ var andmore=(startzero)?2:1; mytxt=bib_page+' '+(thisi+1+andmore); } var mytitle=(!mytxt)?"":cleantags(mytxt); if(toadd)mytitle+=' '+toadd; if(!toreturn && myitem)myitem.setAttribute('title',mytitle,0); else return(mytitle); } } function overimg(myitem){ if(!initdone){dowait();return;} var thisi=_parseInt(myitem.getAttribute('id',0).replace(/^im/,''));//im0 im1 im2 ... check_set_title(thisi,myitem,bib_showdetail); if(imgopen!=-1 && imgopen==thisi)return; myitem.className='smallimgover'; } function overmono(myitem){ if(!initdone){dowait();return;} var thisi=_parseInt(myitem.getAttribute('id',0).replace(/^im/,''));//im0 im1 im2 ... check_set_title(thisi,myitem,bib_showdetail); if(imgopen!=-1 && imgopen==thisi)return; myitem.className='monoimgover'; } function cleantags(mystring){ if(!mystring)return(''); var tempo=mystring; mystring=mystring.replace(/<[^>]+>/g,' '); mystring=mystring.replace(/( )+/gi,' '); mystring=mystring.replace(/[\s]+/g,' '); var collect=mystring.split(" "); if(collect && collect.length>25){ var mystring_=new Array(); for(var i=0;i<25;i++){ mystring_.push(collect[i]); } mystring=mystring_.join(' ')+'\u2026'; } return(mystring); } function outimg(myitem){ if(!initdone){dowait();return;} if(imgopen!=-1){ var thisi=_parseInt(myitem.getAttribute('id',0).replace(/^im/,''));//im0 im1 im2 ... if(imgopen==thisi)return; } myitem.className='smallimg'; } function outmono(myitem){ if(!initdone){dowait();return;} if(imgopen!=-1){ var thisi=_parseInt(myitem.getAttribute('id',0).replace(/^im/,''));//im0 im1 im2 ... if(imgopen==thisi)return; } myitem.className='monoimg'; } // function create_myimglarge(thisi){ // var mynew=document.createElement('IMG'); // mynew.setAttribute('id','largeimg'+thisi); // mynew.style.display='none'; // mynew.className='largeimg'; // if(document.all)mynew.attachEvent('onclick',close_all); else mynew.setAttribute('onclick','close_all()'); // var myimglarge=id_exists('divlargeimg').appendChild(mynew); // return(myimglarge); // } function create_myimglarge(thisi){ var mynew=document.createElement('IMG'); mynew.setAttribute('id','largeimg'+thisi); var andmore=(startzero)?1:0; myalt=bib_page+' '+(thisi+andmore); mynew.setAttribute('alt',myalt); //mynew.setAttribute('id','largeimg_n'); mynew.style.display='none'; mynew.className='largeimg'; // mynew.setAttribute('title','hoho '+thisi); // mynew.detachEvent('onclick'); // jQuery('#largeimg'+thisi).on('click',function(){gonext();}); // if(document.all)mynew.attachEvent('onclick',gonext); else mynew.setAttribute('onclick','gonext()'); // if(document.all)mynew.attachEvent('onclick',close_all); else mynew.setAttribute('onclick','close_all()'); var myimglarge=id_exists('divlargeimg').appendChild(mynew); return(myimglarge); } function create_mytxt(thisi){ var mynew=document.createElement('DIV'); mynew.setAttribute('id','txt'+thisi); mynew.className='txtoff'; var mynew2=document.createElement('DIV'); mynew2.setAttribute('id','tittxt'+thisi); mynew2.className='tittxt'; mynew2.innerHTML=check_set_title(thisi,0,0,1); mynew.appendChild(mynew2); var mynew2=document.createElement('DIV'); mynew2.setAttribute('id','imgtxt'+thisi); mynew2.className='imgtxt'; mynew.appendChild(mynew2); myimg=id_exists('im'+thisi); if(myimg){ var mytxt=myimg.getAttribute('txt',0); if(bib_txtmemo)mytxt=mytxt+' '+bib_txtmemo; if(mytxt){ var mynew2=document.createElement('DIV'); mynew2.setAttribute('id','txttxt'+thisi); mynew2.innerHTML='
'+mytxt+'
'; mynew.appendChild(mynew2); } } return(mydivtxt.appendChild(mynew)); } var noyoo=false; function dowait(){ var mywait=id_exists('waitplease'); if(!mywait)return; mywait.style.display=''; mywait.style.top=100; mywait.style.left=100; mywait.style.padding=20; mywait.style.border='2px lime solid'; mywait.style.backgroundColor='cyan'; mywait.style.color='brown'; mywait.style.fontWeight='bold'; } function resetsize(myitem){ if(!initdone){dowait();return;} // var tempo_=new Array(); // for(var idx in mybody){ // if(idx.search(/(inner|outer|text|html)/gi)==-1 && idx.indexOf('on')!=0)tempo_.push(idx+':'+mybody[idx]); // } // alert("mybody.clientHeight:"+mybody.clientHeight+"!"+br+tempo_.join(', ')); cleardiapo(); var thisi=_parseInt(myitem.getAttribute('id',0).replace(/^im/,''));//im0 im1 im2 ... if(imgopen!=-1){ noyoo=true; if(imgopen==thisi){ close_all(); noyoo=false; if(!nostop)return; }else{ close_all(); noyoo=false; } } if(!document.all){ var a1=mybody.clientHeight; var a2=mybody.scrollHeight; var a3=mybody.offsetHeight; if(!a1)a1=0;if(!a2)a2=0;if(!a3)a3=0; if((!a1 || !a2 || !a3)||(a1==a2 && a2==a3))var mybody_Height=800; else var mybody_Height=mybody.clientHeight; }else var mybody_Height=mybody.clientHeight; var maxW=aWidth=mybody.clientWidth-id_exists('a3').offsetLeft; var maxH=aHeight=mybody_Height-mycapt.clientHeight; var myname=imgbank[thisi][2]; var noimg=(!myname || myname.search(/mono_(red|green|blue|silver)\.gif$/i)!=-1)?true:false; var mylogo_mono=id_exists('logo_mono'); if(!noimg){ var myimglarge=id_exists('largeimg'+thisi); if(!myimglarge)myimglarge=create_myimglarge(thisi); if(!myimglarge)return; // jQuery('#largeimg'+thisi).on('click',function(){gonext();}); // jQuery('#largeimg'+thisi).on('click',function(){alert('hoho '+thisi);}); // jQuery('#largeimg'+thisi).off('click').on('click',function(){alert('hi');gonext();}); myimglarge.style.width=aWidth+'px'; myimglarge.style.height=aHeight+'px'; var mywidth=_parseInt(imgbank[thisi][0],0); var myheight=_parseInt(imgbank[thisi][1],0); var mysrc=imgbank[thisi][2]; var myname=(mysrc.search(/^(http:\/\/|\.)/)!=-1)?mysrc:img_big+mysrc; if(!mysrc || !mywidth || !myheight || !aWidth || !aHeight || !myname)return; if(typeof noresize=='undefined'||!noresize){ var prop=mywidth/myheight; var newwidth=mywidth; var newheight=myheight; //aWidth=aWidth-20; aHeight=aHeight-20; if( aWidth < mywidth || aHeight < myheight){ prop=aWidth/mywidth; newwidth=_parseInt(mywidth*prop,1); newheight=_parseInt(myheight*prop,1); if(aHeight < newheight-30){ prop=aHeight/myheight; newwidth=_parseInt(mywidth*prop,1); newheight=_parseInt(myheight*prop,1); } } }else{ var newwidth=mywidth; var newheight=myheight; } if(!myimglarge.getAttribute('src',0))myimglarge.setAttribute('src',myname,0); myimglarge.style.width=newwidth+'px'; myimglarge.style.height=newheight+'px'; myimglarge.style.display=''; mylogo_mono.style.display='none'; tda5.className='a5'; }else{ mylogo_mono.style.display=''; tda5.className='a51'; } mytdtit.style.display=showtdtit; if(showtitlist)id_exists('trtitlist').style.display=(showtitlist==1)?'none':''; tda4.style.display='none'; tda3.style.display='none'; tda5.style.display=''; if(!noimg)check_set_title(thisi,myimglarge,bib_closedetail); imgopen=thisi; if(!noimg)id_exists('im'+thisi).className='smallimgopen'; var mytxt=id_exists('txt'+thisi); // if(!mytxt || mytxt.innerHTML==''){ // return; // } if(smainarea!="shortcode" && (!mytxt || mytxt.innerHTML=='') )return; if(smainarea=="shortcode" && !mytxt)mytxt=create_mytxt(thisi); if(!mytxt)return; mytxt.className='txton'; var mydivimg=id_exists('imgtxt'+thisi); if(mydivimg && mydivimg.innerHTML==''){ var mynew=document.createElement('img'); mynew.setAttribute('src',myitem.getAttribute('src',0),0); mynew.style.width=myitem.getAttribute('width',0)+'px'; mynew.style.height=myitem.getAttribute('height',0)+'px'; mynew.setAttribute('border',0); mynew.setAttribute('title',bib_closedetail,0); if(document.all)mynew.attachEvent('onclick',close_all); else mynew.setAttribute('onclick','close_all()'); mynew.className=(!noimg)?'smallimgtxt':'monoimgtxt'; mydivimg.appendChild(mynew); } lastimgopen=thisi; currentpage=thisi+2; update_pages();//added from stch, was: //divcountpages.innerHTML=bib_page+' '+currentpage+' / '+totalpages; mydivlist.style.display='none'; mydivtxt.style.display=''; mymaintable.style.tableLayout='auto'; var mygcode=id_exists('gcode'); if(mygcode){ var mysrc=base0+'col_gifr.php?ta=nina&pbc='+pbc; mygcode.setAttribute('src',mysrc,0); mygcode.style.display='none'; } var mygifr=id_exists('gifr'); if(mygifr){ var mydate=new Date(); var mytime=mydate.getTime(); var mysrc=mygifr.getAttribute('src0',0); mysrc=base0+'col_gifr.php?ta='+mysrc+'&pbc='+pbc+'&ti='+mytime; mygifr.setAttribute('src',mysrc,0); mygifr.style.display=''; } var mygtm=id_exists('gtm'); if(mygtm)mygtm.style.display='none'; var mygdm=id_exists('gdm'); if(mygdm)mygdm.style.display=''; window.scrollTo(0,0); make_yoo(''); } function update_pages(){//added from stch var mytotalpages=(!startzero)?totalpages:totalpages-1; var mybib_pages=(mytotalpages>1)?bib_pages:bib_page; divcountpages.innerHTML=(!startzero) ?bib_page+' '+currentpage+' / '+mytotalpages :((currentpage>1)?bib_page+' '+(currentpage-1)+' / '+(mytotalpages):(mytotalpages)+' '+mybib_pages) ; } var myifra=0; function close_all(){ if(!initdone){dowait();return;} cleardiapo(); var ii=(imgopen!=-1)?imgopen:0; var jj=(imgopen!=-1)?imgopen+1:20; lastimgopen=imgopen; imgopen=-1; for(var i=ii;i=10)myifra=0; mygcode.setAttribute('src',mysrc,0); mygcode.style.display=''; } var mygifr=id_exists('gifr'); if(mygifr){ mysrc=base0+'col_gifr.php?ta=nino&pbc='+pbc; mygifr.setAttribute('src',mysrc,0); mygifr.style.display='none'; } var mygdm=id_exists('gdm'); if(mygdm)mygdm.style.display='none'; var mygtm=id_exists('gtm'); if(mygtm)mygtm.style.display=''; mytdtit.style.display=''; mydivtxt.style.display='none'; mydivlist.style.display=''; if(showtitlist)id_exists('trtitlist').style.display=(showtitlist==2)?'none':''; tda5.style.display='none'; tda4.style.display=''; tda3.style.display=''; currentpage=1; //divcountpages.innerHTML=bib_page+' '+currentpage+' / '+totalpages; update_pages(); mymaintable.style.tableLayout='fixed'; if(!noyoo)make_yoo(''); } function make_yoo(what){ if(islo)return; var tempo1=tempo=''; if(currentpage>1){ var tempo=id_exists('tittxt'+(currentpage-2)); if(tempo){ var tempo1=tempo.innerHTML; if(tempo1){ tempo1=tempo1.replace(/<[^>]+>/gi,' '); tempo1=tempo1.replace(/\s+/gi,' '); tempo1=tempo1.replace(/^\s|\s$/gi,''); }else var tempo1=tempo=''; }else var tempo1=tempo=''; }else var tempo1=tempo=''; var whattitle=(currentpage==1 || !tempo1)?pagetitle:tempo1; if(!what)what=whattitle; else what=what+", "+whattitle; var ilangue=(langue=='fr')?'':langue; var mytitle=cprs+ilangue+': '+pagep+'['+currentpage+'-'+totalpages+'] '+what; if(mytitle.length>100)mytitle=mytitle.substr(0,100); var myscreen=' ['+screen.availWidth+'*'+screen.availHeight+'|'+mybody.clientWidth+'*'+mybody.clientHeight+']'; mytitle+=myscreen; var mysrc='https://www.mailrouge.com/a/yoo22.php?title='+escape(mytitle)+'&vlo='+escape('~['+cpr+'['); if(typeof iyoo=='undefined')iyoo=id_exists('yoo'); if(iyoo)iyoo.setAttribute('src',mysrc,0); } function id_exists(what){ return(document.getElementById(what)); } //**// /* function oc_(myid){ var myitem=document.getElementById(myid); if(!myitem)return; myitem.style.display=(myitem.style.display=='none')?'':'none'; full_menu_onoff(-1); make_yoo(myid); } function od_(myitem){ if(!myitem)return; var myid=myitem.getAttribute('id',0); if(!myid)return; var newid=myid.replace(/^ssi/,'sse'); var newitem=id_exists(newid); if(!newitem)return; newitem.style.display=(newitem.style.display=='none')?'':'none'; full_menu_onoff(-1); make_yoo(myid); } */ function oc_(myid){ var myitem=document.getElementById(myid); if(!myitem)return; myitem.style.display=(myitem.style.display=='none')?'':'none'; if(myitem.style.display==''){ var collect=myitem.childNodes; if(collect && collect.length){ var first=false; var doit=true; for(var ii=0;ii=1){ setcleardiapo(); isdiapo=window.setTimeout(gonextdiapo,diapo*1000); isdiapoon=true; }else if(diapo2>=1){ setcleardiapo(); isdiapo2=window.setInterval(gonextdiapo2,diapo2*1000); isdiapoon=true; } } function update_clw(){ clw=mybody.clientWidth-380; var myca1=id_exists('ca1'); var myca2=id_exists('ca2'); if(myca1){ myca1.style.width=clw; myca1.style.overflow='hidden'; myca1.style.overflowX='hidden'; myca1.style.whiteSpace='nowrap'; myca1.style.textOverflow='ellipsis'; } if(myca2){ myca2.style.width=clw; myca2.style.overflow='hidden'; myca2.style.overflowX='hidden'; myca2.style.whiteSpace='nowrap'; myca2.style.textOverflow='ellipsis'; } if(!document.all && id_exists('im0') && currentpage==1){ resetsize(id_exists('im0')); close_all(); imgopen=lastimgopen=-1; } } window.onload=init; window.onresize=update_clw; /* jQuery(document).ready(function(){ // alert('itis2 : '+jQuery('#largeimg2').length); var myalert=''+jQuery('#largeimg2').length; for(var ii=0;ii<15;ii++){ var myimg=jQuery('#largeimg'+ii); myalert+=' length : '+myimg.length; if(!myimg.length)break; //myimg.removeAttr('onclick').on('click',gonext).css({cursor:'pointer'}); myalert+=' done : '+ii; } // alert(ii+' myalert : '+myalert); }); */