function initSlides() {
	objectSlideContainer=document.getElementById('slideContainer');
	objectCover=document.getElementById('cover');
	objectSlide=document.getElementById('slide');
}


function showImage(id){
	 if (document.height && window.scrollMaxY){
		newHeight = document.body.scrollHeight + window.scrollMaxY;
		objectCover.style.height = newHeight+'px';
	} else {
		objectCover.style.height = document.body.scrollHeight+'px';
	}
  
	next = id+1;
	previous = id-1;
	if (previous == -1){
		previous = 0;
	}
	if (next == arrayCount){
		next = next-1;
	}
	objectSlide.innerHTML="<table border='0' cellpadding='0' cellspacing='0'><tr><td style='border: 1px solid #7F98B2;'><img src='work/large/"+imageArray[id]+"' /></td></tr><tr><td style='padding:10px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-color: #7F98B2; border-bottom-color: #7F98B2; border-left-color: #7F98B2;'><table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td><a href='javascript: hideImage()'>Close Window</a></td><td width='50'><a href='javascript:showImage("+previous+");'>&lt; Prev</a></td><td width='50' align='right'><a href='javascript:showImage("+next+");'>Next &gt;</a></td></tr></table></td></tr></table>";
	objectCover.style.display = 'block';
	objectSlideContainer.style.display = 'block';
	//alert (imageArray[id]);
}

function hideImage(){
	objectCover.style.display = 'none';
	objectSlideContainer.style.display = 'none';
}
