105 lines
3.1 KiB
JavaScript
105 lines
3.1 KiB
JavaScript
//UDMv3.1
|
|
|
|
var exclude=true; var agt=navigator.userAgent.toLowerCase();
|
|
//djochange -- added var konqi=false
|
|
var ie=false; var ie4=false; var ie5=false; var op5=false; var konqi=false;
|
|
//end djochange
|
|
if (document.all&&(agt.indexOf('msie')!=-1)) {
|
|
ie=true; ie4=true; exclude=false;
|
|
if (agt.indexOf('msie 4')==-1) { ie5=true; ie4=false; }
|
|
if (agt.indexOf('opera')!=-1) { ie=false; ie4=false; ie5=false; op5=true; }
|
|
}
|
|
var ns6=false; var mz7=false;
|
|
if (document.getElementById&&!ie) {
|
|
ns6=true; exclude=false;
|
|
if (agt.indexOf('netscape6')==-1) {
|
|
ns6=false; mz7=true;
|
|
}
|
|
if (window.opera) { mz7=false; op5=true;}
|
|
else if (agt.indexOf('gecko')==-1) { mz7=false; exclude=true; }
|
|
}
|
|
if (agt.indexOf('opera 4')!=-1) { op5=false; mz7=false; exclude=true; }
|
|
var ns4=false;
|
|
if ((agt.indexOf('mozilla')!=-1)&&(parseInt(navigator.appVersion)>=4)&&!ie&&!op5&&!ns6&&!mz7) {
|
|
ns4=true; exclude=false;
|
|
}
|
|
if (agt.indexOf('webtv')!=-1) { ie=false; ie4=false; exclude=true; }
|
|
var win=true; var mac=false;
|
|
if (agt.indexOf('mac')!=-1) { win=false; mac=true; }
|
|
//djochange - added the following code to find Konqueror
|
|
if (navigator.vendor){
|
|
if (navigator.vendor =="KDE") {
|
|
ie=false;
|
|
ie4=false;
|
|
ie5=false;
|
|
konqi = true;
|
|
ns6=true;
|
|
ns4 = false;
|
|
exclude = false;
|
|
}
|
|
}
|
|
//end djochange
|
|
|
|
// array building functions for custom.js
|
|
var mu="mu";var m=0;var sm=0;var cm=0;var sp=0;
|
|
var mI=new Array;
|
|
var sP=new Array;
|
|
var sI=new Array;
|
|
var cP=new Array;
|
|
var cI=new Array;
|
|
|
|
function addMainItem(ma,mb,mc,md,me,mf,mg,mh,mi){
|
|
sm=0;
|
|
if(!mb||mb==""){mb=" ";}
|
|
while(mb.indexOf('<BR>')!=-1){mb=mb.replace('<BR>','<br>');}
|
|
if (!md||md==""){md="_self";}
|
|
if (!mf||mf==""||altDISPLAY==""){mf="none";}
|
|
if(!mg){mg=0;}if(!mh){mh=0;}
|
|
if(!mi||mi==""||mi=="c"||mi=="C"){mi="-";}
|
|
if(mi!="-"){mi=mi.toLowerCase();}
|
|
mI[m]=new Array(ma,mb,mc,md,me,mf,mg,mh,mi);
|
|
m++;
|
|
}
|
|
|
|
function defineSubmenuProperties(spa,spb,spc,spd,spe){
|
|
if(!spd){spd=0;}
|
|
if(!spe){spe=0;}
|
|
sP[(m-1)]=new Array(spa,spb,spc,spd,spe);
|
|
if (sm==0){
|
|
sI[(m-1)]=new Array; cP[(m-1)]=new Array; cI[(m-1)]=new Array;
|
|
}
|
|
}
|
|
|
|
function addSubmenuItem(sma,smb,smc,smd){
|
|
cm=0;var sme=true;
|
|
if(sme&&sma=="~"){sme=false;sma="";}
|
|
if (!sma||sma==""){sma="#";}
|
|
if (!smb||smb==""){smb=" ";}
|
|
while(smb.indexOf('<BR>')!=-1){smb=smb.replace('<BR>','<br>');}
|
|
if (!smc||smc==""){smc="_self";}
|
|
if (!smd||smd==""||altDISPLAY==""){smd="none";}
|
|
sI[(m-1)][sm]=new Array(sma,smb,smc,smd,sme);
|
|
sm++;
|
|
}
|
|
|
|
function defineChildmenuProperties(cpa,cpb,cpc,cpd,cpe){
|
|
if(!cpd){cpd=0;}
|
|
if(!cpe){cpe=0;}
|
|
cP[(m-1)][(sm-1)]=new Array(cpa,cpb,cpc,cpd,cpe);
|
|
cI[(m-1)][(sm-1)]=new Array;
|
|
}
|
|
|
|
function addChildmenuItem(cma,cmb,cmc,cmd){
|
|
var cme=true;
|
|
if(cma&&cma=="~"){cme=false;cma="";}
|
|
if (!cma||cma==""){cma="#";}
|
|
if (!cmb||cmb==""){cmb=" ";}
|
|
while(cmb.indexOf('<BR>')!=-1){cmb=cmb.replace('<BR>','<br>');}
|
|
if (!cmc||cmc==""){cmc="_self";}
|
|
if (!cmd||cmd==""||altDISPLAY==""){cmd="none";}
|
|
cI[(m-1)][(sm-1)][cm]=new Array(cma,cmb,cmc,cmd,cme);
|
|
cm++;
|
|
}
|
|
// custom upgrade backup definitions
|
|
var keepSubLIT=true;var chvOFFSET=0;var chhOFFSET=-5;var closeTIMER=330;var cellCLICK=true;var aCURSOR="hand";
|
|
var altDISPLAY="";var allowRESIZE=true; |