function getClientWidth() {
	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight() {
	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}

function showBlind () {
	document.getElementById ('blind').style.display = 'block';
}

function hideBlind () {
	document.getElementById ('blind').style.display = 'none';
}

var initContent;

initContent = function () {
	// Some initiation
}

window.onload = initContent;

function get (mid) {
	return document.getElementById (mid);
}

function showImage (w, h, img) {
	get ('popup_img').src = img;
	get ('popup').style.width = w + 'px';
	get ('popup').style.height = h + 'px';
	get ('popup').style.left = (getClientWidth() / 2) - (w / 2) + 'px';
	get ('popup').style.top = (getClientHeight() / 2) - (h / 2) + 'px';
	get ('blind').style.display = 'block';
	get ('popup').style.display = 'block';
}

function closeImage () {
	get ('popup_img').src = 'img/no.jpg';
	get ('blind').style.display = 'none';
	get ('popup').style.display = 'none';
}