function getMagicEl(){
	return(document.getElementById('IdMagic'));
}
function increaseMagic(){
	if(realMagic<maxMagic){
		getMagicEl().height = parseFloat(getMagicEl().height)+(100/maxMagic)+"%";
		realMagic+=1;
		document.getElementById('IdMagicP').firstChild.nodeValue = realMagic;
	}else{
		clearInterval(window.magicTimer);
	}
}
// За какое время жизнь увелич. на 1 (в мс.)
function getMagicIntervalTimer(){
	return(maxMagicTime/maxMagic*60*1000);
}
function initMagicTimer(){
	realMagic==0?realMagic=1:true;
	if(realMagic<maxMagic&&fMagicStop!=1){
		window.magicTimer = setInterval("increaseMagic()",getMagicIntervalTimer());
	}else{
		return(true);
	}
}
