var _minHeight 

function setHeight(start, end, unit, minHeight) {
	if (!unit) unit = 'px';
	if (minHeight) setMinHeight(minHeight);
	else if (unit == 'px') setMinHeight(end);
	t1 = new Sequence();
	t1.addChild(new Tween(document.getElementById(attributes.id).style, 'height', Tween.strongEaseOut, start, end, 0.5, unit));
	t1.start();
}

function setMinHeight(minHeight) {
	_minHeight = minHeight;
}

function checkResize() {
	if (document.body.clientHeight < _minHeight) document.getElementById(attributes.id).style.height = _minHeight + 'px';
	else document.getElementById(attributes.id).style.height = '100%'
}

function getWindowHeight() {
    return document.body.clientHeight;
}

window.onresize = checkResize;