function decreasephoto() {

current = current-1;

if (current < 1) current = 1;

document['mainphoto'].src='images/matalbumphoto'+current+'.jpg';

}


function increasephoto() {

current = current+1;

if (current > total) current = total;

document['mainphoto'].src='images/matalbumphoto'+current+'.jpg';

}

function lngdecreasephoto() {

current = current-1;

if (current < 1) current = total;

document['mainphoto'].src='images/lngalbumphoto'+current+'.jpg';

}


function lngincreasephoto() {

current = current+1;

if (current > total) current = 1;

document['mainphoto'].src='images/lngalbumphoto'+current+'.jpg';

}

function serdecreasephoto() {

current = current-1;

if (current < 1) current = total;

document['mainphoto'].src='images/seralbumphoto'+current+'.jpg';

}


function serincreasephoto() {

current = current+1;

if (current > total) current = 1;

document['mainphoto'].src='images/seralbumphoto'+current+'.jpg';

}
function noclick(e) {

if (document.all) {

if (event.button==2||event.button==3) {

if (event.srcElement.tagName=="IMG"){

alert("Reproduction of images prohibited.");

return false;

}}}

else if (document.layers) {

if (e.which == 3) {

alert(returntrouble);

return false;

}}

else if (document.getElementById){

if (e.which==3&&e.target.tagName=="IMG"){

alert("Reproduction of images prohibited.")

return false

}}}



function associateimages(){

for(i=0;i<document.images.length;i++)

document.images[i].onmousedown=noclick;

}



function PleaseDoNotReproduceImages(){

if (document.all)

document.onmousedown=noclick

else if (document.getElementById)

document.onmouseup=noclick

else if (document.layers)

associateimages()

}
