function PlaceImages() {
	var fbFooter = document.getElementById('fbFooter');
	
	var windowHeight = 0;
	windowHeight = WindowHeight();

	var windowWidth = 0;
	windowWidth = WindowWidth();

	var logo = document.getElementById('logo');
	logo.style.display = 'block';
	logo.style.top = '10px';
	logo.style.left = (((windowWidth - flippingBook.settings.bookWidth) / 2) - logo.offsetWidth - 8) + "px";

	var arrow = document.getElementById('arrow');
	arrow.style.display = 'block';
	arrow.style.top = (windowHeight - fbFooter.offsetHeight - arrow.offsetHeight + 15) + "px";
	arrow.style.left = (windowWidth - arrow.offsetWidth - 15) + "px";

	var imgleft = document.getElementById('left_click');
	imgleft.style.display = 'block';
	imgleft.style.top = ((windowHeight - fbFooter.offsetHeight - imgleft.offsetHeight) / 2) + "px";
	imgleft.style.left = (((windowWidth - flippingBook.settings.bookWidth) / 2) - imgleft.offsetWidth - 7) + "px";
	
	var imgright = document.getElementById('right_click');
	imgright.style.display = 'block';
	imgright.style.top = ((windowHeight - fbFooter.offsetHeight - imgright.offsetHeight) / 2) + "px";
	imgright.style.left = (flippingBook.settings.bookWidth + ((windowWidth - flippingBook.settings.bookWidth) / 2) + 7) + "px";
}

function WindowHeight() {
	if (typeof(window.innerHeight) == 'number' ) {
		windowHeight=window.innerHeight;
	} else {
		if (document.documentElement &&	document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		} else {
			if (document.body&&document.body.clientHeight) {
				windowHeight=document.body.clientHeight;
			}
		}
	}
	
	return windowHeight;
}

function WindowWidth() {
	if (typeof(window.innerWidth) == 'number' ) {
		//21 offset for firefox
		windowWidth=window.innerWidth - 19;
	} else {
		if (document.documentElement &&	document.documentElement.clientWidth) {
			windowWidth = document.documentElement.clientWidth - 19;
		} else if (document.body && document.body.clientWidth) {
			windowWidth=document.body.clientWidth;
		}
	}
	
	return windowWidth;
}

