
function makeObj(obj){
   	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if(!this.evnt) return false
	this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0;
   	this.showIt=oShow;
   	this.hideIt=oHide;
	return this
}
function oShow(){ this.css.visibility='visible'; }
function oHide(){ this.css.visibility='hidden'; }


function hidebox(obj){
	eval(obj+".hideIt();");
}

function showbox(obj){
        activebox.hideIt();
	eval(obj+".showIt();");
	eval("activebox="+obj+";");
}

var box1, activebox;

function boxinit() {
	box1 = new makeObj('box1');
        activebox = box1;
}
window.onload=boxinit;
