// Title: Tigra Menu GOLD
// URL: http://www.softcomplex.com/products/tigra_menu_gold/
// Version: 2.6
// Date: 08-23-2004 (mm-dd-yyyy)
// 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 TMenu_path_to_files = '/include/js/';

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

function TM0A(TM0B){
	for(var i in menus){
		if(TM0B&&menus[i].TM0C&&!menus[i].TMd)
			menus[i].TM0C.TM0D.menus[i].TM0E();
		menus[i].TM0E();
		menus[i].TM0F=true;
	}
	this.TM0G=true
}
function TM0H(TM0I){
	var TM0J;
	if(this.width!=(TM0J=this.TM0K(window))){
		this.width=TM0J;
		TM0B=TM0I=true;
	}
	if(this.height!=(TM0J=this.TM0L(window))){
		this.height=TM0J;
		TM0B=TM0I=true
	}
	if(this.TM0M!=(TM0J=this.TM0N(window))){
		this.TM0M=TM0J;
		TM0I=true
	}
	if(this.TM0O!=(TM0J=this.TM0P(window))){
		this.TM0O=TM0J;TM0I=true
	}
	if(TM0I){
		this.TM0G=false;this.TM0E(TM0B)
	}
}
	
function menu(TM0Q,TM0R,TM0S){
	
	this.TM0Q=TM0Q;
	//alert(this.TMOQ);
	this.TM0R=TM0R;
	this.TMi=[];
	this.TM0T=[];
	this.TMU=[];
	this.exec=TM0U;
	this.hide=TM0V;
	this.onhide=TM0W;
	this.onclick=TM0X;
	this.onmouseout=TM0Y;
	this.onmouseover=TM0Z;
	this.onmousedown=TM0a;
	this.TM0E=TM0b;
	this.TM0c=TMN;
	this.TM0d=this.TMe=this.TMR=0;
	this.TM08=function(){};
	if(TM0S){
		this.TMR=TM0S.zIndex||0;
		this.TM05=TM0S.onexpand&&typeof(TM0S.onexpand)=='function'?TM0S.onexpand:null;
		this.TM0e=TM0S.oncollapse&&typeof(TM0S.oncollapse)=='function'?TM0S.oncollapse:null;
		this.TMd=Boolean(TM0S.frames);
		this.TMe=TM0S.popup?-1:0;
		this.TM0f=Boolean(TM0S.showroot);
		var TM0g=TM0S.frames;
		if(this.TMe){
			this.TM03=TMy;
			this.expand=TM04;
			if(document.images[TM0S.popup]){
				this.elements=[document.images[TM0S.popup]];
				this.TM07=TM0h
			}else this.TM07=function(){}
			}
			if(TM0S.forms){
				this.TMK=TM0S.forms;
				this.TM08=TMG
			}
		}
		this.TM0i={'width':100,'height':20,'block_top':null,'block_left':null,'vertical':false,'expd_delay':0,'hide_delay':100,'table':[0,0,0],'css':{'table':'','inner':'','outer':''}
	};
	this.TMS=-1;
	this.TMQ=this;
	this.TMW=function(TM0j){
		return this.TM0i[TM0j]
	};
	if(!TMh){
		TMh=new TM0();
		TMh.TM0k={'x':0,'y':0};
		TMh.TM0l=navigator.userAgent.indexOf('Gecko')>-1;
		TMh.TMn=TMenu_path_to_files+'pixel.gif';
		if(!TMh.TM0m)TMh.TM0m='onload';
		TMh.TM0K=window.innerWidth!=null?function(w){
			return w.innerWidth
		}:function(w){
			return w.document.body.offsetWidth
		};
		TMh.TM0L=window.innerHeight!=null?function(w){
			return w.innerHeight
		}:window.frameElement!=null?function(w){
			return w.frameElement.offsetHeight
		}:function(w){
			return w.document.body.offsetHeight
		};
		TMh.TM0N=window.pageXOffset!=null?function(w){
			return w.pageXOffset
		}:function(w){
			return w.document.body.scrollLeft
		};
		TMh.TM0P=window.pageYOffset!=null?function(w){
			return w.pageYOffset
		}:function(w){
			return w.document.body.scrollTop
		};
		TMh.TM0E=TM0A;
		TMh.TM0n=TM0H
	}
	this.id=TM0S&&TM0S.key?TM0S.key:menus.length;
	menus[this.id]=this;
	this.TMZ=[];
	this.TMt=this.TM0Q.length; //number of head menu items
	//alert(this.TMt);
	this.TM0o=Boolean(this.TM0R[0].block_top==null&&this.TM0R[0].block_left==null);
	for(var i=0;i<this.TMt;i++)
		new TM0p(i,this,this,i);
	this.TM0c(1);
	this.TMf=this.TMg;
	if(TMh.TM0q){
		document.write('<div id="p',this.id,'" class="mlyrh"></div>');
		TMh.TM0r=TMh.TM3('p'+this.id)
	}
	//alert(this.TMU[1].TM0s());
	for(i=0;i<this.TMU.length;i++)this.TMU[i].TM0s();
	if(top!=window){
		if(!top.TM0t){
			top.TM0t={'TM0v':[],'f_refresh':
			function(){
				for(var TM0u in this.TM0v){
					//alert(this.TM0v[TM0u].TM0w);
					if(this.TM0v[TM0u].TM0w<2){
						this.TM0v[TM0u].TM0x[0].TM0C=null;
						return this.TM0v[TM0u].TM0g[0].setInterval('TMh.TM0n()',500)
					}
					for(var TM0y in this.TM0v[TM0u].TM0g)if(this.TM0v[TM0u].TM0g[TM0y]&&this.TM0v[TM0u].TM0g[TM0y].TMh)this.TM0v[TM0u].TM0g[TM0y].TMh.TM0n()
				}
				setTimeout('top.TM0t.f_refresh()',300)
			},'TM19':function(TM0z,TM10,TM11){
				var TM0x=this.TM0v[TM0z].TM0x;
				for(var TM0u in TM0x)if(TM0x[TM0u]&&!TM0x[TM0u].TM0T[TM10])return setTimeout('top.TM0t.TM19("'+TM0z+'","'+TM10+'",'+TM11+')',100);
				for(TM0u in TM0x)if(TM0x[TM0u])TM0x[TM0u]['on'+TM09[TM11]](TM10)}
			};
			var TM12,TMc=TMh.TMF[TMh.TM0m]?new String(TMh.TMF[TMh.TM0m]):'';
			if((TM12=TMc.indexOf('{'))>-1)TMc=TMc.substring(TM12+1,TMc.lastIndexOf('}')-1)+';';
			TMh.TMF[TMh.TM0m]=Function(TMc+'top.TM0t.f_refresh()')
		}
		if(!top.TM0t.TM0v[this.id])top.TM0t.TM0v[this.id]={'TM0w':0,'TM0g':[],'TM14':[],'TM0x':[]};
		var TM13=this.TM0C=top.TM0t.TM0v[this.id];
		if(TM13.TM14[name]==null){
			TM13.TM14[name]=TM13.TM0w;
			TM13.TM0w++
		}
		TM13.TM0g[TM13.TM14[name]]=window;
		TM13.TM0x[TM13.TM14[name]]=this;
		if(this.TMd){
			TM13.TM0D=window;
			this.TM0g=[];
			for(i in TM0g){
				this.TM0g[i]=[];
				for(var j in TM0g[i])this.TM0g[i][j]=eval('top.'+TM0g[i][j])
			}
		}
		window.onunload=function(){
			for(var TM0u in menus){
				if(menus[TM0u].TM0C){
					menus[TM0u].TM0C.TM0g[menus[TM0u].TM0C.TM14[name]]=menus[TM0u].TM0C.TM0x[menus[TM0u].TM0C.TM14[name]]=null;
				}
			}
		}
	}else setInterval('TMh.TM0n()',500)
}

function TM0b(){
	if(this.TM0C){
		this.TM0g=this.TM0C.TM0D.menus[this.id].TM0g;
		if(this.TMd){
			var TM15=0,TM16;
			this.TM0C.TM17=[];
			for(i in this.TM0g){
				TM16=0;
				for(j in this.TM0g[i]){
					if(!this.TM0C.TM17[this.TM0g[i][j].name])this.TM0C.TM17[this.TM0g[i][j].name]={'x':TM16,'y':TM15};
					TM16+=TMh.TM0K(this.TM0g[i][j])
				}
				TM15+=TMh.TM0L(this.TM0g[i][j])
			}
			this.TM0C.TMf=TMh.TM4(this.TMf,this.TM0C.TM17[window.name].x-TMh.TM0N(window),this.TM0C.TM17[window.name].y-TMh.TM0P(window))
		}else{
			TMh.TMB(this.TMf,{'x':this.TM0C.TMf.x-this.TM0C.TM17[window.name].x+TMh.TM0N(window),'y':this.TM0C.TMf.y-this.TM0C.TM17[window.name].y+TMh.TM0P(window)});
			if(this.TM0f)TMh.TM8(this.TMf,1)
		}
	}
	if(document.layers)for(var TM0u=0;TM0u<this.TMt;TM0u++)this.TMU[TM0u].TM00(0);
	else if(TM18)for(var TM0u=0;TM0u<this.TMt;TM0u++)this.TMU[TM0u].TM07();
	//alert(this.TMU[0].TM07());
}
function TM0U(id,TM11){
	//alert(menus[this.id]['on'+TM09[TM11]]);
	if(!TMh.TM0G)return;
	if(this.TM0C&&TM11)top.TM0t.TM19(this.id,id,TM11);
	else return menus[this.id]['on'+TM09[TM11]](id)
}
function TM0V(){
	if(this.TM0d>0||!this.TM1A)return;
	if(this.TMJ)this.TMJ.TM03(this.TMe);
	this.TMJ=null;
	if(this.TM0e)this.TM0e();
	if(!TMh.TM2&&!TMh.TM0l)this.TM08(true)
}
function TM0W(){
	if(this.TMJ)this.TMJ.TM03(this.TMe);
	this.TMJ=null;
	this.TM0d=0
}
function TM0X(id){
	var TM1B=Boolean(this.TM0T[id].TMq[1]);
	if(TM1B&&this.TM0C)top.TM0t.TM19(this.id,id,4);
	return TM1B
}
function TM0Y(id){
	this.TM0d--;
	this.TM0T[id].TM00(0);
	if(this.TM1C)clearTimeout(this.TM1C);
	this.TM1A=setTimeout('menus["'+this.id+'"].hide()',this.TM0T[id].TMW('hide_delay'));
	if(this.TM0T[id].TMi.sb!=null)top.status='';
	if(this.TM0T[id].TMi.oo!=null)this.TM0T[id].TMi.oo(id)
}
function TM0Z(id){
	if((TMh.TM0l||window.opera)&&this.TM0T[id].TMx==1)return;
	this.TM0d++;
	for(var TM1D=this.TM0T[id];TM1D!=this;TM1D=TM1D.TMs){
		TM1D.TM00(1);
		//alert ("tm1d is "+TM1D.TM00(1));
	}
	var TM1D=this.TM0T[id];
	clearTimeout(this.TM1A);
	this.TM1A=null;
	if(TM1D.TMi.sb!=null)setTimeout('menus["'+this.id+'"].TM0T["'+id+'"].TM1I()',10);
	this.TM02=TM1D;
	if(TM1D.TMi.oh!=null)TM1D.TMi.oh(id);
	if(TM1D.TMs.TMU[0].TM1E<0)return;
	if(TM1D.TMs.TMU[0].TM1E)this.TM1C=setTimeout('menus["'+this.id+'"].TM0T["'+id+'"].expand()',TM1D.TMs.TMU[0].TM1E);
	else TM1D.expand()
}
function TM0a(id){
	this.TM0T[id].TM00(2);
	if(this.TM0T[id].TMs.TMU[0].TM1E<0)this.TM0T[id].expand()
}
function TM0p(TM1F,TMs,TMQ,TM1G){
	this.id=this.TM1F=new String(TM1F);
	//alert(TM1F+ " "+TMs + " " + TMQ + " " + TM1G);
	this.TMs=TMs;
	this.TMQ=TMQ;
	this.TMr=this.TM1F.split('_');
	this.TMS=this.TMr.length-1; //level
	//alert(this.TMS);
	var TM1H='';
	for(var i=0;i<=this.TMS;i++){ 
		TM1H+='['+(Number(this.TMr[i])+(i?3:0))+']';
		//alert(i+ " " + (Number(this.TMr[i])+(i?3:0))); 
	}
	//window.status = TM1H;
	eval('this.TMq = this.TMQ.TM0Q'+TM1H);
	
	if(!this.TMq)return;
	this.TMi=this.TMq[2]?this.TMq[2]:[];
	//alert(this.TMi);
	this.TMQ.TM0T[this.id]=this;
	TMs.TMU[TMs.TMU.length]=this;
	this.TM00=TMw;
	this.TM1I=TM1J;
	this.TM07=TM0h;
	this.TM0c=TMp;
	//alert(TMp);
	this.TMW=TM1K;
	this.TMY=TM1L;
	this.TM0s=TMv;
	this.TM03=TMy;
	this.expand=TM04;
	if(!TM1G){
		//alert("kjdflk");
		this.TM1M=this.TMs.TMi.bt||this.TMW('block_top');
		this.TM1N=this.TMs.TMi.bl||this.TMW('block_left');
		this.TM1O=this.TMW('top')<0;
		this.TM1P=this.TMW('left')<0;
		this.TM1Q=this.TMW('width');
		this.TM1R=this.TMW('height');
		this.TMu=this.TMW('vertical');
		this.TM1S=this.TMW('wise_pos');
		this.TM1E=this.TMW('expd_delay')
	}
	//alert(this.TMs.TMU[0].TM1Q);
	var TM1T=this.TMs.TMU[0].TM1Q,TM1U=this.TMs.TMU[0].TM1R,TMURI;
	//window.status = TMU[0];
	//alert(this.TMs.TMU[0].TM1Q);
	if(this.TMs.TMU[0].TMu){ //true of false; false if vertical (see template)
		if(this.TMs.TMi.bw!=null)TM1T=this.TMs.TMi.bw;
		if(this.TMi.sh!=null)TM1U=this.TMi.sh
	}else{
		//if(this.TMs.TMi.bh!=null)TM1U=this.TMs.TMi.bh;
		//if(this.TMi.sw!=null)TM1T=this.TMi.sw
	}
	
	//additions by GORE for staatslotterij
	if(this.TMi.breedte!=null){
		if(this.TMS==0){
			TM1T=(this.TMi.breedte>0)?this.TMi.breedte:80;
		}else{
//changed from 120 by Theo for staatsloterij
			 TM1T=(this.TMi.breedte>0)?this.TMi.breedte:150;
		}
	}
	if(this.TMi.uri!=null)TMURI=this.TMi.uri;		
	
	//var TMuri = "44";
	this.TMs.TMZ[TM1G]=this.TM0c(TM1T,TM1U,TMURI);
	this.TMt=this.TMq.length-3;
	//alert(this.TMq.length + "this is "+ this.TMq);
	//window.status = this.TMq.length + "this is "+ this.TMq;
	
	if(this.TMt>0&&this.TMq[3]){ // links
		this.TMU=[];
		this.TM1V=TMN;
		this.TM06=TM1W;
		if(TM18&&!document.layers){
			this.TM06();
			this.TM1X=this.TMS==0&&this.TMQ.TM0o
		}
	}else{
		//alert(this.TMt);
	}
	
}
function TM1W(){
	this.TMZ=[];
	for(var i=0;i<this.TMt;i++)if(this.TMq[3+i])new TM0p(this.TM1F+'_'+i,this,this.TMQ,i);
	else this.TMt--;
	this.TM1V();
	for(i in this.TMU)this.TMU[i].TM0s()
}
function TM1J(){
	top.status=this.TMi.sb
}
function TM1K(TM0j){
	var TM1Y=null,TM1Z=this.TMQ.TM0R[this.TMS];
	if(TM1Z)TM1Y=TM1Z[TM0j];
	return(TM1Y==null?this.TMs.TMW(TM0j):TM1Y)
}
function TM1L(TM1a,TM1b){
	var TM1c=this.TMW('css'),TM1d=TM1c[TM1a];
	if(typeof(TM1d)=='string')return TM1d;
	for(var TM1e=TM1b;TM1e>=0;TM1e--)if(TM1d[TM1e])return TM1d[TM1e]
}
function TM0h(TMC,value){
	if(this.TMt>0){
		if(TMh.TM0q){
			TMh.TMB(TMh.TM0r,TMh.TM0k);
			TMh.TM0k=TMh.TM4(TMh.TM0r,0,0);
			TMh.TM0q=0
		}
		var TM1f=this.TMU[0],TM1g=TMh.TM4(this.elements[0],(this.TMi.bl?this.TMi.bl:TM1f.TM1N)-TMh.TM0k.x,(this.TMi.bt?this.TMi.bt:TM1f.TM1M)-TMh.TM0k.y,this.TM1X);
		var temp = this.TMi.xx;
		//alert(temp);
		if(TM1f.TM1P)TM1g.x-=TMh.TMD(this.TMg);
		if(TM1f.TM1O)TM1g.y-=TMh.TMD(this.TMg,1);
		if(TM1f.TM1S&&!this.TMQ.TM0C){
			var wise=TM1f.TM1S,TM1h=TMh.TMD(this.TMg,0),TM1i=TMh.TMD(this.TMg,1),TM1j=TMh.TM0K(window),TM1k=TMh.TM0L(window),TM1l=TMh.TM0N(window),TM1m=TMh.TM0P(window);
			if(TM1g.x+TM1h>TM1j+TM1l)TM1g.x=(wise==1?TM1j+TM1l:TM1g.x)-TM1h;
			if(TM1g.y+TM1i>TM1k+TM1m)TM1g.y=(wise==1?TM1k+TM1m:TM1g.y)-TM1i;
			if(TM1g.x<TM1l)TM1g.x=TM1l;
			if(TM1g.y<TM1m)TM1g.y=TM1m
		}
		TMh.TMB(this.TMg,TM1g);
		if(this.TMo)TMh.TMB(this.TMo,TM1g);
		if(TM18&&!document.layers)for(var TM0u=0;TM0u<this.TMt;TM0u++)this.TMU[TM0u].TM07()
	}
}

// submneu items (GORE LORO)
// takes SUB_ITEMS array, activeSG_0, activeSG_1, activeSG_Main
function drawSubMenu(a_items){

	var strSubMenu =""
	level0 = activeSG_0;
	level1 = activeSG_1;
	level_top = activeSG_Main;
	var fnt_color_level0 = "#000000";
	var fnt_color_level1 = "#000000";
	strSubMenu = "<table border='0' cellpadding='3' cellspacing='0' width='100%' align='left'>";
	
	for (x =0; x < a_items.length; x++){
		if((level0==a_items[x][0])||(level1==a_items[x][0])||(level_top==a_items[x][0])){
			if(a_items[x][1]==null){
			// document.write("-"+a_item[x][0]+"<br>&#x0009;");
			//document.write("-"+a_item[x]+"<br>");
			}else{
			//document.write("-"+a_item[x][0]+"<br>");
				for(y=1;y<a_items[x].length;y++){

					if(level0==a_items[x][y][2]){
						if(level1!=""){
							fnt_color_level0 = "#FFFFFF";
							css_style = "class=\"navSubmenuItemHit\" onmouseover=\"this.className='navSubmenuItemHit'\" onmouseout=\"this.className='navSubmenuItemHit'\"";
							//css_style = "style = 'background-color:#819BD2;cursor:hand;' onMouseOver=this.style.background='#819BD2' onMouseOut=this.style.background='#819BD2'";

						}else{
							fnt_color_level0 = "#000000";
							css_style = "class=\"navSubmenuItem\" onmouseover=\"this.className='navSubmenuItemHover'\" onmouseout=\"this.className='navSubmenuItem'\"";
							//css_style = " style = 'background-color:#DAE3F6;cursor:hand;' onMouseOver=this.style.background='#F1F5FC' onMouseOut=this.style.background='#DAE3F6'";
						}
					}else if ((level_top==a_items[x][y][2])||(level1==a_items[x][y][2])){
						fnt_color_level0 = "#FFFFFF";
						css_style = "class=\"navSubmenuItemHit\" onmouseover=\"this.className='navSubmenuItemHit'\" onmouseout=\"this.className='navSubmenuItemHit'\"";
						//css_style = "style = 'background-color:#819BD2;cursor:hand;' onMouseOver=this.style.background='#819BD2' onMouseOut=this.style.background='#819BD2'";
					}else{
						fnt_color_level0 = "#000000";
						css_style = "class=\"navSubmenuItem\" onmouseover=\"this.className='navSubmenuItemHover'\" onmouseout=\"this.className='navSubmenuItem'\"";
						//css_style = " style = 'background-color:#DAE3F6;cursor:hand;' onMouseOver=this.style.background='#F1F5FC' onMouseOut=this.style.background='#DAE3F6'";
					}

					strSubMenu = strSubMenu + "<tr><td style='padding-left:8px;text-align:left'" + css_style+" onclick=window.location.href='"+a_items[x][y][1]+ "'>";
					strSubMenu = strSubMenu + "<a href='"+a_items[x][y][1]+"'  style='text-decoration:none;color:"+fnt_color_level0+";cursor:pointer'><div style='position:relative;width:100%;text-decoration:none;color:"+fnt_color_level0+";' >"+a_items[x][y][0]+"</div></a></td></tr>";
					//strSubMenu = strSubMenu + "<tr "+css_style+" onclick=window.location.href='"+a_items[x][y][1]+"'><td style='text-align:left;height:16px;padding-left:6px;color:"+ fnt_color_level0+"'>"+a_items[x][y][0]+"</td></tr>";

					if(a_items[x][y][3]==null){
						//document.write(">>>"+a_item[x][y][3][0]+"<br>")
					}else{
						if((level1==a_items[x][y][2])||(level0==a_items[x][y][2])){
							for(z=3;z<a_items[x][y].length;z++){
								if(level0==a_items[x][y][z][2]){
									//css_style2 = "style = 'background-color:#FFFFFF;cursor:hand;' onMouseOver=this.style.background='#FFFFFF' onMouseOut=this.style.background='#FFFFFF'";
									css_style2 = "class=\"navSubsubmenuItemHit\" onmouseover=\"this.className='navSubsubmenuItemHit'\" onmouseout=\"this.className='navSubsubmenuItemHit'\"";
									str_pointer = ">";
								}else{
									str_pointer = "";
									css_style2 = "class=\"navSubsubmenuItem\" onmouseover=\"this.className='navSubsubmenuItemHover'\" onmouseout=\"this.className='navSubsubmenuItem'\"";
									//css_style2 = " style = 'background-color:#F1F5FC;cursor:hand;' onMouseOver=this.style.background='#FFFFFF' onMouseOut=this.style.background='#F1F5FC'";
								}
								//document.write("->>>>>>"+a_items[x][y][z][0]+"<br>");
								strSubMenu = strSubMenu + "<tr>";
								strSubMenu = strSubMenu + "<td style='padding-left:16px;text-align:left;vertical-align:top;height:12px' " +css_style2+" onclick=window.location.href='"+a_items[x][y][z][1]+"'>";
								strSubMenu = strSubMenu + "<a href='"+a_items[x][y][z][1]+"'  style='text-decoration:none;color:"+fnt_color_level1+";cursor:pointer;'><div style='position:relative;width:100%;text-decoration: none;color:"+fnt_color_level1+";' >"+a_items[x][y][z][0]+"</div></a></td></tr>";
					
								//+a_items[x][y][z][0]+"</td></tr>";
								//strSubMenu = strSubMenu + "<td colspan='2' style='text-align:left;color:"+fnt_color_level1+"'>"+a_items[x][y][z][0]+"</td></tr>";
							}
						}
					}
				}
			//document.write("+"+a_item[x].length+a_item[x][1].length+"<br>");
			}
		}
	} 
	strSubMenu = strSubMenu + "</table>";
	document.write(strSubMenu);
}

var TM1n=navigator.appVersion.split('MSIE ');
var TM18=window.opera||TM1n.length<2||parseFloat(TM1n[1])<5||(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':TM18?'opr':'dom'),'.js"></scr','ipt>');
//alert(TMenu_path_to_files+"menu."+(document.layers?"lay":TM18?"opr":"dom_copy"));