var nfx_si,nfx_li,nfx_lo,nfx_tt,nfx_th,nfx_ts,nfx_la;
var qp="parentNode";
var qc="className";
var nfx_t=navigator.userAgent;
var nfx_o=nfx_t.indexOf("Opera")+1;
var nfx_s=nfx_t.indexOf("afari")+1;
var nfx_s2=nfx_s&&window.XMLHttpRequest;
var nfx_n=nfx_t.indexOf("Netscape")+1;
var nfx_v=parseFloat(navigator.vendorSub);
;
function nfx_create(sd,v,ts,th,oc,rl,sh,fl,nf,l){
	var w="onmouseover";
	if(oc){
		w="onclick";
		th=0;
		ts=0;
	}
	if(!l){
		l=1;
		nfx_th=th;
		sd=document.getElementById("nfx"+sd);
		if(window.nfx_pure)sd=nfx_pure(sd);
		sd[w]=function(e){nfx_kille(e)};
		document[w]=nfx_bo;
		sd.style.zoom=1;
		if(sh)x2("nfxsh",sd,1);
		if(!v)sd.ch=1;
	}else  if(sh)sd.ch=1;
	if(sh)sd.sh=1;
	if(fl)sd.fl=1;
	if(rl)sd.rl=1;
	sd.style.zIndex=l+""+1;
	var lsp;
	var sp=sd.childNodes;
	for(var i=0;i<sp.length;i++){
		var b=sp[i];
		if(b.tagName=="A"){
			lsp=b;b[w]=nfx_oo;
			b.nfxts=ts;
			if(l==1&&v){
				b.style.styleFloat="none";
				b.style.cssFloat="none";
			}
		}
		if(b.tagName=="DIV"){
			if(window.showHelp&&!window.XMLHttpRequest)sp[i].insertAdjacentHTML("afterBegin","<span class='nfxclear'>&nbsp;</span>");
			x2("nfxparent",lsp,1);
			lsp.cdiv=b;
			b.idiv=lsp;
			if(nfx_n&&nfx_v<8&&!b.style.width)b.style.width=b.offsetWidth+"px";
			new nfx_create(b,null,ts,th,oc,rl,sh,fl,nf,l+1);
		}
	}
}
;
function nfx_bo(e){
	nfx_la=null;
	clearTimeout(nfx_tt);
	nfx_tt=null;
	if(nfx_li&&!nfx_tt)nfx_tt=setTimeout("x0()",nfx_th);
}
;
function x0(){
	var a;
	if((a=nfx_li)){
		do{nfx_uo(a);
	}
	while((a=a[qp])&&!nfx_a(a))}nfx_li=null;
}
;
function nfx_a(a){
	if(a[qc].indexOf("nfxmc")+1)return 1;
}
;
function nfx_uo(a,go){
	if(!go&&a.nfxtree)return;
	if(window.nfxad&&nfxad.bhide)eval(nfxad.bhide);
	a.style.visibility="";
	x2("nfxactive",a.idiv);
}
;
;
function qa(a,b){
	return String.fromCharCode(a.charCodeAt(0)-(b-(parseInt(b/2)*2)));
}
//if(window.showHelp&&!window.nfxu&&(window.location+"").toLowerCase().indexOf("http:")+1) {
//	alert("This copy of QuickMenu has not been purchased. (www.opencube.com)");
//}
;
function nfx_oo(e,o,nt){
	if(!o)o=this;
	if(nfx_la==o)return;
	if(window.nfxad&&nfxad.bhover&&!nt)eval(nfxad.bhover);
	if(window.nfxwait){
		nfx_kille(e);
		return;
	}
	clearTimeout(nfx_tt);
	nfx_tt=null;
	if(!nt&&o.nfxts){
		nfx_si=o;
		nfx_tt=setTimeout("nfx_oo(new Object(),nfx_si,1)",o.nfxts);
		return;
	}
	var a=o;
	if(a[qp].isrun){
		nfx_kille(e);
		return;
	}
	nfx_la=o;
	var go=true;
	while((a=a[qp])&&!nfx_a(a)){
		if(a==nfx_li)go=false;
	}
	if(nfx_li&&go){
		a=o;
		if((!a.cdiv)||(a.cdiv&&a.cdiv!=nfx_li))nfx_uo(nfx_li);
		a=nfx_li;
		while((a=a[qp])&&!nfx_a(a)){
			if(a!=o[qp])nfx_uo(a);else break;
		}
	}
	var b=o;
	var c=o.cdiv;
	if(b.cdiv){
		var aw=b.offsetWidth;
		var ah=b.offsetHeight;
		var ax=b.offsetLeft;
		var ay=b.offsetTop;
		if(c[qp].ch){
			aw=0;
			if(c.fl)ax=0;
		}else {
			if(c.rl){
				ax=ax-c.offsetWidth;
				aw=0;
			}
			ah=0;
		}
		if(nfx_o){
			ax-=b[qp].clientLeft;
			ay-=b[qp].clientTop;
		}
		if(nfx_s2){
			ax-=nfx_gcs(b[qp],"border-left-width","borderLeftWidth");
			ay-=nfx_gcs(b[qp],"border-top-width","borderTopWidth");
		}
		if(!c.ismove){
			c.style.left=(ax+aw)+"px";
			c.style.top=(ay+ah)+"px";
		}
		x2("nfxactive",o,1);
		if(window.nfxad&&nfxad.bvis)eval(nfxad.bvis);
		c.style.visibility="inherit";
		nfx_li=c;
	}else  if(!nfx_a(b[qp]))nfx_li=b[qp];
	else nfx_li=null;
	nfx_kille(e);
}
;
function nfx_gcs(obj,sname,jname){
	var v;
	if(document.defaultView&&document.defaultView.getComputedStyle)v=document.defaultView.getComputedStyle(obj,null).getPropertyValue(sname);
	else  if(obj.currentStyle)v=obj.currentStyle[jname];
	if(v&&!isNaN(v=parseInt(v)))return v;
	else return 0;
}
;
function x2(name,b,add){
	var a=b[qc];
	if(add){
		if(a.indexOf(name)==-1)b[qc]+=(a?' ':'')+name;
	}else {b[qc]=a.replace(" "+name,"");
		b[qc]=b[qc].replace(name,"");
	}
}
;
function nfx_kille(e){
	if(!e)e=event;
	e.cancelBubble=true;
	if(e.stopPropagation&&!(nfx_s&&e.type=="click"))e.stopPropagation();
}
