var DHTML=0,DOM=0,MS=0,NS=0,OP=0;
var Vshow="visible",Vhide="hidden";
var nav="",navver="",OS="",flNav="type='application/x-shockwave-flash'";
function DHTML_init(){
 if(window.opera)OP=1;
 if(document.getElementById){DHTML=1;DOM=1}
 if(document.all&&!OP){DHTML=1;MS=1}
 if(document.layers&&!OP){DHTML=1;NS=1}
}

function getObj(name){
	if(document.getElementById){
		this.obj=document.getElementById(name);
		if(this.obj==null)
  			return this.obj=false;
		this.style=this.obj.style
	}else if(document.all){
		this.obj=document.all[name];
		this.style=document.all[name].style
	}else if(document.layers){
		Vshow="show";
		Vhide="hide";
		this.obj=getObjNN4(document,name);
		this.style=this.obj
	}
}

function getObjNN4(obj,name){
	var x=obj.layers;
	var foundLayer;
	for(var i=0;i<x.length;i++){
		if (x[i].id==name)
		 	foundLayer=x[i];
		else if(x[i].layers.length)
			var tmp=getObjNN4(x[i],name);
		if(tmp)foundLayer=tmp;
	}
	return foundLayer;
}

function invi(divID,flag){
	if (!DHTML)return;
	var x=new getObj(divID);
	if(x.obj){
		x.style.visibility=(flag)?Vhide:Vshow;
		return true;
	}
}

function invito(divID,flag,to){
	setTimeout("invi(divID,flag)",to)
}

function disp(divID,flag){
	if(!DHTML)return;
	var x=new getObj(divID);
	if(x.obj){
		x.style.display=(flag)?"none":"block";
		return true;
	}
}
function getAbsoluteLeft(objectId){
	var x=(new getObj(objectId)).obj;
	if(!x)return false;
	if(NS)return(x['pageX'])
	var xLeft=x.offsetLeft;
	while(x.offsetParent!=null){
		var xParent=x.offsetParent;
		xLeft+=xParent.offsetLeft;
		x=xParent;
	}
	return xLeft;
}

function getAbsoluteTop(objectId){
	var x=(new getObj(objectId)).obj;
	if(!x)return false;
	if(NS)return(x['pageY']);
	var xTop=x.offsetTop;
	while(x.offsetParent!=null){
		var xParent=x.offsetParent;
		xTop+=xParent.offsetTop;
		x=xParent;
	}
	return xTop;
}

function getWidth(objectId){
	var x=(new getObj(objectId)).obj;
	if(!x||NS)return 0;
	return x.offsetWidth;
}

function getHeight(objectId){
	var x=(new getObj(objectId)).obj;
	if(!x||NS)return 0;
	return x.offsetHeight;
}

DHTML_init();