From 5daa1025a75aa865a329a38198e430fe979eb42f Mon Sep 17 00:00:00 2001 From: Fabrice Creuzot Date: Thu, 11 Nov 2010 20:00:00 +0000 Subject: [PATCH] Version 1.2.1 --- README.md | 2 +- src/javascripts/main.js | 10 ++++++---- src/styles/dialogue.css | 10 ++++++---- src/zip/apijs-screen.min.css | 4 ++-- src/zip/apijs.min.js | 4 ++-- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e2cc34b..4f59403 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ For more information, go to https://www.luigifab.fr/apijs (IPv6 is required, it' This repository is a releases mirror. To install it, please read the documentation. -- Current version: 1.2.0 (24/10/2010) (archive regenerated on 02/07/2021) +- Current version: 1.2.1 (11/11/2010) (archive regenerated on 02/07/2021) - Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+ - Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) - Other translations: Czech (cs), Dutch (nl), Japanese (ja), Polish (pl), Slovak (sk) diff --git a/src/javascripts/main.js b/src/javascripts/main.js index ee5a771..cf68db0 100644 --- a/src/javascripts/main.js +++ b/src/javascripts/main.js @@ -1,6 +1,6 @@ /** * Created J/03/12/2009 - * Updated D/24/10/2010 + * Updated J/11/11/2010 * Version 25 * * Copyright 2008-2010 | Fabrice Creuzot (luigifab) @@ -78,10 +78,12 @@ else { // » Charge les modules disponibles function start() { - for (var i = 0, tag = document.getElementsByClassName('popup'); i < tag.length; i++) { - if (config.navigator) + for (var tag = document.getElementsByTagName('a'), size = tag.length, i = 0; i < size; i++) { + + if (config.navigator && tag[i].hasAttribute('class') && (tag[i].getAttribute('class').indexOf('popup') > -1)) tag[i].addEventListener('click', openTab, false); - else + + else if (tag[i].className.indexOf('popup') > -1) tag[i].setAttribute('onclick', 'window.open(this.href); return false;'); } diff --git a/src/styles/dialogue.css b/src/styles/dialogue.css index 7ebaa2d..de5719d 100644 --- a/src/styles/dialogue.css +++ b/src/styles/dialogue.css @@ -1,6 +1,6 @@ /** * Created V/08/05/2009 - * Updated J/07/10/2010 + * Updated J/11/11/2010 * Version 14 * * Copyright 2008-2010 | Fabrice Creuzot (luigifab) @@ -17,7 +17,7 @@ * GNU General Public License (GPL) for more details. */ -/* ################################################## Conteneurs thème 1 ### */ +/* ################################################ Conteneurs (thème 1) ### */ #dialogue, div.dialogue { position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; z-index:900; color:black; background-color:black; background-color:rgba(0, 0, 0, 0.75); @@ -40,7 +40,7 @@ #box.upload, #box.errorupload, #box.progress { min-height:12em; } -/* ################################################## Conteneurs thème 2 ### ** +/* ################################################ Conteneurs (thème 2) ### ** #dialogue, div.dialogue { position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; z-index:900; color:black; background:#DDD url("../images/dialogue/background.png") no-repeat; @@ -76,7 +76,7 @@ /* ############################################################### Texte ### */ #box h1 { - margin:0.15em 0 0.8em; padding-left:41px; line-height:32px; + margin:0.15em 0 0.7em; padding-left:41px; line-height:32px; font-size:1.6em; font-weight:bold; color:black; background-repeat:no-repeat; background-position:center left; } @@ -97,6 +97,8 @@ #box dt { margin-bottom:0.5em; } #box dd { overflow:hidden; } +#box ul { margin:-0.4em auto 1em; } + /* ################################################# Boutons de contrôle ### */ #box div.control { position:absolute; bottom:0.6em; right:0.7em; } diff --git a/src/zip/apijs-screen.min.css b/src/zip/apijs-screen.min.css index 2c7d850..8f431cd 100644 --- a/src/zip/apijs-screen.min.css +++ b/src/zip/apijs-screen.min.css @@ -1,6 +1,6 @@ /*! * Copyright 2008-2010 | Fabrice Creuzot (luigifab) - * https://www.luigifab.fr/apijs - 1.2.0 + * https://www.luigifab.fr/apijs - 1.2.1 * This program is free software, you can redistribute it or modify * it under the terms of the GNU General Public License (GPL). - */div.album{width:660px;margin:1.2em auto 1.8em;padding:.3em;overflow:hidden;background-color:#eee;border-radius:10px;-khtml-border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px}div.album dl.vignette{float:left;margin:4px;padding:5px 5px 4px;width:200px;min-height:168px;font-size:.8em;color:#666;text-align:center;border:1px solid #ccc;background-color:#ccc;border-radius:6px;-khtml-border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px}div.album dl.vignette:hover{border-color:#999}div.album dl.vignette dt{margin-bottom:5px;vertical-align:middle}div.album dl.vignette dt a{display:block;text-decoration:none}div.album dl.vignette dt a img{display:block;margin:auto}div.album dl.vignette dd{margin:0 .5em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-wrap:break-word}div.album dl.vignette dd span.datenum{color:#888}div.album dl.vignette:hover dd{color:#333}div.album dl.vignette:hover dd span.datenum{color:#666}#dialogue,div.dialogue{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:900;color:#000;background-color:#000;background-color:rgba(0,0,0,.75)}#dialogue.norgba{background-color:#000}#box{position:relative;top:28%;margin:auto;padding:.6em .8em 2.4em;width:33em;min-height:9em;overflow:hidden;border-radius:10px;-khtml-border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;opacity:.85;box-shadow:0 0 30px #000;-moz-box-shadow:0 0 30px #000;-webkit-box-shadow:0 0 30px #000;background-color:#fff}#box.photo,#box.video{top:50%;left:50%;padding:10px 10px 5px;width:auto;min-height:inherit;overflow:visible;border:2px solid #999;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;opacity:1}#box.errorupload,#box.progress,#box.upload{min-height:12em}#box.information h1{background-image:url("../images/icons/32/gnome-dialog-information.png")}#box.confirmation h1{background-image:url("../images/icons/32/gnome-dialog-question.png")}#box.waiting h1{background-image:url("../images/icons/32/gnome-appointment-soon.png")}#box.delete h1{background-image:url("../images/icons/32/gnome-delete.png")}#box.download h1{background-image:url("../images/icons/32/gnome-save.png")}#box.error h1{background-image:url("../images/icons/32/gnome-dialog-error.png")}#box.option h1{background-image:url("../images/icons/32/gnome-preferences-other.png")}#box.warning h1{background-image:url("../images/icons/32/gnome-dialog-warning.png")}#box.upload h1{background-image:url("../images/icons/32/gnome-mail-new.png")}#box.errorupload h1{background-image:url("../images/icons/32/gnome-dialog-error.png")}#box.progress h1{background-image:url("../images/icons/32/gnome-appointment-soon.png")}#box h1{margin:.15em 0 .8em;padding-left:41px;line-height:32px;font-size:1.6em;font-weight:700;color:#000;background-repeat:no-repeat;background-position:center left}#box p{margin:1em auto;font-size:1em;line-height:1.4em}#box p.reload{position:absolute;bottom:.7em;right:1em;margin:0;font-size:.8em;line-height:1.45em;color:#333}#box p.reload a{color:#104e8b}#box dl{margin:.3em auto .15em;color:#333}#box dt{margin-bottom:.5em}#box dd{overflow:hidden}#box div.control{position:absolute;bottom:.6em;right:.7em}#box div.control button{margin-left:.45em;padding:.2em .7em .2em 25px;font-size:.85em;color:#000;cursor:pointer;border:1px solid #bbb;background-color:#e2e2e2;background-repeat:no-repeat;background-position:4px center;border-radius:4px;-khtml-border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}#box div.control button.cancel{background-image:url("../images/icons/16/silk-cancel.png")}#box div.control button.confirm{background-image:url("../images/icons/16/silk-accept.png")}#box div.control button:active,#box div.control button:focus,#box div.control button:hover{border:1px solid #aaa;background-color:#ededed}#box div.navigation button{position:absolute;top:40%;padding:.1em .3em;font-size:1.3em;cursor:pointer;border:none;color:#fff;background-color:#777;opacity:.35;border-radius:6px;-khtml-border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px}#box div.navigation button#prev{left:-31px}#box div.navigation button#next{right:-31px}#box div.navigation button[disabled]{display:none}#box div.navigation button:active,#box div.navigation button:focus,#box div.navigation button:hover{opacity:.7}#box div.close{position:absolute;top:3px;right:3px}#box div.close button.close{margin:0 0 5em 4em;border:none;background:0 0;cursor:pointer}#box div.close button.close img{font-size:.7em;color:#999;text-transform:uppercase;text-align:center}#box.progress object{display:block;margin:1.1em auto;border:1px solid #000}#dialogue iframe{display:none}#box.photo dt a{display:block;position:relative}#box.photo dt a span{display:none;position:absolute;bottom:5px;right:5px;width:24px;height:24px;background:transparent url("../images/icons/24/gnome-zoom-in.png") no-repeat center;opacity:.75}#box.photo dt a:active span,#box.photo dt a:focus span,#box.photo dt a:hover span{display:inline-block}#box.photo dt img{display:block}#box.photo dt img.loading{background:#fff url("../images/dialogue/loading.png") no-repeat center}#box.photo dt img.error_de{background:#fff url("../images/dialogue/error/de.png") no-repeat center}#box.photo dt img.error_en{background:#fff url("../images/dialogue/error/en.png") no-repeat center}#box.photo dt img.error_fr{background:#fff url("../images/dialogue/error/fr.png") no-repeat center}#box.video dt video{display:block;color:#fff;background-color:#000}#box dd a.download{float:right;margin:.4em .5em 0;font-size:.7em;color:#aaa}#box dd a.download:active,#box dd a.download:focus,#box dd a.download:hover{color:#777}#box dd span{margin-right:.2em;font-size:.85em;color:#777}#carteInteractive{position:relative;display:none;margin:20px auto 15px;padding:21px 0 0;width:580px;height:400px;overflow:hidden;border:1px solid #ddd;background:#fff url("../images/map/background.png") no-repeat left bottom;box-shadow:2px 2px 12px #ddd;-moz-box-shadow:2px 2px 12px #ddd;-webkit-box-shadow:2px 2px 12px #ddd}#carteControl{position:absolute;top:0;right:0;margin:0;padding:3px 6px 0 0;width:100%;height:17px;overflow:hidden;font-size:.8em;text-align:right;border-bottom:1px solid #aeaeae;background-color:#dedede}#mapGeoportail,#mapGoogle{position:relative;display:none;overflow:hidden;border:none;background-color:#fff}#carteFatal,#carteIntro{position:relative;top:50%;margin-top:-4.4em;padding:1px;background-color:#f0f0f0;background-color:rgba(240,240,240,.7)}#carteFatal p,#carteIntro p{margin:5px auto;padding:0;width:26em;text-align:center;color:#888}#carteFatal,#mapGeoportailInfoCell{display:none}#mapGeoportailMapCell{border:none}div.gpControlLabelClass{padding:1px 1px 0!important}#carteControl button{margin:0 5px;padding:0;font-size:1em;font-weight:700;cursor:pointer;border:none;color:#36648b;background:0 0}#carteControl button.bis{font-weight:400;color:#824681}#carteControl button:active,#carteControl button:focus,#carteControl button:hover{color:#000}#carteControl button[disabled],#carteControl button[disabled]:active,#carteControl button[disabled]:focus,#carteControl button[disabled]:hover{color:#8d8d8d;cursor:default}#carteControl button[disabled].bis,#carteControl button[disabled].bis:active,#carteControl button[disabled].bis:focus,#carteControl button[disabled].bis:hover{color:#adadad}#carteControl button[disabled].actif,#carteControl button[disabled].actif:active,#carteControl button[disabled].actif:focus,#carteControl button[disabled].actif:hover{color:#000} \ No newline at end of file + */div.album{width:660px;margin:1.2em auto 1.8em;padding:.3em;overflow:hidden;background-color:#eee;border-radius:10px;-khtml-border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px}div.album dl.vignette{float:left;margin:4px;padding:5px 5px 4px;width:200px;min-height:168px;font-size:.8em;color:#666;text-align:center;border:1px solid #ccc;background-color:#ccc;border-radius:6px;-khtml-border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px}div.album dl.vignette:hover{border-color:#999}div.album dl.vignette dt{margin-bottom:5px;vertical-align:middle}div.album dl.vignette dt a{display:block;text-decoration:none}div.album dl.vignette dt a img{display:block;margin:auto}div.album dl.vignette dd{margin:0 .5em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-wrap:break-word}div.album dl.vignette dd span.datenum{color:#888}div.album dl.vignette:hover dd{color:#333}div.album dl.vignette:hover dd span.datenum{color:#666}#dialogue,div.dialogue{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:900;color:#000;background-color:#000;background-color:rgba(0,0,0,.75)}#dialogue.norgba{background-color:#000}#box{position:relative;top:28%;margin:auto;padding:.6em .8em 2.4em;width:33em;min-height:9em;overflow:hidden;border-radius:10px;-khtml-border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;opacity:.85;box-shadow:0 0 30px #000;-moz-box-shadow:0 0 30px #000;-webkit-box-shadow:0 0 30px #000;background-color:#fff}#box.photo,#box.video{top:50%;left:50%;padding:10px 10px 5px;width:auto;min-height:inherit;overflow:visible;border:2px solid #999;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;opacity:1}#box.errorupload,#box.progress,#box.upload{min-height:12em}#box.information h1{background-image:url("../images/icons/32/gnome-dialog-information.png")}#box.confirmation h1{background-image:url("../images/icons/32/gnome-dialog-question.png")}#box.waiting h1{background-image:url("../images/icons/32/gnome-appointment-soon.png")}#box.delete h1{background-image:url("../images/icons/32/gnome-delete.png")}#box.download h1{background-image:url("../images/icons/32/gnome-save.png")}#box.error h1{background-image:url("../images/icons/32/gnome-dialog-error.png")}#box.option h1{background-image:url("../images/icons/32/gnome-preferences-other.png")}#box.warning h1{background-image:url("../images/icons/32/gnome-dialog-warning.png")}#box.upload h1{background-image:url("../images/icons/32/gnome-mail-new.png")}#box.errorupload h1{background-image:url("../images/icons/32/gnome-dialog-error.png")}#box.progress h1{background-image:url("../images/icons/32/gnome-appointment-soon.png")}#box h1{margin:.15em 0 .7em;padding-left:41px;line-height:32px;font-size:1.6em;font-weight:700;color:#000;background-repeat:no-repeat;background-position:center left}#box p{margin:1em auto;font-size:1em;line-height:1.4em}#box p.reload{position:absolute;bottom:.7em;right:1em;margin:0;font-size:.8em;line-height:1.45em;color:#333}#box p.reload a{color:#104e8b}#box dl{margin:.3em auto .15em;color:#333}#box dt{margin-bottom:.5em}#box dd{overflow:hidden}#box ul{margin:-.4em auto 1em}#box div.control{position:absolute;bottom:.6em;right:.7em}#box div.control button{margin-left:.45em;padding:.2em .7em .2em 25px;font-size:.85em;color:#000;cursor:pointer;border:1px solid #bbb;background-color:#e2e2e2;background-repeat:no-repeat;background-position:4px center;border-radius:4px;-khtml-border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}#box div.control button.cancel{background-image:url("../images/icons/16/silk-cancel.png")}#box div.control button.confirm{background-image:url("../images/icons/16/silk-accept.png")}#box div.control button:active,#box div.control button:focus,#box div.control button:hover{border:1px solid #aaa;background-color:#ededed}#box div.navigation button{position:absolute;top:40%;padding:.1em .3em;font-size:1.3em;cursor:pointer;border:none;color:#fff;background-color:#777;opacity:.35;border-radius:6px;-khtml-border-radius:6px;-moz-border-radius:6px;-webkit-border-radius:6px}#box div.navigation button#prev{left:-31px}#box div.navigation button#next{right:-31px}#box div.navigation button[disabled]{display:none}#box div.navigation button:active,#box div.navigation button:focus,#box div.navigation button:hover{opacity:.7}#box div.close{position:absolute;top:3px;right:3px}#box div.close button.close{margin:0 0 5em 4em;border:none;background:0 0;cursor:pointer}#box div.close button.close img{font-size:.7em;color:#999;text-transform:uppercase;text-align:center}#box.progress object{display:block;margin:1.1em auto;border:1px solid #000}#dialogue iframe{display:none}#box.photo dt a{display:block;position:relative}#box.photo dt a span{display:none;position:absolute;bottom:5px;right:5px;width:24px;height:24px;background:transparent url("../images/icons/24/gnome-zoom-in.png") no-repeat center;opacity:.75}#box.photo dt a:active span,#box.photo dt a:focus span,#box.photo dt a:hover span{display:inline-block}#box.photo dt img{display:block}#box.photo dt img.loading{background:#fff url("../images/dialogue/loading.png") no-repeat center}#box.photo dt img.error_de{background:#fff url("../images/dialogue/error/de.png") no-repeat center}#box.photo dt img.error_en{background:#fff url("../images/dialogue/error/en.png") no-repeat center}#box.photo dt img.error_fr{background:#fff url("../images/dialogue/error/fr.png") no-repeat center}#box.video dt video{display:block;color:#fff;background-color:#000}#box dd a.download{float:right;margin:.4em .5em 0;font-size:.7em;color:#aaa}#box dd a.download:active,#box dd a.download:focus,#box dd a.download:hover{color:#777}#box dd span{margin-right:.2em;font-size:.85em;color:#777}#carteInteractive{position:relative;display:none;margin:20px auto 15px;padding:21px 0 0;width:580px;height:400px;overflow:hidden;border:1px solid #ddd;background:#fff url("../images/map/background.png") no-repeat left bottom;box-shadow:2px 2px 12px #ddd;-moz-box-shadow:2px 2px 12px #ddd;-webkit-box-shadow:2px 2px 12px #ddd}#carteControl{position:absolute;top:0;right:0;margin:0;padding:3px 6px 0 0;width:100%;height:17px;overflow:hidden;font-size:.8em;text-align:right;border-bottom:1px solid #aeaeae;background-color:#dedede}#mapGeoportail,#mapGoogle{position:relative;display:none;overflow:hidden;border:none;background-color:#fff}#carteFatal,#carteIntro{position:relative;top:50%;margin-top:-4.4em;padding:1px;background-color:#f0f0f0;background-color:rgba(240,240,240,.7)}#carteFatal p,#carteIntro p{margin:5px auto;padding:0;width:26em;text-align:center;color:#888}#carteFatal,#mapGeoportailInfoCell{display:none}#mapGeoportailMapCell{border:none}div.gpControlLabelClass{padding:1px 1px 0!important}#carteControl button{margin:0 5px;padding:0;font-size:1em;font-weight:700;cursor:pointer;border:none;color:#36648b;background:0 0}#carteControl button.bis{font-weight:400;color:#824681}#carteControl button:active,#carteControl button:focus,#carteControl button:hover{color:#000}#carteControl button[disabled],#carteControl button[disabled]:active,#carteControl button[disabled]:focus,#carteControl button[disabled]:hover{color:#8d8d8d;cursor:default}#carteControl button[disabled].bis,#carteControl button[disabled].bis:active,#carteControl button[disabled].bis:focus,#carteControl button[disabled].bis:hover{color:#adadad}#carteControl button[disabled].actif,#carteControl button[disabled].actif:active,#carteControl button[disabled].actif:focus,#carteControl button[disabled].actif:hover{color:#000} \ No newline at end of file diff --git a/src/zip/apijs.min.js b/src/zip/apijs.min.js index 765354e..6016c9f 100644 --- a/src/zip/apijs.min.js +++ b/src/zip/apijs.min.js @@ -1,7 +1,7 @@ /*! * Copyright 2008-2010 | Fabrice Creuzot (luigifab) - * https://www.luigifab.fr/apijs - 1.2.0 + * https://www.luigifab.fr/apijs - 1.2.1 * This program is free software, you can redistribute it or modify * it under the terms of the GNU General Public License (GPL). */ -var i18n=null,TheButton=null,TheDialogue=null,TheSlideshow=null,TheUpload=null,TheMap=null,config={version:"1.2.0",lang:"fr",debug:!0,debugkey:!1,navigator:!0,autolang:!0,dialogue:{blocks:[],hiddenPage:!1,showLoader:!0,autoplay:!0,savePhoto:!0,saveVideo:!0,videoWidth:640,videoHeight:480,imageClose:"./images/dialogue/close.png",imageUpload:"./images/dialogue/progressbar.svg",filePhoto:"./download.php",fileVideo:"./download.php",fileUpload:"./iframe.php"},slideshow:{ids:"diaporama",hiddenPage:!0,hoverload:!1},map:{width:580,height:400,initLatitude:1.9,initLongitude:46.3,imageMarker:"./images/map/marker.png",zoomInitial:5,zoomCenter:14,zoomSynchro:15}};function start(){for(var e=0,t=document.getElementsByClassName("popup");ewindow.innerWidth-150||t>window.innerHeight-100},this.setSize=function(e,t,i){var o={width:e,height:t,id:i.slice(i.lastIndexOf("/")+1,i.lastIndexOf(".")),mime:null},n={width:window.innerWidth,height:window.innerHeight},l={ogv:"video/ogg",webm:"video/webm",jpg:"image/jpeg",jpeg:"image/jpeg",tif:"image/tiff",tiff:"image/tiff",png:"image/png",svg:"image/svg+xml"};return o.mime=i.slice(i.lastIndexOf(".")+1),o.mime in l&&(o.mime=l[o.mime]),this.changeSize(e,t)&&(n.width-=150,n.height-=100,o.width>n.width?(o.height=Math.floor(o.height*(n.width/o.width)),o.width=n.width,o.height>n.height&&(o.width=Math.floor(o.width*(n.height/o.height)),o.height=n.height)):o.height>n.height&&(o.width=Math.floor(o.width*(n.height/o.height)),o.height=n.height,o.width>n.width&&(o.height=Math.floor(o.height*(n.width/o.width)),o.width=n.width))),document.getElementById("box").style.width=o.width+"px",document.getElementById("box").style.marginLeft=parseInt(-(o.width+20)/2,10)+"px",document.getElementById("box").style.marginTop=parseInt(-(o.height+50)/2,10)+"px",o},this.htmlParent=function(){this.elemA=document.createElement("div"),this.elemA.setAttribute("id","dialogue"),this.elemB=document.createElement("div"),this.elemB.setAttribute("id","box"),this.elemB.setAttribute("class",this.dialogue),this.elemA.appendChild(this.elemB),document.getElementsByTagName("body")[0].appendChild(this.elemA)},this.htmlTitle=function(e){this.elemA=document.createElement("h1"),this.elemA.appendChild(document.createTextNode(e)),document.getElementById("box").appendChild(this.elemA)},this.htmlParagraph=function(e){var t=new BBcode;t.init("box"),t.parse(e)},this.htmlButtonOk=function(){this.elemA=document.createElement("div"),this.elemA.setAttribute("class","control"),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("class","confirm"),this.elemB.setAttribute("onclick","TheDialogue.actionClose(true);"),this.elemB.appendChild(document.createTextNode(i18n.translate("buttonOk"))),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA),document.getElementById("box").lastChild.lastChild.focus()},this.htmlButtonConfirm=function(e){this.elemA=document.createElement("div"),this.elemA.setAttribute("class","control"),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("class","cancel"),this.elemB.setAttribute("onclick","TheDialogue.actionClose(true);"),this.elemB.appendChild(document.createTextNode(i18n.translate("buttonCancel"))),this.elemA.appendChild(this.elemB),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("class","confirm"),this.elemB.setAttribute("onclick","TheDialogue.actionConfirm('"+e+"');"),this.elemB.appendChild(document.createTextNode(i18n.translate("buttonConfirm"))),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA),(document.getElementById("formUpload")?document.getElementById("formUpload").firstChild.firstChild:document.getElementById("box").lastChild.lastChild).focus()},this.htmlButtonNavigation=function(){this.elemA=document.createElement("div"),this.elemA.setAttribute("class","navigation"),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("disabled","disabled"),this.elemB.setAttribute("onclick","TheSlideshow.actionPrev();"),this.elemB.setAttribute("id","prev"),this.elemB.appendChild(document.createTextNode("«")),this.elemA.appendChild(this.elemB),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("disabled","disabled"),this.elemB.setAttribute("onclick","TheSlideshow.actionNext();"),this.elemB.setAttribute("id","next"),this.elemB.appendChild(document.createTextNode("»")),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA)},this.htmlButtonClose=function(){this.elemA=document.createElement("div"),this.elemA.setAttribute("class","close"),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("class","close"),this.elemB.setAttribute("onclick","TheDialogue.actionClose(true);"),this.elemC=document.createElement("img"),this.elemC.setAttribute("src",config.dialogue.imageClose),this.elemC.setAttribute("width","60"),this.elemC.setAttribute("height","22"),this.elemC.setAttribute("alt",i18n.translate("buttonClose")),this.elemB.appendChild(this.elemC),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA)},this.htmlLinkReload=function(){this.elemA=document.createElement("p"),this.elemA.setAttribute("class","reload"),this.elemA.appendChild(document.createTextNode(i18n.translate("operationTooLong"))),this.elemB=document.createElement("a"),this.elemB.setAttribute("href",document.URL),this.elemB.appendChild(document.createTextNode(i18n.translate("reloadLink"))),this.elemA.appendChild(this.elemB),this.elemA.appendChild(document.createTextNode(".")),this.elemB=document.createElement("br"),this.elemA.appendChild(this.elemB),this.elemA.appendChild(document.createTextNode(i18n.translate("warningLostChange"))),document.getElementById("box").appendChild(this.elemA)},this.htmlFormUpload=function(e,t){this.elemA=document.createElement("iframe"),this.elemA.setAttribute("id","iframeUpload"),this.elemA.setAttribute("name","iframeUpload_"+t),config.navigator&&this.elemA.setAttribute("src",config.dialogue.imageUpload),document.getElementsByTagName("body")[0].appendChild(this.elemA),this.elemA=document.createElement("form"),this.elemA.setAttribute("id","formUpload"),this.elemA.setAttribute("action",config.dialogue.fileUpload),this.elemA.setAttribute("method","post"),this.elemA.setAttribute("enctype","multipart/form-data"),this.elemA.setAttribute("target","iframeUpload_"+t),this.elemB=document.createElement("p"),this.elemC=document.createElement("input"),this.elemC.setAttribute("type","file"),this.elemC.setAttribute("name",e),this.elemC.setAttribute("onchange","document.getElementById('box').lastChild.lastChild.focus();"),this.elemB.appendChild(this.elemC),this.elemC=document.createElement("input"),this.elemC.setAttribute("type","hidden"),this.elemC.setAttribute("name","APC_UPLOAD_PROGRESS"),this.elemC.setAttribute("value",t),this.elemB.appendChild(this.elemC),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA)},this.htmlProgressBar=function(){this.elemA=document.createElement("object"),this.elemA.setAttribute("id","progressbar"),this.elemA.setAttribute("type","image/svg+xml"),this.elemA.setAttribute("data",config.dialogue.imageUpload),this.elemA.setAttribute("width","300"),this.elemA.setAttribute("height","17"),document.getElementById("box").appendChild(this.elemA)},this.htmlPhoto=function(e,t,i,o,n,l){var a=this.setSize(e,t,i);this.elemA=document.createElement("dl"),this.elemB=document.createElement("dt"),this.changeSize(e,t)?(this.elemC=document.createElement("a"),this.elemC.setAttribute("href",i),this.elemC.setAttribute("onclick","window.open(this.href); this.blur(); return false;"),this.elemD=document.createElement("img"),this.elemD.setAttribute("width",a.width),this.elemD.setAttribute("height",a.height),this.elemD.setAttribute("class","loading resized"),this.elemD.setAttribute("id","topho"),this.elemC.appendChild(this.elemD),this.elemC.appendChild(document.createElement("span"))):(this.elemC=document.createElement("img"),this.elemC.setAttribute("width",a.width),this.elemC.setAttribute("height",a.height),this.elemC.setAttribute("class","loading"),this.elemC.setAttribute("id","topho")),this.elemB.appendChild(this.elemC),this.elemA.appendChild(this.elemB),this.elemB=document.createElement("dd"),"false"===o&&"false"===n||(this.elemC=document.createElement("span"),"false"!==o&&"auto"!==o&&"false"!==n?this.elemC.appendChild(document.createTextNode(o+" ("+n+")")):"false"!==o&&"auto"!==o?this.elemC.appendChild(document.createTextNode(o)):"auto"===o&&"false"!==n?this.elemC.appendChild(document.createTextNode(a.id+" ("+n+")")):"auto"===o?this.elemC.appendChild(document.createTextNode(a.id)):"false"!==n&&this.elemC.appendChild(document.createTextNode("("+n+")")),this.elemB.appendChild(this.elemC)),this.elemB.appendChild(document.createTextNode(" "+l+" ")),config.dialogue.savePhoto&&(this.elemC=document.createElement("a"),this.elemC.setAttribute("href",config.dialogue.filePhoto+"?id="+a.id),this.elemC.setAttribute("type",a.mime),this.elemC.setAttribute("class","download"),this.elemC.appendChild(document.createTextNode(i18n.translate("downloadLink"))),this.elemB.appendChild(this.elemC)),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA),config.navigator&&config.dialogue.showLoader?(this.image=new Image(e,t),this.image.src=i,this.image.addEventListener("load",function(){document.getElementById("topho")&&(document.getElementById("topho").removeAttribute("class"),document.getElementById("topho").setAttribute("src",TheDialogue.image.src))},!1),this.image.addEventListener("error",function(){var e;document.getElementById("topho")&&(document.getElementById("topho").getAttribute("class").match(/resized/)&&(e=document.getElementById("topho").cloneNode(!0),document.getElementById("topho").parentNode.parentNode.removeChild(document.getElementById("topho").parentNode),document.getElementById("box").firstChild.firstChild.appendChild(e)),config.dialogue.savePhoto&&document.getElementById("box").firstChild.lastChild.removeChild(document.getElementById("box").firstChild.lastChild.lastChild),document.getElementById("topho").setAttribute("class","error_"+config.lang))},!1)):(document.getElementById("topho").removeAttribute("class"),document.getElementById("topho").setAttribute("src",i))},this.htmlVideo=function(e,t,i,o){var n=this.setSize(config.dialogue.videoWidth,config.dialogue.videoHeight,e);this.elemA=document.createElement("dl"),this.elemB=document.createElement("dt"),this.elemC=document.createElement("video"),this.elemC.setAttribute("src",e),this.elemC.setAttribute("width",n.width),this.elemC.setAttribute("height",n.height),this.elemC.setAttribute("controls","controls"),config.dialogue.autoplay&&this.elemC.setAttribute("autoplay","autoplay"),this.elemB.appendChild(this.elemC),this.elemA.appendChild(this.elemB),this.elemB=document.createElement("dd"),"false"===t&&"false"===i||(this.elemC=document.createElement("span"),"false"!==t&&"auto"!==t&&"false"!==i?this.elemC.appendChild(document.createTextNode(t+" ("+i+")")):"false"!==t&&"auto"!==t?this.elemC.appendChild(document.createTextNode(t)):"auto"===t&&"false"!==i?this.elemC.appendChild(document.createTextNode(n.id+" ("+i+")")):"auto"===t?this.elemC.appendChild(document.createTextNode(n.id)):"false"!==i&&this.elemC.appendChild(document.createTextNode("("+i+")")),this.elemB.appendChild(this.elemC)),this.elemB.appendChild(document.createTextNode(" "+o+" ")),config.dialogue.saveVideo&&(this.elemC=document.createElement("a"),this.elemC.setAttribute("href",config.dialogue.fileVideo+"?id="+n.id),this.elemC.setAttribute("type",n.mime),this.elemC.setAttribute("class","download"),this.elemC.appendChild(document.createTextNode(i18n.translate("downloadLink"))),this.elemB.appendChild(this.elemC)),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA)}}function Slideshow(){this.media=null,this.totals=null,this.presentation=null,this.init=function(){this.media={album:null,number:null,first:null,prev:null,next:null,last:null},this.totals=[],this.presentation=[];for(var e=null,t=0,i=0;null!==document.getElementById(config.slideshow.ids+"."+t);t++)for(e=config.slideshow.ids+"."+t+".999",this.presentation[t]=!!document.getElementById(e)&&0,document.getElementById(e)&&(config.navigator?document.getElementById(e).addEventListener("click",TheSlideshow.showMedia,!1):document.getElementById(e).setAttribute("onclick","TheSlideshow.showMedia(this.getAttribute('id')); return false;")),i=0;null!==document.getElementById(config.slideshow.ids+"."+t+"."+i);i++)e=config.slideshow.ids+"."+t+"."+i,config.navigator?config.slideshow.hoverload&&!1!==this.presentation[t]?(document.getElementById(e).addEventListener("click",TheSlideshow.showMedia,!1),document.getElementById(e).addEventListener("mouseover",TheSlideshow.showMedia,!1)):document.getElementById(e).addEventListener("click",TheSlideshow.showMedia,!1):config.slideshow.hoverload&&!1!==this.presentation[t]?(document.getElementById(e).setAttribute("onclick","TheSlideshow.showMedia(this.getAttribute('id')); return false;"),document.getElementById(e).setAttribute("onmouseover","TheSlideshow.showMedia(this.getAttribute('id')); return false;")):document.getElementById(e).setAttribute("onclick","TheSlideshow.showMedia(this.getAttribute('id')); return false;"),this.totals[t]=i},this.showMedia=function(e){var t={id:null,url:null,alt:null,num:0,name:null,date:null,legend:null,width:null,height:null},i=null,i=("string"!=typeof e?(e.preventDefault(),t.id=this.getAttribute("id"),t.url=this.getAttribute("href"),t.alt=this.firstChild.getAttribute("alt").split("|")):(t.id=e,t.url=document.getElementById(t.id).getAttribute("href"),t.alt=document.getElementById(t.id).firstChild.getAttribute("alt").split("|")),t.id.split("."));if(t.album=parseInt(i[1],10),t.number=parseInt(i[2],10),!1!==TheSlideshow.presentation[t.album]&&(1window.innerWidth-150||t>window.innerHeight-100},this.setSize=function(e,t,i){var o={width:e,height:t,id:i.slice(i.lastIndexOf("/")+1,i.lastIndexOf(".")),mime:null},n={width:window.innerWidth,height:window.innerHeight},l={ogv:"video/ogg",webm:"video/webm",jpg:"image/jpeg",jpeg:"image/jpeg",tif:"image/tiff",tiff:"image/tiff",png:"image/png",svg:"image/svg+xml"};return o.mime=i.slice(i.lastIndexOf(".")+1),o.mime in l&&(o.mime=l[o.mime]),this.changeSize(e,t)&&(n.width-=150,n.height-=100,o.width>n.width?(o.height=Math.floor(o.height*(n.width/o.width)),o.width=n.width,o.height>n.height&&(o.width=Math.floor(o.width*(n.height/o.height)),o.height=n.height)):o.height>n.height&&(o.width=Math.floor(o.width*(n.height/o.height)),o.height=n.height,o.width>n.width&&(o.height=Math.floor(o.height*(n.width/o.width)),o.width=n.width))),document.getElementById("box").style.width=o.width+"px",document.getElementById("box").style.marginLeft=parseInt(-(o.width+20)/2,10)+"px",document.getElementById("box").style.marginTop=parseInt(-(o.height+50)/2,10)+"px",o},this.htmlParent=function(){this.elemA=document.createElement("div"),this.elemA.setAttribute("id","dialogue"),this.elemB=document.createElement("div"),this.elemB.setAttribute("id","box"),this.elemB.setAttribute("class",this.dialogue),this.elemA.appendChild(this.elemB),document.getElementsByTagName("body")[0].appendChild(this.elemA)},this.htmlTitle=function(e){this.elemA=document.createElement("h1"),this.elemA.appendChild(document.createTextNode(e)),document.getElementById("box").appendChild(this.elemA)},this.htmlParagraph=function(e){var t=new BBcode;t.init("box"),t.parse(e)},this.htmlButtonOk=function(){this.elemA=document.createElement("div"),this.elemA.setAttribute("class","control"),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("class","confirm"),this.elemB.setAttribute("onclick","TheDialogue.actionClose(true);"),this.elemB.appendChild(document.createTextNode(i18n.translate("buttonOk"))),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA),document.getElementById("box").lastChild.lastChild.focus()},this.htmlButtonConfirm=function(e){this.elemA=document.createElement("div"),this.elemA.setAttribute("class","control"),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("class","cancel"),this.elemB.setAttribute("onclick","TheDialogue.actionClose(true);"),this.elemB.appendChild(document.createTextNode(i18n.translate("buttonCancel"))),this.elemA.appendChild(this.elemB),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("class","confirm"),this.elemB.setAttribute("onclick","TheDialogue.actionConfirm('"+e+"');"),this.elemB.appendChild(document.createTextNode(i18n.translate("buttonConfirm"))),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA),(document.getElementById("formUpload")?document.getElementById("formUpload").firstChild.firstChild:document.getElementById("box").lastChild.lastChild).focus()},this.htmlButtonNavigation=function(){this.elemA=document.createElement("div"),this.elemA.setAttribute("class","navigation"),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("disabled","disabled"),this.elemB.setAttribute("onclick","TheSlideshow.actionPrev();"),this.elemB.setAttribute("id","prev"),this.elemB.appendChild(document.createTextNode("«")),this.elemA.appendChild(this.elemB),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("disabled","disabled"),this.elemB.setAttribute("onclick","TheSlideshow.actionNext();"),this.elemB.setAttribute("id","next"),this.elemB.appendChild(document.createTextNode("»")),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA)},this.htmlButtonClose=function(){this.elemA=document.createElement("div"),this.elemA.setAttribute("class","close"),this.elemB=document.createElement("button"),this.elemB.setAttribute("type","button"),this.elemB.setAttribute("class","close"),this.elemB.setAttribute("onclick","TheDialogue.actionClose(true);"),this.elemC=document.createElement("img"),this.elemC.setAttribute("src",config.dialogue.imageClose),this.elemC.setAttribute("width","60"),this.elemC.setAttribute("height","22"),this.elemC.setAttribute("alt",i18n.translate("buttonClose")),this.elemB.appendChild(this.elemC),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA)},this.htmlLinkReload=function(){this.elemA=document.createElement("p"),this.elemA.setAttribute("class","reload"),this.elemA.appendChild(document.createTextNode(i18n.translate("operationTooLong"))),this.elemB=document.createElement("a"),this.elemB.setAttribute("href",document.URL),this.elemB.appendChild(document.createTextNode(i18n.translate("reloadLink"))),this.elemA.appendChild(this.elemB),this.elemA.appendChild(document.createTextNode(".")),this.elemB=document.createElement("br"),this.elemA.appendChild(this.elemB),this.elemA.appendChild(document.createTextNode(i18n.translate("warningLostChange"))),document.getElementById("box").appendChild(this.elemA)},this.htmlFormUpload=function(e,t){this.elemA=document.createElement("iframe"),this.elemA.setAttribute("id","iframeUpload"),this.elemA.setAttribute("name","iframeUpload_"+t),config.navigator&&this.elemA.setAttribute("src",config.dialogue.imageUpload),document.getElementsByTagName("body")[0].appendChild(this.elemA),this.elemA=document.createElement("form"),this.elemA.setAttribute("id","formUpload"),this.elemA.setAttribute("action",config.dialogue.fileUpload),this.elemA.setAttribute("method","post"),this.elemA.setAttribute("enctype","multipart/form-data"),this.elemA.setAttribute("target","iframeUpload_"+t),this.elemB=document.createElement("p"),this.elemC=document.createElement("input"),this.elemC.setAttribute("type","file"),this.elemC.setAttribute("name",e),this.elemC.setAttribute("onchange","document.getElementById('box').lastChild.lastChild.focus();"),this.elemB.appendChild(this.elemC),this.elemC=document.createElement("input"),this.elemC.setAttribute("type","hidden"),this.elemC.setAttribute("name","APC_UPLOAD_PROGRESS"),this.elemC.setAttribute("value",t),this.elemB.appendChild(this.elemC),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA)},this.htmlProgressBar=function(){this.elemA=document.createElement("object"),this.elemA.setAttribute("id","progressbar"),this.elemA.setAttribute("type","image/svg+xml"),this.elemA.setAttribute("data",config.dialogue.imageUpload),this.elemA.setAttribute("width","300"),this.elemA.setAttribute("height","17"),document.getElementById("box").appendChild(this.elemA)},this.htmlPhoto=function(e,t,i,o,n,l){var a=this.setSize(e,t,i);this.elemA=document.createElement("dl"),this.elemB=document.createElement("dt"),this.changeSize(e,t)?(this.elemC=document.createElement("a"),this.elemC.setAttribute("href",i),this.elemC.setAttribute("onclick","window.open(this.href); this.blur(); return false;"),this.elemD=document.createElement("img"),this.elemD.setAttribute("width",a.width),this.elemD.setAttribute("height",a.height),this.elemD.setAttribute("class","loading resized"),this.elemD.setAttribute("id","topho"),this.elemC.appendChild(this.elemD),this.elemC.appendChild(document.createElement("span"))):(this.elemC=document.createElement("img"),this.elemC.setAttribute("width",a.width),this.elemC.setAttribute("height",a.height),this.elemC.setAttribute("class","loading"),this.elemC.setAttribute("id","topho")),this.elemB.appendChild(this.elemC),this.elemA.appendChild(this.elemB),this.elemB=document.createElement("dd"),"false"===o&&"false"===n||(this.elemC=document.createElement("span"),"false"!==o&&"auto"!==o&&"false"!==n?this.elemC.appendChild(document.createTextNode(o+" ("+n+")")):"false"!==o&&"auto"!==o?this.elemC.appendChild(document.createTextNode(o)):"auto"===o&&"false"!==n?this.elemC.appendChild(document.createTextNode(a.id+" ("+n+")")):"auto"===o?this.elemC.appendChild(document.createTextNode(a.id)):"false"!==n&&this.elemC.appendChild(document.createTextNode("("+n+")")),this.elemB.appendChild(this.elemC)),this.elemB.appendChild(document.createTextNode(" "+l+" ")),config.dialogue.savePhoto&&(this.elemC=document.createElement("a"),this.elemC.setAttribute("href",config.dialogue.filePhoto+"?id="+a.id),this.elemC.setAttribute("type",a.mime),this.elemC.setAttribute("class","download"),this.elemC.appendChild(document.createTextNode(i18n.translate("downloadLink"))),this.elemB.appendChild(this.elemC)),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA),config.navigator&&config.dialogue.showLoader?(this.image=new Image(e,t),this.image.src=i,this.image.addEventListener("load",function(){document.getElementById("topho")&&(document.getElementById("topho").removeAttribute("class"),document.getElementById("topho").setAttribute("src",TheDialogue.image.src))},!1),this.image.addEventListener("error",function(){var e;document.getElementById("topho")&&(document.getElementById("topho").getAttribute("class").match(/resized/)&&(e=document.getElementById("topho").cloneNode(!0),document.getElementById("topho").parentNode.parentNode.removeChild(document.getElementById("topho").parentNode),document.getElementById("box").firstChild.firstChild.appendChild(e)),config.dialogue.savePhoto&&document.getElementById("box").firstChild.lastChild.removeChild(document.getElementById("box").firstChild.lastChild.lastChild),document.getElementById("topho").setAttribute("class","error_"+config.lang))},!1)):(document.getElementById("topho").removeAttribute("class"),document.getElementById("topho").setAttribute("src",i))},this.htmlVideo=function(e,t,i,o){var n=this.setSize(config.dialogue.videoWidth,config.dialogue.videoHeight,e);this.elemA=document.createElement("dl"),this.elemB=document.createElement("dt"),this.elemC=document.createElement("video"),this.elemC.setAttribute("src",e),this.elemC.setAttribute("width",n.width),this.elemC.setAttribute("height",n.height),this.elemC.setAttribute("controls","controls"),config.dialogue.autoplay&&this.elemC.setAttribute("autoplay","autoplay"),this.elemB.appendChild(this.elemC),this.elemA.appendChild(this.elemB),this.elemB=document.createElement("dd"),"false"===t&&"false"===i||(this.elemC=document.createElement("span"),"false"!==t&&"auto"!==t&&"false"!==i?this.elemC.appendChild(document.createTextNode(t+" ("+i+")")):"false"!==t&&"auto"!==t?this.elemC.appendChild(document.createTextNode(t)):"auto"===t&&"false"!==i?this.elemC.appendChild(document.createTextNode(n.id+" ("+i+")")):"auto"===t?this.elemC.appendChild(document.createTextNode(n.id)):"false"!==i&&this.elemC.appendChild(document.createTextNode("("+i+")")),this.elemB.appendChild(this.elemC)),this.elemB.appendChild(document.createTextNode(" "+o+" ")),config.dialogue.saveVideo&&(this.elemC=document.createElement("a"),this.elemC.setAttribute("href",config.dialogue.fileVideo+"?id="+n.id),this.elemC.setAttribute("type",n.mime),this.elemC.setAttribute("class","download"),this.elemC.appendChild(document.createTextNode(i18n.translate("downloadLink"))),this.elemB.appendChild(this.elemC)),this.elemA.appendChild(this.elemB),document.getElementById("box").appendChild(this.elemA)}}function Slideshow(){this.media=null,this.totals=null,this.presentation=null,this.init=function(){this.media={album:null,number:null,first:null,prev:null,next:null,last:null},this.totals=[],this.presentation=[];for(var e=null,t=0,i=0;null!==document.getElementById(config.slideshow.ids+"."+t);t++)for(e=config.slideshow.ids+"."+t+".999",this.presentation[t]=!!document.getElementById(e)&&0,document.getElementById(e)&&(config.navigator?document.getElementById(e).addEventListener("click",TheSlideshow.showMedia,!1):document.getElementById(e).setAttribute("onclick","TheSlideshow.showMedia(this.getAttribute('id')); return false;")),i=0;null!==document.getElementById(config.slideshow.ids+"."+t+"."+i);i++)e=config.slideshow.ids+"."+t+"."+i,config.navigator?config.slideshow.hoverload&&!1!==this.presentation[t]?(document.getElementById(e).addEventListener("click",TheSlideshow.showMedia,!1),document.getElementById(e).addEventListener("mouseover",TheSlideshow.showMedia,!1)):document.getElementById(e).addEventListener("click",TheSlideshow.showMedia,!1):config.slideshow.hoverload&&!1!==this.presentation[t]?(document.getElementById(e).setAttribute("onclick","TheSlideshow.showMedia(this.getAttribute('id')); return false;"),document.getElementById(e).setAttribute("onmouseover","TheSlideshow.showMedia(this.getAttribute('id')); return false;")):document.getElementById(e).setAttribute("onclick","TheSlideshow.showMedia(this.getAttribute('id')); return false;"),this.totals[t]=i},this.showMedia=function(e){var t={id:null,url:null,alt:null,num:0,name:null,date:null,legend:null,width:null,height:null},i=null,i=("string"!=typeof e?(e.preventDefault(),t.id=this.getAttribute("id"),t.url=this.getAttribute("href"),t.alt=this.firstChild.getAttribute("alt").split("|")):(t.id=e,t.url=document.getElementById(t.id).getAttribute("href"),t.alt=document.getElementById(t.id).firstChild.getAttribute("alt").split("|")),t.id.split("."));if(t.album=parseInt(i[1],10),t.number=parseInt(i[2],10),!1!==TheSlideshow.presentation[t.album]&&(1