var IE = false;
var iZoomIn = 6;
var iZoomOut = 2;
var divTitle;

function init(page, topic, ref) {
	divTitle = document.getElementById('divTitle');
	if (IE) {
		pngReplace();
	}
	if (page == 'contact' && topic == 'contact') {
		e = document.frmContact.about;
		e.value = ref;
	}
}

function zI(which) {
	divTitle.innerHTML = which.alt;
	divTitle.style.visibility = 'visible';
	divTitle.style.left = which.offsetLeft + 'px';
	clearTimeout(which.tmr);
	scale(which.id, 1);
}

function zO(which) {
	clearTimeout(which.tmr);
	divTitle.style.visibility = 'hidden';
	scale(which.id, 0);
}

function scale(which, zoomin) {
	which = document.getElementById(which);
	w = which.width;
	if ((w<=50) && (zoomin==1)) {
		which.width = w + iZoomIn;
		which.height = which.width;
		par = 'scale("' + which.id + '", ' + zoomin + ')';
		which.tmr = setTimeout(par, 10);
		divTitle.style.top = which.offsetTop - 20 + 'px';
	}
	if ((w>=35) && (zoomin==0)) {
		which.width = w - iZoomOut;
		which.height = which.width;
		which.style.left = 0;
		par = 'scale("' + which.id + '", ' + zoomin + ')';
		which.tmr = setTimeout(par, 50);
	}
}

