var IE = document.all?true:false;
function get(val){return document.getElementById(val);}
function echo(val){document.write(val);}
function rndInt(lo,hi){return Math.floor(Math.random()*hi+1)+lo;}
function def(key,val){if(typeof(key)=='undefined')key=val;return key;}
function make(val){
	if(typeof(val)!='object')
		return document.createElement(def(val, 'div'))
	type = def(val['type'], 'div');
	var tmp = document.createElement(type);
}
function setClass(id, name){
	if(IE) id.setAttribute('className', name);
	else id.setAttribute('class', name);
}
function alignBottom(div1, div2){
	if(div1.offsetHeight>div2.offsetHeight)
		div2.style.height = div1.offsetHeight+'px';
	else
		div1.style.height = div2.offsetHeight+'px';
}