var dm=new dmc();function dmc(){this.COMPONENT_ID='M8A7D5BA97551761C';this.ComponentName='APNSoft Menu client script.';this.Version='Version 3.5 (21)';this.Copyright='Copyright 2003-2007 APNSoft. All rights reserved.';this.ie=(document.all);this.n6=(document.getElementById&&!this.ie);this.mId='';this.tObj;this.mO=1;this.Lvl;this.oDr=1;this.tr='';this.Oms=new Array(12);this.ocM;this.ocD;this.ocMt=600;this.ocDt=250;this.EDV='0';this.arrR=null;this.arrRO=null;this.arrD=null;this.arrDO=null;this.arrU=null;this.arrUO=null;this.cdID='';this.smch=true;this.tmpo=null;this.mwc=0;this.omc='';this.omm='';this.dttob;this.mX=0;this.mY=0;this.tdo=null;this.cAmt=null;this.sod=0;this.smo='0';this.eommo=false;this.cifs=new Array(12);this.ttf=null;this.hmp=0;this.hits=',';this.SelOp=75;this.lod=false;this.MsgEr1='Error! The Menu component has not been loaded before the AJAX request.';this.ErrHr=function(ex,args){try{var wen=dm.Gisv('wen');if(wen!='true'){return;}var msg='Error! APNSoft Menu was unable to perform an operation.';if(ex.lineNumber){msg+='\r\nLine Number: '+ex.lineNumber;}if(ex.description){msg+='\r\nDescription: '+ex.description;}if(args.callee){var prcs=new String(args.callee);var re;re=new RegExp('(/\\*)([^/]|([^\\*]/))*\\*/','gi');prcs=prcs.replace(re,'');re=new RegExp('\/\/.*\r\n','gi');prcs=prcs.replace(re,'\r\n');re=new RegExp('\t','gi');prcs=prcs.replace(re,'');re=new RegExp('^\s{2,}','gi');prcs=prcs.replace(re,'');re=new RegExp('\r[\\s]*\n','gi');prcs=prcs.replace(re,'\r\n');re=new RegExp('\n','gi');prcs=prcs.replace(re,'');re=new RegExp('\r','gi');prcs=prcs.replace(re,'');prcs=prcs.substring(0,500)+'...';msg+='\r\n\r\nException Details:\r\n'+prcs;}msg+='\r\n\r\nPlease contact support at http:\/\/www.apnsoft.com/';alert(msg);}catch(ex){}return true;};this.i=function(mid,t){try{dm.dInO(mid);dm.HSPth(mid);return;}catch(ex){dm.ErrHr(ex,arguments);}};this.HSPth=function(mid){var obj;var splS=dm.hits.split(',');for(i=0;i<splS.length-1;i++){if(splS[i]!=''){obj=dm.Mko(mid+'_'+splS[i]);if(obj){dm.cIt(obj,'e',mid,dm.SelOp);}}}};this.v=function(w){try{clearTimeout(dm.ocD);dm.ocD=null;clearTimeout(dm.ocM);dm.ocM=null;var NewMnu=false;var cmId=dm.gmId(w);if((dm.mId!='')&&(dm.mId!=cmId)){dm.cAm();var Obj=dm.mAro(dm.Mko(dm.mId+'_0p'));dm.uHvig(Obj);}if((dm.mId=='')||(dm.mId!=cmId)){NewMnu=true;}dm.mId=cmId;if(NewMnu){dm.dInO();}dm.mO=dm.Gisv('o',dm.mId);dm.Lvl=dm.cML(w);if(dm.Lvl==1){dm.rsDr();}if((dm.Lvl==1)&&(document.onclick!=dm.bmo)){dm.omc=document.onclick;document.onclick=dm.bmo;}if(dm.tObj!=w){dm.tObj=w;dm.htt();}clearTimeout(dm.dttob);dm.dttob=null;dm.dttob=setTimeout('dm.dtt()',400);var sit=dm.GtSelItm(dm.Lvl);if(sit!=null){var ItID=sit.id.substring(dm.mId.length+1);if(dm.hits.indexOf(','+ItID+',')>-1){dm.cIt(sit,'e',null,dm.SelOp);}else{dm.cIt(sit,'d',null,100);}}dm.cIt(w,'e',null,100);dm.SvSelItm(w,dm.Lvl);if(document.onmousemove!=dm.omm&&document.onmousemove!=dm.cmc){dm.omm=document.onmousemove;document.onmousemove=dm.cmc;}if(!dm.eommo){try{if(window.OnMenuMouseOver){OnMenuMouseOver();}}catch(e){}dm.eommo=true;}if(dm.smch==true){dm.Hv(w);}var i;for(i=1;i<12;i++){if(dm.Oms[i]==dm.tObj.id+'p'){return;}}if(dm.smo=='0'){dm.smo=dm.Gisv('smo');}if((dm.smo=='1')||(dm.sod==1)){if((dm.mO!=1)||(dm.Lvl>1)){dm.ocD=setTimeout('dm.oChe()',dm.ocDt);}else{dm.oChe();}}}catch(ex){try{if(dm.omc!=''){document.onclick=dm.omc;}}catch(ex){document.onclick=dm.omc;}dm.ErrHr(ex,arguments);}};this.u=function(w){try{clearTimeout(dm.ocD);dm.ocD=null;clearTimeout(dm.ocM);dm.ocM=null;clearTimeout(dm.dttob);dm.dttob=null;var smc=dm.Gisv('smc');if(smc=='1'){dm.ocM=setTimeout('dm.cAm()',dm.ocMt);}var i;for(i=1;i<12;i++){if(dm.Oms[i]==w.id+'p'){return;}}}catch(ex){dm.ErrHr(ex,arguments);}};this.tv=function(){try{clearTimeout(dm.ocM);dm.ocM=null;}catch(e){}};this.tu=function(){try{clearTimeout(dm.ocD);dm.ocD=null;clearTimeout(dm.ocM);dm.ocM=null;dm.htt();var smc=dm.Gisv('smc');if(smc=='1'){dm.ocM=setTimeout('dm.cAm()',dm.ocMt);}}catch(ex){dm.ErrHr(ex,arguments);}};this.cmc=function(e){if(!e)e=window.event;if(e){ if(e.pageX||e.pageY){dm.mX=e.pageX;dm.mY=e.pageY;}else if(e.clientX||e.clientY){dm.mX=e.clientX+document.body.scrollLeft;dm.mY=e.clientY+document.body.scrollTop;}  };};this.dtt=function(tx){try{if(dm.tObj==null){return;}var t;if(tx!=null){if(tx=='ldtx'){var ldtx=dm.Gisv('ldtx');t=ldtx;}else{t=tx;}}else{t=dm.Gisv('ttt_'+dm.tObj.id);if((t=='undefined')||(t=='')||(t==null)){return;}}var ifc=null;ifc=dm.Mko(dm.mId+'ifc');if(ifc==null||ifc==undefined){return;}if(dm.tdo==null){var nd=new dm.cDIV();ifc.appendChild(nd);dm.tdo=nd;}dm.tdo.innerHTML=t;var zi=dm.Gisv('zi');dm.tdo.style.zIndex = zi+10;var ccp=dm.Gisv('ccp');dm.tdo.className=ccp+'Ttip';dm.tdo.style.whiteSpace='nowrap';try{if(dm.dBv('ie55p')||dm.dBv('op5p')){dm.tdo.attachEvent('onmouseover',dm.htt);}else{dm.tdo.addEventListener('mouseover',dm.htt,true);}}catch(tm){}var res=dm.stp();if(res==false){return;}if(dm.dBv('ie55p')){if(dm.ttf==null){var nif=new dm.cIFR('dm_ttf');ifc.appendChild(nif);dm.ttf=nif;}dm.ttf.style.height=dm.tdo.offsetHeight+'px';dm.ttf.style.width=dm.tdo.offsetWidth+'px';dm.ttf.style.top=dm.tdo.style.top;dm.ttf.style.left=dm.tdo.style.left;dm.ttf.style.zIndex = dm.tdo.style.zIndex-2;dm.tmpo=dm.ttf;}dm.dttl(dm.tdo);}catch(ex){dm.ErrHr(ex,arguments);}};this.dttl=function(w){dm.sDv(w);dm.sDv(dm.tmpo);};this.htt=function(){clearTimeout(dm.dttob);dm.dttob=null;try{if(dm.tdo!=null){dm.hDv(dm.tdo);dm.tdo.style.top='0px';dm.tdo.style.left='0px';}if((dm.dBv('ie55p'))&&(dm.ttf!=null)){dm.hDv(dm.ttf);dm.ttf.style.top='0px';dm.ttf.style.left='0px';}}catch(ex){dm.ErrHr(ex,arguments);}};this.stp=function(){try{var dX=-5; var dY=20;var pX=dm.mX+dX;var pY=dm.mY+dY;if((dm.mX==dm.mY)&&(dm.mX==0)){return false;}var wH=600;var wW=800;var dB=document.body;if(dm.ie){wH=dB.offsetHeight;wW=dB.offsetWidth;}else{if(dm.n6){wH=innerHeight;wW=innerWidth;}}if(dm.dBv('ie55p')){wH=dB.parentNode.offsetHeight;wW=dB.parentNode.offsetWidth;}else{wH=innerHeight;wW=innerWidth;}var scT=document.body.scrollTop;var scL=document.body.scrollLeft;if((dm.dBv('FF')||dm.dBv('ie55p'))&&(dm.cmb())){scT=dB.parentNode.scrollTop;scL=dB.parentNode.scrollLeft;}if(dm.mX+dX<5){pX=5;}if(wW-dm.mX<dm.tdo.offsetWidth+dX+20-scL){pX=wW-dm.tdo.offsetWidth-20+scL;}if(wH-dm.mY-dY-dm.tdo.offsetHeight+scT<15){pY=dm.mY-dY-dm.tdo.offsetHeight;}dm.tdo.style.left=pX+'px';dm.tdo.style.top=pY+'px';return true;}catch(ex){dm.ErrHr(ex,arguments);return false;}};this.cDIV=function(){var d=document.createElement('DIV');d.id='tt'+dm.COMPONENT_ID;d.style.position='absolute';d.style.visibility='hidden';return d;};this.cIFR=function(ifid){var ifr=document.createElement('iframe');ifr.id=ifid;var ssl=dm.Gisv('ssl');if(ssl==true){ifr.src='empty.htm';}else{ifr.src='about:blank';}ifr.border=0;ifr.frameBorder=0;ifr.marginHeight=0;ifr.marginWidth=0;ifr.scrolling='no';ifr.style.position='absolute';ifr.style.display='none';ifr.style.top='0px';ifr.style.left='0px';ifr.style.width='1px';ifr.style.height='1px';ifr.style.backgroundColor='transparent';return ifr;};this.cIFRs=function(){if(dm.cifs[12]!=null){return;}var ifc=dm.Mko(dm.mId+'ifc');var nif;for(i=2;i<13;i++){nif = new dm.cIFR('dm_'+i+'f');ifc.appendChild(nif);dm.cifs[i]=nif;}};this.mc=function(){dm.mwc=1;if((dm.smo=='2')&&(dm.sod==0)){dm.oChe();dm.sod=1;}};this.bmo=function(){if(dm.cAmt==null){dm.cAmt=setTimeout('dm.cAm()',50);}};this.oChe=function(){try{dm.cCl();dm.oCh(dm.tObj);}catch(e){}};this.oCh=function(w){var chOb=dm.Mko(w.id+'p');if(!chOb){return;}if(dm.lod){if((chOb.innerHTML=='')||(chOb.innerHTML=='&nbsp;')||(chOb.innerHTML=='&nbsp;&nbsp;')){clearTimeout(dm.dttob);dm.dttob=null;dm.dttob=setTimeout('dm.dtt(\'ldtx\')',100);if(chOb.innerHTML!='&nbsp;&nbsp;'){dm.GetSubM(w.id);}chOb.innerHTML='&nbsp;&nbsp;';return;}}var scdo=dm.Mko(w.id+'sd');if(scdo!=null){if(scdo.style.height=='auto'){var SMH=dm.Gisv('SMH');scdo.style.height=parseInt(SMH)+'px';}if(parseInt(scdo.style.height)<=scdo.childNodes[0].offsetHeight){if(dm.dBv('op5p')||dm.dBv('saf')){if(scdo.style.width=='auto'){scdo.style.width=scdo.offsetWidth+16+'px';}}else if(!dm.dBv('ie55p')){scdo.style.width=scdo.offsetWidth+'px';}}else{scdo.style.height='auto';}}var cOb=dm.Mko(w.id+'p');dm.dCr(w,cOb);var sit=dm.GtSelItm(dm.Lvl+1);if(sit!=null){dm.cIt(sit,'d',null,100);}dm.SvSelItm(null,dm.Lvl+1);var hi=dm.GtHghlItm(dm.Lvl+1);if(hi!=''){var hio=dm.Mko(dm.mId+'_'+hi);dm.cIt(hio,'e',null,dm.SelOp);}if((dm.tr!='')&&(dm.dBv('ie55p'))){dm.sDvt(chOb);}else{dm.sDvd();}dm.Oms[dm.Lvl]=w.id+'p';};this.sDvd=function(){try{if(dm.tObj==null){return;}var Obj=dm.Mko(dm.tObj.id+'p');if(Obj==null){return;}Obj.style.filter='';if(dm.dBv('ie55p')){dm.cIFRs();dm.cifs[dm.Lvl+1].style.filter='alpha(opacity=0)';dm.cifs[dm.Lvl+1].style.height=Obj.offsetHeight+'px';dm.cifs[dm.Lvl+1].style.width=Obj.offsetWidth+'px';dm.cifs[dm.Lvl+1].style.top=Obj.style.top;dm.cifs[dm.Lvl+1].style.left=Obj.style.left;var zi=dm.Gisv('zi');dm.cifs[dm.Lvl+1].style.zIndex = zi;dm.sDv(dm.cifs[dm.Lvl+1]);}dm.sDv(Obj);}catch(ex){dm.ErrHr(ex,arguments);}};this.sDvt=function(Dv){if(Dv){if(dm.Lvl==1&&(dm.mO==1)){dm.tr=dm.tr.replace('orientation=horizontal','orientation=vertical');dm.tr=dm.tr.replace('direction=right','direction=down');}else{if(dm.oDr==2){dm.tr=dm.tr.replace('motion=rightdown','motion=leftdown');}}try{Dv.style.filter=dm.tr;Dv.filters[0].Apply();dm.sDv(Dv);Dv.filters[0].Play();}catch(e){dm.sDv(Dv);}if(dm.dBv('ie55p')){dm.cIFRs();var pz1=dm.tr.indexOf('DXImageTransform.Microsoft.Shadow(');var pz2=dm.tr.indexOf('strength=');var Sd=0;if((pz1<pz2)&&(pz1>-1)){Sd=parseInt(dm.tr.substring(pz2+9));}dm.cifs[dm.Lvl+1].style.width=Dv.offsetWidth-Sd;dm.cifs[dm.Lvl+1].style.height=Dv.offsetHeight-Sd;dm.cifs[dm.Lvl+1].style.top=Dv.style.top;dm.cifs[dm.Lvl+1].style.left=Dv.style.left;var zi=dm.Gisv('zi');dm.cifs[dm.Lvl+1].style.zIndex = zi;try{dm.cifs[dm.Lvl+1].style.filter='alpha(opacity=0);'+dm.tr;dm.cifs[dm.Lvl+1].filters[0].Apply();dm.sDv(dm.cifs[dm.Lvl+1]);dm.cifs[dm.Lvl+1].filters[0].Play();}catch(e){dm.sDv(dm.cifs[dm.Lvl+1]);}}}};this.uHvig=function(Obj){if(Obj==null||Obj.length==null){return;}for(k=0;k<Obj.length;k++){var ItemID=Obj[k].id.substring(dm.mId.length+1);if((Obj[k].id!='')&&(Obj[k].className!='')){if(dm.hits.indexOf(','+ItemID+',')<0){dm.cIt(Obj[k],'d',null,100);}else{dm.cIt(Obj[k],'e',null,dm.SelOp);}}}};this.mAr=function(w){var Obj;cDv=dm.gCd(w);Obj=dm.mAro(cDv);return Obj;};this.mAro=function(cDv){try{var ach=cDv.childNodes;var Obj;for(i=0;i<ach.length;i++){var ch=ach[i];ch=ch.childNodes[0].childNodes[0].childNodes[0].childNodes[0];if(ch.tagName=='DIV'){ch=ch.childNodes[0];}if(ch.tagName=='TABLE'){Obj=ch.rows;if((Obj.length==1)&&(!Obj[0].id)){Obj=Obj[0].cells;return Obj;}return Obj;}}}catch(ex){dm.ErrHr(ex,arguments);}};this.cCl=function(){for(i=dm.Lvl;i<12;i++){dm.hDv(dm.Mko(dm.Oms[i]));dm.Oms[i]=undefined;if((!dm.dBv('op5p'))&&(!dm.dBv('saf'))){dm.hDv(dm.cifs[i+1]);}}};this.cAm=function(){try{clearTimeout(dm.cAmt);dm.cAmt=null;if(dm.mwc==1){dm.mwc=0;return;}try{if(window.OnMenuCloseAll){OnMenuCloseAll();}}catch(e){}dm.eommo=false;dm.tObj=null;dm.htt();if(dm.omm!=dm.cmc&&dm.omm!=''){document.onmousemove=dm.omm;dm.omm='';}try{if(dm.omc!=''){document.onclick=dm.omc;}}catch(ex){document.onclick=dm.omc;}dm.omc='';dm.sod=0;dm.smo='0';for(i=1;i<12;i++){dm.hDv(dm.Mko(dm.Oms[i]));dm.Oms[i]=undefined;if((!dm.dBv('op5p'))&&(!dm.dBv('saf'))){dm.hDv(dm.cifs[i+1]);}}if(dm.mId!=''){dm.Lvl=1;var Obj=dm.mAro(dm.Mko(dm.mId+'_0p'));dm.uHvig(Obj);}}catch(ex){dm.ErrHr(ex,arguments);}};this.cML=function(w){var Lv=0;var cOb=w;var cId;var dPid='1';while(dPid!='0'){Lv++;cId=dm.gCd(cOb).id;if(Lv==1){if(dm.cdID!=cId){dm.smch=true;dm.cdID=cId;}else{dm.smch=false;}}dPid=cId.substring(cId.lastIndexOf("_")+1,cId.length-1);cOb=dm.Mko(cId.substr(0,cId.length-1));}return Lv;};this.gCd=function(w){var dOb=w.parentNode;while(dOb.parentNode){if((dOb.tagName=='DIV')&&(dOb.style.overflow.length==0)){return dOb;}dOb=dOb.parentNode;}return null;};this.Hv=function(w){var mIt;var j;for(j=1;j<dm.Lvl;j++){mIt=dm.Mko(dm.Oms[j].substr(0,dm.Oms[j].length-1));var sit=dm.GtSelItm(j);if(sit!=null){dm.cIt(sit,'d',null,100);}dm.cIt(mIt,'e',null,100);dm.SvSelItm(mIt,j);}};this.gmId=function(w){var Id=w.id;return(Id.substring(0,Id.indexOf('_')));};this.cIt=function(w,Ind,uid,op){var UID=dm.mId;if(uid!=null&&uid!=undefined){UID=uid;}if(w==null){return;}var Obj;var Ncn;var ItemID=w.id.substring(UID.length+1);if(w.tagName=='TD'){Obj=w.childNodes[0];if(Obj==null){return;}if(Obj.tagName=='IMG'){if((w.id+'i')==Obj.id){dm.sSr(w,Ind,1,UID);dm.opac(w,op);return;}var Ic=dm.Gisv('i'+ItemID+'Ic',UID);var IcO=dm.Gisv('i'+ItemID+'IcO',UID);if(Ic!=null&&IcO!=null){if(Ind=='e'){Obj.src=IcO.src;}if(Ind=='d'){Obj.src=Ic.src;}}}dm.opac(w,op);Ncn=w.className.substring(0,w.className.length-1)+Ind;if(w.className!=Ncn){w.className=Ncn;}if(Ind=='e'){if(dm.EDV=='0'){dm.sArF(w,dm.arrDO);}if(dm.EDV=='1'){dm.sArF(w,dm.arrUO);}return;}if(Ind=='d'){if(dm.EDV=='0'){dm.sArF(w,dm.arrD);}if(dm.EDV=='1'){dm.sArF(w,dm.arrU);}return;}return;}if(w.tagName=='TR'){Obj=w.childNodes[0].childNodes[0];if(!Obj){Obj=w.childNodes[1].childNodes[0];if(!Obj){Obj=w.childNodes[1]};}if(!Obj){return;}if(Obj.tagName=='IMG'){if((w.id+'i')==Obj.id){dm.sSr(w,Ind,2,UID);dm.opac(w.childNodes[0],op);return;}var Ic=dm.Gisv('i'+ItemID+'Ic',UID);var IcO=dm.Gisv('i'+ItemID+'IcO',UID);if(Ic!=null&&IcO!=null){if(Ind=='e'){Obj.src=IcO.src;}if(Ind=='d'){Obj.src=Ic.src;}}}if(dm.dBv('FF')){dm.opac(w,op);}else{dm.opac(w.childNodes[0],op);dm.opac(w.childNodes[1],op);dm.opac(w.childNodes[2],op);}Ncn=w.className.substring(0,w.className.length-1)+Ind;if(w.className!=Ncn){w.className=Ncn;}var IOC=dm.Gisv('ioc',UID);if(IOC){var ccp=dm.Gisv('ccp',UID);if(w.childNodes[0].className.indexOf('SubTd')==-1){if(Ind=='e'){if(w.childNodes[0].className!=ccp+'MainTd_1'){w.childNodes[0].className=ccp+'MainTd_1';w.childNodes[1].className=ccp+'MainTd_2';w.childNodes[2].className=ccp+'MainTd_3';}}else{if(w.childNodes[0].className!=ccp+'MainTd'){w.childNodes[0].className=ccp+'MainTd';w.childNodes[1].className=ccp+'MainTd';w.childNodes[2].className=ccp+'MainTd';}}}else{if(Ind=='e'){if(w.childNodes[0].className!=ccp+'SubTd_1'){w.childNodes[0].className=ccp+'SubTd_1';w.childNodes[1].className=ccp+'SubTd_2';w.childNodes[2].className=ccp+'SubTd_3';}}else{if(w.childNodes[0].className!=ccp+'SubTd'){w.childNodes[0].className=ccp+'SubTd';w.childNodes[1].className=ccp+'SubTd';w.childNodes[2].className=ccp+'SubTd';}}}}if(Ind=='e'){var ArrE=dm.arrRO;if(dm.arrRO==null&&dm.arrR==null){ArrE='<span style="color:white;">&gt;</span>';}dm.sAr(w,ArrE);return;}if(Ind=='d'){var ArrD=dm.arrR;if(dm.arrRO==null&&dm.arrR==null){ArrD='<span style="color:black;">&gt;</span>';}dm.sAr(w,ArrD);return;}return;}};this.sSr=function(w,Ind,nm,uid){var UID=dm.mId;if(uid!=null&&uid!=undefined){UID=uid;}var Obj;var ItemID=w.id.substring(UID.length+1);if(nm==1){Obj=w.childNodes[0];}if(nm==2){Obj=w.childNodes[0].childNodes[0];if(dm.Op&&dm.Lvl>1){Obj=document.all['dm_'+dm.Lvl+'f'].document.getElementById(w.id).childNodes[0].childNodes[0];}}var Im=dm.Gisv('m'+ItemID+'Im',UID);var ImO=dm.Gisv('m'+ItemID+'ImO',UID);if(Im!=null&&ImO!=null){if(Ind=='e'){Obj.src=ImO.src;}if(Ind=='d'){Obj.src=Im.src;}}};this.sAr=function(w,ImgO){if(ImgO==null){return;}var Obj=w.childNodes[2];var Ob3=Obj.childNodes[0];if(Ob3){if(Ob3.tagName=='SPAN'){Obj.innerHTML=ImgO;}if(Ob3.tagName=='IMG'){if(ImgO!=null&&ImgO!=undefined){Ob3.src=ImgO.src;}}}};this.sArF=function(w,ImgO){if(ImgO==null){return;}var Obj=dm.Mko('hmimg_'+w.id);if(Obj!=null){if(ImgO!=null&&ImgO!=undefined){Obj.src=ImgO.src;}} };this.dInO=function(uid){var UID=dm.mId;if(uid!=null&&uid!=undefined){UID=uid;}var tr;tr=dm.Gisv('ocDt',UID);if(tr==null||tr==undefined){tr=250;}dm.ocDt=tr;tr=dm.Gisv('arrR',UID);if(!tr){tr=null;}dm.arrR=tr;tr=dm.Gisv('arrRO',UID);if(!tr){tr=null;}dm.arrRO=tr;tr=dm.Gisv('arrD',UID);if(!tr){tr=null;}dm.arrD=tr;tr=dm.Gisv('arrDO',UID);if(!tr){tr=null;}dm.arrDO=tr;tr=dm.Gisv('arrU',UID);if(!tr){tr=null;}dm.arrU=tr;tr=dm.Gisv('arrUO',UID);if(!tr){tr=null;}dm.arrUO=tr;tr=dm.Gisv('tr',UID);if(!tr){tr='';}dm.tr=tr;dm.EDV='0';tr=dm.Gisv('edv',UID);if(tr=='1'){dm.EDV='1';}tr=dm.Gisv('hits',UID);if(!tr){tr=',';}dm.hits=tr;tr=dm.Gisv('hpo',UID);if(!tr){tr=0;}dm.SelOp=tr;dm.lod=false;tr=dm.Gisv('lod',UID);if(tr==true){dm.lod=true;}};this.trim=function(str){var s = new String(str);if(s==''){return s;}s=s.replace(/^\s*/,'').replace(/\s*$/,'');return s;};this.clHrf=function(u,t){var v;var nh;u=dm.trim(u);t=dm.trim(t);if(u==''){return;}if(t==''){t='_top';}try{var url=u.toLowerCase();if(url.indexOf('javascript:')>-1){eval(u);return;}v=open(u,t);}catch(e){}};this.clClk=function(w){var ClSel=dm.Gisv('ClSel');if(ClSel!=null&&ClSel!=''){try{var ItemID=w.id.substring(dm.mId.length+1);var MenuID=dm.Gisv('uid');dm.svs('sit',ItemID);eval(ClSel+'(\''+MenuID+'\',\''+ItemID+'\')');}catch(e){var wen=dm.Gisv('wen');if(wen!='true'){return;}alert('Error! APNSoft Menu was unable to launch the \''+ClSel+'\' client-side function!\r\n'+e.description+'.');}}};this.clApb=function(w){var uid=dm.Gisv('uid');if(uid){try{var ItemID=w.id.substring(dm.mId.length+1);dm.svs('sit',ItemID);__doPostBack(uid,w.id);}catch(e){alert(dm.ComponentName+'\r\nError in AutoPostBack!\r\nDescription: '+e.description+'.');return;}}};this.dCr=function(w,cOb){var OvH=-5;var OvV=-4;var Ov=dm.Gisv('ho');if(Ov!=null){OvH=Ov;}Ov=dm.Gisv('vo');if(Ov!=null){OvV=Ov;}var cDw=cOb.childNodes[0].offsetWidth;var cDh=cOb.childNodes[0].offsetHeight;var wH=600;var wW=800;var dB=document.body;var stY;var stX;var scT=document.body.scrollTop;var scL=document.body.scrollLeft;if((dm.dBv('FF')||dm.dBv('ie55p'))&&(dm.cmb())){scT=dB.parentNode.scrollTop;scL=dB.parentNode.scrollLeft;}if(dm.ie){wH=dB.offsetHeight;wW=dB.offsetWidth;}else{if(dm.n6){wH=innerHeight;wW=innerWidth;}}if(dm.dBv('ie55p')){wH=dB.parentNode.offsetHeight;wW=dB.parentNode.offsetWidth;}else{wH=innerHeight;wW=innerWidth;}var cObt=cOb.style;var cDo=dm.gCd(w);if(dm.Lvl==1){dm.hmp=0;}if(dm.Lvl==1&&dm.mO==1){if(dm.EDV=='1'){stY=dm.pY(cDo)-cDh;dm.hmp=stY+cDh;}else{stY=dm.pY(cDo)+cDo.offsetHeight;}stY+=OvV;}else{if(dm.dBv('saf')){var h1=w.childNodes[0];var h2=w.childNodes[1];if(h2!=null&&h1.offsetHeight<h2.offsetHeight){h1=h2;}stY=dm.pY(h1);}else{stY=dm.pY(w);}if((stY+cDh+8)>(wH+scT)){stY=(wH+scT)-cDh-8;}if(dm.hmp>0){if((stY+cDh)>dm.hmp){stY=dm.hmp-cDh;}}}if((dm.Lvl!=1)&&(dm.dBv('saf'))){stY-=document.body.offsetTop;}var scdo=dm.Mko(cDo.id.substring(0,cDo.id.length-1)+'sd');if(scdo!=null){stY-=scdo.scrollTop;}cObt.top=stY+'px';if(!dm.cFt(w,cOb)){dm.rDr();}if(!dm.cFt(w,cOb)){dm.rDr();}if(dm.Lvl==1&&dm.mO==1){stX=dm.pX(w);if((wW-dm.pX(w)-30)<cDw-scL){stX=wW-cDw-30+scL;}}if(dm.Lvl>1||dm.mO!=1){if(dm.oDr==1){stX=dm.pX(cDo.childNodes[0])+cDo.childNodes[0].offsetWidth;if(!dm.Op){stX+=OvH;}}if(dm.oDr==2){stX=dm.pX(cDo.childNodes[0])-cDw;if(!dm.Op){stX-=OvH;}}}if((dm.Lvl!=1)&&(dm.dBv('saf'))){stX-=document.body.offsetLeft;}cObt.left=stX+'px';w.offsetParent;};this.rDr=function(){if(dm.oDr==1){dm.oDr=2;}else{dm.oDr=1;}};this.rsDr=function(){var dDd=dm.Gisv('ed');if(dDd){dm.oDr=dDd;}};this.cFt=function(w,cOb){var r=true;if(dm.ie){wW=document.body.offsetWidth;}else{if(dm.n6){wW=innerWidth;}}if((dm.Lvl==1)&&(dm.mO==1)){return true;}var cDo=dm.gCd(w);var CrDvPs=dm.pX(cDo.childNodes[0]);var cDw=cOb.offsetWidth;if(dm.dBv('op5p')){cDw=cOb.childNodes[0].offsetWidth;}var crDw=cDo.childNodes[0].offsetWidth;if(dm.oDr==1){if((wW-(CrDvPs+crDw))<(cDw+30)){r=false;}}if(dm.oDr==2){if(CrDvPs<(cDw+10)){r=false;}}return r;};this.GetSubM=function(wid,uid){try{var UID=dm.mId;if(uid!=undefined&&uid!=null){UID=uid;}var cb=new dm.CB();var P=dm.GPg(UID);var Q=dm.Gisv('qstr');P=P+'?V0fh2yyt='+dm.rnd();if(Q!=undefined&&Q!=null&&Q!=''){P=P+'&'+Q;}var prm=dm.COMPONENT_ID+'=GtSbm&CID='+UID+'&WID='+wid;if(P.indexOf(dm.COMPONENT_ID)>-1)P=P.replace(dg.COMPONENT_ID,'vbc24fgd5');if(P.indexOf('CID')>-1)P=P.replace('CID','nbc35a');if((P.indexOf(':')>-1)&&(P.indexOf('/?')>-1)){P=P.replace('/?','/Default.aspx?');}cb.Get(P,prm,dm.GetSubMRz,2);}catch(ex){dm.ErrHr(ex,arguments);}};this.GetSubMRz=function(res){try{if(res.readyState!=4){return;}var msg='APNSoft Menu cannot get data from the server!';var wen=dm.Gisv('wen');if(res.status==200){var CID=res.getResponseHeader('DM_CID');if(CID==''||CID==undefined||CID==null){if(wen=='true'){alert(msg+'\r\n'+dm.MsgEr1);}return;}var Tx=res.responseText;if(Tx.indexOf('Error!')==0){if(wen=='true'){alert(Tx);}return;}var WID=res.getResponseHeader('DM_WID');var chOb=dm.Mko(WID+'p');if(!chOb){return;}chOb.innerHTML=Tx;if((chOb.innerHTML=='')||(chOb.innerHTML=='&nbsp;')){return;}var w=dm.Mko(WID);if(!w){return;}if(w==dm.tObj){dm.htt();}if(dm.tObj==null){return;}dm.oCh(dm.tObj);clearTimeout(dm.dttob);dm.dttob=null;dm.dttob=setTimeout('dm.dtt()',400);}else{msg+='\r\nError code: '+res.status;if(wen=='true'){alert(msg);if(res.responseText){document.body.innerHTML=res.responseText;}}}}catch(ex){dm.ErrHr(ex,arguments);}};this.GPg=function(UID){var P=location.href;if(P.indexOf('?')>-1){P=P.substring(0,P.indexOf('?'));}return P;};this.CB=function(){try{this.Get=dm.RU;this.xho=dm.XHO();if(this.xho==null)return;}catch(ex){dm.ErrHr(ex,arguments);}};this.RU=function(url,prm,ResFunc,m){try{if(!this.xho)return;if(this.xho.readyState!=0)this.xho.abort();var xho=this.xho;this.xho.onreadystatechange=function(){ResFunc(xho);};if(m==1){this.xho.open('GET',url+'?'+prm,true);this.xho.send(null);}if(m==2){this.xho.open('POST',url,true);this.xho.setRequestHeader('Content-Type','application/x-www-form-urlencoded');var prmVS='';var frm=null;var el=null;var elNm='';var Typ='';var uid='';var EFuid='';try{frm=document.forms[0];uid=dm.Gisv('uid');prmVS+='__VIEWSTATE='+encodeURIComponent(frm.__VIEWSTATE.value)+'&';if(frm.__EVENTVALIDATION){prmVS+='__EVENTVALIDATION='+encodeURIComponent(frm.__EVENTVALIDATION.value)+'&';}for(var i=0;i<frm.elements.length;i++){el=frm.elements[i];elNm=el.name;if(elNm&&elNm!=''){if(elNm=='__EVENTTARGET'||elNm=='__EVENTARGUMENT'||elNm=='__VIEWSTATE'){}else{if(elNm&&elNm.indexOf(EFuid)!=0){Typ=el.type.toUpperCase();if(Typ=='CHECKBOX'||Typ=='RADIO'){if(el.checked){prmVS+=encodeURIComponent(elNm)+'='+encodeURIComponent(el.value)+'&';}}else{if(el.nodeName=='SELECT'){if(el.multiple){for(var j=0;j<el.length;j++){if(el.options[j].selected){prmVS+=encodeURIComponent(elNm)+'='+encodeURIComponent(el.options[j].value)+'&';}}}else{prmVS+=encodeURIComponent(elNm)+'='+encodeURIComponent(el.value)+'&';}}else{if(el.value&&Typ!='HIDDEN'){if(Typ!='SUBMIT'){prmVS+=encodeURIComponent(elNm)+'='+encodeURIComponent(el.value)+'&';}}}}}}}}}catch(e){}prm=prmVS+prm;this.xho.send(prm);}}catch(ex){dm.ErrHr(ex,arguments);}};this.XHO=function(){try{var obj=null;if(window.XMLHttpRequest){obj=new XMLHttpRequest();return obj;}if(window.ActiveXObject){obj=new ActiveXObject("Msxml2.XMLHTTP");return obj;}obj=new ActiveXObject("Microsoft.XMLHTTP");return obj;}catch(ex){var wen=dm.Gisv('wen');if(wen!='true'){return;}alert('The Callback procedure has been terminated.\r\nException Details: '+ex.description);}};this.Mko=function(n){var Ob;try{Ob=document.getElementById(n);}catch(e){return null;}return Ob;};this.Gisv=function(key,uid){try{var UID=dm.mId;if(uid!=null&&uid!=undefined){UID=uid;}var val='';try{val=eval(UID+'L.'+key);}catch(e){}return val;}catch(ex){dm.ErrHr(ex,arguments);}};this.Sisv=function(key,val,uid){try{var UID=dm.mId;if(uid!=null&&uid!=undefined){UID=uid;}eval(UID+'L.'+key+'=\''+val+'\'');}catch(ex){dm.ErrHr(ex,arguments);}};this.svs=function(nm,vl,uid){try{var UID=dm.mId;if(uid!=null&&uid!=undefined){UID=uid;}var hf=dm.Mko(nm+'_'+UID+'_vs');if(!hf){return;}hf.value=vl;}catch(ex){dm.ErrHr(ex,arguments);}};this.GtHghlItm=function(lvl){var Res='';var splS=dm.hits.split(',');if(lvl+2>splS.length)return Res;if(splS[lvl]!=''){Res=splS[lvl];}return Res;};this.GtSelItm=function(lvl){var Res=null;var SelIts=dm.Gisv('SelIts');Res=SelIts[lvl];return Res;};this.SvSelItm=function(w,lvl){var SelIts=dm.Gisv('SelIts');SelIts[lvl]=w;};this.pX=function(w){var cl=0;if(w.offsetParent){while(w){cl+=w.offsetLeft;w=w.offsetParent;}}else{if(w.x){cl+=w.x;}}return cl;};this.pY=function(w){var ct=0;if(w.offsetParent){while(w){ct+=w.offsetTop;w=w.offsetParent;}}else{if(w.y){ct+=w.y;}}return ct;};this.sDv=function(w){try{if(w){w.style.display="block";w.style.visibility="visible";}}catch(e){}};this.hDv=function(w){if(w){w.style.display="";w.style.visibility="hidden";}};this.cmb=function(){var r=false;if(document.compatMode&&document.compatMode.toLowerCase().indexOf('back')<0){r=true;}return r;};this.opac=function(w,op){if((w.style.filter!=null)&&(w.style.filter!=undefined)){w.style.filter='';if(op<100){w.style.filter='alpha(opacity='+op+')';}return;}if((w.style.MozOpacity!=null)&&(w.style.MozOpacity!=undefined)){w.style.MozOpacity=(op/100);return;}if((w.style.opacity!=null)&&(w.style.opacity!=undefined)){w.style.opacity=(op/100);return;}if((w.style.KhtmlOpacity!=null)&&(w.style.KhtmlOpacity!=undefined)){w.style.KhtmlOpacity=(op/100);return;}};this.rnd=function(){try{var RND='';var _rnd=Math.random()*100000000;RND=Math.round(_rnd)+'';return RND;}catch(ex){dm.ErrHr(ex,arguments);}};this.dBv=function(nm){var mj = parseInt(navigator.appVersion);var ua=navigator.userAgent.toLowerCase();var op=(ua.indexOf("opera")!=-1);var op2=(ua.indexOf("opera 2")!=-1||ua.indexOf("opera/2")!=-1);var op3=(ua.indexOf("opera 3")!=-1||ua.indexOf("opera/3")!=-1);var op4=(ua.indexOf("opera 4")!=-1||ua.indexOf("opera/4")!=-1);var op5p=(op&&!op2&&!op3&&!op4);var ie=((ua.indexOf("msie")!=-1)&&(ua.indexOf("opera")==-1));var ie3=(ie&&(mj<4));var ie4=(ie&&(mj==4)&&(ua.indexOf("msie 4")!=-1));var ie5=(ie&&(mj==4)&&(ua.indexOf("msie 5.0")!=-1));var ie55p=(ie&&!ie3&&!ie4&&!ie5);var saf=((ua.indexOf('safari')!=-1)&&(ua.indexOf('mac')!=-1))?true:false;var FF=((ua.indexOf('firefox')!=-1)&&(!ie55p)&&(ua.indexOf('mozilla/5')!=-1)&&(ua.indexOf('spoofer')==-1)&&(ua.indexOf('compatible')==-1)&&(ua.indexOf('opera')==-1)&&(ua.indexOf('webtv')==-1)&&(ua.indexOf('hotjava')==-1));return(eval(nm));};};
