var w,F=[];
G=['mout','mover','mdown'];

function getmainmenu()
{
 this.getsubmenu=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=getmenu;this.getmenuG=S;
}

function getmenu()
{
 var getsubsubmenu,getmenuD;
 if(this.width!=(getsubsubmenu=this.getsubmenu()))
 {
  this.width=getsubsubmenu;getmenuD=true;
 }
 if(this.height!=(getsubsubmenu=this.j()))
 {
  this.height=getsubsubmenu;getmenuD=true;
 }
 if(this.d!=(getsubsubmenu=this.m()))
 {
  this.d=getsubsubmenu;getmenuD=true;
 }
 if(this.L!=(getsubsubmenu=this.Q()))
 {
  this.L=getsubsubmenu;getmenuD=true;
 }
 if(getmenuD)
 {
  if(this.x)clearTimeout(this.x);
  this.x=setTimeout('w.getmenuG()',200);
 }
 window.setTimeout('w.b()',50);
}

function S()
{
 for(var i=0;i<F.length;i++)
 if(F[i].g)F[i].getmenuG();
}

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=getmenuDD;
 this.onmouseover=c;
 this.onmousedown=A0;
 this.y=O;
 this.getmenuG=getmenuM;
 if(!w)
 {
  w=new getmainmenu();
  w.b();
 }

 this.id=F.length;
 F[this.id]=this;
 for(var i=0;i<this.J.length;i++)new getmenuDDD(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.getmenuG();
}

function t()
{
 if(!this.k||this.q||!this.e)return;
 this.e.u(0);
 this.e=null;
}

function getmenuM()
{
 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 getmenuDD(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 getmenuDDD(D,E,A)
{
 this.D=new String(D);
 this.E=E;
 this.A=A;
 this.getmenuBB=this.D.split('_');
 this.H=this.getmenuBB.length-1;
 var f='';
 for(var i=0;i<=this.H;i++)f+='['+(Number(this.getmenuBB[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=getmenuHH;
  this.o=P;
  this.y=getmenuCC;
 }
 else
 {
  this.write=z;
  this.o=getmenuNN;
  this.y=s;
 }
 this.u=getmenuKK;
 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 getmenuDDD(this.D+'_'+i,this,this.A);
}

function getmenuKK(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.getmenuBB[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.getmenuBB[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.getmenuBB[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 getmenuNN(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,getmenuII)
{
 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(getmenuII)
 {
  for(var i=0;i<G.length;i++)this.C[G[i]].style[W]=getmenuII;
  this.link.style[W]=getmenuII;
  return(this.O0[W]=getmenuII);
 }
 else
 {
  var Q0=/^(\-?\d+)/;
  if(Q0.exec(this.link.style[W]))return new Number(RegExp.$1);
 }
}
   
function getmenuHH(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 getmenuCC(W,getmenuII)
{
 if(!W)return;
 if(getmenuII)
 {
  this.O0[W]=getmenuII;
  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];
}

function wrapdown(text)
{ 
 return '<TABLE ALIGN="left" WIDTH="140" CELLSPACING="0" CELLPADDING="0" BORDER="0"><TR><TD CLASS="wrapdown" ALIGN="left">' + text + '</TD><TD ALIGN="right" WIDTH="1" VALIGN="bottom"><IMG SRC="images/imgArrowBlackDown.gif" WIDHT="13" HEIGHT="6" BORDER="0"/></TD></TR></TABLE>';
} 

function wrapright(text)
{ 
 return '<TABLE ALIGN="left" WIDTH="122" CELLSPACING="0" CELLPADDING="0" BORDER="0"><TR><TD CLASS="wrapright" ALIGN="left">' + text + '</TD><TD ALIGN="right" WIDTH="1" VALIGN="bottom"><IMG SRC="images/imgArrowBlackRight.gif" WIDHT="10" HEIGHT="6" BORDER="0"/></TD></TR></TABLE>';
} 

function wraplogout(text)
{ 
 return '<TABLE ALIGN="left" WIDTH="122" CELLSPACING="0" CELLPADDING="0" BORDER="0"><TR><TD CLASS="wrapdown" ALIGN="left">' + text + '</TD></TR></TABLE>';
}