function show_shadowbox()
{
ImageSliderPause();
var obj = this;
var minWid = 200; var maxWid = parseInt(this.imgWidth) + 20; var minHit = 200; var maxHit = parseInt(this.imgHeight) + 20;
imageBoxContainer = document.getElementById("lightboxImageContainer");
imagebox = document.getElementById("lightboxImage");
var viewportwidth = viewport_width();
var viewportheight = viewport_height();
var bodyheight = document_height();
var bodywidth = document_width();
var thelightbox = document.getElementById("lightbox");
thelightbox.style.display = "block";

setOpacity(thelightbox,0);

thelightbox.style.width = viewportwidth+"px";
	if (bodyheight > viewportheight) {
	thelightbox.style.height = bodyheight+20+"px";
	}
	else {
	thelightbox.style.height = viewportheight+"px";
	}
fadeIn(thelightbox,20,25);
imageBoxContainer.style.display = "block";
setTimeout(function(){animateImageBox(imagebox,minWid,maxWid,minHit,maxHit,obj);},500);
}

function hide_imagebox() {
var thelightbox = document.getElementById("lightbox");
fadeOut(thelightbox,20,25);
}

function animateImageBox(elem,minWid,maxWid,minHit,maxHit,obj) {
changeWidth(elem,minWid,maxWid,50,5,0.5);
setTimeout(function(){changeHeight(elem,minHit,maxHit,30,5,0.5,obj);},1000);

}


