var ht2 = 450;
var c = 2;



function chg (num) {

ht2 = ih[num];

document.cov.style.visibility = "hidden";

if ( typeof( window.innerHeight ) == 'number' ) {
ht1 = window.innerHeight - 26;
  } else {
ht1 = document.documentElement.clientHeight - 26;
}

document.getElementById("b2").innerHTML = im[num];

if (ht2 > ht1) 
{document.cov.height = ht1;}
 else {document.cov.height = ht2;}

document.cov.src = gal + "/" + im[num] + ".jpg";

document.cov.style.visibility = "visible";

c = 0;
}

function prvovr (imt) {
document.prv.src = imt;
}


function prvout () {
document.prv.src = 'im/logo1.gif';
}

function ovr (num) {
document.getElementById('b1').innerHTML = im[num];
}

function out () {
document.getElementById('b1').innerHTML = "";
}

function rsze () {
if ( c == 0 ) {
c = 1;
document.cov.height = ht2;
}
else if ( c == 1 ) {
c = 0;
document.cov.height = ht1;
}

}