 /**
	Uniwits System, 2011
	http://www.uniwits.com
**/ function adjust_mainfooter() { var mainfooter_div_obj=document.getElementById('mainfooter_div'); var maincontentregionsizer=document.getElementById('maincontentregionsizer'); var windowHeight=UNIWITS.Toolbox.clientHeight(); var mfPos=UNIWITS.Toolbox.absPos(mainfooter_div_obj); var minVacantHeight=0; vacantHeight=windowHeight-mfPos.y-mainfooter_div_obj.offsetHeight; try { if (MIN_MAINFOOTER_VACANT_HEIGHT) minVacantHeight=MIN_MAINFOOTER_VACANT_HEIGHT; } catch (e) {} if (vacantHeight<minVacantHeight) vacantHeight=minVacantHeight; if (vacantHeight>0) { maincontentregionsizer.style.height=vacantHeight-2+"px"; maincontentregionsizer.style.display=''; } } UNIWITS.Toolbox.installWrapperEvent(window,'onload',function () { setTimeout("adjust_mainfooter()",20); } ); UNIWITS.Toolbox.installWrapperEvent(window,'onresize',function () { setTimeout("adjust_mainfooter()",20); } ); 