var od=1;
var po;
var max=0;
var imgCont = new Array();
var imgComm = new Array();
var imgHead = new Array();
var globalmax=4;
var root="/";
var apendix="1";
function defFoto() {
imgCont[1]=["/foto/uvod1.jpg","1","/foto/uvod1.jpg"];
imgComm[1]='';
imgCont[2]=["/foto/dsc_6334.jpg","2","/foto/dsc_6334.jpg"];
imgComm[2]='';
imgCont[3]=["/foto/fasank.jpg","3","/foto/fasank.jpg"];
imgComm[3]='';
imgHead[1]= "/head/top-foto1.jpg";
imgHead[2]= "/head/top-foto1.jpg";
imgHead[3]= "/head/top-foto6.jpg";
imgHead[4]= "/head/top-foto5.jpg";
max = imgCont.length - 1;
if (max > 0) {
po = (max > globalmax)?globalmax : max;
html = '
';
for (var i=od; i<=po; i++) {
html += '';
}
if (max > globalmax) {
html += '';
}
else {
html += '';
}
document.getElementById("right_content").innerHTML=html;
var thumb = new Array();
var thumbb = new Array();
for (var i=1; i';
document.getElementById('txt').style.display = "none";
document.getElementById('content_foto').style.display = "block";
document.getElementById('comment').style.display = "block";
document.getElementById('comment').innerHTML = imgComm[i];
var elm = document.getElementById('comment');
add_target(elm);
}
function backup(elm) {
if (elm == "+") {od++; po++}
if (elm == "-") {od--; po--}
html = '';
if (od == 1) {
html += '';
}
else {
html += '';
}
for (var i=od; i<=po; i++) {
html += '';
}
if (po == max) {
html += '';
}
else {
html += '';
}
document.getElementById("right_content").innerHTML=html;
}