function _gei(a){if(document.getElementById){return document.getElementById(a);}if(document.all){return eval('document.all.'+a);}if(document.layers){return eval('document'+a);}return false;}

function zoomIn(oBtn,sBox,nWidthPerc,nHeightPerc,sDefaultStyle) {
	var sStyle = sDefaultStyle+'position:absolute;width:'+nWidthPerc+'%;height:'+nHeightPerc+'%;top:'+((100-nHeightPerc)/2)+'%;left:'+((100-nWidthPerc)/2)+'%;';
	if ( _gei(sBox) ) {
		_gei(sBox).attributes['style'].value = sStyle;
		oBtn.attributes['onclick'].value = 'return zoomOut(this,\''+sBox+'\','+nWidthPerc+','+nHeightPerc+',\''+sDefaultStyle+'\');';
		oBtn.innerHTML = 'zoom out (-)';
	}
	return false;
}

function zoomOut(oBtn,sBox,nWidthPerc,nHeightPerc,sDefaultStyle) {
	if ( _gei(sBox) ) {
		_gei(sBox).attributes['style'].value = sDefaultStyle;
		oBtn.attributes['onclick'].value = 'return zoomIn(this,\''+sBox+'\','+nWidthPerc+','+nHeightPerc+',\''+sDefaultStyle+'\');'
		oBtn.innerHTML = 'zoom in (+)';
	}
	return false;
}