//var objId, imgWidth, imgHeight;
//var objId = document.getElementById('img');
var imgWidth, imgHeight;
if (document.all) {
	imgWidth = document.all("img").width + 34;
	imgHeight = document.all("img").height + 100;
} else if (document.getElementById) {
	imgWidth = document.getElementById("img").width + 30;
	imgHeight = document.getElementById("img").height + 120;
}

var cw = (screen.width / 2) - (imgWidth / 2);
var ch = (screen.height / 2) - (imgHeight / 2);

window.resizeTo(imgWidth, imgHeight);
window.moveTo(cw, ch);
