// Title: Tigra Menu PRO
// Description: Tigra Menu PRO is flexible menu solution for commercial
//	applications offering high reliability and wide browsers support.
//	See URL for complete feature list.
// URL: http://www.softcomplex.com/products/tigra_menu_pro/
// Version: 3.0
// Date: 03-12-2002 (mm-dd-yyyy)
// Technical Support: support@softcomplex.com (specify product title and order ID)
// Notes: Registration needed to use this script legally.
//	Visit official site for details.

var w,F=[];
G=['mout','mover','mdown'];
function J0()
{
	this.P0=window.innerWidth!=null?function(){return window.innerWidth}:function(){return document.body.clientWidth};
	this.j=window.innerHeight!=null?function(){return window.innerHeight}:function(){return document.body.clientHeight};
	this.m=window.pageXOffset!=null?function(){return window.pageXOffset}:function(){return document.body.scrollLeft};
	this.Q=window.pageYOffset!=null?function(){return window.pageYOffset}:function(){return document.body.scrollTop};
	this.N=document.all?function(i){return document.all[i]}:function(i){return document.getElementById(i)};this.b=F0;
	this.G0=S;
}
function F0()
{
	var R0,D0;
	if(this.width!=(R0=this.P0()))
	{
		this.width=R0;
		D0=true;
	}
	if(this.height!=(R0=this.j()))
	{
		this.height=R0;D0=true;
	}
	if(this.d!=(R0=this.m()))
	{
		this.d=R0;D0=true;
	}
	if(this.L!=(R0=this.Q()))
	{
		this.L=R0;
		D0=true;
	}
	if(D0)
	{
		if(this.x)clearTimeout(this.x);
		this.x=setTimeout('w.G0()',200);
	}
	window.setTimeout('w.b()',50);
}
function S()
{
	for(var i=0;i<F.length;i++)
		if(F[i].g)
			F[i].G0();
}
function menu(J,K)
{
	this.J=J;
	this.K=K;
	this.T=[];
	this.I=[];
	this.v=[];
	this.q=0;
	this.hide=t;
	this.onclick=R;
	this.onmouseout=L0;
	this.onmouseover=c;
	this.onmousedown=A0;
	this.y=O;
	this.G0=M0;
	if(!w)
	{
		w=new J0();
		w.b();
	}
	this.id=F.length;
	F[this.id]=this;
	for(var i=0;i<this.J.length;i++)
		new E0(i,this,this);
	
	var X=0,Y=0,n=Number.POSITIVE_INFINITY,p=Number.POSITIVE_INFINITY;
	for(var i=0;i<this.I.length;i++)
	{
		X=Math.max(X,this.I[i].y('left')+this.I[i].y('width'));
		Y=Math.max(Y,this.I[i].y('top')+this.I[i].y('height'));
		n=Math.min(n,this.I[i].y('left'));p=Math.min(p,this.I[i].y('top'));
	}
	this.v.top=0;this.v.left=0;
	this.v.width=X-n;
	this.v.height=Y-p;
	this.g=true;
	this.G0();
}
function t()
{
	if(!this.k||this.q||!this.e)
		return;
	this.e.u(0);
	this.e=null;
}
function M0()
{
	this.v.top=this.v.left=0;
	if(this.K.align=='center')
		this.v.left=Math.round((w.width-this.v.width)/2);
	else if(this.K.align=='right')
		this.v.left=w.width-this.v.width;
	
	if(this.K.valign=='center')
		this.v.top=Math.round((w.height-this.v.height)/2);
	else if(this.K.valign=='bottom')
		this.v.top=w.height-this.v.height;
	
	if(this.K.scroll=='horizontal'||this.K.scroll=='both')
		this.v.left+=w.d;
	
	if(this.K.scroll=='vertical'||this.K.scroll=='both')
		this.v.top+=w.L;
		for(var i=0;i<this.I.length;i++)
		{
			this.I[i].o('hidden',true);
			this.I[i].M(true);
			this.I[i].o('mout');
		}
}
function O(W)
{
	return this.v[W]?this.v[W]:0;
}
function R(id)
{
	return(this.T[id].B[1]?true:false);
}
function L0(id)
{
	this.q--;
	this.k=setTimeout('F['+this.id+'].hide();',this.K.hide_delay[this.T[id].H]);
}
function c(id)
{
	this.q++;
	clearTimeout(this.k);
	this.k=null;
	this.T[id].l();
	this.e=this.T[id];
}
function A0(id)
{
	this.T[id].o('mdown');
}
function E0(D,E,A)
{
	this.D=new String(D);
	this.E=E;
	this.A=A;
	this.B0=this.D.split('_');
	this.H=this.B0.length-1;
	var f='';
	for(var i=0;i<=this.H;i++)
		f+='['+(Number(this.B0[i])+(i?3:0))+']';
	
	eval('this.B=this.A.J'+f);
	if(!this.B)
		return;
		this.id=this.A.T.length;
		this.A.T[this.id]=this;
		E.I[E.I.length]=this;
		if(document.layers)
		{
			this.write=H0;
			this.o=P;
			this.y=C0;
		}
		else
		{
			this.write=z;
			this.o=N0;
			this.y=s;
		}
		this.u=K0;
		this.l=Z;
		this.M=mitem_reposition;
		this.O0=[];
		this.C=[];
		this.write(this.M(false));
		this.V='hidden';
		this.I=[];
		var a=this.B.length-3;
		for(var i=0;i<a;i++)
			new E0(this.D+'_'+i,this,this.A);
}
function K0(h)
{
	for(var i=0;i<this.I.length;i++)
		this.I[i].o('hidden');
		if(h>=this.H)
			this.o('mout');
		else this.E.u(h);
}
function Z()
{
	if(this.A.e&&this.H<=this.A.e.H)
		this.A.e.u(this.A.e.E==this?this.H+1:this.H);
		if(!this.A.e||this.A.e.E!=this)
		for(var i=0;i<this.I.length;i++)
			this.I[i].o('mout');
		this.o('mover');
}
function mitem_reposition(b)
{
	if(this.B0[this.H]==0)
	{
		this.O0.left=this.E.y('left')+(this.B[2]!=null&&this.B[2][0]!=null?this.B[2][0]:this.A.K.block_left[this.H]);
		this.O0.top=this.E.y('top')+(this.B[2]!=null&&this.B[2][1]!=null?this.B[2][1]:this.A.K.block_top[this.H]);
	}
	else
	{
		this.O0.left=this.E.I[this.B0[this.H]-1].y('left')+(this.B[2]!=null&&this.B[2][0]!=null?this.B[2][0]:this.A.K.left[this.H]);
		this.O0.top=this.E.I[this.B0[this.H]-1].y('top')+(this.B[2]!=null&&this.B[2][1]!=null?this.B[2][1]:this.A.K.top[this.H]);
	}
	this.O0.width=(this.B[2]!=null&&this.B[2][2]!=null?this.B[2][2]:this.A.K.width[this.H]);
	this.O0.height=(this.B[2]!=null&&this.B[2][3]!=null?this.B[2][3]:this.A.K.height[this.H]);
	if(!b)
		return this.O0;
	this.y('left',this.O0.left);
	this.y('top',this.O0.top);
	for(var i=0;i<this.I.length;i++)
		this.I[i].M(true);
}
function z(y)
{
	for(var i=0;i<G.length;i++)
	{
		document.write('<div id="m'+this.A.id+'i'+this.id+G[i]+'" style="position:absolute;left:'+y.left+'px;top:'+y.top+'px;width:'+y.width+'px;height:'+y.height+'px;visibility:hidden;z-index:'+this.H*2+';" class="m'+this.A.id+'l'+this.H+G[i]+'o"><div class="m'+this.A.id+'l'+this.H+G[i]+'i">'+(typeof(this.B[0])=='object'?this.B[0][i]:this.B[0])+'</div></div>');
		this.C[G[i]]=w.N('m'+this.A.id+'i'+this.id+G[i]);
	}
	document.write('<div id="m'+this.A.id+'i'+this.id+'i" style="position:absolute;left:'+y.left+'px;top:'+y.top+'px;width:'+y.width+'px;height:'+y.height+'px;visibility:hidden;z-index:'+(this.H*2+1)+';"><a href="'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][0]!=null?this.B[1][0]:this.B[1])+'"'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][1]!=null?' target="'+this.B[1][1]+'"':'')+' onclick="return F['+this.A.id+'].onclick('+this.id+');" onmouseout="F['+this.A.id+'].onmouseout('+this.id+');" onmouseover="F['+this.A.id+'].onmouseover('+this.id+');" onmousedown="F['+this.A.id+'].onmousedown('+this.id+');"><img src="'+this.A.K['pixel_path']+'" width="'+y.width+'" height="'+y.height+'" border="0"'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][2]!=null?' alt="'+this.B[1][2]+'"':'')+'></a></div>');
	this.link=w.N('m'+this.A.id+'i'+this.id+'i');
}
function N0(V,U)
{
	if(!this.H&&V=='hidden'&&!U)V='mout';
		if(V==this.V)
			return;
		if(this.V=='hidden')
			this.link.style.visibility='visible';
		else 
			this.C[this.V].style.visibility='hidden';
		if(V=='hidden')
			this.link.style.visibility='hidden';
		else 
			this.C[V].style.visibility='visible';
		this.V=V;
}
function s(W,I0)
{
	if(!W)
		return;
	if(this.link.style.pixelLeft)
		if(W=='left')
			W='pixelLeft';
		else if(W=='top')
			W='pixelTop';
		else if(W=='width')
			W='pixelWidth';
		else if(W=='height')
			W='pixelHeight';
		if(I0)
		{
			for(var i=0;i<G.length;i++)
				this.C[G[i]].style[W]=I0;
			this.link.style[W]=I0;
			return(this.O0[W]=I0);
		}
		else
		{
			var Q0=/^(\-?\d+)/;
			if(Q0.exec(this.link.style[W]))
				return new Number(RegExp.$1);
		}
}
function H0(y)
{
	for(var i=0;i<G.length;i++)
	{
		document.write('<layer name="m'+this.A.id+'i'+this.id+G[i]+'" left="'+y.left+'" top="'+y.top+'" z-index="'+this.H*2+'" width="'+y.width+'" height="'+y.height+'" visibility="hide"><table cellpadding="0" cellspacing="0" border="0" width="'+y.width+'" height="'+y.height+'" class="m'+this.A.id+'l'+this.H+G[i]+'o"><tr><td><div class="m'+this.A.id+'l'+this.H+G[i]+'o"><div class="m'+this.A.id+'l'+this.H+G[i]+'i">'+(typeof(this.B[0])=='object'?this.B[0][i]:this.B[0])+'</div></div></td></tr></table></layer>');
		this.C[G[i]]=document.layers['m'+this.A.id+'i'+this.id+G[i]];
	}
	document.write('<layer name="m'+this.A.id+'i'+this.id+'i" left="'+y.left+'" top="'+y.top+'" z-index="'+(this.H*2+1)+'" visibility="hide" width="'+y.width+'" height="'+y.height+'"><a href="'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][0]!=null?this.B[1][0]:this.B[1])+'"'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][1]!=null?' target="'+this.B[1][1]+'"':'')+' onclick="return F['+this.A.id+'].onclick('+this.id+');" onmouseout="F['+this.A.id+'].onmouseout('+this.id+');" onmouseover="F['+this.A.id+'].onmouseover('+this.id+');" onmousedown="F['+this.A.id+'].onmousedown('+this.id+');"><img src="'+this.A.K['pixel_path']+'" width="'+y.width+'" height="'+y.height+'" border="0"'+(this.B[1]!=null&&typeof(this.B[1])!='string'&&this.B[1][2]!=null?' alt="'+this.B[1][2]+'"':'')+'></a></layer>');
	this.link=document.layers['m'+this.A.id+'i'+this.id+'i'];
}
function P(V)
{
	if(!this.H&&V=='hidden')
		V='mout';
	if(V==this.V)
		return;
	if(this.V=='hidden')
		this.link.visibility='show';
	else 
		this.C[this.V].visibility='hide';
	if(V=='hidden')
		this.link.visibility='hide';
	else 
		this.C[V].visibility='show';
	this.V=V;
}
function C0(W,I0)
{
	if(!W)
		return;
	if(I0)
	{
		this.O0[W]=I0;
		for(var i=0;i<G.length;i++)
		{
			this.C[G[i]].moveTo(this.O0.left,this.O0.top);
			this.C[G[i]].resizeTo(this.O0.width,this.O0.height);
		}
		this.link.moveTo(this.O0.left,this.O0.top);
		this.link.resizeTo(this.O0.width,this.O0.height);
	}
	return this.O0[W];
}