
var AdditionalSiteHeight = 40;

function ZoomImage(img){
document.getElementById('PicZoomLayon').style.height = document.body.clientHeight + AdditionalSiteHeight + 'px';
document.getElementById('PicZoomLayon').style.filter='Alpha(Opacity=0)';
document.getElementById('PicZoomLayon').style.display='';
document.getElementById('ZoomPic').src = img;
if (document.all){
var fromthetop = (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
document.getElementById('PicZoom').style.top = fromthetop + 'px';
} else {
document.getElementById('PicZoom').style.top = window.pageYOffset + 'px';}
document.getElementById('PicZoom').style.display='';

var timeamount = 0;
var mspercent = 5;
var timeinc = 1;
var opacinc = 1;
var maxopacity = 80;
for (var opacity = 0; opacity <= maxopacity; opacity=opacity+opacinc){
timeamount=timeamount+timeinc;
setTimeout("document.getElementById('PicZoomLayon').style.filter='Alpha(Opacity='+"+opacity+"+')';",timeamount*mspercent)
}}

function HideImage() {
document.getElementById('PicZoom').style.display='none';
var timeamount = 0;
var mspercent = 5;
var timeinc = 1;
var opacinc = 1;
var maxopacity = 80;
for (var opacity = maxopacity; opacity >= 0; opacity=opacity-opacinc){
timeamount=timeamount+timeinc;
setTimeout("document.getElementById('PicZoomLayon').style.filter='Alpha(Opacity='+"+opacity+"+')';",timeamount*mspercent)
}
setTimeout("document.getElementById('PicZoomLayon').style.display='none';",timeamount*mspercent)
setTimeout("document.getElementById('ZoomPic').src = '';",timeamount*mspercent)
}
