/* Get page width dimension */
function findLivePageWidth() {
	if (window.innerWidth)
		return window.innerWidth;
	if (document.body.clientWidth)
		return document.body.clientWidth;
	return (null);
}

/* Get page height dimension */
function findLivePageHeight() {
	if (window.innerHeight)
		return window.innerHeight;
	if (document.body.clientHeight)
		return document.body.clientHeight;
	return (null);
}


/* ######## body load call ######## */
/* initialize common elements */
function initCommonPage(thispage) {

	// get div info
	// slide
	objectSlide=document.getElementById('slide');
	
	// cover
	objectCover=document.getElementById('cover');
	
	// content div per page body onload
	objectHTMLBoxContent=document.getElementById(thispage);
	
	// etsy store lightbox
	objectHTMLBoxEtsy=document.getElementById('etsyStore');
	
	// controls the min-height of the page
	livePageHeight = findLivePageHeight();
	//minpage = (livePageHeight - 55);
	objectHTMLBoxContent.style.minHeight = livePageHeight + 'px';
	objectCover.style.height = livePageHeight + 'px';
}

