var strVisible='';
var timer;
var blnActivated=0;

function makeObj(div,nest){
	if(document.layers){
		if(nest){
			obj=eval("document."+nest+".document."+div);
		}
		else
			obj=eval("document."+div);
		this.css=obj;
	}
	else if(document.all){
		obj=div
		this.css=eval(obj+".style");
	}
	else{
		this.css=eval("document.getElementById(\""+div+"\").style");
	}
	this.show=show;
	this.hide=hide;
	this.delay=delay;
	hidden=(document.layers)?"hide":"hidden"
	visible=(document.layers)?"show":"visible"
}

function show(){
	if (blnActivated==1){
		clearTimeout(timer)
		if(strVisible!=this)
			hide();
		this.css.visibility=visible
		strVisible=this;
	}
	else
		return false;
}

function hide(){
	if(strVisible!="")
		strVisible.css.visibility=hidden;
}

function delay(){
	timer=setTimeout('hide()',300);
}

function init(){
	divCompany=new makeObj('Company');
	divSolutions=new makeObj('Solutions');
	divServices=new makeObj('Services');
	divClients=new makeObj('Clients');
	divPartners=new makeObj('Partners');
	blnActivated=1;
}