<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#imagebox{
position:absolute;
top:0px;
left:0px;
}
</style>
</head>
<body>
<div id="imagebox">
<img src="kl/2_thumb.jpg" />
</div>
<script type="text/javascript">
setImageBox();
function setImageBox(){
floatDivWidth = document.getElementById("imagebox").offsetWidth;
floatDivHeight = document.getElementById("imagebox").offsetHeight;
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;
}
}
}
if (typeof (window.innerWidth) == 'number') {
windowWidth = window.innerWidth;
}
else {
if (document.documentElement && document.documentElement.clientWidth) {
windowWidth = document.documentElement.clientWidth;
}
else {
if (document.body && document.body.clientWidth) {
windowWidth = document.body.clientWidth;
}
}
}
var floatDivLeft = ((windowWidth - floatDivWidth)/2);
var floatDivTop = ((windowHeight - floatDivHeight)/2);
document.getElementById("imagebox").style.top = floatDivTop + "px";
document.getElementById("imagebox").style.left = floatDivLeft + "px";
}
</script>
</body>
</html>