fixed intendtation
[PsN.git] / html / emenu.js
blobb98d5f6e68910a676328dea76801201e0085b1d4
1 /*Script copyrighted 2002-2003, Andrew McCafferty, All rights reserved.*/\r
2 /* If you modify this file by hand, to avoid overwriting it, change its name.*/\r
3 var eCO='',eFN;eFN=document.location;\r
4 var eV2=false,emtWin,eGSTR="",eV3=new Array(),eV4=0,eV0=false,eV1=false,eV5=0,eGI=new Array(),eV6="",eV7,eV8;\r
5 var eAGT=navigator.userAgent.toLowerCase(),ePI=parseInt(navigator.appVersion),\r
6 eIE=((eAGT.indexOf('msie')!=-1)&&(eAGT.indexOf('opera 5')==-1)),eNN=(navigator.appName=='Netscape'),\r
7 eMAC= (eAGT.indexOf('mac')!=-1),\r
8 eW3C=((eIE&&ePI>=4)||(eNN&&ePI>=5)),eMW3C=((eIE&&ePI>=4)||(eNN&&ePI>=5)),\r
9 eGB=!eMW3C,eIE50=(eAGT.indexOf('msie 5.0')!=-1),eDD=!((eNN&&eAGT.indexOf('6/6.0')!=-1)||(eIE&&eMAC));\r
10 if(document.images){var eV9= new Image(9,9),eV10= new Image(9,9);eV9.src="gfx/dir.gif";eV10.src="gfx/dir.gif";var eV11 = new Image(9,9),eV12 = new Image(9,9);eV11.src="gfx/dir.gif";eV12.src="gfx/dir.gif";var eV13 = new Image(9,9);eV13.src="gfx/file.gif";};\r
11 function eMF(eV14,eV15,eV16,eV17){eGI[eV16]=eV14;eV16=eF1(eV16,eV15);if(eMW3C){var t1,t2,t3;if(eF2(eV15)){t1="onMouseOut=eF3('"+eV14 +"','"+eV15 +"',event) onMouseOver=eF4('"+eV14 +"','"+eV15 +"',event)";t2="display:None;position:absolute";t3=""}else{t1="";t2="display:None";t3="margin-left:9px"};eDW("<div id='c"+eV14+"' "+t1+" class='mainFolderBox"+eF5(eV15)+"' style='"+t3+"'>");eF6(eV14,eV15,eV16,eV17);eDW("<div class='subFolderPage' id='"+eV14 +"' style='"+t2+"'><table cellpadding=0 cellspacing=0 border=0><tr><td>")}else if(eGB){eDW("<p id='c"+eV14 +"' class='mainFolderBox"+eF5(eV15)+"' style='margin-left:9px'>");eF6(eV14,eV15,eV16,eV17);eDW('</p>');if(eF7(eCO,eV14)){eV4=0;eV5=18}else{eV4=1}}}\r
12 function eSF(eV18,eV15,eV16,eV17){eGI[eV16]=eV18;eV16=eF1(eV16,eV15);if(eMW3C){var t1,t2,t3; if(eF2(eV15)){t1="onMouseOut=eF3('"+eV18 +"','"+eV15 +"',event) onMouseOver=eF4('"+eV18 +"','"+eV15 +"',event)";t2="display:None;position:absolute";t3=""}else{t1="";t2="display:None";t3="margin-left:9"};eDW("<div id='c"+eV18 +"' "+t1+" class='subFolderBox"+eF5(eV15)+"' style='"+t3+"'>");eF8(eV18,eV15,eV16,eV17);eDW("<div class='subFolderPage' id='"+eV18 +"' style='"+t2+"'><table cellpadding=0 cellspacing=0 border=0><tr><td>");}else if(eGB){if(eF7(eCO,eGF(eV18))){eDW("<p id='c"+eV18 +"' class='subFolderBox"+eF5(eV15)+"' style='margin-left: "+eV5 +"px'>");eF8(eV18,eV15,eV16,eV17);eDW('</p>')};if(eF7(eCO,eV18)){eV4=0;eV5=eV5+9}else{eV4 =eV4 +1}};}\r
13 function eLK(eV19,eV15,eV16,eV20){eV19='b'+eV19;eGI[eV16]=eV19;eV16=eF1(eV16,eV15);var eV21;if(eV4==0){eV21 =eF9(eV15,eV20);if(eMW3C){var t1,t2;if(eF2(eV15)){t1="";t2="onMouseOver=eF4('"+eV19 +"','',event) id='"+eV19 +"'"}else{t1="margin-left:9px";t2=""}; eDW("<div id='c"+eV19 +"' "+t2+" class='linkBox"+eF5(eV15)+"' style='"+t1+"'>");eF10(eV19,eV15,eV16,eV21,eV20);eDW("</div>")}else if(eGB){eDW("<p id='c"+eV19 +"' class='linkBox"+eF5(eV15)+"' style='margin-left:"+eV5 +"px'>");eF10(eV19,eV15,eV16,eV21,eV20);eDW('</p>')};}}\r
14 function eCOL(eV22){var t;if(eV22==''){t=''}else{t='width='+eV22};eDW("<TD class='menuTreeBox' "+t+' '+"valign='top'>");}\r
15 function eDE(){if(eMW3C){eDW("</td></tr></table></div></div>")}else if(eGB){if(eV4==0){eV5=eV5-9}else{eV4=eV4-1}};}\r
16 function eF13(eV23,eV15,eV16,eV17){if(eGB&&eF7(eCO,eV23)){eV3[eV23]=true};var t1; if(eF2(eV15)){t1="//"}else{t1="eF14('"+eV23 +"','"+eV15 +"')"};eDW(eF15(eV23,eV16,"if(!eV3['"+eV23 +"']){"+eV17 +"}",t1,"mainFolderLine"+eF5(eV15),eV16)+eF11(eV23,eF12(eV23,true),9,9)+"&nbsp;"+eV16 +"</a>")}\r
17 function eF8(eV24,eV15,eV16,eV17){if(eGB&&eF7(eCO,eV24)){eV3[eV24]=true};var t1; if(eF2(eV15)){t1="//"}else{t1="eF14('"+eV24 +"','"+eV15 +"')"};eDW(eF15(eV24,eV16,"if(!eV3['"+eV24 +"']){"+eV17 +"}",t1,"subFolderLine"+eF5(eV15),eV16)+eF11(eV24,eF12(eV24,false),9,9) + "&nbsp;"+eV16 +"</a>")}\r
18 function eF10(eV19,eV15,eV16,eV21,eV20){var eV25,eV26='eF18(0,0);'; if(eF16(eV15,'j')){eV26=''};if(!eF16(eV15,'nl')){eV25='linkLine';eDW(eF15(eV19,eV16,"{"+eV26+"eF17('psn','none');"+eV21+";return false}","//",eV25+eF5(eV15),eV20))};if(!eF16(eV15,'nm')){eDW(eF11(eV19,"gfx/file.gif",9,9))};eDW("&nbsp;");eDW(eV16);if(!eF16(eV15,'nl')){eDW("</A>")};}\r
19 function eF15(eV27,eV16,ocjs,hrck,cn,eV28){return "<a id='a"+eV27+"' onclick=\""+ocjs+"\" href=\"javascript:"+hrck+"\" onMouseOver=\""+eF19(cn,eV28)+";return true\" onMouseOut=\""+eF20(cn)+";return true\" class='"+cn+"'>"}\r
20 function eF19(cn,eV29){return "window.status='"+eF21(eV29)+"';if(eW3C){this.className='"+cn+"MouseOver'}"}\r
21 function eF20(cn){return "window.status='';if(eW3C){this.className='"+cn+"'}"}\r
22 function eF11(eV27,gif,h,w){return "<IMG border='0' src='"+gif+"' width='"+w+"' height='"+h+"' id='i"+eV27+"'>"}\r
23 function eF14(eV19,eV15){if(!eF2(eV15)){eUDC(eV19)};eF22(eV19)}\r
24 function eF22(eV19){if(eMW3C){if(eV3[eV19]){eV3[eV19] = false;eGO(eV19).style.display = "none"}else{eV3[eV19] = true;eGO(eV19).style.display = ""};}else if(eGB){eF23();window.location.href=eFN};}\r
25 function eF6(eV14,eV15,eV16,js){if(eF16(eV15,'nf')){js=eF9(eV15,js);eF10(eV14,eV15,eV16,js,eV16)}else{eF13(eV14,eV15,eV16,js)}}\r
26 function eF24(eV23){return eV23!="out"&&eV23.indexOf("d",eV23.indexOf("d")+1) == -1}\r
27 function eGO(eV18){if (document.getElementById){return eval(document.getElementById(eV18))}else{return eval(document.all(eV18))}}\r
28 function eOS(eV30){if(eGB){if(!eV3[eV30]){eF22(eV30)}}else{var start=0;start = eV30.indexOf("d",start) + 1;start = eV30.indexOf("d",start) + 1;while(start > 0){if(!eV3[eV30.substring(0,start-1)]){eF22(eV30.substring(0,start-1))};start = eV30.indexOf("d",start) + 1};if(!eV3[eV30]){eF22(eV30)}}}\r
29 function eCS(eV30){if(eV3[eV30]){eF22(eV30)}}\r
30 function eGF(eV31){if(eV31.substring(0,1)=='b'){eV31=eV31.slice(1)};var j, p=eV31.lastIndexOf('d'); j = eV31.substring(0,p).lastIndexOf('d');if(j==-1){return ""}else{return eV31.substring(0,p)}}\r
31 function eUDC(eV19){if(eGB||eV2){if(eF7(eCO,eV19)){eF25(eV19)}else{eF26(eV19)};eCO=eF27('psn')}}\r
32 function eDW(str){eGSTR += str}\r
33 function eF9(eF28,eV20){if(!eF16(eF28,'t')){eV20=cnv(eV20,eF28)};if(eF16(eF28,'i')){return eF29(eV20)}else if(eF16(eF28,'r')){return eF30(eV20)}else if(eF16(eF28,'e')){return eF31(eV20)}else if(eF16(eF28,'p')){return eF32(eV20)}else if(eF16(eF28,'j')){return eV20}}\r
34 function eF12(eV32,bool){if(bool){if(eV3[eV32]){return "gfx/dir.gif"}else{return "gfx/dir.gif"}}else{if(eV3[eV32]){return "gfx/dir.gif"}else{return "gfx/dir.gif"}}}\r
35 function eF29(eV33){return "window.location.href = '" + eV33 + "'"}\r
36 function eF30(eV33){if(parent.emtcf){return "parent.emtcf.location.href = '" + eV33 + "'"}else{return eF31(eV33)}}\r
37 function eF32(eV33){return "parent.location.href = '" + eV33 + "'"}\r
38 function eF31(eV33){return "emtWin=window.open('"+eV33+"')"}\r
39 function eF16(k,b){if(k.indexOf(b)>-1){return true};return false}\r
40 function eF21(eV16){if(eF16(eV16,"'")||eF16(eV16,"</")){return ""};return eV16}\r
41 function eF33(eV34){window.status=eV34;return true}\r
42 function eF26(eV35){var nc='',start=0,end;end=eCO.indexOf('x',start);while(end>0){if(!eF7(eV35,eCO.substring(start,end))){nc=nc+eCO.substring(start,end)+'x'};start=end+1;end=eCO.indexOf('x',start)};eF17('psn',nc+eV35+'x')}\r
43 function eF25(eV35){var nc='',start=0,end;end=eCO.indexOf('x',start);while(end>0){if(!eF7(eCO.substring(start,end+1),eV35)){nc=nc+eCO.substring(start,end)+'x'};start=end+1;end=eCO.indexOf('x',start)};if(eGF(eV35)!=''){nc=nc+eGF(eV35)+'x'};if(nc==''){nc='none'};eF17('psn',nc)}\r
44 function eF7(eV36,eV32){if(eF16(eV36,eV32+'d')||eF16(eV36,eV32+'x')){return true}else{return false}}\r
45 function eF34(){var t,start=0,end;end=eCO.indexOf('x',start);if(eW3C){t=eGO("et1d1").id};while(end>0){eOS(eCO.substring(start,end));start=end+1;end=eCO.indexOf('x',start)};}\r
46 function eF27(eV37){var cs=document.cookie,s=-1,m,e;while(s<cs.length){m=cs.indexOf('=',s);e=cs.indexOf(';',m);if(e==-1){e=cs.length};if(cs.substring(s+1,m)==eV37){return cs.substring(m+1,e)};s=cs.indexOf(';',s+1);if(s==-1){s=cs.length};s=s+1};return '0'}\r
47 function eF17(eV37,eV38){document.cookie=eV37+'='+eV38+';path=/'}\r
48 function eF23(){var t=0,l=0;if(eV0){l=window.pageXOffset;t=window.pageYOffset}else if(eV1){t=document.body.scrollTop;y=document.body.scrollLeft};eF18(l,t)}\r
49 function eF18(l,t){eF17('psnLeft',l);eF17('psnTop',t)}\r
50 function eF0(){var l,t;l=eF27('psnLeft');t=eF27('psnTop');if(eV0){window.scroll(l,t)}else if(eV1){document.body.scrollLeft=l;document.body.scrollTop=t}}\r
51 function eF35(){eF17('psn','t');;if(eF27('psn')=='t'){return true};return false}\r
52 function eF5(eV15){var t1; t1=eV15.indexOf('cn');if(t1>-1){return eV15.substring(t1+2,t1+4)} else {return ''}}\r
53 function eF1(eV16,eV15){if(eF16(eV15,'nb')){eV16="<nobr>"+eV16+"</nobr>"};return eV16}\r
54 function eOpenPage(ln){eOS(eGF(eGI[ln]));}\r
55 function eClosePage(ln){eCS(eGF(eGI[ln]));}\r
56 function eOpen(ln){eOS(eGI[ln]);}\r
57 function eClose(ln){eCS(eGI[ln]);}\r
58 function eSwap(ln,att,val,aic){if(eMW3C){var t = eGO(aic + eGI[ln]); eval("t." + att + "= '"+ val + "'")}}\r
59 function eSwapBox(ln,att,val){eSwap(ln,att, val,"c")}\r
60 function eSwapImage(ln,att,val){eSwap(ln,att,val,"i")}\r
61 function eSwapLine(ln,att,val){eSwap(ln,att,val, "a")}\r
62 function eF2(eV15){if(eMW3C&&eDD&&eF16(eV15,"dd")){return true};return false}\r
63 function eF36(eV14,eV15){var eV39,eV40,eV41,eV42,eV43,eV44=false,eV45=false,eV46=0;if(eF16(eV15,"to")){eV44=true}; if(eF16(eV15,"le")){eV45=true};eV39=eV15.indexOf('.');if(eV39==-1){eV46 =1}else{eV46=eV15.substring(eV39,eV39+3)};eV42= eGO("c"+eV14);eV43= eGO(eV14);for(var i=0;i<4;i=i+1){eV41=eF37(eV42); eV40=eF38(eV42);if(eV44){eV40=eV40-eV43.offsetHeight;if(eV46==1){eV40=eV40+eV42.offsetHeight}}else if(!eV44){if(eV46!=1){eV40=eV40+eV42.offsetHeight}}if(!eV45){eV41=eV41+(eV42.offsetWidth*eV46)}else if(eV45){eV41=eV41-(eV43.offsetWidth*eV46)};if(eIE50){eV41=eV41-6};eV43.style.left =eV41+"px";eV43.style.top =eV40 + "px"}}\r
64 function eF38(eV42){var t=0;while(eV42){if(eV42.style.position=='absolute'){return t};t=t+eV42.offsetTop;eV42=eV42.offsetParent};return t}\r
65 function eF37(eV42){var t=0;while(eV42){if(eV42.style.position=='absolute'){return t};t=t+eV42.offsetLeft;eV42=eV42.offsetParent}return t}\r
66 function eF4(eV14,eV15,evt){if(window.event){window.event.cancelBubble=true}else{evt.cancelBubble=true};if(!eF16(eV15,'nf')){if(eV8){clearTimeout(eV8)};if(eV7){clearTimeout(eV7)};eV7 =setTimeout("eF39('"+eV14 +"','"+eV15 +"')",400)}}\r
67 function eF3(eV14,eV15,evt){if(window.event){window.event.cancelBubble =true}else{evt.cancelBubble=true};if(!eF16(eV15,'nf')){if(eV7){clearTimeout(eV7)};eV7=setTimeout("eF40()",200)}}\r
68 function eF39(eV14,eV15){if(eV14.substring(0,1)=='b'){eV14=eGF(eV14.slice(1));while(!eF16(eV14,eV6)){eF22(eV6);eV6 = eGF(eV6);}}else if(eV6==""){eF22(eV14);eF36(eV14,eV15);eV6 =eV14;}else if(eF16(eV14,eV6+'d')){eF22(eV14);eF36(eV14,eV15);eV6=eV14;}else if(eF16(eV6,eV14+'d')){while(eF16(eV6,eV14+'d')){eF22(eV6);eV6=eGF(eV6)}}else{eF22(eV6);eV6=eGF(eV6);while(!eF16(eV14,eV6+'d')){eF22(eV6);eV6=eGF(eV6);}if(!eV3[eV14]){eF22(eV14);eF36(eV14,eV15);eV6 =eV14}}}\r
69 function eF40(){eV8=setTimeout("timeOut()",200)}\r
70 function timeOut(){ while(eV6!=""){eF22(eV6);eV6=eGF(eV6);}}\r
71 function cnv(ju,k){return ju}\r
72 if(eF27('psn')!='0'){if(eGB||eV2){eCO=eF27('psn')}};\r
73 if(eV2&&!eF35()){eV2=false};\r
74 if(eGB&&!eF35()){alert('For the tree menu to work properly, you must turn on cookies')};\r
75 if(eGB||eV2){eF17('psn',eCO)};\r
76 eDW("<TABLE border='0' cellspacing='0' cellpadding='0'>");\r
77 eDW("<TR>");\r
78 eDW("<TD class='menuTreeBox'  width='160' nowrap valign='top'>");\r
79 if(eNN&&ePI==4){eDW("<div style='margin-left:1px'>")};\r
80 eMF("e1d1","dd","scm_dir1","");\r
81 eLK("e1d1d1","ddnl",".","");\r
82 eLK("e1d1d2","ddnl","..","");\r
83 eSF("e1d1d3","dd","orig_modelfit_dir1","");\r
84 eLK("e1d1d3d1","ddnl",".","");\r
85 eLK("e1d1d3d2","ddnl","..","");\r
86 eSF("e1d1d3d3","dd","m1","");\r
87 eLK("e1d1d3d3d1","ddwi",".","");\r
88 eLK("e1d1d3d3d2","ddwi","..","");\r
89 eLK("e1d1d3d3d3","ddnl","prepared_models.log","");\r
90 eDE();\r
91 eSF("e1d1d3d4","dd","NM_run1","");\r
92 eLK("e1d1d3d4d1","ddnl",".","");\r
93 eLK("e1d1d3d4d2","ddnl","..","");\r
94 eLK("e1d1d3d4d3","ddnl","FCON","");\r
95 eLK("e1d1d3d4d4","ddnl","FCON.0","");\r
96 eLK("e1d1d3d4d5","ddnl","FCON.1","");\r
97 eLK("e1d1d3d4d6","ddnl","FCON.orig","");\r
98 eLK("e1d1d3d4d7","ddnl","FDATA","");\r
99 eLK("e1d1d3d4d8","ddnl","FREPORT","");\r
100 eLK("e1d1d3d4d9","ddnl","FSTREAM","");\r
101 eLK("e1d1d3d4d10","ddnl","FSUBS","");\r
102 eLK("e1d1d3d4d11","ddnl","FSUBS.f","");\r
103 eLK("e1d1d3d4d12","ddnl","LINK.LNK","");\r
104 eLK("e1d1d3d4d13","ddnl","PRDERR","");\r
105 eLK("e1d1d3d4d14","ddnl","compilation_output.txt","");\r
106 eLK("e1d1d3d4d15","ddnl","data6_multi.dta","");\r
107 eLK("e1d1d3d4d16","ddnl","data6_single.dta","");\r
108 eLK("e1d1d3d4d17","ddnl","done","");\r
109 eLK("e1d1d3d4d18","ddnl","get_sub0.f","");\r
110 eLK("e1d1d3d4d19","ddnl","msf5","");\r
111 eLK("e1d1d3d4d20","ddnl","psn.lst","");\r
112 eLK("e1d1d3d4d21","ddnl","psn.lst.0","");\r
113 eLK("e1d1d3d4d22","ddnl","psn.lst.1","");\r
114 eLK("e1d1d3d4d23","ddnl","psn.mod","");\r
115 eLK("e1d1d3d4d24","ddnl","reader0.f","");\r
116 eDE();\r
117 eLK("e1d1d3d5","ddnl","model_NMrun_translation.txt","");\r
118 eLK("e1d1d3d6","ddnl","modelfit.log","");\r
119 eLK("e1d1d3d7","ddnl","resume.file","");\r
120 eDE();\r
121 eSF("e1d1d4","dd","m1","");\r
122 eLK("e1d1d4d1","ddnl",".","");\r
123 eLK("e1d1d4d2","ddnl","..","");\r
124 eLK("e1d1d4d3","ddnl","BAAGE2.mod","");\r
125 eLK("e1d1d4d4","ddnl","BAALKO2.mod","");\r
126 eLK("e1d1d4d5","ddnl","BASEX2.mod","");\r
127 eLK("e1d1d4d6","ddnl","BASMOK2.mod","");\r
128 eLK("e1d1d4d7","ddnl","BAWT2.mod","");\r
129 eLK("e1d1d4d8","ddnl","BAAGE2.lst","");\r
130 eLK("e1d1d4d9","ddnl","BAALKO2.lst","");\r
131 eLK("e1d1d4d10","ddnl","BASEX2.lst","");\r
132 eLK("e1d1d4d11","ddnl","BASMOK2.lst","");\r
133 eLK("e1d1d4d12","ddwi","BAWT2.lst","");\r
134 eLK("e1d1d4d13","ddnl","done","");\r
135 eLK("e1d1d4d14","ddnl","done.log","");\r
136 eLK("e1d1d4d15","ddnl","prepared_models.log","");\r
137 eDE();\r
138 eSF("e1d1d5","dd","modelfit_dir1","");\r
139 eLK("e1d1d5d1","ddnl",".","");\r
140 eLK("e1d1d5d2","ddnl","..","");\r
141 eSF("e1d1d5d3","dd","NM_run1","");\r
142 eDE();\r
143 eSF("e1d1d5d4","dd","NM_run2","");\r
144 eDE();\r
145 eSF("e1d1d5d5","dd","NM_run3","");\r
146 eDE();\r
147 eSF("e1d1d5d6","dd","NM_run4","");\r
148 eDE();\r
149 eSF("e1d1d5d7","dd","NM_run5","");\r
150 eDE();\r
151 eSF("e1d1d5d8","dd","m1","");\r
152 eDE();\r
153 eSF("e1d1d5d9","dd","m2","");\r
154 eDE();\r
155 eSF("e1d1d5d10","dd","m3","");\r
156 eDE();\r
157 eSF("e1d1d5d11","dd","m4","");\r
158 eDE();\r
159 eSF("e1d1d5d12","dd","m5","");\r
160 eDE();\r
161 eLK("e1d1d5d13","ddnl","model_NMrun_translation.txt","");\r
162 eLK("e1d1d5d14","ddnl","resume.file","");\r
163 eDE();\r
164 eSF("e1d1d6","dd","scm_dir1","");\r
165 eLK("e1d1d6d1","ddnl",".","");\r
166 eLK("e1d1d6d2","ddnl","..","");\r
167 eSF("e1d1d6d3","dd","m1","");\r
168 eDE();\r
169 eSF("e1d1d6d4","dd","modelfit_dir1","");\r
170 eDE();\r
171 eLK("e1d1d6d5","ddnl","modelfit1.log","");\r
172 eDE();\r
173 eLK("e1d1d7","ddnl","modelfit1.log","");\r
174 eLK("e1d1d8","ddnl","psn_results.csv","");\r
175 eLK("e1d1d9","ddnl","scmlog_parallel1.txt","");\r
176 eDE();\r
177 eMF("et1d1","dd","Thanks to...","");\r
178 eLK("et1d1d1","ddwit","eMenuTree","http://www.emenutree.com");\r
179 eLK("et1d1d2","ddwit","Web Hosting","http://www.emenutree.com/rd/rd.webHosting.asp");\r
180 eDE();\r
182 if(eNN&&ePI==4){eDW("</div>")};\r
183 eDW("</TD>");\r
184 eDW("</TR>");\r
185 eDW("</TABLE>");\r
186 document.write(eGSTR);eGSTR="";\r
187 if(window.pageXOffset==0){eV0=true}else if(eIE){eV1=true};\r
188 if(eGB){eF0()}\r