//
// PSC Menu Handling With Extended Functionality
//
//script generated by SiteXpert (www.xtreeme.com/sitexpert/)
//Copyright(C) 1998-2003 Xtreeme GmbH

function zz(e,i){
return e?e.document.getElementById(i):document.getElementById(i)
}

function f33(p){
if(p&&p.indexOf(':/')==-1&&p.indexOf(':\\')==-1&&p.indexOf('/')!=0) return unescape(absPath)+p
else return p
}

function addLoadHandler(lh){
if(!document.loadHandlers){
document.loadHandlers=new Array()
document.loadHandlers[0]=lh
document.lastLoadHandler=0
}
else{
document.lastLoadHandler++
document.loadHandlers[document.lastLoadHandler]=lh
} 
}
addLoadHandler('f50')
addLoadHandler('f29')
window.onload=f31

function f32(){
return true;
}
window.onerror=f32

function getFilter(q){
if(!q ||(q.v11&&q.popupOpacity))return ""
if(q.shs>0&&IE4)return "progid:DXImageTransform.Microsoft.Shadow(Color="+q.shc+",direction=135,strength="+q.shs+")"
else if(q.shs<0&&IE4)return "progid:DXImageTransform.Microsoft.Glow(Color="+q.shc+",strength="+(-q.shs)+")"
}

function f01(op,opObj,vis,ns,ie,frc){
if(op||frc){
if(ns)opObj.style.MozOpacity=(vis&&op!=100)?(op/100):'0.999'
if(ie)opObj.style.filter=(vis?"alpha(opacity="+op+")":"")+" "+getFilter(opObj.q)
} 
}

function f02(q,objId,step){
var obj=zz(q.v18,objId)
var objBg=zz(q.v18,objId+'bgWnd')
if(q.f02Timeout){
q.f02Timeout=null;clearTimeout(q.f02Timeout);
}
var max=q.popupOpacity?q.popupOpacity:100
if(obj)f01((q.fadingSteps-step)*max/q.fadingSteps,obj,1,1,1,1)
if(objBg)f01(100,objBg,0,0,q.v11,1)
if(step<=0)return
setTimeout("f02("+q.name+",'"+objId+"',"+(step-1)+")",q.bShowDel/q.fadingSteps)
}

function f03(q,popup,id,v27,v26,v30,v09,bLast,v31,parent){
var itemType=0
if(v26&&v26.indexOf("(^1)")!=-1)itemType=1
if(v26&&v26.indexOf("(^2)")!=-1)itemType=2
var itemWnd=q.v18.document.createElement("DIV")
popup.appendChild(itemWnd)
if(mac){
var brWnd=q.v18.document.createElement("BR")
popup.appendChild(brWnd)
}
f30(itemWnd,"mouseover",f22,false)
f30(itemWnd,"mouseout",f23,false)
f30(itemWnd,"mousedown",f20,false)
f30(itemWnd,"dblclick",f20,false)
itemWnd.owner=popup
itemWnd.id=id
with(itemWnd.style){
position="absolute"
if(itemType==2)top=(v31-q.scrollHeight)+"px"
else top=v31+"px"
if(v27){
cursor=(!IE4||version>=6)?"pointer":"hand";
}
else{
cursor="default";
}
color=v09 [3]
if(q.popu==2&&v27)textDecoration='underline'
if(!q.v11){
if(!bLast){
borderBottomColor=q.borderCol
borderBottomWidth=q.sep+"px"
borderBottomStyle="solid"
} 
}
else
left=(q.popupLeftPad+q.vertSpace)+"px"
if(!itemType)padding=q.vertSpace+"px"
paddingLeft=(q.popupLeftPad+q.vertSpace)+"px"
paddingRight=((q.v01<q.iconSize?q.iconSize:q.v01)+q.vertSpace)+"px"
fontSize=v09[0]
fontWeight=(v09[1])?"bold":"normal"
fontStyle=(v09[2])?"italic":"normal"
fontFamily=v09[6]
textAlign=(q.v22==1?'center':(q.v22==2?'right':'left'))
f04(itemWnd,q.v11?q.v02-q.popupLeftPad-q.v01-2*q.vertSpace:q.v02,2*q.bord)
}
if(v30)itemWnd.v30=v30
if(itemType>0){
var arrow=q.v18.document.createElement("IMG")
itemWnd.appendChild(arrow)
var arrowSrc=f33(q.v21)
arrow.src=arrowSrc+"/"+q.fnm+"s"+((itemType==1)?"up":"down")+".gif"
itemWnd.style.textAlign="center"
itemWnd.style.display="none"
}
else
itemWnd.innerHTML=v26
itemWnd.url=f33(v27)
itemWnd.f54=v26
if(v30){
var expandArrow=q.v18.document.createElement("IMG")
itemWnd.appendChild(expandArrow)
var v03=f33(q.v21)
expandArrow.src="right.gif"
with(expandArrow.style){
width=q.iconSize+"px"
height=q.iconSize+"px"
position="absolute"
var itemRect=f19(q,itemWnd)
top=((itemRect.bottom-itemRect.top)/2-q.iconSize/2-2)+"px"
left=(itemWnd.offsetWidth-q.iconSize-1)+"px"
} 
}
return itemWnd.offsetHeight
}

function f04(wnd,width,borderWidth){
wnd.style.width=(width-borderWidth)+"px"
if(wnd.offsetWidth>width-borderWidth)wnd.style.width=(width-parseInt(wnd.style.paddingLeft)-parseInt(wnd.style.paddingRight))+"px"
}

function f36(q,nsi){
var ret=new Array(0,0)
if(nsi){
var mnp=nsi.indexOf('tlm')
var nn=(mnp==-1)?0:parseInt(nsi.substr(mnp+3))
var cc=q.adbg
if(cc&&(nn % cc.length !=0)){
ret[0]=cc [nn % cc.length]
}
var cc2=q.adbg2
if(cc2&&(nn % cc2.length !=0)){
ret[1]=cc2 [nn % cc2.length]
} 
}
return ret
}

function f05(q,v12,level,v04,nsi){
var popupName=v12+"popup"
var popup=zz(q.v18,popupName)
if(popup)return popup
if(q.v17&&q.v17.id==popupName)q.v17=null
var v09
if(level>0)q.v02=q.v23
if(level>q.maxlev){
v09=eval("q.lev"+q.maxlev);
}else{
v09=eval("q.lev"+level);
}
popup=q.v18.document.createElement("DIV")
q.v18.document.body.appendChild(popup)
popup.id=popupName
popup.v04=v04
popup.level=level
popup.v05=v09[5]
popup.v06=v09[3]
var c1
if(!v04){
c1=v09 [4]
popup.v07=v09 [7]
var ret=f36(q,nsi)
if(ret [0])c1=ret [0]
if(ret [1])popup.v07=ret [1]
}
else{
c1=v04.v08
popup.v07=v04.v07
}
popup.v08=c1
popup.scrVis=false
with(popup.style){
zIndex=maxZ
position="absolute"
width=q.v02+"px"
if(!q.v11){
borderColor=q.borderCol
backgroundColor=c1
borderWidth=q.bord+"px"
borderStyle="solid"
}
else backgroundColor=""
filter=getFilter(q)
}
popup.q=q
f30(popup,"mouseout",f15,false)
f30(popup,"mouseover",f14,false)
var v31=0
if(q.v11){
var source=zz(0,q.name+'menubg4')
if(source){
var imel=q.v18.document.createElement("IMG")
popup.appendChild(imel)
imel.src=source.src
imel.id=popup.id+"openingImg"
imel.style.position="absolute"
imel.style.top="0px"
f01(q.popupOpacity,imel,1,0,1,0)
v31+=q.v10
} 
}
var bgWnd=q.v18.document.createElement("DIV")
popup.appendChild(bgWnd)
bgWnd.id=popup.id+"bgWnd"
bgWnd.style.position="absolute"
bgWnd.style.top=q.v10+"px"
bgWnd.style.width=(q.v02-2*q.bord)+"px"
bgWnd.innerHTML="<font size='1'>&nbsp;</font>"
if(q.v11){
var source=zz(0,q.name+'menubg5')
if(source)bgWnd.style.backgroundImage="url("+source.src+")"
}
else{
bgWnd.style.backgroundColor=c1
}
var array=eval(v12)
var v13
f03(q,popup,popup.id+"scrollUp","javascript:scrollUp("+q.name+",'"+popup.id+"');","(^1)",null,v09,true,v31,bgWnd)
for(v13=0;v13<array.length/3;v13++){
var v30=(array[v13*3+2])?(v12+"_"+parseInt(v13+1)):null
v31+=f03(q,popup,null,array[v13*3+1],array[v13*3],v30,v09,(v13==array.length/3-1),v31,bgWnd)
}
f03(q,popup,popup.id+"scrollDown","javascript:scrollDown("+q.name+",'"+popup.id+"');","(^2)",null,v09,true,v31,bgWnd)
var v28=0
if(q.v11){
var source=zz(0,q.name+'menubg6')
if(source){
var imel=q.v18.document.createElement("IMG")
popup.appendChild(imel)
imel.src=source.src
imel.id=popup.id+"closingImg"
imel.style.position="absolute"
imel.style.top=(v31)+"px"
f01(q.popupOpacity,imel,1,0,1,0)
v28=imel.offsetHeight
v31+=v28
} 
}
popup.style.height=(v31+q.bord*2+v28)+"px"
popup.maxHeight=v31+q.bord*2
bgWnd.style.height=(v31-q.v10-v28)+"px"
f01(q.popupOpacity,bgWnd,1,0,q.v11,0)
f01(q.popupOpacity,popup,1,1,!q.v11,0)
if(popup.offsetHeight>v31+q.bord*2+v28){
popup.style.height=v31+"px"
q.bIncBorder=false
popup.maxHeight=v31
}
return popup
}

function f35(wnd,vis){
var i=1
while(true){
var eln='HideItem'
if(i>1)eln+=i
var hideWnd=zz(wnd,eln)
if(!hideWnd)break
hideWnd.style.visibility=vis ? 'visible' : 'hidden'
i++
} 
}

function f06(q,popupId,dl){
if(popupId.indexOf('_')==-1){
f35(q.v18,1)
if(q.actm&&dl)chgBg(q,q.actm,0,1)
}
if(q.v29){
q.v29Str=null;clearTimeout(q.v29);
}
var popup=zz(q.v18,popupId)
if(popup){
if(popup.v14)f06(q,popup.v14.id)
if(popup.v04)popup.v04.v14=null
if(IE4&&version>=6&&q.v11){
popup.style.clip="rect(0,-1,-1,0)"
}
else{

  //Special PSC extension to support image rollovers
  if(popupId.indexOf("_") < 0) {
    menuName = popupId.substring(0,popupId.length - 5);
    imageHandle = zz(q.v18, menuName + 'topimage');
    if(imageHandle != null && imageHandle != 'undefined')
    {
      dhtmlRollImg(imageHandle.name,0);
    }
  }

popup.style.visibility="hidden"
popup.style.display="none"
} 
}
if(q.v17&&q.v17.id==popupId)q.v17=null
}

function f07(rect,refx,refy){
var retval=new rct(rect.left-refx,rect.top-refy,rect.right-refx,rect.bottom-refy)
return retval
}

function f34(q,popup,actEl){
var items=popup.getElementsByTagName("DIV")
var i=0
for(;i<items.length;i++)if(actEl!=items[i]&&(!items[i].id||items[i].id.indexOf("scroll")==-1)){
items[i].style.backgroundColor=popup.q.v11?"transparent":popup.v08
items[i].style.color=popup.v06
if(q.boh)items[i].style.fontWeight="normal"
} 
}

function f08(q,popup,x,y,bDontMove,refWnd){
if(popup.id.indexOf('_')==-1){
f35(q.v18,0)
}
if(q.v17&&q.v17.id==popup.id)return
popup.style.left=x+"px"
popup.style.top=y+"px"
if(IE4&&version>=6&&q.v11){
popup.style.clip="rect(auto,auto,auto,auto)"
}
else{
popup.style.display=""
popup.style.visibility="visible"
}
if(q.rev){
if(q.menuHorizontal){
if(popup.id.indexOf('_')==-1)popup.style.top=(y-popup.offsetHeight)+"px"
}
else{
popup.style.left=(x-popup.offsetWidth)+"px"
} 
}
var v15=f19(q,popup)
var v16=f17(q.v18)
var bResize=(popup.offsetHeight<popup.maxHeight)
if(v15.right>v16.right){
if(refWnd&&refWnd.id&&refWnd.id.indexOf('top')==-1)popup.style.left=(Math.max(0,refWnd.offsetLeft-popup.offsetWidth+q.levelOffset))+"px"
else popup.style.left=(v16.right-popup.offsetWidth-5)+"px"
}
var wnd1=zz(q.v18,popup.id+"scrollDown")
var wnd2=zz(q.v18,popup.id+"scrollUp")
var cv=mac?15:(q.bIncBorder?3:20)
if(((v15.bottom>v16.bottom)||bResize)&&!NS60){
var newtop=v16.bottom-popup.offsetHeight-cv
if(!q.menuHorizontal)bDontMove=false
if(newtop<0||bDontMove||bResize){
if(q.v19&&!q.v20&&q.menuPos==3)popup.style.top=(Math.max(v16.top,newtop))+"px"
var minNum=Math.min(popup.maxHeight,v16.bottom-popup.offsetTop-cv-(q.bIncBorder?0:q.bord*2))
if(minNum>50){
popup.scrVis=(minNum!=popup.maxHeight)
f09(q,popup,v16.top,minNum)
}
else{
popup.style.top=newtop+"px"
} 
}
else
popup.style.top=newtop+"px"
}
wnd1.style.display=popup.scrVis?"":"none"
wnd2.style.display=popup.scrVis?"":"none"
if(q.bShowDel&&!mac)f02(q,popup.id,q.fadingSteps)
f34(q,popup,null)
}

function f09(q,popup,documentOffset,height){
var wnd2=zz(q.v18,popup.id+"scrollDown")
var wnd4=zz(q.v18,popup.id+"scrollUp")
var wnd3=zz(q.v18,popup.id+"bgWnd")
var wnd1Height=0
if(q.v11){
var wnd1=zz(q.v18,popup.id+"closingImg")
var wnd5=zz(q.v18,popup.id+"openingImg")
wnd1Height=wnd1.offsetHeight
wnd1.style.top=(height-wnd1Height)+"px"
}
wnd2.style.zIndex=maxZ+1
wnd4.style.zIndex=maxZ+1
popup.style.height=height+"px"
wnd3.style.height=(height-q.v10-q.bord*2-wnd1Height)+"px"
wnd2.style.top=(height-wnd1Height-q.scrollHeight-(q.bIncBorder?q.bord*2:0))+"px"
f10(q,popup.id,0)
}

function f10(q,popupId,dir){
var popup=zz(q.v18,popupId)
var v15=f19(q,popup)
var items=popup.getElementsByTagName("DIV")
var i=(dir>0?0:items.length-1)
var off=(dir>0?1:-1)
var bFirst=true
var offset=dir*q.scrollStep
if(popup.scrVis){
v15.top+=q.scrollHeight
v15.bottom-=q.scrollHeight
}
v15.bottom-=2*q.bord
var wnd1Height=0
if(q.v11)wnd1Height=zz(q.v18,popup.id+"closingImg").offsetHeight
for(;i<items.length&&i>=0;i+=off){
var item=items[i]
if(!item.id||(item.id.indexOf("scroll")==-1&&item.id.indexOf("bgWnd")==-1)){
var itemRect=f19(q,item)
if(bFirst&&dir==0){
offset=popup.maxHeight-(item.offsetTop+item.offsetHeight)+(popup.scrVis?q.scrollHeight:0)-(q.bIncBorder?q.bord*2:0)-wnd1Height;
}
var relRect=f07(v15,itemRect.left,itemRect.top+offset)
if(dir>0&&relRect.top<-q.scrollHeight&&bFirst)return
if(dir<0&&itemRect.bottom+offset<v15.bottom-q.scrollHeight-wnd1Height&&bFirst)return
if(offset!=0)item.style.top=(item.offsetTop+offset)+"px"
if(!mac)item.style.clip="rect("+relRect.top+","+relRect.right+","+relRect.bottom+","+relRect.left+")"
if(relRect.bottom<0||relRect.top>item.offsetHeight)
item.style.visibility="hidden"
else
item.style.visibility="visible"
bFirst=false
} 
}
if(popup.scrPos)popup.scrPos+=offset
else popup.scrPos=offset
}

function scrollUp(q,popupId){
f10(q,popupId,1)
}

function scrollDown(q,popupId){
f10(q,popupId,-1)
}

function f13(q,popup){
var wnd=q.v17
while(wnd){
if(wnd.id==popup.id)
return true
wnd=wnd.v14
}
return false
}

function f14(){
var q=this.q
if(q.v17&&q.v17Timeout&&f13(q,this))clearTimeout(q.v17Timeout)
}

function f15(){
var q=this.q
f15Impl(q,this)
}

function f15Impl(q,popup){
if(q.mout&&q.v17&&f13(q,popup)){
if(q.v17Timeout)clearTimeout(q.v17Timeout)
q.v17Timeout=setTimeout("f06("+q.name+",'"+q.v17.id+"',1);",q.closeDelay)
} 
}

function rct(left,top,right,bottom){
this.left=left
this.top=top
this.right=right
this.bottom=bottom
}

function f17(doc){
var left=0
var top=0
var right
var bottom
if(doc.pageXOffset)left=doc.pageXOffset
else if(doc.document.documentElement.scrollLeft)left=doc.document.documentElement.scrollLeft
else if(doc.document.body.scrollLeft)left=doc.document.body.scrollLeft
if(doc.pageYOffset)top=doc.pageYOffset
else if(doc.document.documentElement.scrollTop)top=doc.document.documentElement.scrollTop
else if(doc.document.body.scrollTop)top=doc.document.body.scrollTop
if(doc.innerWidth)right=left+doc.innerWidth
else if(doc.document.documentElement.clientWidth)right=left+doc.document.documentElement.clientWidth
else if(doc.document.body.clientWidth)right=left+doc.document.body.clientWidth
if(doc.innerHeight)bottom=top+doc.innerHeight
else if(doc.document.documentElement.clientHeight)bottom=top+doc.document.documentElement.clientHeight
else if(doc.document.body.clientHeight)bottom=top+doc.document.body.clientHeight
var retval=new rct(left,top,right,bottom)
return retval
}

function f18(q,wnd){
var left=mac?parseInt(document.body.leftMargin):0
var top=mac?parseInt(document.body.topMargin):0
var right=0
var bottom=0
var par=wnd
var topObj=q.v18.document.documentElement
if(!topObj)topObj=q.v18.document.body
while(par){
left=left+parseInt(par.offsetLeft)
top=top+parseInt(par.offsetTop)
if(par.offsetParent==par || par.offsetParent==topObj)break
par=par.offsetParent
}
right=left+parseInt(wnd.offsetWidth)
bottom=top+parseInt(wnd.offsetHeight)
var retval=new rct(left,top,right,bottom)
return retval
}

function f19(q,wnd){
if((mac||DOM||Opera7)&&wnd.getBoundingClientRect)return wnd.getBoundingClientRect()
return f18(q,wnd)
}

function f53(wn,fr){
if(wn.frames){
for(var i=0;i<wn.frames.length;i++){
if(wn.frames[i].name==fr)return wn.frames[i]
var ret=f53(wn.frames[i],fr)
if(ret)return ret
} 
}
return null
}

function f20(){
var item=this
var close=true
var q=this.owner.q
if(item.url){
var trgFrame=q.cntFrame
var startPos=item.f54.indexOf('<!--')
if(startPos!=-1){
var endPos=item.f54.indexOf('-->',startPos)
trgFrame=item.f54.substring(startPos+4,endPos)
}
var mt=item.url.indexOf("mailto:")
if(mt!=-1)window.top.location=item.url.substring(mt)
else if(trgFrame){
if(trgFrame=="_blank")window.open(item.url)
else if(trgFrame=="_top")window.top.location.href=item.url
else if(trgFrame=="_parent")parent.location.href=item.url
else{
var fr=f53(window.top,trgFrame)
if(fr)fr.location.href=item.url
else window.location.href=item.url
} 
}
else{
var find=item.url.indexOf("javascript:")
if(find!=-1){
eval(item.url.substring(find))
if(item.url.indexOf("scroll")!=-1)close=false
}
else{
q.targetFrame.location=item.url
} 
}
if(q.v17&&close)f06(q,q.v17.id,1)
} 
}

function f21(q){
if(q.v29Str){
eval(q.v29Str)
if(q.v29)clearTimeout(q.v29)
q.v29=setTimeout("f21("+q.name+")",q.scrollDelay)
} 
}

function f22(){
var item=this
var q=this.owner.q
var bOp=0
if(item.id&&item.id.indexOf("scroll")!=-1){
q.v29Str=item.url
var jsind=q.v29Str.indexOf('javascript:')
if(jsind!=-1)q.v29Str=q.v29Str.substring(jsind)
f21(q)
return
}
if(item.owner.v14){
if(item.v30&&item.v30+'popup'==item.owner.v14.id)bOp=1
if(!bOp)f06(q,item.owner.v14.id)
}
if(item.url&&item.url.indexOf("javascript:")==-1)
window.status=item.url
else
window.status=""
f01(q.popupOpacity,item,1,0,q.v11,0)
f34(q,item.owner,item)
item.style.color=item.owner.v05
if(q.boh)item.style.fontWeight="bold"
item.style.backgroundColor=(!item.owner.v07&&q.v11)?"transparent":item.owner.v07
if(q.popu==1&&item.url)item.style.textDecoration='underline'
if(item.v30&&!bOp){
var rect=f19(q,item)
var x=rect.right-q.levelOffset
var y=rect.top
var popup=f05(q,item.v30,item.owner.level+1,item.owner)
item.owner.v14=popup
if(q.rev){
if(!q.menuHorizontal){
x-=q.v02-q.levelOffset
} 
}
f08(q,popup,x,y+2,false,item.owner)
} 
}

function f23(){
var item=this
var q=this.owner.q
if(q.v29){
q.v29Str=null;clearTimeout(q.v29);
}
f01(q.popupOpacity,item,0,0,q.v11,0)
if(q.popu==1)item.style.textDecoration='none'
if(item.id&&item.id.indexOf("scroll")!=-1)return
window.status=""
}

function exM(q,popupId,refWnd,dum,ml,mt,mr,mb){
if(!docLoaded)return
if(q.v17Timeout)clearTimeout(q.v17Timeout)
if(q.v17&&q.v17.id!=popupId+"popup")
f06(q,q.v17.id)
if(popupId=='none')return
var rect
if(refWnd=='coords'){
rect=f18(q,zz(0,q.name+'tl'))
rect.left=rect.left+ml
rect.top=rect.top+mt
rect.right=rect.left+mr
rect.bottom=rect.top+mb
}
else{
rect=f18(q,zz(0,refWnd))
if(mac&&!q.menuHorizontal){
var ind=refWnd.indexOf('tlm')
if(ind !=-1)rect.top+=(rect.bottom-rect.top)*parseInt(refWnd.substr(ind+3))
} 
}
if(q.bVarWidth&&!q.v11)q.v02=rect.right-rect.left+(IE4?q.bord*2:0)
var x
var y
if(q.menuHorizontal){
x=rect.left-q.bord
y=q.rev?rect.top-q.popupOffset:rect.bottom+q.popupOffset
}
else{
x=q.rev?rect.left-q.popupOffset:rect.right+q.popupOffset
y=rect.top-q.bord
}
if(q.v19&&!q.v20){
var brRect=f17(q.v18)
var wRect=f17(window)
switch(q.menuPos){
case 0:
x=brRect.left+q.popupOffset
y+=brRect.top-wRect.top
break
case 1:
x=brRect.right-q.popupOffset
y+=brRect.top-wRect.top
break
case 2:
x+=brRect.left-wRect.left
y=brRect.top+q.popupOffset
break
case 3:
x+=brRect.left-wRect.left
y=brRect.bottom-q.popupOffset
break
} 
}
var popup=f05(q,popupId,0,null,refWnd)
f08(q,popup,x+q.xOff,y+q.yOff,true,null)
q.v17=popup
}

function coM(q,popupId){
if(!docLoaded)return
var popup=zz(q.v18,popupId+"popup")
if(popup)f15Impl(q,popup)
}

function exMNS(q,popupId,e,dItem){

}

function coMNS(q,popupId){

}

function f28(){
var nmn
for(nmn=1;nmn<=lastm;nmn++){
var q=eval("window.m"+nmn)
if(q&&q.v17)f06(q,q.v17.id,1)
} 
}

function f29(){
if(docLoaded)return
var nmn
for(nmn=1;nmn<=lastm;nmn++){
var q=eval("window.m"+nmn)
if(q){
q.v18=(q.v19&&!q.v20)?f53(window.top,q.v24):window
q.targetFrame=(q.v19)?f53(window.top,q.cntFrame):window
if(!q.mout)f30(q.v18.document,"mousedown",f28,false)
if(q.rm>=0){
var images=document.getElementsByTagName('img')
for(im=0;im<images.length;im++){
var curim=images[im]
if(curim.id.indexOf('hidim'+nmn)!=-1){
var newar=document.createElement('img')
document.body.appendChild(newar)
var itemRect=f19(q,curim.parentElement?curim.parentElement.parentElement.parentElement:curim.parentNode.parentNode.parentNode)
var curimRect=f19(q,curim)
newar.style.position="absolute"
newar.style.top=curimRect.top+"px"
newar.style.left=(itemRect.right-q.iconSize-2-q.rm)+"px"
newar.width=q.iconSize
newar.height=q.iconSize
var v03=f33(q.v21)
newar.src="right.gif"
} 
}}
if(q.bkv){
onscroll=v53
v53()
} 
}}
docLoaded=true
}

function f30(obj,event,fun,bubble){
if(obj.addEventListener)
obj.addEventListener(event,fun,bubble)
else
eval("obj.on"+event+"="+fun)
}

function chgBg(q,item,color,cl){

  //Special PSC extension to support the menu 'at' state
  if(typeof(atmenu) != 'undefined' && item == atmenu.name){
    if(color!=0){
        if(q.actm)chgBg(q,q.actm,0,1);
        q.actm=item;

        //Special PSC extension to support image rollovers
        dhtmlRollImg(atmenu.itemname,1);
    }
    return;
  }

  //Special PSC extension to support image rollovers
  if(typeof(atmenu) != 'undefined') {
    dhtmlRollImg(atmenu.itemname,0);
  }

if(!IE4&&!DOM&&!Opera7)return
if(q.v52&&(color||cl)){
if(color){
if(q.actm)chgBg(q,q.actm,0,1);q.actm=item;
}
var it=zz(0,item)
var pit=zz(0,'pre'+(color?'1':'0')+item)
if(it&&pit)it.src=pit.src
var mnp=item.indexOf('tlm')
if(mnp!=-1){
var nn=parseInt(item.substr(mnp+3))+1
var lit=zz(0,'l'+item)
var rit=zz(0,'l'+q.name+'tlm'+nn)
var bnl=zz(0,q.name+'tlm'+nn)
var plit=zz(0,q.name+((nn==1)?(color?'_bh':'_b'):(color?'_slh':'_s')))
var prit=zz(0,q.name+((!bnl)?(color?'_eh':'_e'):(color?'_srh':'_s')))
if(lit&&rit&&plit&&prit){
lit.src=plit.src
rit.src=prit.src
} 
}}
if(!q.v52){
var el=zz(0,item)
var ela=zz(0,item+'a')
var ncl=q.tlmOrigBg
var hcl=q.tlmHlBg
var ret=f36(q,item)
if(ret[1])hcl=ret[1]
if(color==0){
if(cl){
if(!q.v25){
el.style.background=ncl
el.style.color=q.tlmOrigCol
}
if(ela)ela.style.color=q.tlmOrigCol
} 
}
else{
if(q.actm)chgBg(q,q.actm,0,1)
if(!q.v25){
if(color&1)el.style.background=hcl
el.style.color=q.tlmHlCol
}
if(ela&&color&2)ela.style.color=q.tlmHlCol
q.actm=item
} 
}}

function f52(str,src,trg){
var s=str
var start=0
while(true){
var ind=s.indexOf(src,start)
if(ind==-1){
break
}
s=s.substring(0,ind)+trg+s.substr(ind+src.length)
start=ind+trg.length
}
return s
}

function f51(arr,nmn,menuid,foldid,q,bf){
var code=eval('window.m'+nmn+(bf ? 'templFold' : 'templFile'))
code=f52(code,"(menutxt)",arr [menuid*3])
code=f52(code,"(menuurl)",arr [menuid*3+1])
code=f52(code,"(foldind)",foldid.toString())
code=f52(code,"(menuind)",menuid.toString())
code=f52(code,"(trgframe)",q.cntFrame?q.cntFrame:"")
return code
}

function f50(){
var nmn
for(nmn=1;nmn<=lastm;nmn++){
var q=eval("window.m"+nmn)
if(q){
var tbl1=eval("window.m"+nmn+"tbl1")
if(tbl1){
var i
var code=tbl1
var j=1
var ar=eval("m"+nmn+"mn")
for(i=0;i<ar.length/3;i++){
var bf=ar [i*3+2]
code+=f51(ar,nmn,i,j,q,bf)
if(i+1<ar.length/3)
code+=eval('window.m'+nmn+'templSep')
code+="\n"
if(bf)j++
}
var tbl2=eval("window.m"+nmn+"tbl2")
code+=tbl2
var tbl=document.getElementById('menubar_m'+nmn)
if(tbl){
tbl.innerHTML=code
} 
}} 
}}

function f31(){
var i
for(i=0;i<=document.lastLoadHandler;i++){
eval(document.loadHandlers[i]+'();')
} 
}

function v53(){
var nmn
for(nmn=1;nmn<=lastm;nmn++){
var q=eval("window.m"+nmn)
var bar=zz(0,"menubar_m"+nmn)
if(q&&bar){
var v16=f17(window)
bar.style.top=v16.top+q.bkv+"px"
} 
}}
