/*! * JavaScript code for drop-down menu * Copyright (c) 2003-2013 Drop Down Menu Generator. All rights reserved. * http://www.dropdownmenugenerator.com * http://www.apnsoft.com */ var cmn=new cmnc();function cmnc(){this.ComponentName=’APNSoft WebControls JS source file.’;this.Version=’Version 4.0 (69)’;this.Copyright=’Copyright (C) APNSoft. All rights reserved.’;this.uid=null;this.mX=0;this.mY=0;this.InsVrb=null;this.RqsBg=null;this.RqsDrt=null;this.HrfEnb=true;this.ErrHr=function(ex,args){try{var wen=cmn.Gisv(‘wen’);if(wen!=’true’)return;var msg=’Error! APNSoft Control was unable to perform an operation.’;if(ex.lineNumber){msg+=’\r\nLine Number: ‘+ex.lineNumber;}var cp=args[0];if(cp){msg+=’\r\nObject: ‘+cp;}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.GtnIds=function(UID){var res=cmn.Gisv(‘nidsXML’,UID);if(res==null||res==undefined){var nids=cmn.Gisv(‘nids’,UID);if(typeof(nids)==’string’&&nids==”){nids=null};if(nids!=”&&nids!=null&&nids!=undefined){res=cmn.StrToXml(nids);cmn.Sisv(‘nidsXML’,res,UID);}}if(res==undefined)res=null;return res;};this.sDv=function(w){if(w==null||w==undefined)return;w.style.display=’block’;w.style.visibility=’visible’;};this.hDv=function(w){if(w==null||w==undefined)return;w.style.display=”;w.style.visibility=’hidden’;};this.sDvOpc=function(w,sp,opTo){if(w==null||w==undefined)return;var wid=w.id;var opFr=0;var tm=0;var opcStp=5;if(cmn.oVs(w)==false){if(cmn.dBv(‘ie55p’)){cmn.sDv(w);cmn.StOpc(wid,0);}else{cmn.StOpc(wid,0);cmn.sDv(w);}}else{var opct=w.opct;if(opct!=null&&opct!=undefined){if(opct=opTo)return;}}w.opTo=opTo;var procID=cmn.rnd();w.procID=procID;for(var i=opFr;i<=opTo;i=i+opcStp){setTimeout('cmn.SetOpAut(\''+wid+'\',\''+procID+'\','+opcStp+')',tm*sp);tm++;}};this.hDvOpc=function(w,sp,opFr,mvAw){if(w==null||w==undefined)return;if(cmn.oVs(w)==false){return;}var tm=0;var wid=w.id;var opcStp=5;var opct=w.opct;if(opct!=null&&opct!=undefined){opFr=opct;}w.opTo=0;var procID=cmn.rnd();w.procID=procID;var TmSt=0;for(var i=0;i<=opFr;i=i+opcStp){TmSt=tm*sp;setTimeout('cmn.SetOpAut(\''+wid+'\',\''+procID+'\','+opcStp+','+mvAw+')',TmSt);tm++;}};this.SetOpAut=function(wid,procID,opcStp,mvAw){var w=cmn.Mko(wid);if(w==null||w==undefined)return;if((w.procID!=procID)||(w.procID==null)||(w.procID==undefined)){return;}var opct=w.opct;var opTo=w.opTo;if(opct==opTo)return;var opNxt=0;if(opct100)opNxt=100;}if(opct>opTo){opNxt=opct-opcStp;if(opNxt<0)opNxt=0;}cmn.StOpc(wid,opNxt);if(opNxt==100){w.procID='';}if(opNxt==0){w.procID='';cmn.hDv(w);cmn.StOpc(wid,100);if(mvAw==true){w.style.top='0px';w.style.left='0px';}}};this.oVs=function(w){var rs=false;if(!w)return rs;if(w.style.visibility=='visible')rs=true;return rs;};this.rvs=function(nm,uid){var UID=cmn.uid;if(uid!=null&&uid!=undefined){UID=uid;}var hf=cmn.Mko(nm+'_'+UID+'_vs');if(hf==null){return '';}var res=hf.value;if(res==undefined||res==null){res='';}return hf.value;};this.svs=function(nm,vl,uid){var UID=cmn.uid;if(uid!=null&&uid!=undefined){UID=uid;}var hf=cmn.Mko(nm+'_'+UID+'_vs');if(hf==null){return;}hf.value=vl;};this.RmSl=function(){try{if(window.getSelection){var myRange=window.getSelection();myRange.removeAllRanges();}else{document.selection.empty();}}catch(ex){}};this.GtTtl=function(wid){var ttl='';try{ttl=cmn.Mko(wid).innerHTML;}catch(ex){}if(ttl==null||ttl==undefined)ttl='';var re=new RegExp('\'','gi');ttl=ttl.replace(re,'%FB0');var re=new RegExp('\\\\','gi');ttl=ttl.replace(re,'%FD0');return ttl;};this.ItmPrc=function(prc,uid,id,ttl){try{if(prc!=null&&prc!=undefined){var re=null;if(uid!=null&&uid!=undefined){re=new RegExp('[$]ComponentID[$]','gi');prc=prc.replace(re,uid);}if(id!=null&&id!=undefined){re=new RegExp('[$]ItemID[$]','gi');prc=prc.replace(re,id);}if(ttl!=null&&ttl!=undefined){var re=new RegExp('%FB0','gi');ttl=ttl.replace(re,'\\\'');var re=new RegExp('%FD0','gi');ttl=ttl.replace(re,'\\\\');re=new RegExp('[$]Title[$]','gi');prc=prc.replace(re,ttl);}var ApplPth=null;try{ApplPth=cvd3j76gergyjuhw;}catch(e){}if(ApplPth==null||ApplPth==undefined)ApplPth='';re=new RegExp('~','gi');prc=prc.replace(re,ApplPth);prc=eval(TE=prc);if(prc!=null&&prc!=undefined){prc;}}}catch(e){var wen=cmn.Gisv('wen');if(wen=='true'){alert('Error! Check the client-side code: '+prc+'\r\n\r\nDescription: '+e.description+'.');}}};this.AjaxRzErr=function(Tx,cntx){try{var wen=cmn.Gisv('wen',cntx);if(wen=='true'){var msg = "Error! APNSoft Control cannot get data from the server! \r\nException Details: " + Tx;alert(msg);}}catch(ex){cmn.ErrHr(ex,arguments);}};this.WF_CBCa=function(){if(typeof(WebForm_CallbackComplete)=="function"){if(WebForm_CallbackComplete!=cmn.WF_CBC){WebForm_CallbackComplete=cmn.WF_CBC;};}};this.WF_CBC=function(){for(var i=0;i<__pendingCallbacks.length;i++){callbackObject=__pendingCallbacks[i];if(callbackObject&&callbackObject.xmlRequest&&(callbackObject.xmlRequest.readyState==4)){WebForm_ExecuteCallback(callbackObject);if(__pendingCallbacks[i]!=null){if(!__pendingCallbacks[i].async){__synchronousCallBackIndex=-1;};}__pendingCallbacks[i]=null;var cbfid="__CALLBACKFRAME"+i;var xrf=document.getElementById(cbfid);if(xrf){xrf.parentNode.removeChild(xrf);};};};};this.getDomAdapter=function(){var adapter='';if('undefined'!=typeof(ActiveXObject)){adapter='MS';}else if('undefined'!=typeof(document)&& document.implementation&& document.implementation.createDocument&& 'undefined'!=typeof(DOMParser)){adapter='default';}switch (adapter){case 'MS':return new (function(){this.createDocument=function(){var names=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.3.0", "MSXML2.DOMDocument","MSXML.DOMDocument", "Microsoft.XMLDOM"];for(var key in names){try{return new ActiveXObject(names[key]);}catch(e){}}throw new Error('Unable to create DOMDocument');};this.serialize=function(doc){return doc.xml;};this.parseXml=function(xml){var doc=this.createDocument();if(!doc.loadXML(xml)){throw new Error('Parse error');}return doc;};})();case 'default':return new (function(){this.createDocument=function(){return document.implementation.createDocument("", "", null);};this.serialize=function (doc) {return new XMLSerializer().serializeToString(doc);};this.parseXml=function (xml) {var doc=new DOMParser().parseFromString(xml,"text/xml");if("parsererror"==doc.documentElement.nodeName){throw new Error('Parse error');}return doc;};})();default:throw new Error('Unable to select the DOM adapter');}};this.StrToXml=function(str){var res=cmn.getDomAdapter().parseXml('’+str+”);return res;};this.InnXml=function(xml){var str=(new XMLSerializer()).serializeToString(xml);return str;};this.NdAtr=function(nam,atr,UID){var nIds=cmn.GtnIds(UID);if(nIds==null)return null;var nd=nIds.getElementsByTagName(‘i’+nam)[0];if(nd==null)return null;var vl=nd.getAttribute(atr);return vl;};this.ShwShd=function(Obj,PngShdCnt,ccp){if(PngShdCnt==null||PngShdCnt==”)return;if(PngShdCnt<2)return; var x=cmn.pX(Obj);var y=cmn.pY(Obj);var zIndex=Obj.style.zIndex;var ShLft=null;if(PngShdCnt==3){ShLft=cmn.CrtDv(Obj.id+'_Sh0');ShLft.style.zIndex=zIndex;}var ShRgt=cmn.CrtDv(Obj.id+'_Sh1');ShRgt.style.zIndex=zIndex;var ShBtm=cmn.CrtDv(Obj.id+'_Sh2');ShBtm.style.zIndex=zIndex;var ShCrn=cmn.CrtDv(Obj.id+'_Sh3');ShCrn.style.zIndex=zIndex;if(ShLft!=null){ShLft.className=ccp+'ShdLft '+ccp+'ShdCmn'; cmn.setTop(ShLft,y);cmn.setLeft(ShLft,x-ShLft.offsetWidth);ShLft.style.height=Obj.offsetHeight+'px';cmn.sDv(ShLft);}ShRgt.className=ccp+'ShdRgt '+ccp+'ShdCmn';cmn.setLeft(ShRgt,x+Obj.offsetWidth);cmn.setTop(ShRgt,y);ShRgt.style.height=Obj.offsetHeight+'px';cmn.sDv(ShRgt);ShCrn.className=ccp+'ShdCrn '+ccp+'ShdCmn';cmn.setLeft(ShCrn,x+Obj.offsetWidth+ShRgt.offsetWidth-ShCrn.offsetWidth);cmn.setTop(ShCrn,y+Obj.offsetHeight);cmn.sDv(ShCrn);ShBtm.className=ccp+'ShdBtm '+ccp+'ShdCmn';cmn.setTop(ShBtm,y+Obj.offsetHeight);if(PngShdCnt==2){cmn.setLeft(ShBtm,x);ShBtm.style.width=Obj.offsetWidth+ShRgt.offsetWidth-ShCrn.offsetWidth+'px';}if(PngShdCnt==3){cmn.setLeft(ShBtm,x-ShLft.offsetWidth);ShBtm.style.width=Obj.offsetWidth+ShLft.offsetWidth+ShRgt.offsetWidth-ShCrn.offsetWidth+'px';}cmn.sDv(ShBtm);};this.HdShd=function(Obj){var ShDv=null;for(var i=0;i<4;i++){ShDv=cmn.Mko(Obj.id+'_Sh'+i);if(ShDv!=null){cmn.setLeft(ShDv,0);cmn.setTop(ShDv,0);cmn.hDv(ShDv);}}};this.GtCssRl=function(cls,rul){var res='';try{for(var i=0;i<document.styleSheets.length;i++){var st=document.styleSheets[i];var rls=st.cssRules;if(rls==null||rls==undefined)rls=st.rules;for(var j=0;j<rls.length;j++){var rl=rls[j];if(rl.selectorText!=null&&rl.selectorText!=undefined){if(rl.selectorText.toLowerCase()==('.'+cls.toLowerCase())){res=eval('rl.style.'+rul);break;}}}}}catch(ex){}return res;};this.cmc=function(e){if(!e)e=window.event;if(e){ if(e.pageX||e.pageY){cmn.mX=e.pageX;cmn.mY=e.pageY;}else if(e.clientX||e.clientY){cmn.mX=e.clientX+document.body.scrollLeft;cmn.mY=e.clientY+document.body.scrollTop;} };};this.pX=function(w){var cl=0;if(w==null)return cl;if(w.parentNode==null)return cl;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==null)return ct;if(w.parentNode==null)return ct;if(w.offsetParent){while(w){ct+=w.offsetTop;w=w.offsetParent;}}else{if(w.y){ct+=w.y;}}return ct;};this.setLeft=function(w,L){if(w==null||w==undefined)return;w.style.left=L+'px';var Req=w.offsetLeft;var Cur=cmn.pX(w);var Del=Req-Cur;w.style.left=(L+Del)+'px';};this.setTop=function(w,T){if(w==null||w==undefined)return;w.style.top=T+'px';var Req=w.offsetTop;var Cur=cmn.pY(w);var Del=Req-Cur;w.style.top=(T+Del)+'px';};this.Sisv=function(key,val,uid){var UID=cmn.uid;if(uid!=null&&uid!=undefined){UID=uid;}if(cmn.InsVrb==null){cmn.InsVrb=new Object();cmn.InsVrb.obj=eval(UID+'L');cmn.InsVrb.name=UID;}else{if(cmn.InsVrb.name!=UID){cmn.InsVrb.obj=eval(UID+'L');cmn.InsVrb.name=UID;}}cmn.InsVrb.obj[key]=val;};this.Gisv=function(key,uid){var UID=cmn.uid;if(uid!=null&&uid!=undefined){UID=uid;}var val='';if(UID==null||UID==undefined)return val;if(UID=='')return val;var Obj=null;cmn.InsVrb=new Object();try{Obj=eval(UID+'L');}catch(e){}if(Obj==null||Obj==undefined)return '';cmn.InsVrb.obj=Obj;cmn.InsVrb.name=UID;val=cmn.InsVrb.obj[key];return val;};this.href=function(u,t){if(this.HrfEnb==false)return;var v;var nh;var re=null;u=cmn.trim(u);t=cmn.trim(t);if(u==''||u==null||u==undefined){return;}if(t==''||t==null||t==undefined){t='_top';}try{u=u.replace('$Rnd$', cmn.rnd());var ApplPth=null;try{ApplPth=cvd3j76gergyjuhw;}catch(e){}if(ApplPth==null||ApplPth==undefined)ApplPth='';re=new RegExp('~','gi');u=u.replace(re,ApplPth);v=open(u,t);}catch(e){}};this.APB=function(uid,id){try{__doPostBack(uid,id);}catch(ex){cmn.ErrHr(ex,arguments);}};this.CrtDv=function(id){var Dv=cmn.Mko(id);if(Dv==null){Dv=document.createElement('DIV');Dv.name=id; Dv.id=id; Dv.style.position='absolute'; Dv.style.display='block'; Dv.style.left='0px'; Dv.style.top='0px'; Dv.style.visibility='hidden'; Dv.style.whiteSpace='nowrap';document.body.appendChild(Dv);}return Dv;};this.cIFR=function(ifid,uid){var ifr=document.createElement('iframe');ifr.id=ifid;ifr.src=cmn.Gisv('EmpHtm',uid);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.cmb=function(){var r=false;if(!document.compatMode||document.compatMode==undefined){var tmp=null;tmp=document.createElement('div');tmp.style.width='1';if(tmp.style.width==''){r=true;}tmp=null;return r;}if(document.compatMode&&document.compatMode.toLowerCase().indexOf('back')<0){r=true;}return r;};this.Mko=function(n){var Ob;try{Ob=document.getElementById(n);}catch(e){return null;}if(Ob==undefined)return null;return Ob;};this.trim=function(str){var s=new String(str);if(s==''||s==null||s==undefined)return s;s=s.replace(/^\s*/,'').replace(/\s*$/,'');return s;};this.rnd=function(){var RND='';var _rnd=Math.random()*100000000;RND=Math.round(_rnd)+'';return RND;};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=9&&ie9)ie9p=true;}var saf=((ua.indexOf(‘safari’)!=-1)&&(ua.indexOf(‘mac’)!=-1))?true:false;var SafWin=(!saf&&(ua.indexOf(‘safari’)!=-1)&&(ua.indexOf(‘windows’)!=-1))?true:false;var Chr=(SafWin&&(ua.indexOf(“chrome”)!=-1));if(Chr==true)SafWin=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));var FF3p=(FF&&(ua.indexOf(“firefox/2”)==-1));return(eval(nm));};this.GPg=function(){var P=location.href;if(P.indexOf(‘?’)>-1){P=P.substring(0,P.indexOf(‘?’));}return P;};this.Delay=function(ms){var date=new Date();var curDate=null;do {curDate=new Date();} while(curDate-date<ms);};this.outerHTML=function(elm){try{var res=elm.outerHTML;if((res!=null)&&(res!=undefined)){return res;}var tmp=null;tmp=document.createElement('div');tmp.appendChild(elm.cloneNode(true));res=tmp.innerHTML;tmp=null;return res;}catch(ex){cmn.ErrHr(ex,arguments);}};this.GtSdStr=function(cls){var Shd=0;var shd=cmn.GtCssRl(cls,'filter');if(shd!=undefined&&shd!=null){shd=shd.toLowerCase();var ind=shd.indexOf('strength=')+9;shd=shd.substring(ind,ind+3);Shd=parseInt(shd);if(isNaN(Shd))Shd=0;}return Shd;};this.StOpcObj=function(w,op){if(w==null||w==undefined)return;var ws=w.style;if(ws==null||ws==undefined)return;var fv=op/100;w.opct=op;if((ws.opacity!=null)&&(ws.opacity!=undefined)){w.style.opacity=fv;}if((ws.filter!=null)&&(ws.filter!=undefined)){var filter=cmn.GtCssRl(w.className,'filter');ws.filter=filter;if(op<100){ws.filter+=' alpha(opacity='+op+')';}return;}if((ws.MozOpacity!=null)&&(ws.MozOpacity!=undefined)){ws.MozOpacity=fv;return;}if((ws.opacity!=null)&&(ws.opacity!=undefined)){ws.opacity=fv;return;}if((ws.KhtmlOpacity!=null)&&(ws.KhtmlOpacity!=undefined)){ws.KhtmlOpacity=fv;return;}};this.StOpc=function(wid,op){var w=cmn.Mko(wid);if(w==null||w==undefined)return;cmn.StOpcObj(w,op);};this.GtAjxLd=function(){var res=null;try{res=zcc46jhssgd54ffggesh4;}catch(e){}if(res==null||res==undefined)res='';return res;};this.EncodeValue=function(val){var res=val;var re;re=new RegExp(';','gi');res=res.replace(re,'%FA0');re=new RegExp('\'','gi');res=res.replace(re,'%FB0');re=new RegExp('\\\\','gi');res=res.replace(re,'%FD0');re=new RegExp('"','gi');res=res.replace(re,'%FE0');re=new RegExp('=','gi');res=res.replace(re,'%FG0');re=new RegExp(',','gi');res=res.replace(re,'%FH0');re=new RegExp('
]*>’,’gi’);res=res.replace(re,’%FFFBR’);re=new RegExp(‘
]*>’,’gi’);res=res.replace(re,’%FFFBR’);return res;};this.DecodeValue=function(val){var res=val;var re;re=new RegExp(‘%FA0′,’gi’);res=res.replace(re,’;’);re=new RegExp(‘%FB0′,’gi’);res=res.replace(re,’\”);re=new RegExp(‘%FD0′,’gi’);res=res.replace(re,’\\\\’);re=new RegExp(‘%FE0′,’gi’);res=res.replace(re,'”‘);re=new RegExp(‘%FG0′,’gi’);res=res.replace(re,’=’);re=new RegExp(‘%FH0′,’gi’);res=res.replace(re,’,’);re=new RegExp(‘%FFFBR’,’gi’);res=res.replace(re,’
‘);return res;};//Sets attribute value this.SetAttr=function(id,name,val){ try{ var obj=cmn.Mko(id); if(obj==null){throw ‘Element [‘+id+’] not found!’;return false;} var attr=obj.attributes[name]; if(attr==null||attr==undefined){ attr=document.createAttribute(name);obj.setAttributeNode(attr);} attr.value=val;if(val==”)obj.removeAttribute(name);}catch(e){alert(e);}}; //Gets attribute value this.GetAttr=function(id,name){ try{ var res=”; var obj=cmn.Mko(id); if(obj==null){throw ‘Element [‘+id+’] not found!’;return false;} var attr=obj.attributes[name]; if(attr==null||attr==undefined){ return ”; } res=attr.value; if(res==null)res=”; return res; }catch(e){alert(e);}};this.PBtoURL=function(u){var url=u.toLowerCase();if((url.indexOf(‘http:’)==0)||(url.indexOf(‘https:’)==0)){var x=open(u,’_top’);return;}document.forms[0].action = u;document.forms[0].__VIEWSTATE.name = ‘NOVIEWSTATE’;__doPostBack(document.forms[0].id,null);};this.IsHTML5=function(){var res=false;var pbid=null;var dt=document.doctype;if(dt!=null&&dt!=undefined){pbid=dt.publicId;if(pbid==null||pbid==”){res=true;}return res;}else{dt=document.all[0].text;if(dt!=null&&dt!=undefined){dt=dt.toLowerCase();if(dt!=”&&dt.indexOf(‘public’)==-1){res=true;}}}return res;};this.Show=function(vrb){var ID=’DebugDiv’;var Dv=cmn.Mko(ID);if(Dv==null){Dv=document.createElement(‘DIV’);Dv.name = ID; Dv.id = ID; Dv.style.position=’absolute’; Dv.style.display=’Block’; Dv.style.left=’500px’; Dv.style.top=’100px’; Dv.style.visibility=’visible’; Dv.style.color=’red’;Dv.style.background=’White’;Dv.style.fontSize=’12px’;Dv.style.zIndex=50000;Dv.style.whiteSpace=’nowrap’;document.body.appendChild(Dv);}try{var re=new RegExp(‘&’,’gi’);vrb=vrb.replace(re,’&’);re=new RegExp(”,’gi’);vrb=vrb.replace(re,’>’);}catch(ex){}Dv.innerHTML+=’–Result–: ‘+vrb+’
‘;};}; var dm=new dmc();function dmc(){this.ComponentName=’APNSoft WebControls JS source file.’;this.Version=’Version 4.1 (118)’;this.Copyright=’Copyright (C) APNSoft. All rights reserved.’;this.ie=(document.all);this.n6=(document.getElementById&&!this.ie);this.uid=”;this.tObj;this.mO=1;this.Lvl;this.oDr=1;this.tr=false;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.arrRM=null;this.arrRMO=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.tdo=null;this.cAmt=null;this.sod=0;this.smo=’0′;this.eommo=false;this.cifs=null;this.ttf=null;this.hmp=0;this.lod=false;this.SmIsSc=false;this.DsplX=0;this.DsplY=0;this.i=function(mid,t){try{var div=cmn.Mko(mid+’_-0p’);var uid_l=cmn.Gisv(‘uid’,mid);if((uid_l==”||div==null)&&t<50){t++;setTimeout('dm.i(\''+mid+'\','+t+');',50);return;}if(div){dm.uid=mid;dm.dInO(mid);dm.HSPth(mid);dm.mO=cmn.Gisv('o',mid);if(dm.mO=='2'){var tbl=div.childNodes[0];div.style.visibility='visible';dm.StEqWd(tbl);if(cmn.dBv('Chr')){var asn=function(){tbl.wprc='0';dm.StEqWd(tbl);};setTimeout(asn,50);}}return;}}catch(ex){cmn.ErrHr(ex,arguments);}};this.dInO=function(uid){try{var UID=dm.uid;if(uid!=null&&uid!=undefined){UID=uid;}var tr;tr=cmn.Gisv('ocDt',UID);if(tr==null||tr==undefined){tr=250;}dm.ocDt=tr;tr=cmn.Gisv('arrR',UID);if(!tr){tr=null;}dm.arrR=tr;tr=cmn.Gisv('arrRO',UID);if(!tr){tr=null;}dm.arrRO=tr;tr=cmn.Gisv('arrRM',UID);if(!tr){tr=null;}dm.arrRM=tr;tr=cmn.Gisv('arrRMO',UID);if(!tr){tr=null;}dm.arrRMO=tr;tr=cmn.Gisv('arrD',UID);if(!tr){tr=null;}dm.arrD=tr;tr=cmn.Gisv('arrDO',UID);if(!tr){tr=null;}dm.arrDO=tr;tr=cmn.Gisv('arrU',UID);if(!tr){tr=null;}dm.arrU=tr;tr=cmn.Gisv('arrUO',UID);if(!tr){tr=null;}dm.arrUO=tr;dm.tr=cmn.Gisv('TrEff',UID);dm.EDV='0';tr=cmn.Gisv('edv',UID);if(tr=='1'){dm.EDV='1';}dm.lod=false;tr=cmn.Gisv('lod',UID);if(tr==true){dm.lod=true;}dm.tdo=null;}catch(ex){cmn.ErrHr(ex,arguments);}};this.StEqWd=function(tbl){if(tbl==null||tbl==undefined)return;if(tbl.rows!=null&&tbl.rows!=undefined){if(tbl.wprc!=undefined&&tbl.wprc=='1')return;tbl.wprc='1';var Wdt=0;var WdtIc=0;var WdtAr=0;var ItmTRs=new Array();for(var i=0;i<tbl.rows.length;i++){var ItmTR=null;try{ItmTR=tbl.rows[i].childNodes[0].childNodes[0].rows[0];}catch(ex){}ItmTRs[i]=ItmTR;if(ItmTR!=null&&ItmTR!=undefined){var ItmIcnTD=ItmTR.cells[0];var ItmTtlTD=ItmTR.cells[1];var ItmArrTD=ItmTR.cells[2];if(ItmIcnTD!=null&&ItmIcnTD!=undefined){if(WdtIc<ItmIcnTD.offsetWidth){WdtIc=ItmIcnTD.offsetWidth;}}if(ItmTtlTD!=null&&ItmTtlTD!=undefined){if(Wdt<ItmTtlTD.offsetWidth){Wdt=ItmTtlTD.offsetWidth;}}if(ItmArrTD!=null&&ItmArrTD!=undefined){if(WdtAr<ItmArrTD.offsetWidth){WdtAr=ItmArrTD.offsetWidth;}}}}tbl.parentNode.style.width=(tbl.offsetWidth+200)+'px';for(var i=0;iWdtIc){TD.style.width=(WdtIc-(TD.offsetWidth-WdtIc))+’px’;}}TD=ItmTRs[i].cells[1];if(TD!=null&&TD!=undefined){TD.style.width=Wdt+’px’;if(TD.offsetWidth>Wdt){TD.style.width=(Wdt-(TD.offsetWidth-Wdt))+’px’;}}TD=ItmTRs[i].cells[2];if(TD!=null&&TD!=undefined){TD.style.width=WdtAr+’px’;if(TD.offsetWidth>WdtAr){TD.style.width=(WdtAr-(TD.offsetWidth-WdtAr)+2)+’px’;}}}}if(tbl.parentNode.id!=”&&tbl.parentNode.id.indexOf(‘sd’)==tbl.parentNode.id.length-2){tbl.parentNode.style.width=tbl.offsetWidth+17+’px’;}else{tbl.parentNode.style.width=tbl.offsetWidth+’px’;}}};this.HSPth=function(mid,mxlvl){var hpth=cmn.Gisv(‘hpth’,mid);if(hpth!=’true’)return;var sit=cmn.rvs(‘sit’,mid);if((mxlvl==null)||(mxlvl==undefined)){mxlvl=-1;}if(sit!=”){var SelIts=dm.GtPrnItm(sit,mid);if (SelIts!=undefined&&SelIts!=null){if (SelIts.length>0) {for (var i=0;imxlvl){dm.MrkItm(SelIts[i],’s’,lvl,mid);}}}}cmn.Sisv(‘SelIts’,SelIts,mid);}};this.vD=function(){clearTimeout(dm.ocM);dm.ocM=null;};this.uD=function(){try{clearTimeout(dm.ocD);dm.ocD=null;clearTimeout(dm.ocM);dm.ocM=null;dm.htt();var smc=cmn.Gisv(‘smc’,dm.uid);if(smc==’1′){dm.ocM=setTimeout(‘dm.cAm()’,dm.ocMt);}}catch(ex){cmn.ErrHr(ex,arguments);}};this.v=function(w,lvl){try{clearTimeout(dm.ocD);dm.ocD=null;clearTimeout(dm.ocM);dm.ocM=null;var NewMnu=false;var cmId=w.id.substring(0,w.id.indexOf(‘_’));if((dm.uid!=”)&&(dm.uid!=cmId)){dm.cAm();}if((dm.uid==”)||(dm.uid!=cmId)){NewMnu=true;}dm.uid=cmId;cmn.uid=dm.uid;if(NewMnu){dm.dInO(cmId);}dm.mO=cmn.Gisv(‘o’,dm.uid);dm.Lvl=lvl;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);if(document.onmousemove!=dm.omm&&document.onmousemove!=cmn.cmc){dm.omm=document.onmousemove;document.onmousemove=cmn.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;i1)){dm.ocD=setTimeout(‘dm.oChe()’,dm.ocDt);}else{var ocDth=cmn.Gisv(‘ocDth’,dm.uid);dm.cCl(‘n’);dm.ocD=setTimeout(‘dm.oChe()’,ocDth);}}}catch(ex){try{if(dm.omc!=”){document.onclick=dm.omc;}}catch(ex){document.onclick=dm.omc;}cmn.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=cmn.Gisv(‘smc’,dm.uid);if(smc==’1′){dm.ocM=setTimeout(‘dm.cAm()’,dm.ocMt);if(cmn.dBv(‘FF3p’)){if(dm.SmIsSc){clearTimeout(dm.ocM);dm.ocM=null;}}}var i;for(i=1;i<12;i++){if(dm.Oms[i]==w.id+'-p'){return;}}}catch(ex){cmn.ErrHr(ex,arguments);}};this.dtt=function(tx){try{if(dm.tObj==null){return;}var t;if(tx!=null){if(tx=='ldtx'){var ldtx=cmn.Gisv('ldtx',dm.uid);t=ldtx;}else{t=tx;}}else{t=cmn.Gisv('ttt_'+dm.tObj.id,dm.uid);if((t=='undefined')||(t=='')||(t==null)){return;}}var ifc=null;ifc=cmn.Mko(dm.uid+'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=cmn.Gisv('zi',dm.uid);dm.tdo.style.zIndex = zi+20;var ccp=cmn.Gisv('ccp',dm.uid);dm.tdo.className=ccp+'TooltipDIV';dm.tdo.style.whiteSpace='nowrap';try{if(cmn.dBv('ie55p')||cmn.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(cmn.dBv('ie55p')){if(dm.ttf==null){var nif=new cmn.cIFR('dm_ttf',dm.uid);ifc.appendChild(nif);dm.ttf=nif;}var Shd=cmn.GtSdStr(dm.tdo.className);if(cmn.dBv('ie9p')){Shd=0;}dm.ttf.style.display='block';dm.ttf.style.height=(dm.tdo.offsetHeight-Shd)+'px';dm.ttf.style.width=(dm.tdo.offsetWidth-Shd)+'px';cmn.setTop(dm.ttf,cmn.pY(dm.tdo));cmn.setLeft(dm.ttf,cmn.pX(dm.tdo));dm.ttf.style.zIndex = 0;dm.tmpo=dm.ttf;}dm.dttl(dm.tdo);}catch(ex){cmn.ErrHr(ex,arguments);}};this.dttl=function(w){cmn.sDv(w);cmn.sDv(dm.tmpo);};this.htt=function(){clearTimeout(dm.dttob);dm.dttob=null;try{if(dm.tdo!=null){cmn.hDv(dm.tdo);cmn.setTop(dm.tdo,0);cmn.setLeft(dm.tdo,0);}if((cmn.dBv('ie55p'))&&(dm.ttf!=null)){cmn.hDv(dm.ttf);cmn.setTop(dm.ttf,0);cmn.setLeft(dm.ttf,0);}}catch(ex){cmn.ErrHr(ex,arguments);}};this.stp=function(){try{var dX=-5; var dY=20;var pX=cmn.mX+dX;var pY=cmn.mY+dY;if((cmn.mX==cmn.mY)&&(cmn.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(cmn.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((cmn.dBv('FF')||cmn.dBv('ie55p'))&&(cmn.cmb())){scT=dB.parentNode.scrollTop;scL=dB.parentNode.scrollLeft;}if(cmn.mX+dX<5){pX=5;}if(wW-cmn.mX<dm.tdo.offsetWidth+dX+20-scL){pX=wW-dm.tdo.offsetWidth-20+scL;}if(wH-cmn.mY-dY-dm.tdo.offsetHeight+scT<15){pY=cmn.mY-dY-dm.tdo.offsetHeight;}cmn.setLeft(dm.tdo,pX);cmn.setTop(dm.tdo,pY);return true;}catch(ex){cmn.ErrHr(ex,arguments);return false;}};this.cDIV=function(){var d=document.createElement('DIV');d.id='tt'+dm.uid;d.style.position='absolute';d.style.visibility='hidden';return d;};this.cIFRs=function(){if(dm.cifs==null){dm.cifs=new Array(12);var ifc=cmn.Mko(dm.uid+'ifc');var nif;for(i=0;i<12;i++){nif=new cmn.cIFR('dm_'+i+'f',dm.uid);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(){dm.cCl('t');dm.oCh(dm.tObj);};this.oCh=function(w){if(w==null||w==undefined)return;var chOb=cmn.Mko(w.id+'-p');if(!chOb){return;}dm.SmIsSc=false;if(dm.lod){if((chOb.innerHTML=='x')||(chOb.innerHTML=='')||(chOb.innerHTML==' ')||(chOb.innerHTML=='  ')){clearTimeout(dm.dttob);dm.dttob=null;dm.dttob=setTimeout('dm.dtt(\'ldtx\')',100);if(chOb.innerHTML!='  '){chOb.innerHTML='  ';dm.GetSubM(w.id);}return;}}var UID=w.id.substring(0,w.id.indexOf('_'));var ccp=cmn.Gisv('ccp',UID);var scdo=cmn.Mko(w.id+'sd');var tbl=cmn.Mko(w.id+'-smt');dm.StEqWd(tbl);if(scdo!=null){if(scdo.style.height=='auto'){var SMH=cmn.Gisv('SMH',dm.uid);scdo.style.height=parseInt(SMH)+'px';}if(parseInt(scdo.style.height)<=tbl.offsetHeight){if(cmn.dBv('FF3p')||cmn.dBv('op5p')||cmn.dBv('saf')||cmn.dBv('SafWin')){if(scdo.style.width=='auto'){scdo.style.width=scdo.offsetWidth+17+'px';}}else if(!cmn.dBv('ie55p')){if(cmn.dBv('FF')){scdo.style.width=scdo.offsetWidth+'px';}}if(scdo.offsetWidth<(scdo.childNodes[0].offsetWidth+17)){scdo.style.width=scdo.offsetWidth+17+'px';}dm.SmIsSc=true;}else{scdo.style.height='auto';scdo.style.width=tbl.offsetWidth+'px';}}var cOb=cmn.Mko(w.id+'-p');dm.dCr(w,cOb);if(dm.tObj!=null&&dm.tObj!=undefined){var Obj=cmn.Mko(dm.tObj.id+'-p');if(Obj!=null&&Obj!=undefined){if(cmn.dBv('ie55p')){var Shd=cmn.GtSdStr(ccp+'SubMenuDIV');if(cmn.dBv('ie9p')){Shd=0;}dm.cIFRs();var ifr=dm.cifs[dm.Lvl-1];ifr.style.display='block';ifr.style.height=(Obj.offsetHeight-Shd)+'px';ifr.style.width=(Obj.offsetWidth-Shd)+'px';cmn.setTop(ifr,cmn.pY(Obj));cmn.setLeft(ifr,cmn.pX(Obj));ifr.style.zIndex = 0; dm.ShHdObj(ifr,'t','s',2);}Obj.style.zIndex=cmn.Gisv('zi',UID)+dm.Lvl+1;dm.ShHdObj(Obj,'t','s');var PngShdCnt=cmn.Gisv('PngShdCnt',UID);cmn.ShwShd(Obj,PngShdCnt,ccp);}}dm.Oms[dm.Lvl]=w.id+'-p';};this.cCl=function(t){for(i=dm.Lvl;i<12;i++){dm.HdSbm(i,t);}};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!=cmn.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;i0){for(var i=0;i0) {for (var i=0;i0){for(var i=0;i1){CssPref=’Sub’;}if(Ind==’n’||Ind==”||Ind==null||Ind==undefined){Ncn=ccp+CssPref+’MenuItemTD’;PCV=cmn.Gisv(‘MITD_’+ItemID,UID);if(PCV!=null)Ncn=ccp+PCV;}else if(Ind==’h’){Ncn=ccp+CssPref+’MenuItemHoveredTD’;PCV=cmn.Gisv(‘MIHTD_’+ItemID,UID);if(PCV!=null)Ncn=ccp+PCV;}else if(Ind==’s’){Ncn=ccp+CssPref+’MenuItemSelectedTD’;PCV=cmn.Gisv(‘MISTD_’+ItemID,UID);if(PCV!=null)Ncn=ccp+PCV;}if(w.className!=Ncn){w.className=Ncn;}var Obj=w.childNodes[0];if(Obj.tagName==’IMG’){var Im=cmn.Gisv(‘m’+ItemID+’Im’,UID);var ImO=cmn.Gisv(‘m’+ItemID+’ImO’,UID);if(Im!=null&&ImO!=null){if(Ind==’h’){Obj.src=ImO.src;}if(Ind==’n’||Ind==’s’){Obj.src=Im.src;}}return;}var icn=cmn.Mko(w.id+’-icn’);if(icn!=null){var Ic=cmn.Gisv(‘i’+ItemID+’Ic’,UID);var IcO=cmn.Gisv(‘i’+ItemID+’IcO’,UID);if(Ic!=null&&IcO!=null){if(Ind==’h’||Ind==’s’){icn.src=IcO.src;}else{icn.src=Ic.src;}}}if(lvl==1&&dm.mO==’1′){if(Ind==’h’){if(dm.EDV==’0′){dm.sArF(w,dm.arrDO);}if(dm.EDV==’1′){dm.sArF(w,dm.arrUO);}return;}else{if(dm.EDV==’0′){dm.sArF(w,dm.arrD);}if(dm.EDV==’1′){dm.sArF(w,dm.arrU);}return;}}else{if(Ind==’h’){var ArrE=dm.arrRO;if(lvl==1){if(dm.arrRMO!=null){ArrE=dm.arrRMO;}else{if(dm.arrRM!=null)ArrE=dm.arrRM;}}dm.sAr(w,ArrE);return;}else{var ArrD=dm.arrR;if(lvl==1&&dm.arrRM!=null)ArrD=dm.arrRM;dm.sAr(w,ArrD);return;}}};this.sAr=function(w,ImgO){if(ImgO==null){return;}var Obj=cmn.Mko(‘hmimg_’+w.id);if(Obj){if(ImgO!=null&&ImgO!=undefined){Obj.src=ImgO.src;}}};this.sArF=function(w,ImgO){if(ImgO==null){return;}var Obj=cmn.Mko(‘hmimg_’+w.id);if(Obj!=null){if(ImgO!=null&&ImgO!=undefined){Obj.src=ImgO.src;}} };this.ItClk=function(w,alt){var ItemID=w.id.substring(dm.uid.length+1);var SlIts=null;var sit=cmn.rvs(‘sit’,dm.uid);if(sit!=”&&sit!=ItemID){SlIts=dm.GtPrnItm(sit,dm.uid);if(SlIts!=null&&SlIts.length>0){for(var i=0;i1)||(dm.Lvl==1&&dm.smo!=’2′)){dm.mwc=0;dm.cAm();}}};this.GtPrnItm=function(ItemID,UID){try{var res=new Array();res[0]=cmn.Mko(UID+’_’+ItemID);var nIds=cmn.GtnIds(UID);if(nIds!=null){var pn=null;var NdID=’i’+ItemID;for(var i=1;i<13;i++){pn=nIds.getElementsByTagName(NdID)[0];if(pn==null||pn==undefined){break;}pn=pn.parentNode;NdID=pn.nodeName;if(pn.nodeName=='t'){break;}res[i]=cmn.Mko(UID+'_'+NdID.substring(1));}}return res;}catch(ex){cmn.ErrHr(ex,arguments);}};this.GtPrnID=function(w){try{var res='';var UID=w.id.substring(0,w.id.indexOf('_'));var ItemID=w.id.substring(UID.length+1);var nIds=cmn.GtnIds(UID);if(nIds!=null){var pn=null;var NdID='i'+ItemID;pn=nIds.getElementsByTagName(NdID)[0].parentNode;if(pn.nodeName=='t'){return res;}res=pn.nodeName.substring(1);}return res;}catch(ex){cmn.ErrHr(ex,arguments);}};this.dCr=function(w,cOb){var UID=w.id.substring(0,w.id.indexOf('_'));var ItemID=w.id.substring(UID.length+1);var OvH=-5;var OvV=-4;var Ov=cmn.Gisv('ho',dm.uid);if(Ov!=null){OvH=Ov;}Ov=cmn.Gisv('vo',dm.uid);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((cmn.dBv('FF')||cmn.dBv('ie55p'))&&(cmn.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(cmn.dBv('ie55p')){wH=dB.parentNode.offsetHeight;wW=dB.parentNode.offsetWidth;}else{wH=innerHeight;wW=innerWidth;}var cDo=dm.gCd(w);if(dm.Lvl==1){dm.hmp=0;}if(dm.Lvl==1&&dm.mO==1){if(dm.EDV=='1'){stY=cmn.pY(cDo)-cDh;dm.hmp=stY+cDh;}else{stY=cmn.pY(cDo)+cDo.offsetHeight;}stY+=OvV;}else{if(cmn.dBv('saf')){var h1=w.childNodes[0];var h2=w.childNodes[1];if(h2!=null&&h1.offsetHeight

(wH+scT)){stY=(wH+scT)-cDh-8;}if(dm.hmp>0){if((stY+cDh)>dm.hmp){stY=dm.hmp-cDh;}}}var MrgTp=cmn.NdAtr(ItemID,’MrgTp’,UID);if(MrgTp==null||MrgTp==undefined)MrgTp=0;var MrgTp=parseInt(MrgTp);if(isNaN(MrgTp)){MrgTp=0;}stY+=MrgTp;if(dm.Lvl==1){stY-=this.DsplY;}cmn.setTop(cOb,stY);if(!dm.cFt(w,cOb)){dm.rDr();}if(!dm.cFt(w,cOb)){dm.rDr();}var MrgLf=cmn.NdAtr(ItemID,’MrgLf’,UID);if(MrgLf==null||MrgLf==undefined)MrgLf=0;var MrgLf=parseInt(MrgLf);if(isNaN(MrgLf)){MrgLf=0;}if(dm.Lvl==1&&dm.mO==1){stX=cmn.pX(w);stX+=MrgLf;if(dm.Lvl==1){stX-=this.DsplX;}if((wW-20)>cDw){if((wW-stX-30)<cDw-scL){stX=wW-cDw-30+scL;}else{if((stX-scL)<0){stX+=(scL-stX)+10;}}}else{if((wW-stX-30)<cDw-scL){stX=((cDw-wW)/2)+scL;}else{if((stX-scL)1||dm.mO!=1){if(dm.oDr==1){stX=cmn.pX(cDo.childNodes[0])+cDo.childNodes[0].offsetWidth;if(!dm.Op){stX+=OvH;}}if(dm.oDr==2){stX=cmn.pX(cDo.childNodes[0])-cDw;if(!dm.Op){stX-=OvH;}}stX+=MrgLf;}if((dm.Lvl!=1)&&(cmn.dBv(‘saf’))){stX-=document.body.offsetLeft;}cmn.setLeft(cOb,stX);w.offsetParent;};this.rDr=function(){if(dm.oDr==1){dm.oDr=2;}else{dm.oDr=1;}};this.rsDr=function(){var dDd=cmn.Gisv(‘ed’,dm.uid);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=cmn.pX(cDo.childNodes[0]);var cDw=cOb.offsetWidth;if(cmn.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.ShHdObj=function(w,t,sh,opCst){try{if(w==null||w==undefined)return;var Spd=5;if(t=='t'){if(dm.tr==false)t='n';}var zInd=w.style.zIndex;var op=100;var ccp=cmn.Gisv('ccp',dm.uid);var css=ccp+'SubMenuDIV';var opc=cmn.GtCssRl(css,'opacity');if(opc!=undefined&&opc!=null){if(opc!='')op=opc*100;if(op==0)op=100;}if(opCst!=undefined&&opCst!=null){op=opCst;}if(t=='t'){Spd=cmn.Gisv('TrSpd',dm.uid);if(sh=='s'){cmn.sDvOpc(w,Spd,op);}else{cmn.hDvOpc(w,Spd,op,true);}}else{if(sh=='s'){cmn.sDv(w);cmn.StOpc(w.id,op);}else{cmn.hDv(w);}}}catch(ex){cmn.ErrHr(ex,arguments);}};this.GetSubM=function(wid,uid){try{var UID=dm.uid;if(uid!=undefined&&uid!=null){UID=uid;}var cntx=UID;var arg='AJX_CMD=GetSubM';arg+='&IID='+wid.replace(UID+'_','');cmn.WF_CBCa();WebForm_DoCallback(cmn.Gisv('uid',UID),arg,dm.GetSubMRz,cntx,cmn.AjaxRzErr,true);}catch(ex){cmn.ErrHr(ex,arguments);}};this.GetSubMRz=function(Tx,cntx){try{var UID=cntx;if(Tx.indexOf('Error!')==0){if(cmn.Gisv('wen',UID)=='true'){alert(Tx);}return;}var html=Tx.substring(0,Tx.indexOf('%@6%78**3'));var prm=Tx.substring(Tx.indexOf('%@6%78**3')+9);var PrmSpl = prm.split(',');var IID=PrmSpl[0];var chOb=cmn.Mko(UID+'_'+IID+'-p');if(!chOb){return;}chOb.innerHTML=html;if((chOb.innerHTML=='')||(chOb.innerHTML==' ')){return;}var w=cmn.Mko(UID+'_'+IID);if(!w){return;}if(w==dm.tObj){dm.htt();}if(dm.tObj==null){return;}dm.HSPth(UID,dm.Lvl);dm.oCh(dm.tObj);clearTimeout(dm.dttob);dm.dttob=null;dm.dttob=setTimeout('dm.dtt()',400);}catch(ex){cmn.ErrHr(ex,arguments);}};this.GetFullMenuID=function(mid){var midF=null;try{midF=eval('gbd4Hirq0nTyd'+mid);}catch(ex){}if(midF==null||midF==undefined||midF==''){alert('Error! APNSoft Menu \''+mid+'\' not found!');return '';}return midF;};this.GetHref=function(mid,iid){var midF=dm.GetFullMenuID(mid); if(midF=='')return;var itmTD=cmn.Mko(midF+'_'+iid);if(itmTD==null||itmTD==undefined){alert('Error! Item \''+iid+'\' not found!');return '';}var oncl='';try{oncl=itmTD.attributes['onclick'].value;}catch(ex){}if(oncl=='')return '';var ind=oncl.indexOf('cmn.href(\'');var ind2=oncl.indexOf('\',\'');if(ind==-1||ind2==-1)return '';var href=oncl.substring(ind+10,ind2);return href;};this.HideSubmenus=function(mid){var midF=dm.GetFullMenuID(mid); if(midF=='')return;var uidRm=dm.uid;dm.uid=midF;dm.mwc=0;dm.cAm();dm.uid=uidRm; };}; function AddCss_MyMenu(Path){ var stls=document.getElementsByTagName('style'); var Hd=document.getElementsByTagName('head')[0]; for (var i=0;i<stls.length;i++){ if(stls[i]!=null&&stls[i]!=undefined){ var stid=stls[i].getAttribute('id'); if(stid!=null&&stid!=undefined){ if(stid=='Style_Menu_MyMenu'){ Hd.removeChild(stls[i]); } } } } var Css='.E79AShdBtm{height:5px;*filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+Path+'ShadowBottom.png\', sizingMethod=\'crop\');background:transparent url('+Path+'ShadowBottom.png);}.E79AShdCrn{width:12px;height:5px;*filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+Path+'ShadowCorner.png\', sizingMethod=\'crop\');background:transparent url('+Path+'ShadowCorner.png);}.E79AShdRgt{width:5px;*filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+Path+'ShadowRight.png\', sizingMethod=\'crop\');background:transparent url('+Path+'ShadowRight.png);}.E79AShdCmn{position:absolute;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline;background-repeat:no-repeat;*background-image:none;*background-color:Transparent;}.E79ADefaults {color: #160D92;color: #EFEFEF;OverlapVertical: -12px;OverlapHorizontal: 3px;}.E79AIconTD, .E79ATitleTD, .E79AArrowTD {font-size: 12px;font-family: Verdana;white-space: nowrap;}.E79AMainMenuDIV {padding: 0px;padding-top: 6px;padding-bottom: 6px;cursor: default;background: transparent;}.E79AMainMenuDIV TABLE {border-collapse: separate;border-spacing: 6px 0px;}.E79AWidth_Horizontal {}.E79AMainMenuItemTD {padding: 7px;border: solid 1px;border-color: #0F0964;border-top-color: #180EA2;border-left-color: #2013D6;background-color: #150C8B;border-radius: 4px;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;background-image: url(\''+Path+'Background.png\');background-repeat: repeat-x;}.E79AMainMenuItemTD TABLE {border-collapse: collapse;border-spacing: 0px;}.E79AMainMenuItemTD .E79ATitleTD {color: #FFFFFF;}.E79AMainMenuItemHoveredTD {padding: 7px;border: solid 1px;border-color: #0F0964;border-top-color: #180EA2;border-left-color: #3326EB;background-color: #1C11BE;border-radius: 4px;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;background-image: url(\''+Path+'Background2.png\');background-repeat: repeat-x;cursor: default;cursor: hand;cursor: pointer;}.E79AMainMenuItemHoveredTD TABLE {border-collapse: collapse;border-spacing: 0px;}.E79AMainMenuItemHoveredTD .E79ATitleTD {color: #FFFFFF;}.E79AMainMenuItemSelectedTD {padding: 7px;border: solid 1px;border-color: #0F0964;border-top-color: #180EA2;border-left-color: #2013D6;background-color: #190EA6;border-radius: 4px;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;background-image: url(\''+Path+'Background.png\');background-repeat: repeat-x;}.E79AMainMenuItemSelectedTD TABLE {border-collapse: collapse;border-spacing: 0px;}.E79AMainMenuItemSelectedTD .E79ATitleTD {color: #FFFFFF;}.E79AWidth_Vertical {}.E79ASubMenuDIV {padding: 0px;padding-left: 6px;padding-right: 6px;background-color: #1C11BE;border-left: solid 1px;border-left-color: #3326EB;border-radius: 4px;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;cursor: default;filter: alpha(opacity=90);-moz-opacity: 0.90;opacity: 0.90;}.E79ASubMenuDIV TABLE {border-collapse: separate;border-spacing: 0px 6px;}.E79ASubMenuItemTD {padding: 6px;padding-left: 8px;padding-right: 8px;border: solid 1px;border-color: #1C11BE;background-color: #EFEFEF;border-radius: 4px;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;}.E79ASubMenuItemTD TABLE {border-collapse: collapse;border-spacing: 0px;}.E79ASubMenuItemTD .E79ATitleTD {color: #0F4555;}.E79ASubMenuItemHoveredTD {padding: 5px;padding-left: 7px;padding-right: 7px;border: solid 2px;border-color: #4236EC;background-color: #FFFFFF;border-radius: 4px;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;cursor: default;cursor: hand;cursor: pointer;}.E79ASubMenuItemHoveredTD TABLE {border-collapse: collapse;border-spacing: 0px;}.E79ASubMenuItemHoveredTD .E79ATitleTD {color: #0F4555;}.E79ASubMenuItemSelectedTD {padding: 5px;padding-left: 7px;padding-right: 7px;border: solid 2px;border-color: #170D9A;background-color: #CBCBCB;border-radius: 4px;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;}.E79ASubMenuItemSelectedTD TABLE {border-collapse: collapse;border-spacing: 0px;}.E79ASubMenuItemSelectedTD .E79ATitleTD {color: #0F4555;}.E79ASeparatorVerticalTD {padding: 0px;background-color: #3022EB;border-radius: 4px;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;}.E79ASeparatorVerticalTD TABLE {width: 6px;border-collapse: collapse;border-spacing: 0px;}.E79ASeparatorHorizontalTD {padding: 0px;background-color: #3022EB;border-radius: 4px;-webkit-border-radius: 4px;-khtml-border-radius: 4px;-moz-border-radius: 4px;}.E79ASeparatorHorizontalTD TABLE {height: 6px;border-collapse: collapse;border-spacing: 0px 0px;}.E79ATooltipDIV {font-family: Verdana;font-size: 12px;color: #1C10B9;padding: 2px;padding-left: 3px;padding-right: 3px;background-color: #E0DDFC;border-style: solid;border-width: 1px;border-color: #170D9A;}'; var stl=document.createElement('style'); stl.setAttribute('type','text/css'); stl.setAttribute('id', 'Style_Menu_MyMenu'); if(stl.styleSheet==null||stl.styleSheet==undefined){ stl.innerHTML=Css; }else{ stl.styleSheet.cssText=Css; } Hd.appendChild(stl); }; var gbd4Hirq0nTydMyMenu='mn0B126240'; var mn0B126240i=function(){dm.i('mn0B126240',0);}; var mn0B126240L = null; function mn0B126240LCn(Path){ this.id='MyMenu'; this.uid='MyMenu'; this.sfu=Path; this.qstr=''; this.ccp='E79A'; this.wen='true'; this.EmpHtm=Path+'Empty.htm'; this.PngShdCnt=2; this.arrR=new Image();this.arrR.src=Path+'ArrowRight.gif'; this.arrD=new Image();this.arrD.src=Path+'ArrowDown.gif'; this.o=1; this.ed=1; this.TrEff=true; this.TrSpd=5; this.ho=3; this.vo=-12; this.zi=1999; this.smo='1'; this.smc='1'; this.hpth='false'; this.ocDth=20; this.ocDt=250; this.ldtx='Loading…'; this.HovIts=null; this.SelIts=null; this.SMH='10000px'; this.nids='’; this.ttt_mn0B126240_i1=’Go to Home Page’; this.ttt_mn0B126240_i2=’Tooltip’; this.ttt_mn0B126240_i2_1=’Overview’; this.ttt_mn0B126240_i2_2=’Technical Data’; this.ttt_mn0B126240_i2_2_1=’Functions’; this.ttt_mn0B126240_i2_2_2=’Application’; this.ttt_mn0B126240_i2_3=’Specifications’; this.ttt_mn0B126240_i2_4=’User Manual’; this.ttt_mn0B126240_i14=’News’; this.ttt_mn0B126240_i3=’Support’; this.ttt_mn0B126240_i4=’Forum’; this.ttt_mn0B126240_i15=’Sample Menu’; this.ttt_mn0B126240_i16=’Sample Top’; this.ttt_mn0B126240_i17=’Sub Top1′; this.ttt_mn0B126240_i18=’Sub Top2′; }; var MyMenu={ _path:”, _div:”, Mnu:”, Plcd:false, ItmsCnt:15, Prepare:function(){ var Ident=’MyMenu’; var Path=MyMenu._path; if(Path==”||Path==null||Path==undefined){ Path=’./’+Ident+’/’; var e=document.getElementsByTagName(‘script’); var src=null; var attr=null; for(var i=0;i-1){ Path=attr.replace(Ident+’/Script.js’,Ident+’/’); break; } } } } var PrmInd=0; PrmInd=Path.indexOf(‘?’); if(PrmInd>0)Path=Path.substring(0,PrmInd); } var lst=Path.substring(Path.length-1); if(lst!=’/’)Path=Path+’/’; AddCss_MyMenu(Path); mn0B126240L=new mn0B126240LCn(Path);MyMenu.Mnu=’

  Home  
  Product Info
  News  
  Support  
  Forum  
  Sample Menu  
  Sample Top

‘; }, addEvent:function(el,evnt,func){ try{ if(el.addEventListener){ el.addEventListener(evnt, func, false); }else if(el.attachEvent){ el.attachEvent(‘on’+evnt, func); } }catch(e){} }, GetDst:function(){ var DstID=MyMenu._div; if(DstID==”)DstID=’MyMenu’; var Dst=cmn.Mko(DstID); return Dst; }, PlaceAuto:function(p,d){ MyMenu.Plcd=false; MyMenu._path=”; MyMenu._div=”; if(p!=null&&p!=undefined&&p!=”){MyMenu._path=p;} if(d!=null&&d!=undefined&&d!=”){MyMenu._div=d;} MyMenu.Prepare(); MyMenu.addEvent(window,’load’,MyMenu.PutInDIV); MyMenu.PutInDIV_TO(0); }, PutInDIV_TO:function(t){ var Dst=MyMenu.GetDst(); if(Dst==null||Dst==undefined){ if(t<50){ t++; setTimeout('MyMenu.PutInDIV_TO('+t+');',50); return; } }else{ MyMenu.PutInDIV(); } }, PutInDIV:function(){ if(MyMenu.Plcd==true)return; var Dst=MyMenu.GetDst(); if(Dst==null||Dst==undefined){ alert('Unable to display Menu. DIV with ID "MyMenu" not found on page.'); return; } Dst.innerHTML=MyMenu.Mnu; setTimeout('mn0B126240i()',10); MyMenu.Plcd=true; }, Show:function(){ MyMenu.Plcd=false; MyMenu.Prepare(); document.write(MyMenu.Mnu); setTimeout('mn0B126240i()',10); MyMenu.Plcd=true; } }; MyMenu.PlaceAuto(); Drop Down Menu Generator – MyMenu BODY { font-family:Arial; font-size:14px; } #Container{ width:960px; margin:0 auto; overflow:hidden; } #Header{ height:32px; padding:8px; background-color:#F8F8F8; border:dashed 1px #E0E0E0; color:Silver; overflow:hidden; } #Navigation{ padding:2px; background-color:#FFFFFF; border:dashed 1px #E0E0E0; margin-top:12px; margin-bottom:12px; overflow:hidden; } #LeftColumn{ width:auto; max-width:600px; min-height:400px; padding:8px; background-color:#F8F8F8; border:dashed 1px #E0E0E0; color:Silver; margin-bottom:12px; float:left; } #RightColumn{ zoom:1; *display:inline; padding:24px; padding-left:36px; margin-bottom:12px; overflow:auto; } #Footer{ padding:8px; background-color:#F8F8F8; border:dashed 1px #E0E0E0; color:Silver; clear:both; }

Left Column
Installation Instructions

  1. Upload the MyMenu folder to the root directory of your website. This folder contains all the necessary files to put your menu on web pages.
  2. Copy and paste the code below between the <head></head> tags.
  3. Copy and paste the code below where you want your menu to show up. This code can be placed anywhere between the <body></body> tags.

Iklan

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

w

Connecting to %s