var A,B=[];
C=['mout','mover','mdown'];
function D(){
	this.F=document.body.clientWidth!=null?
	function(){ return document.body.clientWidth }
	:
	function(){ return window.innerWidth }
	;
	this.G=window.innerHeight!=null?function(){
		return window.innerHeight
	}
	:function(){
		return document.body.clientHeight
	}
	;
	this.H=window.pageXOffset!=null?function(){
		return window.pageXOffset
	}
	:function(){
		return document.body.scrollLeft
	}
	;
	this.I=window.pageYOffset!=null?function(){
		return window.pageYOffset
	}
	:function(){
		return document.body.scrollTop
	}
	;
	this.J=document.all?function(i){
		return document.all[i]
	}
	:function(i){
		return document.getElementById(i)
	}
	;
	this.K=L;
	this.M=N;
}


function L(){
	var P,Q;
	if(this.width!=(P=this.F())){
		this.width=P;
		Q=true
	}
	if(this.height!=(P=this.G())){
		this.height=P;
		Q=true
	}
	if(this.R!=(P=this.H())){
		this.R=P;
		Q=true
	}
	if(this.S!=(P=this.I())){
		this.S=P;
		Q=true
	}
	if(Q){
		if(this.T)clearTimeout(this.T);
		this.T=setTimeout('A.M()',200)
	}
	window.setTimeout('A.K()',100)
}
function N(){
	for(var i=0;
	i<B.length;
	i++)if(B[i].U)B[i].M()
}
function menu(V,W){
	this.V=V;
	this.W=W;
	this.X=[];
	this.Y=[];
	this.Z=[];
	this.a=0;
	this.b=c;
	this.e=f;
	this.g=h;
	this.k=l;
	this.m=n;
	this.o=p;
	this.M=q;
	if(!A){
		A=new D();
		A.K()
	}
	this.id=B.length;
	B[this.id]=this;
	for(var i=0;
	i<this.V.length;
	i++)new r(i,this,this);
	var s=0,t=0,u=Number.POSITIVE_INFINITY,v=Number.POSITIVE_INFINITY;
	for(var i=0;
	i<this.Y.length;
	i++){
		s=Math.max(s,this.Y[i].o('left')+this.Y[i].o('width'));
		t=Math.max(t,this.Y[i].o('top')+this.Y[i].o('height'));
		u=Math.min(u,this.Y[i].o('left'));
		v=Math.min(v,this.Y[i].o('top'))
	}
	this.Z.top=0;
	this.Z.left=0;
	this.Z.width=s-u;
	this.Z.height=t-v;
	this.U=true;
	this.M()
}
function c(){
	if(!this.z||this.a||!this.AA)return;
	this.AA.AB(0);
	this.AA=null
}
function q(){
	this.Z.top=this.Z.left=0;
	if(this.W.align=='center')this.Z.left=Math.round((A.width-this.Z.width)/2);
	else if(this.W.align=='right')this.Z.left=A.width-this.Z.width;
	if(this.W.valign=='center')this.Z.top=Math.round((A.height-this.Z.height)/2);
	else if(this.W.valign=='bottom')this.Z.top=A.height-this.Z.height;
	if(this.W.scroll=='horizontal'||this.W.scroll=='both')this.Z.left+=A.R;
	if(this.W.scroll=='vertical'||this.W.scroll=='both')this.Z.top+=A.S;

	for(var i=0; i<this.Y.length; i++){
		this.Y[i].AC('hidden',true);
		this.Y[i].AD(true);
		this.Y[i].AC('mout')
	}

}
function p(AE){
	return this.Z[AE]?this.Z[AE]:0
}
function f(id){
	return(this.X[id].AF[1]?true:false)
}
function h(id){
	this.a--;
	this.X[id].AC('mout');
	if(this.X[id].AG)clearTimeout(this.X[id].AG);
	this.z=setTimeout('B['+this.id+'].b();',this.W.hide_delay[this.X[id].AH])
}

function l(id){
	this.a++;
	for(var item=this.X[id];
	item.AI;
	item=item.AJ)item.AC('mover');
	clearTimeout(this.z);
	this.z=null;
	if(this.W.expd_delay[this.X[id].AH])this.X[id].AG=setTimeout('B["'+this.id+'"].X['+id+'].AK()',this.W.expd_delay[this.X[id].AH]);
	else this.X[id].AK()
}
function n(id){
	this.X[id].AC('mdown')
}
function r(AL,AJ,AM){
	this.AL=new String(AL);
	this.AJ=AJ;
	this.AM=AM;
	this.AN=this.AL.split('_');
	this.AH=this.AN.length-1;
	var AO='';
	for(var i=0;
	i<=this.AH;
	i++)AO+='['+(Number(this.AN[i])+(i?3:0))+']';
	eval('this.AF = this.AM.V'+AO);
	if(!this.AF)return;
	this.id=this.AM.X.length;
	this.AM.X[this.id]=this;
	AJ.Y[AJ.Y.length]=this;
	if(document.layers){
		this.write=AP;
		this.AC=AQ;
		this.o=AR
	}
	else{
		this.write=AS;
		this.AC=AT;
		this.o=AU
	}
	this.AB=AV;
	this.AK=AW;
	this.AD=AX;
	this.AY=[];
	this.AI=[];
	this.write(this.AD(false));
	this.AZ='hidden';
	this.Y=[];
	var Aa=this.AF.length-3;
	for(var i=0;
	i<Aa;
	i++)new r(this.AL+'_'+i,this,this.AM)
}
function AV(Ab){
	for(var i=0;
	i<this.Y.length;
	i++)this.Y[i].AC('hidden');
	if(Ab>=this.AH)this.AC('mout');
	else this.AJ.AB(Ab)
}
function AW(){
	if(this.AM.AA&&this.AH<=this.AM.AA.AH)this.AM.AA.AB(this.AM.AA.AJ==this?this.AH+1:this.AH);
	if(!this.AM.AA||this.AM.AA.AJ!=this)for(var i=0;
	i<this.Y.length;
	i++)this.Y[i].AC('mout');
	this.AM.AA=this
}
function AX(K){
	if(this.AN[this.AH]==0){
		this.AY.left=this.AJ.o('left')+(this.AF[2]!=null&&this.AF[2][0]!=null?this.AF[2][0]:this.AM.W.block_left[this.AH]);
		this.AY.top=this.AJ.o('top')+(this.AF[2]!=null&&this.AF[2][1]!=null?this.AF[2][1]:this.AM.W.block_top[this.AH])
	}
	else{
		this.AY.left=this.AJ.Y[this.AN[this.AH]-1].o('left')+(this.AF[2]!=null&&this.AF[2][0]!=null?this.AF[2][0]:this.AM.W.left[this.AH]);
		this.AY.top=this.AJ.Y[this.AN[this.AH]-1].o('top')+(this.AF[2]!=null&&this.AF[2][1]!=null?this.AF[2][1]:this.AM.W.top[this.AH])
	}
	this.AY.width=(this.AF[2]!=null&&this.AF[2][2]!=null?this.AF[2][2]:this.AM.W.width[this.AH]);
	this.AY.height=(this.AF[2]!=null&&this.AF[2][3]!=null?this.AF[2][3]:this.AM.W.height[this.AH]);
	if(!K)return this.AY;
	this.o('left',this.AY.left);
	this.o('top',this.AY.top);
	for(var i=0;
	i<this.Y.length;
	i++)this.Y[i].AD(true)
}
function AS(Ac){
	
	
	for(var i=0;
	i<C.length;
	i++){

		document.write('<div id="m'+this.AM.id+'i'+this.id+C[i]+'" style="position: absolute; left: '+Ac.left+'px; top: '+Ac.top+'px; width: '+Ac.width+'px; height: '+Ac.height+'px; visibility: hidden; z-index: '+this.AH*2+'; " class="m0l'+this.AH+C[i]+'o"><div class="m0l'+this.AH+C[i]+'i">'+(typeof(this.AF[0])=='object'?this.AF[0][i]:this.AF[0])+'</div></div>');
		this.AI[C[i]]=A.J('m'+this.AM.id+'i'+this.id+C[i])
	}

	
	
	document.write('<div id="m'+this.AM.id+'i'+this.id+'i" style="position: absolute; left: '+Ac.left+'px; top: '+Ac.top+'px; width: '+Ac.width+'px; height: '+Ac.height+'px; visibility: hidden; z-index: '+(this.AH*2+1)+';"><a href="'+(this.AF[1]!=null&&typeof(this.AF[1])!='string'&&this.AF[1][0]!=null?this.AF[1][0]:this.AF[1])+'"'+(this.AF[1]!=null&&typeof(this.AF[1])!='string'&&this.AF[1][1]!=null?' target="'+this.AF[1][1]+'"':'')+' onclick="return B['+this.AM.id+'].e('+this.id +'); " onmouseout="B['+this.AM.id+'].g('+this.id+'); " onmouseover="B['+this.AM.id+'].k('+this.id+'); "><img src="'+this.AM.W['pixel_path']+'" width="'+Ac.width+'" height="'+Ac.height+'" border="0"'+(this.AF[1]!=null&&typeof(this.AF[1])!='string'&&this.AF[1][2]!=null?' alt="'+this.AF[1][2]+'"':'')+'></a></div>');
	this.link=A.J('m'+this.AM.id+'i'+this.id+'i')
}
function AT(AZ,Ad){
	if(!this.AH&&AZ=='hidden'&&!Ad)AZ='mout';
	if(AZ==this.AZ)return;
	if(this.AZ=='hidden')this.link.style.visibility='visible';
	else this.AI[this.AZ].style.visibility='hidden';
	if(AZ=='hidden')this.link.style.visibility='hidden';
	else this.AI[AZ].style.visibility='visible';
	this.AZ=AZ
}
function AU(AE,Ae){
	if(!AE)return;
	if(this.link.style.pixelLeft)if(AE=='left')AE='pixelLeft';
	else if(AE=='top')AE='pixelTop';
	else if(AE=='width')AE='pixelWidth';
	else if(AE=='height')AE='pixelHeight';
	if(Ae){
		for(var i=0;
		i<C.length;
		i++)this.AI[C[i]].style[AE]=Ae;
		this.link.style[AE]=Ae;
		return(this.AY[AE]=Ae)
	}
	else{
		var Af=/^(\-?\d+)/;
		if(Af.exec(this.link.style[AE]))return new Number(RegExp.$1)
	}

}
function AP(Ac){
	for(var i=0;
	i<C.length;
	i++){
		document.write('<layer name="m'+this.AM.id+'i'+this.id+C[i]+'" left="'+Ac.left+'" top="'+Ac.top+'" z-index="'+this.AH*2+'" width="'+Ac.width+'" height="'+Ac.height+'" visibility="hide"><table cellpadding="0" cellspacing="0" border="0" width="'+Ac.width+'" height="'+Ac.height+'" class="m0l'+this.AH+C[i]+'o"><tr><td><div class="m0l'+this.AH+C[i]+'o"><div class="m0l'+this.AH+C[i]+'i">'+(typeof(this.AF[0])=='object'?this.AF[0][i]:this.AF[0])+'</div></div></td></tr></table></layer>');
		this.AI[C[i]]=document.layers['m'+this.AM.id+'i'+this.id+C[i]]
	}

	document.write('<layer name="m'+this.AM.id+'i'+this.id+'i" left="'+Ac.left+'" top="'+Ac.top+'" z-index="'+(this.AH*2+1)+'" visibility="hide" width="'+Ac.width+'" height="'+Ac.height+'"><a href="'+(this.AF[1]!=null&&typeof(this.AF[1])!='string'&&this.AF[1][0]!=null?this.AF[1][0]:this.AF[1])+'"'+(this.AF[1]!=null&&typeof(this.AF[1])!='string'&&this.AF[1][1]!=null?' target="'+this.AF[1][1]+'"':'')+' onclick="return B['+this.AM.id+'].e('+this.id+');" onmouseout="B['+this.AM.id+'].g('+this.id+');" onmouseover="B['+this.AM.id+'].k('+this.id+');"><img src="'+this.AM.W['pixel_path']+'" width="'+Ac.width+'" height="'+Ac.height+'" border="0"'+(this.AF[1]!=null&&typeof(this.AF[1])!='string'&&this.AF[1][2]!=null?' alt="'+this.AF[1][2]+'"':'')+'></a></layer>');
	this.link=document.layers['m'+this.AM.id+'i'+this.id+'i']
}
function AQ(AZ){
	if(!this.AH&&AZ=='hidden')AZ='mout';
	if(AZ==this.AZ)return;
	if(this.AZ=='hidden')this.link.visibility='show';
	else this.AI[this.AZ].visibility='hide';
	if(AZ=='hidden')this.link.visibility='hide';
	else this.AI[AZ].visibility='show';
	this.AZ=AZ
}
function AR(AE,Ae){
	if(!AE)return;
	if(Ae){
		this.AY[AE]=Ae;
		for(var i=0;
		i<C.length;
		i++){
			this.AI[C[i]].moveTo(this.AY.left,this.AY.top);
			this.AI[C[i]].resizeTo(this.AY.width,this.AY.height)
		}
		this.link.moveTo(this.AY.left,this.AY.top);
		this.link.resizeTo(this.AY.width,this.AY.height)
	}
	return this.AY[AE]
}

var states = ['mout', 'mover', 'mdown'];
var bgcolors = ['#4682B4', '#6699cc', '#99ccff'];


function wrap_parent(text, ps, icon) {
	//return '<table cellpadding="1" cellspacing="0" border="0" width="100%" height="100%"><tr><td>'+ text +'</td></tr></table>';
	return '<div style="padding: 2px 0px 0px 4px;">'+ text + '</div>';
}

function wrap_child(text, icon) {
	//return '<table cellpadding="1" cellspacing="0" border="0" width="100%" height="100%"><tr><td>'+ text +'</td></tr></table>';
	return '<div style="padding: 2px 0px 0px 4px;">'+ text + '</div>';
}

//function wrap_parent (text, pos, icon) {
//	var res = new Array;
//	for (var i=0; i<states.length; i++)
//		res[i] =  '<table cellpadding="1" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="2" cellspacing="0" border="0" width="100%" height="24" bgcolor="' + bgcolors[i] + '"><tr><td valign="middle" width="100%">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black"><span style="font-size: 13px;">' + text + '</span></font></td><td valign="middle"><img src="img/' + states[i] + '_' + pos + 'arrow.gif" width="12" height="12"></td></tr></table></td></tr></table>';
//	return res;
//}
//function wrap_child (text, icon) {
//	var res = new Array;
//	for (var i=0; i<states.length; i++)
//		res[i] =  '<table cellpadding="0" cellspacing="0" border="0" bgcolor="#DBEAF5" width="100%"><tr><td><table cellpadding="3" cellspacing="1" border="0" width="100%" height="24"><tr><td bgcolor="' + bgcolors[i] + '" style="padding: 3px;" valign="middle">&nbsp;' + (icon != null ? '<img src="img/'  + icon + '" height="16" align="absmiddle">&nbsp;' : '') + '<font face="tahoma, verdana, arial" color="black"><span style="font-size: 12px;">' + text + '</span></font></td></tr></table></td></tr></table>';
//	return res;
//}

