// Title: Tigra Menu GOLD
// URL: http://www.softcomplex.com/products/tigra_menu_gold/
// Version: 2.4
// Date: 05-22-2003 (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.

// A path to Tigra Menu GOLD files from the PAGE containinig Menu
var mosvar='';
var TMenu_path_to_files = mosvar+'/menu/';
var ii0 = new Image(); ii0.src = mosvar+'/images/arr.gif';
var ii9 = new Image(); ii9.src = mosvar+'/images/pixel.gif';

function wrap_parent (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td class=sidebar><img height=16 src=', icon !=null ? 'icons/' + icon: ''+mosvar+'/images/pixel.gif width=15', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td class=cell>&nbsp; ', text, '</td></tr></table></td><td><img src='+mosvar+'/images/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% class=root><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 class=over><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: ''+mosvar+'/images/pixel.gif width=16', ' hspace=3></td><td width=100% class=cell>&nbsp; ', text, '</td><td><img src='+mosvar+'/images/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% class=root><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 class=over><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: ''+mosvar+'/images/pixel.gif width=16', ' hspace=3></td><td width=100% class=cell>&nbsp; ', text, '</td><td><img src='+mosvar+'/images/arr.gif width=4 height=7 align="middle" align=absmiddle hspace=3></td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_child (text,icon) {
	return [['<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td class=sidebar><img height=16 src=', icon !=null ? 'icons/' + icon: ''+mosvar+'/images/pixel.gif width=15', ' hspace=3></td><td width=100%><table cellpadding=1 cellspacing=0 border=0 width=100% height=22><tr><td  class=cell>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% class=root><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 class=over><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: ''+mosvar+'/images/pixel.gif width=16', ' hspace=3></td><td width=99% class=cell>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join(''),
	['<table cellpadding=1 cellspacing=0 border=0 width=100% class=root><tr><td><table cellpadding=1 cellspacing=0 border=0 width=100% height=22 class=over><tr><td><img height=16 src=', icon !=null ? 'icons/' + icon: ''+mosvar+'/images/pixel.gif width=16', ' hspace=3></td><td width=99% class=cell>&nbsp; ', text, '</td></tr></table></td></tr></table>'].join('')
	];
}

function wrap_root (text) {
	return [
	'<table cellpadding=1 cellspacing=0 border=0 width=100%><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% style=color:#FFFFFF align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% class=root><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>',
	'<table cellpadding=1 cellspacing=0 border=0 width=100% class=root><tr><td><table cellpadding=0 cellspacing=0 border=0 width=100% height=21><tr><td width=100% class=a1 align="center">&nbsp; ' + text + ' &nbsp;</td></tr></table></td></tr></table>'
	];
}


// Please, don't change below this line
// ----------------------------------------------------------------------------------
var menus=[],TMd,TMAM=['click','mouseout','mouseover','mousedown'];

function TMD(TMAN){
	var s=window[this.TMAO]?new String(window[this.TMAO]):'',TMAK;
	if((TMAK=s.indexOf("{"))>-1)
		s=s.substring(TMAK+1,s.lastIndexOf("}")-1)+';';
	window.onload=Function(s+TMAN)
}

function TMAP(){
	for(var i in menus){
		menus[i].TMAQ();menus[i].TMAR=true
	}
}

function TMAS(){
	var TMAT,TMAU;
	if(this.width!=(TMAT=this.TMAV(window))){
		this.width=TMAT;TMAU=true
	}
	if(this.height!=(TMAT=this.TMAW(window))){
		this.height=TMAT;TMAU=true
	}
	if(this.TMAX!=(TMAT=this.TMAY(window))){
		this.TMAX=TMAT;TMAU=true
	}
	if(this.TMAZ!=(TMAT=this.TMAa(window))){
		this.TMAZ=TMAT;TMAU=true
	}if(TMAU)
		this.TMAQ();
	window.setTimeout('TMd.TMAr()',500)
}

function menu(TMAb,TMAc,TMAd,TMAe,TMU){
	this.TMY=Boolean(TMAd);
	this.TMAb=TMAb;
	this.TMAc=TMAc;
	this.TMu=[];
	this.TMZ=[];
	this.TMi=[];
	this.TMAf=0;
	this.exec=TMAg;
	this.TMAh=TMAi;
	this.on=[];
	this.onclick=TMAj;
	this.onmouseout=TMAk;
	this.onmouseover=TMAl;
	this.onmousedown=TMAm;
	this.TMAQ=TMAn;
	this.TMAo=TMX;
	this.TMAL=TMU?TMQ:function(){};
	this.TMU=TMU?TMU:[];
	this.TMAp={'width':100,'height':20,'block_top':20,'block_left':20,'vertical':false,'expd_delay':0,'hide_delay':100,'table':[0,0,0],'css':{'table':'','inner':'','outer':''}};
	this.TMj=function(TMAe){return this.TMAp[TMAe]};
	if(!TMd){
		TMd=new TMA();
		TMd.TMAq=navigator.userAgent.indexOf('Gecko')>-1;
		//mostapha cahnge
		TMd.TMq=''+mosvar+'/images/pixel.gif';
		if(!TMd.TMAO)TMd.TMAO='onload';
		TMd.TMAV=window.innerWidth!=null?function(w){return w.innerWidth}:function(w){return w.document.body.clientWidth};TMd.TMAW=window.innerHeight!=null?function(w){return w.innerHeight}:function(w){return w.document.body.clientHeight};TMd.TMAY=window.pageXOffset!=null?function(w){return w.pageXOffset}:function(w){return w.document.body.scrollLeft};
		TMd.TMAa=window.pageYOffset!=null?function(w){return w.pageYOffset}:function(w){return w.document.body.scrollTop};
		TMd.onload=TMD;
		TMd.TMAQ=TMAP;
		TMd.TMAr=TMAS
	}
	this.id=TMAe!=null?TMAe:menus.length;menus[this.id]=this;
	this.TMk=window;
	this.TMb=[];
	this.TMx=this.TMAb.length;
	for(var i=0;i<this.TMx;i++)
		new TMAs(i,this,this,i);
	this.TMAo(this.TMi[0].TMj('table'));
	for(i=0;i<this.TMx;i++)
		this.TMi[i].TMAt();
	if(top!=window){
		if(!top.TMAu)
			top.TMAu=[];
		if(!top.TMAu[this.id])
			top.TMAu[this.id]={'frames':[]};
		this.TMAv=top.TMAu[this.id];
		if(this.TMY){
			this.TMAv.TMAw=window;
			this.TMAd=[];
			for(i in TMAd){
				this.TMAd[i]=[];
				for(var j in TMAd[i])
					this.TMAd[i][j]=eval('top.'+TMAd[i][j])
			}
		}
		this.TMAv.frames[window.name]=window;
		TMd.onload("TMd.TMAr()")
	}else 
		TMd.onload("TMd.TMAQ()")
}
	
function TMAn(){
	if(this.TMAv){
		if(typeof(this.TMAd)!='object'){
			if(!this.TMAv.TMc)
				return setTimeout('menus["'+this.id+'"].TMAQ()',100);
			this.TMAd=this.TMAv.TMAw.menus[this.id].TMAd
		}
		if(this.TMY){
			var TMAx,TMAy=0,TMAz;
			if(!this.TMAv.TMBA)
				this.TMAv.TMBA=[];
		for(i in this.TMAd){
			TMAz=0;
			for(j in this.TMAd[i]){
				if(!this.TMAv.TMBA[this.TMAd[i][j].name])
					this.TMAv.TMBA[this.TMAd[i][j].name]={'x':TMAz,'y':TMAy};
				if(TMd.TMB)
					if(!this.TMAd[i][j].document.body)
						return setTimeout('menus["'+this.id+'"].TMAQ()',100);
					TMAz+=TMd.TMAV(this.TMAd[i][j])
			}
			TMAy+=TMd.TMAW(this.TMAd[i][j])
		}
		this.TMAv.TMc=TMd.TMF(this.TMc,this.TMAv.TMBA[window.name].x-TMd.TMAY(window),this.TMAv.TMBA[window.name].y-TMd.TMAa(window));
		for(var i in this.TMAv.frames)
			if(this.TMAv.frames[i]!=window)
				this.TMAv.frames[i].TMd.TMAQ()
		}else 
			TMd.TMM(this.TMc,{'x':this.TMAv.TMc.x-this.TMAv.TMBA[window.name].x+TMd.TMAY(window),'y':this.TMAv.TMc.y-this.TMAv.TMBA[window.name].y+TMd.TMAa(window)})
		}
		if(document.layers)
			for(var TMBB=0;TMBB<this.TMx;TMBB++)
				this.TMi[TMBB].TMAE(0);
		else if(TMBC)
			for(var TMBB=0;TMBB<this.TMx;TMBB++)
				this.TMi[TMBB].TMAK()
}

function TMAg(id,TMBD){
	if(!this.TMAR)
		return;
	if(this.TMAv&&TMBD){
		var TMBE;
		for(TMBE in this.TMAv.frames)
			if(!this.TMAv.frames[TMBE].menus[this.id].TMZ[id]||!this.TMAv.frames[TMBE].menus[this.id].TMZ[id].elements)
				return setTimeout('menus["'+this.id+'"].exec("'+id+'",'+TMBD+')',100);
		for(TMBE in this.TMAv.frames)this.TMAv.frames[TMBE].menus[this.id]['on'+TMAM[TMBD]](id)
	}else if(this.TMAv&&!this.TMY){
		if(!this.TMAv.TMAw.menus[this.id].TMZ[id]||!this.TMAv.TMAw.menus[this.id].TMZ[id].elements)
			return setTimeout('menus["'+this.id+'"].exec("'+id+'",'+TMBD+')',100);
		return this.TMAv.TMAw.menus[this.id]['on'+TMAM[TMBD]](id)
	}else 
		return menus[this.id]['on'+TMAM[TMBD]](id)
}

function TMAi(){
	if(this.TMAf>0||!this.TMBF)
		return;
	if(this.TMT)
		this.TMT.TMAH(0);
	this.TMT=null;
	if(!TMd.TMC&&!TMd.TMAq)
		this.TMAL(true)
}

function TMAj(id){
	var TMBG=Boolean(this.TMZ[id].TMt[1]);
	if(TMBG&&this.TMAv)
		for(var i in this.TMAv.frames)
			this.TMAv.frames[i].menus[this.id].TMT.TMAH(0);
	return TMBG
}

function TMAk(id){
	this.TMAf--;
	this.TMZ[id].TMAE(0);
	if(this.TMBH)
		clearTimeout(this.TMBH);
	this.TMBF=setTimeout('menus["'+this.id+'"].TMAh()',this.TMZ[id].TMj('hide_delay'));
	if(this.TMZ[id].TMu.sb!=null)top.status=''
}

function TMAl(id){
	this.TMAf++;
	for(var TMBI=this.TMZ[id];TMBI.elements;TMBI=TMBI.TMw)
		TMBI.TMAE(1);
	var TMBI=this.TMZ[id];
	clearTimeout(this.TMBF);
	this.TMBF=null;
	if(TMBI.TMu.sb!=null)
		setTimeout('menus["'+this.id+'"].TMZ["'+id+'"].TMBO()',10);
	this.TMAG=TMBI;
	if(TMBI.TMw.TMi[0].TMBJ)
		this.TMBH=setTimeout('menus["'+this.id+'"].TMZ["'+id+'"].TMBK()',TMBI.TMw.TMi[0].TMBJ);
	else TMBI.TMBK()
}

function TMAm(id){
	this.TMZ[id].TMAE(2)
}

function TMAs(TMBL,TMw,TMo,TMBM){
	this.id=this.TMBL=new String(TMBL);
	this.TMw=TMw;
	this.TMo=TMo;
	this.TMv=this.TMBL.split('_');
	this.TMg=this.TMv.length-1;
	var TMBN='';
	for(var i=0;i<=this.TMg;i++)
		TMBN+='['+(Number(this.TMv[i])+(i?3:0))+']';
	eval('this.TMt = this.TMo.TMAb'+TMBN);
	if(!this.TMt)
		return;
	this.TMu=this.TMt[2]?this.TMt[2]:[];
	this.TMo.TMZ[this.id]=this;
	TMw.TMi[TMw.TMi.length]=this;
	this.TMAE=TMAA;
	this.TMBO=TMBP;
	this.TMAK=TMBQ;
	this.TMAo=TMs;
	this.TMBR=TMe;
	this.TMj=TMBS;
	this.TMa=TMBT;
	this.TMAt=TMz;
	this.TMAH=TMAC;
	this.TMBK=TMAI;
	if(!TMBM){
		//mostapha 
		this.TMBU=this.TMw.TMu.bt?this.TMw.TMu.bt:this.TMj('block_top');
		this.TMBV=this.TMw.TMu.bl?this.TMw.TMu.bl:this.TMj('block_left');
		this.TMBW=this.TMj('top')<0;
		this.TMBX=this.TMj('left')<0;
		this.TMBY=this.TMj('width');
		this.TMBZ=this.TMj('height');
		this.TMy=this.TMj('vertical');
		this.TMBa=this.TMj('wise_pos');
		this.TMn=this.TMj('shadow');
		this.TMBJ=this.TMj('expd_delay')
	}
	var TMBb=this.TMw.TMi[0].TMBY,TMBc=this.TMw.TMi[0].TMBZ;
	if(this.TMw.TMi[0].TMy){
		if(this.TMw.TMu.bw!=null)
			TMBb=this.TMw.TMu.bw;
		if(this.TMu.sh!=null)
			TMBc=this.TMu.sh
	}else{
		if(this.TMw.TMu.bh!=null)
			TMBc=this.TMw.TMu.bh;
		if(this.TMu.sw!=null)
			TMBb=this.TMu.sw
	}
	this.TMw.TMb[TMBM]=this.TMAo(TMBb,TMBc);
	this.TMx=this.TMt.length-3;
	if(this.TMx>0){
		this.TMi=[];
		this.TMAJ=TMBd;
		if(TMBC&&!document.layers){
			this.TMAJ(1);
			document.write(this.TMb.join(''));
			this.TMk=TMd.TME('m'+this.TMo.id+'c'+this.id);
			if(TMd.TMAq||window.opera){
				var TMBe=TMd.TME('m'+this.TMo.id+'t'+this.id);
				this.TMk.style.width=TMBe.offsetWidth
			}
			for(i in this.TMi)
				this.TMi[i].TMAt()
		}
	}
}

function TMBd(TMBf){
	this.TMb=[];
	for(var i=0;i<this.TMx;i++)
		new TMAs(this.TMBL+'_'+i,this,this.TMo,i);
	this.TMBR();
	if(!TMBf)
		for(i in this.TMi)this.TMi[i].TMAt()
}

function TMBP(){
	top.status=this.TMu.sb
}

function TMBS(TMAe){
	var TMBg=null,TMBh=this.TMo.TMAc[this.TMg];
	if(TMBh)
		TMBg=TMBh[TMAe];
	return(TMBg==null?this.TMw.TMj(TMAe):TMBg)
}

function TMBT(TMBi,TMBj){
	var TMBk=this.TMj('css'),TMBl=TMBk[TMBi];
	if(typeof(TMBl)=='string')
		return TMBl;
	for(var TMBm=TMBj;TMBm>=0;TMBm--)
		if(TMBl[TMBm])return TMBl[TMBm]
}

function TMBQ(TMN,value){
	if(this.TMx>0){
		var TMBn=this.TMi[0],TMBo=TMd.TMF(this.elements[0],this.TMu.bl?this.TMu.bl:TMBn.TMBV,this.TMu.bt?this.TMu.bt:TMBn.TMBU);
		if(TMBn.TMBX)TMBo.x-=TMd.TMO(this.TMk);
		if(TMBn.TMBW)TMBo.y-=TMd.TMO(this.TMk,1);
		if(TMBn.TMBa&&!this.TMo.TMAv){
			var wise=TMBn.TMBa,TMBp=TMd.TMO(this.TMk,0),TMBq=TMd.TMO(this.TMk,1),TMBr=TMd.TMAV(window),TMBs=TMd.TMAW(window),TMBt=TMd.TMAY(window),TMBu=TMd.TMAa(window);
			if(TMBo.x+TMBp>TMBr+TMBt)
				TMBo.x=(wise==1?TMBr+TMBt:TMBo.x)-TMBp;
			if(TMBo.y+TMBq>TMBs+TMBu)
				TMBo.y=(wise==1?TMBs+TMBt:TMBo.y)-TMBq;
			if(TMBo.x<TMBt)
				TMBo.x=TMBt;
			if(TMBo.y<TMBu)TMBo.y=TMBu
		}
		TMd.TMM(this.TMk,TMBo);
		if(this.TMr)
			TMd.TMM(this.TMr,TMBo);
		if(this.TMp)
			TMd.TMM(this.TMp,{'x':TMBo.x+TMBn.TMn.offX,'y':TMBo.y+TMBn.TMn.offY});
		if(TMBC&&!document.layers)
			for(var TMBB=0;TMBB<this.TMx;TMBB++)
				this.TMi[TMBB].TMAK()
	}
}

var TMBv=navigator.appVersion.match(/MSIE [0-9.]+/),TMBC=window.opera||!TMBv||!TMBv[0]||TMBv[0].replace('MSIE ','')<4.99||(navigator.appVersion.indexOf('Mac')>-1&&navigator.appVersion.indexOf('MSIE')>-1)||navigator.userAgent.indexOf('Konqueror')>-1;
document.write('<scr'+'ipt language="JavaScript" src="'+TMenu_path_to_files+'menu.'+(document.layers?'lay':TMBC?'opr':'dom')+'.js"></scr'+'ipt>');
