/***************************************************************\
  ULTIMATE DROP DOWN MENU Version 4.2 by Brothercake
  http://www.udm4.com/
  This script may not be used or distributed without license

  modified by Aperto AG 2004
\***************************************************************/

// begin: new Code (SH)
for (var m=0; m<w.length; m++) {
// end: new Code (SH)
	w[m].ap=function(umC,umE){
		this.rl=this.rv.length;
		if(this.rl>0){
			this.i=0;
			do{
				if(this.rv[this.i][1]==''){
					this.rv[this.i][0](umE,umC);
				}else if(umC==this.rv[this.i][1]){
					this.rv[this.i][0](umE);
				}
				this.i++;
			}while(this.i<this.rl);
		}
	};
	
	w[m].vn=function(umNN){
		return umNN.replace(/html[:]+/,'');
	};
	
	w[m].gt=function(umRT,umTG,umCE){
		if(!umCE){
			umCE=[];
		}
		for(var i=0; i<umRT.childNodes.length; i++){
			if(umRT.childNodes[i].nodeName.toUpperCase()==umTG.toUpperCase()||umTG=="*"){
				umCE[umCE.length]=umRT.childNodes[i];
			}
			umCE=this.gt(umRT.childNodes[i],umTG,umCE);
		}
		return umCE;
	};
	
	w[m].gp=function(umRI){
		if(this.vn(umRI.nodeName).toLowerCase()=='li'){
			return umRI;
		}else{
			return this.gp(umRI.parentNode)
		}
	};
	
	w[m].gc=function(umRA){
		return umRA.getElementsByTagName('a')[0];
	};
	
	w[m].gu=function(umE){
        if(umE.nodeType!=8){
    		return umE.getElementsByTagName('ul');
        }else{
            return new Array();
        }
	};
	
	w[m].gm=function(umE){
		this.mu=null;
		this.mn=umE.childNodes;
		this.ml=this.mn.length;
		i=0;
		do{
			this.nn=this.vn(this.mn[i].nodeName).toLowerCase();
			if(this.nn=='ul'){
				this.mu=this.mn[i];
				break;
			}
			i++;
		}while(i<this.ml);
		return this.mu;
	};
	
	w[m].cleanWhitespace=function(umN){
		if(this.mie){
			return false;
		}
		for (var x=0;x<umN.childNodes.length;x++){
			this.kd=umN.childNodes[x];
			if((this.kd.nodeType==3)&&(!/\S/.test(this.kd.nodeValue))){
				umN.removeChild(umN.childNodes[x]);
				x--;
			}
			if(this.kd.nodeType==1){
				this.cleanWhitespace(this.kd);
			}
		}
		return umN;
	};
	
	w[m].getWindowDimensions=function(){
		if(typeof window.innerWidth!=this.un){
			this.wz={x:window.innerWidth,y:window.innerHeight};
		}else if(this.q){
			this.wz={x:this.m.body.clientWidth,y:this.m.body.clientHeight};
		}else{
			this.wz={x:this.m.documentElement.offsetWidth,y:this.m.documentElement.offsetHeight};
		}
		return this.wz;
	};
	
	w[m].getScrollAmount=function(){
		if(typeof window.pageYOffset!=this.un){
			this.sc=window.pageYOffset;
		}else if(this.q){
			this.sc=this.m.body.scrollTop;
		}else{
			this.sc=this.m.documentElement.scrollTop;
		}
		return this.sc;
	};
	
	w[m].getRealPosition=function(umE,umX){
		this.ps=(umX=='x')?umE.offsetLeft:umE.offsetTop;
		this.te=umE.offsetParent;
		while(this.te!=null){
			this.ps+=(umX=='x')?this.te.offsetLeft:this.te.offsetTop;
			this.te=this.te.offsetParent;
		}
		return this.ps;
	};
	
	w[m].cm=function(e){
		if(!e){
			e=window.event;
		}
		if(!this.tr.contains(e.target||e.srcElement)||e.keyCode){
			this.closeAllMenus();
		}
	};
	
	w[m].closeAllMenus=function(){
		this.n.cd(this.tr);
		this.n.ck(this.tr);
		this.ha=0;
	};
	
	w[m].activateMenu=function(umNI,umXP,umYP){
		var umVN=this.gd(umNI);
		if(umVN!=null){
			this.vm=this.gm(umVN);
			if(this.vm!=null){
				this.cf=this.n.cck();
				if(this.cf){
					this.n.cd(umVN);
					this.n.pr(this.vm,umVN,0);
					this.vm.style.left=umXP;
					this.vm.style.top=umYP;
				}
			}
		}
	};
	
	w[m].deactivateMenu=function(umNI){
		var umVN=this.gd(umNI);
		if(umVN!=null){
			this.n.cp(this.gm(umVN),umVN);
		}
	};

} // end of loop

if(!w[0].k&&typeof window.addEventListener!=w[0].un){
	window.addEventListener('load',umIni,0);
}else if(w[0].o7){
	w[0].m.addEventListener('load',umIni,0);
}else if(w[0].wie){
	window.attachEvent('onload',umIni);
	w[0].ex=['onmouseover','onmouseout','onmousedown','onmouseup','onclick','onmousewheel','onfilterchange','onkeydown','onfocus','onactivate','onscroll','over','out','target','relatedTarget'];
	window.attachEvent('onunload',function(){
		w[0].da=document.all.length;
		i=0;
		do{
			w[0].t=document.all[i];
			w[0].gg=w[0].ex.length;
			j=0;
			do{
				w[0].t[w[0].ex[j]]=null;
				j++;
			}while(j<w[0].gg);
			i++;
		}while(i<w[0].da);
	});
}else{
	if(typeof window.onload=='function'){
		w[0].on=onload;
		window.onload=function(){
			w[0].on();
			umIni();
		};
	}else{
		window.onload=umIni;
	}
}


function umIni(){
// begin: new Code (SH)
	for (var n=0; n<w.length; n++) {
// end: new Code (SH)
  	w[n].umTree=(w[n].b)?w[n].gd(w[n].id):null;
  	if(w[n].umTree!=null && w[n].umTree.getElementsByTagName('li').length > 0){
  		if(w[n].k){
  			w[n].cleanWhitespace(w[n].umTree);
  			w[n].kn=w[n].umTree.childNodes;
  			w[n].kl=w[n].kn.length;
  			i=0;
  			do{
  				w[n].t=w[n].gu(w[n].kn[i])[0];
  				if(w[n].t){
  					w[n].kn[i].removeChild(w[n].t);
  				}
  				i++;
  			}while(i<w[n].kl);
  		}else if(w[n].d){
  			w[n].ap('000',w[n].umTree);
  			for(i in w[n].menuCode){
  				w[n].nh=w[n].gd(i);
  				if(w[n].nh!=null){
  					if(w[n].mie){
  						w[n].menuCode[i]=w[n].menuCode[i].replace(/<\/(li|ul)>/ig,'</$1>\n');
  					}
                    if (w[n].wie) { // IE/Win crashes when using innerHTML property!
                        w[n].nh.insertAdjacentHTML("BeforeEnd", w[n].menuCode[i]);
                    } else {
                        w[n].nh.innerHTML+=w[n].menuCode[i];
                    }
  					if(w[n].mie){
  						w[n].dm=w[n].gm(w[n].nh);
  						w[n].xn(w[n].dm);
  						w[n].xh(w[n].dm);
  					}
  				}
  			}
  			w[n].cleanWhitespace(w[n].umTree);
  			w[n].st=0;
  			w[n].kb=(w[n].kb&&typeof umKM=='function');
  			if(w[n].kb){
  				w[n].kbm=new umKM(w[n].ident);
// original code    w[n].kbm=new umKM;
  				w[n].ap('001',w[n].kbm);
  			}
  			if(w[n].e[8]=='yes'&&w[n].wie){
  				w[n].t=w[n].m.cookie;
  				if(!w[n].t||w[n].t.indexOf('udmSnapshot')==-1||typeof applySnapshot==w[n].un){
  					w[n].st=1;
  					w[n].sy=w[n].m.createStyleSheet();
  					w[n].sy.addRule(w[n].id+' ul','visibility:visible; display:block; position:absolute !important; margin-top:-100em !important; width:1px; height:1px; overflow:scroll;',0);
  					document.attachEvent('onmousewheel',function(){
              for (z=0; z<w.length; z++) {
    						if(w[z].umTree!=null && event.ctrlKey&&w[z].st){
    							w[z].sy.disabled=1;
    							w[z].st=0;
    						}
              }
  					});
  				}
  			}
  			w[n].sp=(w[n].sp&&typeof udmSpeechModule=='function');
  			if(w[n].sp){
  				w[n].sapi=new udmSpeechModule;
  				w[n].ap('002',w[n].sapi);
  			}
  			w[n].n=new umNav(w[n].ident,w[n].umTree);
// original code    w[n].n=new umNav(w[n].umTree);
  			w[n].ap('009',w[n].n);
  			if(w[n].fe){
  				w[n].tr.style.top=(w[n].getScrollAmount())+'px';
  				window.attachEvent('onscroll',function(){
  					w[n].tr.style.top=(w[n].getScrollAmount())+'px';
  				});
  			}
  			if(w[n].s){
  				w[n].umTree.style.KhtmlOpacity="1";
  			}
  			w[n].s1=(typeof w[n].umTree.style.KhtmlOpacity!=w[n].un);
  			w[n].ready=1;
  			w[n].ap('010',w[n].tr);
  		}
  	}
	}
}

function umNav(ident,umTree){
// begin: new Code (SH)
    this.ident=ident;
	var o=ident;
// end: new Code (SH)
	w[o].n=this;
	w[o].tr=umTree;
	/* if(w[o].wie){ ### CAUTION: causes an extra request of css background-image; Needs to be defined in style sheet
        w[o].tr.style.color='black';
	} */
	if(w[o].rg){
		w[o].rw=0;
	}
	w[o].li=umTree.getElementsByTagName('li');
	w[o].ll=w[o].li.length;
	i=0;
	do{
		if(w[o].wl>0){
			w[o].t=w[o].li[i];
			if(w[o].t.className==''&&!w[o].ne(w[o].t)){
				w[o].t=w[o].gp(w[o].t.parentNode);
				if(w[o].t.className!=''&&!w[o].ne(w[o].t)){
					w[o].li[i].className=w[o].t.className;
				}
			}
		}
		this.it(w[o].li[i]);
		i++;
	}while(i<w[o].li.length);
	if(w[o].vl>0){
		w[o].mo=w[o].gu(w[o].tr);
		w[o].en=w[o].mo.length;
		if(w[o].en>0){
			i=0;
			do{
				if(w[o].mo[i].className==''){
					w[o].t=w[o].mo[i].parentNode.parentNode;
					if(w[o].t.className!=''&&w[o].t.className.indexOf(w[o].id)!=1){
						w[o].mo[i].className=w[o].t.className;
					}
				}
				i++;
			}while(i<w[o].en);
		}
	}
	w[o].mf=0;
	w[o].lf=0;
	if(typeof w[o].m.addEventListener!=w[o].un){
		w[o].m.addEventListener('mousedown',function(e){
			w[o].mf=1;
			clearInterval(w[o].oc);
			w[o].or=0;
			if(w[o].reset[0]!='no'){
				w[o].cm(e);
			}
		},0);
		w[o].m.addEventListener('mouseup',function(e){
			w[o].mf=0;
		},0);
	}else if(typeof w[o].m.attachEvent!=w[o].un){
		w[o].m.attachEvent('onmousedown',function(){
			w[o].mf=1;
			clearInterval(w[o].oc);
			w[o].or=0;
			if(w[o].reset[0]!='no'){
				if(w[o].hz){
					if(!w[o].tr.contains(event.srcElement)){
						w[o].n.ts('visible');
					}
				}
				w[o].cm();
			}
		});
		w[o].m.attachEvent('onmouseup',function(){
			w[o].mf=0;
		});
	}
	if(w[o].kb){
		w[o].kbm.bdh();
	}else if(w[o].e[8]=='yes'&&w[o].wie){
		w[o].gc(w[o].tr).attachEvent('onfocus',function(){
			if(w[o].st){
				w[o].sy.disabled=1;
				w[o].st=0;
			}
		});
	}
	if(w[o].rg){
		this.aw();
	}
	w[o].cc=null,w[o].cr=0,w[o].oc=null,w[o].or=0;
	if(!w[o].ie){
		w[o].tr.contains=function(umN){
			if (umN==null){
				return false;
			}else if (umN==this){
				return true;
			}else{
				return this.contains(umN.parentNode);
			}
		};
	}
	w[o].lw=w[o].getWindowDimensions();
	w[o].lh=w[o].gc(w[o].tr).offsetHeight;
	if(w[o].og&&w[o].hstrip[0]!='none'){
		w[o].tr.style.height=(w[o].hstrip[1]=='yes')?(w[o].lh+w[o].e[17])+'px':w[o].lh+'px';
	}
	w[o].vs=setInterval('w['+o+'].n.ws()',55);
}

umNav.prototype.it=function(umI){
	var x=this.ident;

	if(w[x].wie){
		w[x].of=(w[x].wie55)?'onactivate':'onfocus';
		w[x].gc(umI).attachEvent(w[x].of,function(){
			if(w[x].kb&&!w[x].lf){
				w[x].gp(w[x].gc(umI)).over(1,w[x].gc(umI));
			}
			if(!w[x].kb){
				if(w[x].st){
					w[x].sy.disabled=1;
					w[x].st=0;
				}
			}
		});
	}
	w[x].vh=(umI.className.indexOf('onclick')!=-1)?'onclick':'onmouseover';
	w[x].ii=w[x].ne(umI);
	var umM=null;
//	var umM=(w[x].gu(umI).length>0)?w[x].gu(umI)[0]:null;
    umM=w[x].gu(umI)[0];
	if(umM!=null&&!(w[x].mie||w[x].nm)){
		if((w[x].ii&&w[x].e[45]!='none')||(!w[x].ii&&w[x].e[89]!='none')){
			if(w[x].ii){
				w[x].ac=(w[x].ni)?' ':w[x].e[45];
				w[x].aa=(w[x].ni)?w[x].e[48]:'';
			}else{
				w[x].ac=(w[x].mi)?' ':w[x].e[89];
				w[x].aa=(w[x].mi)?w[x].e[92]:'';
				w[x].t=umI.className;
				if(typeof w[x].w[w[x].t]!=w[x].un){
					if(!w[x].mi){
						w[x].ac=w[x].w[w[x].t][23];
					}else{
						w[x].aa=w[x].w[w[x].t][25];
					}
				}
			}
			w[x].at={'class':'udmA','text':w[x].ac};
			w[x].ar=w[x].createElement('span',w[x].at);
			if(w[x].aa!=''){
				if(w[x].wie){
					w[x].ar.innerHTML='<img alt="'+w[x].aa+'" width="0" height="0" title="" />';
					w[x].ar.firstChild.src=w[x].as.src;
				}else{
					w[x].at={'src':w[x].as.src,'alt':w[x].aa,'title':''};
					w[x].ai=w[x].ar.appendChild(w[x].createElement('img',w[x].at));
				}
			}
			w[x].gc(umI).appendChild(w[x].ar);
			if(w[x].vh=='onclick'){
				w[x].ar.onmousedown=function(){
					return false;
				}
			};
			w[x].ar.onmouseover=function(e){
				w[x].t=w[x].gp(this.parentNode).parentNode.childNodes;
				w[x].tl=w[x].t.length;
				i=0;
				do{
					if(w[x].gu(w[x].t[i]).length>0){
						if(w[x].gu(w[x].t[i])[0].style.visibility=='visible'){
							(!e)?event.cancelBubble=1:e.stopPropagation();
							this.parentNode.style.zIndex=w[x].e[6]+=2;
							return false;
							break;
						}
					}
					clearInterval(w[x].oc);
					w[x].or=0;
					i++;
				}while(i<w[x].tl);
				return true;
			};
			w[x].ar.onmouseout=function(){
				clearInterval(w[x].oc);
				w[x].or=0;
			};
			w[x].xd(w[x].ar);
			if(w[x].ii){
				this.wp(w[x].ar,umI,w[x].e[26],w[x].e[18],1);
			}
		}
	}
	if(w[x].mie){
		w[x].spn=umI.getElementsByTagName('span')[0];
		if(typeof w[x].spn!=w[x].un){
			w[x].spn.onclick=function(){
				this.parentNode.click();
			};
		}
	}
	if(w[x].rg&&w[x].ne(umI)){
		w[x].n.dw(umI);
	}
	if(w[x].mie){
		w[x].t=w[x].gc(umI);
		if(w[x].t.className&&/nohref/.test(w[x].t.className)){
			w[x].gc(umI).href='#';
			w[x].gc(umI).onmousedown=function(){
				return false;
			};
			w[x].gc(umI).onclick=function(){
				return false;
			};
		}
	}
	if(w[x].kb){
		w[x].kbm.bth(umI);
	}
	if(typeof w[x].fl==w[x].un){
		w[x].fl=w[x].gc(umI);
	}
	if(!w[x].mie&&w[x].vh=='onclick'){
		umI.onmousedown=function(){
			w[x].lf=1;
		};
		umI.onmouseover=function(){
			w[x].n.lr(w[x].gc(umI),1);
		};
	}
	if(!(w[x].mie&&w[x].vh=='onclick')){
		umI[w[x].vh]=function(e){
			w[x].tv=(w[x].ie)?event.srcElement:e.target;
			if(w[x].tv.nodeName=='#text'&&e.type=='click'){
				w[x].tv=w[x].tv.parentNode;
			}
			w[x].uc=(w[x].lf&&!w[x].nm&&w[x].gp(w[x].tv).className.indexOf('onclick')!=-1);
			if(w[x].uc){
				w[x].rt=w[x].e[10];
				w[x].e[10]=1;
			}
			this.over(0,w[x].tv);
			if(w[x].uc){
				w[x].e[10]=w[x].rt;
				if(w[x].gu(w[x].gp(w[x].tv)).length>0){
					if(typeof w[x].tv.blur!=w[x].un){
						w[x].tv.blur();
					}
					if(w[x].gu(w[x].gp(w[x].tv))[0].style.display=='block'){
						w[x].n.cd(this.parentNode);
						return false;
					}
					return (w[x].gp(w[x].tv).className.indexOf('(true)')!=-1);
				}
			}
			if(!e){
				e=window.event;
			}
			return (e.type=='click'||w[x].o7||w[x].mx);
		};
		umI.onmouseout=function(e){
			this.out(e);
		};
	}
	umI.over=function(umF,umT){
		w[x].cf=w[x].n.cck();
		if(!w[x].cf||w[x].mf){
			w[x].mf=0;
			return false;
		}
		if(umF){
			if(w[x].sp){
				w[x].sapi.speechBuffer(w[x].gc(umI));
				event.cancelBubble=1;
			}
			w[x].ha=1;
			if(w[x].ie&&event.altKey){
				w[x].n.ck(w[x].gp(umT).parentNode);
			}
			w[x].ap('040',umT);
		}else{
			w[x].nn=w[x].vn(umT.nodeName).toLowerCase();
			if(/(li|ul)/.test(w[x].nn)){
				return false;
			}
			if(w[x].kb){
				if(!w[x].lf){
					w[x].e[10]=w[x].mt[0];
					w[x].e[11]=w[x].mt[1];
				}
				w[x].nf=w[x].gc(this);
				if(w[x].ha){
					w[x].n.ck(umI.parentNode);
					w[x].n.cd(w[x].gp(umT).parentNode);
					w[x].nf.focus();
					w[x].nf.blur();
					w[x].ha=0;
				}
			}
			w[x].ap('020',umT);
            
            // bugfixing ie stacking order
            var w0Ul = document.getElementById(w[0].id);
            if (w[x].id == "w0udm" && w[x].wie) {
                if (w0Ul) {
                    w0Ul.parentNode.parentNode.style.zIndex = "12";
                }
            }
            if (w[0].id == "w0udm" && w[x].id == "w1udm" && w[x].wie) {
                if (w0Ul) {
                    w0Ul.parentNode.parentNode.style.zIndex = "10";
                }
            }
		}
		clearInterval(w[x].cc);
		w[x].cr=0;
		w[x].n.lr(w[x].gc(umI),1);
		w[x].n.pr(umM,umI,umF,umT);
		return umI;
	};
	umI.out=function(e){
		w[x].lf=0;
		if(!e){
			e=window.event;
			e.relatedTarget=e.toElement;
		}
		if(!umI.contains(e.relatedTarget)){
			if(!w[x].tr.contains(e.relatedTarget)){
				clearInterval(w[x].cc);
				w[x].cr=0;
			}
			w[x].n.cp(umM,umI);
		}
	};
	if(!w[x].ie){
		umI.contains=function(umN){
			if (umN==null){
				return false;
			}
			if (umN==this){
				return true;
			}else{
				return this.contains(umN.parentNode);
			}
		};
	}
	w[x].ap('008',umI);
};

umNav.prototype.cck=function(){
	var x=this.ident; //new code (SH)

	if(typeof document.defaultView!=w[x].un&&typeof document.defaultView.getComputedStyle!=w[x].un){
		w[x].sa=document.defaultView.getComputedStyle(w[x].fl,'').getPropertyValue('display');
	}else if(typeof w[x].fl.currentStyle!=w[x].un){
		w[x].sa=w[x].fl.currentStyle.display;
	}
	w[x].mv=1;
	w[x].ec=(!w[x].wie||w[x].tr.currentStyle.color=='black');
	return ((w[x].sa!='inline'||typeof w[x].sa==w[x].un)&&w[x].ec);
};

umNav.prototype.lr=function(umL,umV){
	var x=this.ident; //new code (SH)

	if(umL!=null&&typeof umL.style!="undefined"&&!(w[x].p&&w[x].mx)){
		w[x].cl=umL.className;
		if(w[x].cl==null){
			w[x].cl='';
		}
		w[x].ii=w[x].ne(w[x].gp(umL));
		if(umV){
			umL.style.zIndex=w[x].e[6]+=2;
			(w[x].cl=='')?umL.className='udmR':umL.className+=(umL.className.indexOf('udmR')==-1)?' udmR':'';
		}else{
			if(umL.className.indexOf('udmR')!=-1&&umL.className.indexOf('youAreHere')==-1){
				umL.className=umL.className.replace(/([ ]?udmR)/g,'');
			}
		}
		w[x].n.wv(umL,w[x].ii);
	}
};

umNav.prototype.pr=function(umG,umJ,umK,umR){
	var x=this.ident; //new code (SH)

	if(w[x].st){
		w[x].sy.disabled=1;
		w[x].st=0;
	}
	if(w[x].kb&&umK){
		w[x].kbm.cu(umG,umJ,umR);
	}
	if(!w[x].nm&&umG!=null&&umG.style.visibility!='visible'){
		if(w[x].wie){
			if(w[x].e[61]>0){
				w[x].gc(umG).style.marginTop=w[x].e[61]+'px';
			}else if(w[x].e[63]=='collapse'){
				umG.firstChild.style.marginTop=0+'px';
			}
		}
		(w[x].kb&&umK)?w[x].n.ou(umG):w[x].n.tu(umG,null);
	}
	if(umG==null){
		w[x].n.tu(null,umJ);
	}
};

umNav.prototype.tu=function(umG,umJ){
	var x=this.ident; //new code (SH)

	if(w[x].cr){
		clearInterval(w[x].oc);
		w[x].oj=umG;
		w[x].ij=umJ;
		w[x].or=1;
		w[x].oc=setInterval("w["+x+"].n.tu(w["+x+"].oj,w["+x+"].ij)",w[x].e[10]);
	}else if(w[x].or){
		clearInterval(w[x].oc);
		w[x].or=0;
		this.ou(umG,umJ);
	}else{
		w[x].ap('061',umG);
		w[x].oj=umG;
		w[x].ij=umJ;
		w[x].or=1;
		w[x].oc=setInterval("w["+x+"].n.tu(w["+x+"].oj,w["+x+"].ij)",w[x].e[10]);
	}
};

umNav.prototype.ou=function(umO,umP){
	var x=this.ident; //new code (SH)

	if(umO==null){
		this.cd(umP.parentNode);
		return false;
	}
	this.cd(w[x].gp(umO).parentNode);
	if(w[x].hz){
		this.ts('hidden');
	}
	w[x].xd(umO);
	if(!w[x].mie&&w[x].e[89]!='none'){
		w[x].kl=umO.childNodes.length;
		i=0;
		do{
			w[x].tn=umO.childNodes.item(i);
			w[x].nn=w[x].vn(w[x].tn.nodeName).toLowerCase();
			if(w[x].nn=='li'){
				w[x].ar=w[x].n.ga(w[x].gc(w[x].tn));
				if(w[x].ar!=null){
					this.wp(w[x].ar,w[x].tn,w[x].e[70],0,0);
				}
			}
			i++;
		}while(i<w[x].kl);
	}
	this.pu(umO);
	if(w[x].e[12]=='yes'){
		this.ru(umO);
	}
	w[x].mp={x:(umO.offsetLeft),y:(umO.offsetTop)};
	w[x].sh=null;
	if(!w[x].ns&&w[x].e[58]!='none'){
		this.hl(umO);
	}
	if(w[x].wie55&&(w[x].e[13]=='default'||w[x].e[13]=='iframe')){
		this.il(umO);
	}
	w[x].hf=(w[x].wie55&&typeof umO.filters!='unknown'&&umO.filters&&umO.filters.length>0);
	if(w[x].hf){
		umO.filters[0].Apply();
	}
	if(w[x].wie&&w[x].h){
		w[x].t=umO.parentNode;
		if(w[x].ne(w[x].t)){
			w[x].t=w[x].t.style;
			w[x].t.position='absolute';
			w[x].t.zIndex=w[x].e[6]+=2;
			w[x].t.position='relative';
		}
	}
	w[x].xv(umO);
	w[x].pk=w[x].gc(umO.parentNode);
	if(w[x].hf){
		w[x].ap('065',umO);
		umO.filters[0].Play();
		if(w[x].sh!=null){
			umO.onfilterchange=function(){
				w[x].xd(w[x].sh);
				w[x].n.ric(w[x].pk);
				w[x].ap('066',umO);
			};
		}
	}else if(w[x].sh!=null){
		w[x].xd(w[x].sh);
		this.ric(w[x].pk);
	}
	if(w[x].wie50){
		w[x].xn(umO);
		w[x].xd(umO);
	}
	w[x].ap('060',umO);
	return umO;
};

umNav.prototype.ric=function(umU){
	var x=this.ident; //new code (SH)

	if(w[x].wie){
		if(umU.href!=''&&umU.href!='#'){
			umU.style.cursor='hand';
		}
	}
};

umNav.prototype.cd=function(umD){
	var x=this.ident; //new code (SH)

	w[x].sm=(w[x].mie&&!w[x].mx)?w[x].gt(umD,'ul'):w[x].gu(umD);
	w[x].sml=w[x].sm.length;
	i=-1;
	while(++i<w[x].sml){
		this.clm(w[x].sm[i]);
	}
};

umNav.prototype.ck=function(umD){
	var x=this.ident; //new code (SH)

	w[x].lk=(w[x].mie&&!w[x].mx)?w[x].gt(umD,'a'):umD.getElementsByTagName('a');
	w[x].lkl=w[x].lk.length;
	i=-1;
	while(++i<w[x].lkl){
		this.lr(w[x].lk[i],0);
	}
};

umNav.prototype.cp=function(umG,umA){
	var x=this.ident; //new code (SH)

	clearTimeout(w[x].oc);
	w[x].or=0;
	this.lr(w[x].gc(umA),0);
	if(!w[x].nm&&umG!=null){
		this.cot(umG);
	}
};

umNav.prototype.cot=function(umQ){
	var x=this.ident; //new code (SH)

	if(w[x].cr){
		clearInterval(w[x].cc);
		w[x].cr=0;
		this.clm(umQ);
	}else if(w[x].e[11]!='never'){
		w[x].ap('071',umQ);
		w[x].cb=umQ;
		w[x].cr=1;
		w[x].cc=setInterval('w['+x+'].n.cot(w['+x+'].cb)',w[x].e[11]);
	}
};

umNav.prototype.clm=function(umH){
	var x=this.ident; //new code (SH)

	if(umH.style.visibility=='visible'){
		if(typeof w[x].sim==w[x].un||!w[x].sim||w[x].ha){
			w[x].xh(umH);
			w[x].xn(umH);
			if(w[x].hz){
				if(w[x].ne(umH.parentNode)){
					this.ts('visible');
				}
			}
			w[x].t=['udmC','udmS'];
			i=0;
			do{
				if(w[x].wie55||i>0){
					w[x].t2=umH.parentNode.lastChild;
					if(w[x].t2.className){
						if(w[x].t2.className.indexOf(w[x].t[i])!=-1){
							umH.parentNode.removeChild(w[x].t2);
						}
					}
				}
				i++;
			}while(i<2);
		}
		w[x].ap('070',umH);
	}
};

umNav.prototype.ga=function(umL){
	var x=this.ident; //new code (SH)

	w[x].ta=null;
	w[x].lss=umL.getElementsByTagName('span');
	w[x].lsl=w[x].lss.length;
	j=-1;
	while(++j<w[x].lsl){
		if(w[x].lss[j].className=='udmA'){
			w[x].ta=w[x].lss[j];
			break;
		}
	}
	return w[x].ta;
};

umNav.prototype.wp=function(umY,umS,umZ,umB,umW){
// begin: new Code (SH)
	var x=this.ident;
    var fs;
// end: new Code (SH)

	w[x].t=((umZ*2)+umY.offsetWidth);
    fs=this.conversion(w[x].gc(umS),w[x].t,'em');
/*  commented out 21.09.2004 (SH)
    raises gaps in right to left variant -> unwanted

	if(w[x].a){
		w[x].gc(umS).style.paddingLeft=fs;
		if(w[x].wie55){
            fs=this.relativeUnit(umS,-w[x].t);
			umY.style.left=fs;
		}
		if(w[x].wie50&&umW){
            fs=this.relativeUnit(umS,umB);
			umY.style.left=fs;
		}
	}else{
*/
    w[x].gc(umS).style.paddingRight=fs;
//	}
};

// begin: new prototype function -> px to em conversion (SH)
umNav.prototype.conversion=function(obj,val,unit){
	var x=this.ident;
    var defaultFontSize=16;
    var ratio,fs;

	if(typeof document.defaultView!=w[x].un&&typeof document.defaultView.getComputedStyle!=w[x].un){
		fs=document.defaultView.getComputedStyle(obj,'').getPropertyValue('font-size');
        ratio=fs.substring(0,fs.length-2);
	}else if(typeof obj.currentStyle!=w[x].un){
		fs=obj.currentStyle.fontSize;
        ratio=fs.substring(0,fs.length-2)*defaultFontSize;
	}

    if(unit=='em'){
        fs=val/ratio+'em';
    }else{
        fs=val*ratio+'px';
    }

    return fs;
}
// end: new prototype function (SH)

umNav.prototype.wv=function(umX,umW){
	var x=this.ident; //new code (SH)

	if(w[x].mie){
		return false;
	}
	w[x].ta=this.ga(umX);
	w[x].ac=(umW)?(w[x].ni)?null:(umX.className.indexOf('udmR')==-1)?w[x].e[45]:w[x].e[46]:(w[x].mi)?null:(umX.className.indexOf('udmR')==-1)?w[x].e[89]:w[x].e[90];
	if(!umW&&!w[x].mi){
		if(typeof w[x].w[w[x].gp(umX).className]!=w[x].un){
			w[x].ac=(umX.className.indexOf('udmR')==-1)?w[x].w[w[x].gp(umX).className][23]:w[x].w[w[x].gp(umX).className][24];
		}
	}
	if(w[x].ta!=null&&w[x].ac!=null){
		if(w[x].cns){
			w[x].ta.removeChild(w[x].ta.firstChild);
			w[x].ta.appendChild(w[x].m.createTextNode(w[x].ac));
		}else{
			w[x].ta.innerText=w[x].ac;
		}
	}
	return w[x].ta;
};

umNav.prototype.pu=function(umU){
	var x=this.ident; //new code (SH)

	w[x].is=(w[x].ne(umU.parentNode));
	w[x].t=umU.parentNode;
    var th=w[x].t.offsetHeight;

// begin: check if subheading exists (SH)
    if(w[x].t.getElementsByTagName('H3').length>0){
        var subHeadline=w[x].t.getElementsByTagName('H3')[0];
        var mt,mb;

        if(typeof document.defaultView!=w[x].un&&typeof document.defaultView.getComputedStyle!=w[x].un){
            mt=parseInt(document.defaultView.getComputedStyle(subHeadline,'').getPropertyValue('margin-top'));
            mb=parseInt(document.defaultView.getComputedStyle(subHeadline,'').getPropertyValue('margin-bottom'));
     	}else if(typeof subHeadline.currentStyle!=w[x].un){
     		mt=subHeadline.currentStyle.marginTop;
            if(mt.indexOf('em')!=-1){
                mt=this.conversion(subHeadline,mt.substring(0,mt.length-2),'px');
            }
            mt=Math.round(mt.substring(0,mt.length-2));
    		mb=subHeadline.currentStyle.marginBottom;
            if(mb.indexOf('em')!=-1){
                mb=this.conversion(subHeadline,mb.substring(0,mb.length-2),'px');
            }
            mb=Math.round(mb.substring(0,mb.length-2));
     	}

        th-=(subHeadline.offsetHeight+mt+mb);
    }
// end: check if subheading exists (SH)

	w[x].pp={tw:w[x].t.offsetWidth,th:th,mw:umU.offsetWidth,pw:(w[x].is)?w[x].gc(w[x].t).offsetWidth:w[x].t.parentNode.offsetWidth};
	w[x].x=(w[x].p)?2000:0;
	w[x].y=(w[x].p)?2000:0;
	if(!((w[x].h||w[x].p)&&w[x].is)){
		w[x].x=(w[x].is)?(w[x].a?(0-w[x].pp.mw):w[x].pp.pw):((w[x].a?(0-w[x].pp.mw):w[x].pp.pw)-w[x].e[51]-w[x].e[55]);
		w[x].y=(0-w[x].pp.th);
	}else if(w[x].h&&w[x].is&&w[x].a){
		w[x].x=(0-w[x].pp.mw+w[x].pp.tw);
	}

// begin: new homepage variant of meta menu (SH)
  var bodyClass=document.getElementsByTagName("BODY")[0].className;
  if ((bodyClass=="hp")&&(x==0)) {
    w[x].e[14]=w[x].pp.tw-4;
    w[x].e[15]=4-w[x].pp.th;
  }
// end: new homepage variant of meta menu (SH)

	w[x].x+=(w[x].is)?(w[x].a?(0-w[x].e[14]):w[x].e[14]):(w[x].a?(0-w[x].e[49]):w[x].e[49]);
	w[x].y+=(w[x].is)?(w[x].e[2]=='bottom')?(0-w[x].e[15]):w[x].e[15]:w[x].e[50];
	if(w[x].is){
		if(w[x].h){
			if(w[x].e[2]=='bottom'){
				w[x].y-=(umU.offsetHeight+w[x].pp.th);
			}
			if(w[x].s){
				if(w[x].nc&&!w[x].a){
					w[x].x-=w[x].e[18];
				}
				if(!w[x].s1&&w[x].rp){
					w[x].x+=w[x].getRealPosition(w[x].tr,'x');
					w[x].y+=w[x].getRealPosition(w[x].tr,'y');
				}
			}
			if(w[x].mie){
				w[x].x-=w[x].gc(w[x].t).offsetWidth;
				if(w[x].nc&&w[x].a&&!w[x].mx){
					w[x].x+=w[x].e[18];
				}
				w[x].y+=w[x].pp.th;
			}
			if(w[x].ie&&!w[x].mx&&w[x].hstrip[1]=='yes'){
				w[x].y-=w[x].e[17];
			}
		}else if(w[x].ie&&w[x].nc){
			w[x].y-=w[x].e[18];
		}
	}
	umU.style.marginLeft=w[x].x+'px';
	umU.style.marginTop=w[x].y+'px';
	if(w[x].wie50){
		w[x].xn(umU);
		w[x].xd(umU);
	}
};

umNav.prototype.ru=function(umU,umS){
	var x=this.ident; //new code (SH)

	if(/nomove/.test(umU.className)){
		return false;
	}
	w[x].wz=w[x].getWindowDimensions();
	w[x].mp={x:w[x].getRealPosition(umU,'x'),y:w[x].getRealPosition(umU,'y'),w:umU.offsetWidth,h:umU.offsetHeight,pw:umU.parentNode.parentNode.offsetWidth,m:32,nx:-1,ny:-1,sc:w[x].getScrollAmount()};
	w[x].is=(w[x].ne(umU.parentNode));
	if(w[x].s){
		w[x].mp.x-=w[x].m.body.offsetLeft;
		w[x].mp.y-=w[x].m.body.offsetTop;
	}else if(w[x].mie){
		w[x].t=w[x].e[55]+w[x].e[51];
		w[x].mp.x-=w[x].t;
		w[x].mp.y-=w[x].t;
	}else{
		w[x].t=umU;
		while(!w[x].ne(w[x].t.parentNode)){
			w[x].mp.x+=w[x].e[51];
			w[x].mp.y+=w[x].e[51];
			w[x].t=w[x].t.parentNode.parentNode;
		}
	}
	if(!w[x].ie&&w[x].e[3]=='fixed'&&w[x].is){
		w[x].mp.y+=w[x].mp.sc;
	}
	w[x].t=[(w[x].mp.x+w[x].mp.w),(w[x].wz.x-w[x].mp.m)];
	if(w[x].t[0]>w[x].t[1]){
		if(w[x].is){
			w[x].mp.nx=(((w[x].p)?w[x].mp.x:0)-(w[x].t[0]-w[x].t[1]));
		}else{
			w[x].mp.nx=(((w[x].p)?(0-w[x].mp.w-w[x].mp.pw+w[x].e[55]-w[x].e[49]):(0-w[x].mp.w-w[x].e[55]-w[x].e[51]))-w[x].e[49]);
		}
	}
	if(w[x].mp.x<0){
		if(!w[x].is){
			w[x].mp.nx=(0-w[x].e[55]-w[x].e[51]+w[x].mp.pw+w[x].e[49]);
		}
	}
	w[x].yd=(w[x].mp.y+w[x].mp.h)-(w[x].wz.y-w[x].mp.m+w[x].mp.sc);
	if(w[x].f&&!w[x].is){
		w[x].yd+=w[x].mp.sc;
	}
	if(w[x].yd>0){
		w[x].t=umU.parentNode;
		w[x].y=w[x].getRealPosition(w[x].t,'y');
		while(!w[x].ne(w[x].t)){
			w[x].y+=w[x].e[51];
			w[x].t=w[x].t.parentNode.parentNode;
		}
		w[x].mp.ny=(0-w[x].y-(w[x].mp.m*2)+w[x].wz.y+w[x].mp.sc-w[x].mp.h);
		if(w[x].f){
			w[x].mp.ny-=w[x].mp.sc;
		}
	}
	if(w[x].mp.y<0){
		w[x].mp.ny=(0-(0-w[x].mp.y));
	}
	if(w[x].mp.nx!=-1){
		if(w[x].p){
			umU.style.left=w[x].mp.nx+'px';
		}else{
			umU.style.marginLeft=w[x].mp.nx+'px';
		}
		w[x].ap('110',umU);
	}
	if(w[x].mp.ny!=-1){
		if(w[x].p&&w[x].ne(umU.parentNode)){
			umU.style.marginTop=(2000-w[x].yd)+'px';
		}else{
			umU.style.marginTop=w[x].mp.ny+'px';
		}
		w[x].ap('120',umU);
	}
	w[x].t=umU;
	w[x].y=w[x].getRealPosition(w[x].t,'y')-w[x].mp.sc;
	while(!w[x].ne(w[x].t.parentNode)){
		w[x].y+=w[x].e[51];
		w[x].t=w[x].t.parentNode.parentNode;
	}
	if(w[x].f){
		w[x].y+=w[x].mp.sc;
	}
	if(w[x].y<0){
		w[x].mp.ny=w[x].pi(umU.style.marginTop);
		if(isNaN(w[x].mp.ny)){
			w[x].mp.ny=0;
		}
		umU.style.marginTop=(w[x].mp.ny-w[x].y)+'px';
	}
	w[x].t=umU;
	w[x].x=w[x].getRealPosition(w[x].t,'x');
	while(!w[x].ne(w[x].t.parentNode)){
		w[x].x+=w[x].e[51];
		w[x].t=w[x].t.parentNode.parentNode;
	}
	if(w[x].x<0){
		umU.style.marginLeft=(w[x].p&&w[x].ne(umU.parentNode))?'2000px':'0';
		umU.style.left='0';
	}
	return true;
};

umNav.prototype.hl=function(umH){
	var x=this.ident; //new code (SH)

	w[x].at={'class':'udmS'};
	w[x].sh=umH.parentNode.appendChild(w[x].createElement('span',w[x].at));
	if(umH.className!=''){
		w[x].cn=umH.className;
		if(typeof w[x].v[w[x].cn]!=w[x].un){
			if(w[x].sh.className.indexOf(w[x].cn)==-1){
				w[x].sh.className+=' '+w[x].cn;
			}
		}
	}
	w[x].sh.style.width=umH.offsetWidth+'px';
	w[x].sh.style.height=umH.offsetHeight+'px';
	w[x].mp={x:(umH.offsetLeft),y:(umH.offsetTop)};
	w[x].is=w[x].ne(w[x].sh.parentNode);
	if(w[x].s&&!w[x].is){
		w[x].mp.x-=w[x].e[51];
		w[x].mp.y-=w[x].e[51];
	}
	w[x].sh.style.left=w[x].mp.x+'px';
	w[x].sh.style.top=w[x].mp.y+'px';
	return w[x].sh;
};

umNav.prototype.il=function(umH){
	var x=this.ident; //new code (SH)
    
	w[x].at={'class':'udmC','src':'javascript:false;'}; // set src of iframe to fix warning on pages browsed through https
	w[x].co=umH.parentNode.appendChild(w[x].createElement('iframe',w[x].at));
	w[x].co.style.width=umH.offsetWidth+'px';
	w[x].co.style.height=umH.offsetHeight+'px';
	w[x].co.style.left=umH.offsetLeft+'px';
	w[x].co.style.top=umH.offsetTop+'px';
	return w[x].co;
};

umNav.prototype.dw=function(umA){
	var x=this.ident; //new code (SH)

	w[x].rw+=umA.offsetWidth;
	if(w[x].nc){
		w[x].rw-=w[x].e[18];
	}else{
		w[x].rw+=w[x].e[17];
	}
};

umNav.prototype.aw=function(){
	var x=this.ident; //new code (SH)

	if(w[x].o7||w[x].mie||w[x].q){
		if(w[x].mx){
			w[x].rw+=w[x].pi(document.defaultView.getComputedStyle(w[x].tr,'').paddingLeft);
		}else{
			w[x].rw+=(w[x].gp(w[x].gc(w[x].tr)).offsetLeft+w[x].getRealPosition(w[x].tr,'x'));
		}
	}
	if(w[x].mie||w[x].og){
		w[x].rw*=1.05;
	}
	if(w[x].getWindowDimensions().x<w[x].rw){
		w[x].tr.style.width=w[x].rw+'px';
	}else{
		if(w[x].wie50){
			w[x].tr.style.setExpression('width','document.body.clientWidth');
		}else{
			w[x].tr.style.width='100%';
		}
	}
	if(w[x].mie){
		w[x].tr.style.height=w[x].gc(w[x].tr).offsetHeight+'px';
	}
};

umNav.prototype.ts=function(umZ){
	var x=this.ident; //new code (SH)

	w[x].se=w[x].m.getElementsByTagName('select');
	w[x].sl=w[x].se.length;
	if(w[x].sl>0){
		i=0;
		do{
			w[x].se[i++].style.visibility=umZ;
		}while(i<w[x].sl);
		w[x].ap((umZ=='hidden')?'067':'077',w[x].se);
	}
};

umNav.prototype.ws=function(){
	var x=this.ident; //new code (SH)

	clearInterval(w[x].vs);
	w[x].ch=w[x].gc(w[x].tr).offsetHeight;
	w[x].cz=w[x].getWindowDimensions();
	if((w[x].ch!=w[x].lh&&w[x].reset[2]!='no')||((w[x].cz.x!=w[x].lw.x||w[x].cz.y!=w[x].lw.y)&&w[x].reset[1]!='no')){
		if(w[x].st){
			w[x].sy.disabled=1;
			w[x].st=0;
		}
		w[x].closeAllMenus();
		if(w[x].rg){
		 	w[x].rw=0;
			w[x].kn=w[x].tr.childNodes;
			w[x].kl=w[x].kn.length;
			i=0;
			do{
				if(w[x].kn[i].nodeName!='#text'){
					this.dw(w[x].kn[i]);
				}
				i++;
			}while(i<w[x].kl);
			this.aw();
		}
		w[x].lw=w[x].cz;
		w[x].lh=w[x].ch;
		if(w[x].og&&w[x].hstrip[0]!='none'){
			w[x].tr.style.height=(w[x].hstrip[1]=='yes')?(w[x].lh+w[x].e[17])+'px':w[x].lh+'px';
		}
	}
	w[x].vs=setInterval('w['+x+'].n.ws()',55);
};

/***************************************************************\
  ULTIMATE DROP DOWN MENU Version 4.3 by Brothercake
  http://www.udm4.com/
  
  Gecko Iframe-shim extension v1.0
\***************************************************************/

/***************************************************************\
 * Set shadow offset [in pixels] for iframe to cover shadow layer
\***************************************************************/

var shadowOffset = 0;

if(navigator.product == 'Gecko' && parseInt(navigator.productSub,10) >= 20020826 && navigator.vendor != 'Apple Computer, Inc.') { for (var aR=0; aR<w.length; aR++){ w[aR].addReceiver(createIframe,'060'); w[aR].addReceiver(removeIframe,'070'); } }var ifs = new Object;ifs.ids = 0;function createIframe(menu){menu.id = 'ifsMenu-' + ifs.ids;ifs.attrs = { 'class':'iframeShim', 'id' : 'ifsShim-' + ifs.ids };ifs.frame = w[0].createElement('iframe', ifs.attrs);ifs.ids ++;document.getElementsByTagName('body')[0].appendChild(ifs.frame);ifs.frame.style.width = (menu.offsetWidth+shadowOffset) + 'px';ifs.frame.style.height = (menu.offsetHeight+shadowOffset) + 'px';ifs.frame.style.left = w[0].getRealPosition(menu,'x') + 'px';ifs.frame.style.top = w[0].getRealPosition(menu,'y') + 'px';};function removeIframe(menu){ifs.menus = menu.parentNode.getElementsByTagName('ul');ifs.menusLen = ifs.menus.length;for(i=0; i<ifs.menusLen; i++){if(/ifsMenu/.test(ifs.menus[i].id)){ifs.frameID = ifs.menus[i].id.replace('ifsMenu','ifsShim');document.getElementsByTagName('body')[0].removeChild(document.getElementById(ifs.frameID));ifs.menus[i].id = '';}}};
