function _referer(){
	function _create(id){return new menuObj(id)}
	this.ns4=document.layers?1:null;
	this.op=window.opera?1:null;
	this.ie=document.all?1:null;
	this.set = _create;
	return this;
}
function menuObj(id){
	var refObj=document.getElementById?document.getElementById(id):document.all?document.all[id]:ref.ns4?_ns_findDHTMLelement(id):null;
	function returnVisibility(bState){	if (typeof(bState)!="undefined") this._style.visibility=(ref.ns4)?(bState?"show":"hide"):(bState?"visible":"hidden"); return (this._style.visibility=="show"||this._style.visibility=="visible");}
	function _innerHTML(_string){
		if (typeof(this.obj.innerHTML)!="undefined") 
			this.obj.innerHTML=_string;
		else if(ref.ns4){
			this.obj.document.open("text/html");
			this.obj.document.write(_string);
			this.obj.document.close();
		}
	}
	function _ns_findDHTMLelement(id, ref) {
		ref=!ref?document.layers:ref;
		var _l=ref[id];	if (_l) return _l
		for (var i = 0; i < ref.length; i++)
	    	if (ref[i].layers.length > 0 && (_l = _ns_findDHTMLelement(id, ref[i].layers)) != null)
	        	return _l;
	  	return null;
	}
	function _position(obj,objP,e){
		alert(obj+"\n"+objP+"\n"+e)
		if(ref.ns4){var X = e.target.x; var Y = e.target.y}
		else{var X = objP._left;var Y = objP._top}
		obj._style.left = X;
		obj._style.top = Y;
	}
	if(refObj){
		this.obj = refObj;
		this.doc = ref.ns4? refObj.document : document;
		this._style = ref.ns4 ? refObj : refObj.style;
		this._left = ref.ns4? this._style.pageX : (document.getElementById ? this.obj.offsetLeft :( document.all ? this._style.pixelLeft : 0));
		this._top = ref.ns4? this._style.pageY : (document.getElementById? this.obj.offsetTop :(document.all ? this._style.pixelTop : 0));
		this._height = ref.ns4? this.doc.height : (document.getElementById ? this.obj.offsetHeight : (document.all? this._style.pixelHeight :0));
		this._width = ref.ns4? this.doc.width : (document.getElementById ? this.obj.offsetWidth : (document.all? this._style.pixelWidth :0));
		this._visible = returnVisibility;
		this.write = _innerHTML;
		this.move = _position;
		return this;
	}
}
function __visible(objMenu){objMenu.visibility = objMenu._visible()?objMenu._visible(false):objMenu._visible(true);}

var ref = new _referer();

function main(){if (typeof(init)!="undefined") init()}
onload=main;