PageSourceSearch

https://www.lucagri.it/layout/js/p7pm3/p7PM3scripts.js

js lucagri.it collected 2026-10-09 02:44:46 UTC 39,290 bytes, 1,594 lines download raw bytes

1
2/* 
3 ================================================
4 PVII Pop Menu Magic 3 scripts
5 Copyright (c) 2013-2015 Project Seven Development
6 www.projectseven.com
7 Version: 3.5.2 -build 48
8 ================================================
9 
10*/
11
12// define the image swap file naming convention
13
14// rollover image for any image in the normal state
15var p7PM3over='_over';
16
17// image for any trigger that has an open sub menu -no rollover
18var p7PM3open='_down';
19
20// indent char for Jump List
21// default is space: '\u2007' - for dash use: '\u2014'
22var p7PM3indent='\u2007'; 
23
24var p7PM3ctl=[],p7PM3i=false,p7PM3a=false,p7PM3adv=[],p7PM3dy=(1000/100),p7PM3kf=false,p7PM3clk=false;
25
26function P7_PM3set(){
27	var i,h,sh,hd,x,v,ie=P7_PM3getIEver();
28	if(!document.getElementById || (ie>4 && ie<6)){
29		return;
30	}
31	sh='.p7PM3 ul div {position:absolute; display:none; height:0px; top:100%; z-index:999;}\n';
32	sh+='.p7PM3 li.pmm3-title-bar div {position:relative; display:block; height:auto; top:auto;}\n';
33	sh+='.pmm3-select-wrapper {display:none;}\n';
34	sh+='@media only screen and (min-device-width:768px) and (max-device-width:1024px) {\n';
35	sh+='body * {cursor: pointer;}\n}\n';
36	sh+='.p7bpm3-spcr {width:100%; display:none;}\n';
37	sh+='.p7pm3-fixed {position:fixed !important;}\n';
38	sh+='.horiz.p7pm3-fixed {top:0; left:0; width:100%;}\n';
39	sh+='.vert.p7pm3-fixed {top:100px; left:20px; width:240px;}\n';
40	sh+='.p7PM3 {box-sizing:border-box; -moz-box-sizing:border-box;}\n';
41	sh+='@media only screen and (min-width: 0px) and (max-width: 700px) {\n';
42	sh+='.p7PM3.responsive {max-height: 700777px;}\n';
43	sh+='.p7PM3.responsive ul a {max-height: 700777px;}\n';
44	sh+='.p7PM3.responsive ul div {position:relative; overflow:hidden;margin-left:0 !important; margin-top:0 !important;}\n';
45	sh+='.p7PM3 ul ul {\n-webkit-transform: none !important; -webkit-transition: none !important;';
46	sh+='transform: none !important; transition: none !important;';
47	sh+='opacity:100 !important;}\n';
48	sh+='}\n';
49	sh+='@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {\n';
50	sh+='.p7PM3.responsive {max-height: 700777px;}\n';
51	sh+='}\n';
52	P7_PM3addSheet(sh);
53}
54P7_PM3set();
55function P7_PM3op(){
56	if(!document.getElementById){
57		return;
58	}
59	p7PM3ctl[p7PM3ctl.length]=arguments;
60	if(arguments[2]>5){
61		P7_PM3setCSSanim(arguments);
62	}
63}
64function P7_PM3setCSSanim(op){
65	var i,pf,prf,sh='';
66	prf=P7_PM3getCSSPre();
67	if(prf!='none'){
68		if(op[2]==6){
69			sh+='#'+op[0]+' ul ul {\n';
70			sh+='-webkit-transition: -webkit-transform 300ms, opacity 300ms;\n';
71			sh+='transition: transform 300ms, opacity 300ms;\n';
72			sh+='-webkit-transform: scale(0);\n';
73			sh+='transform: scale(0);\n';
74			sh+='opacity: 0;\n}\n';
75			sh+='#'+op[0]+' ul ul.sub-open {\n';
76			sh+='-webkit-transform: scale(1);\n';
77			sh+='transform: scale(1);\n';
78			sh+='opacity: 1;\n}\n';
79		}
80		else if(op[2]==7){
81			sh+='#'+op[0]+' ul ul {\n';
82			sh+='-webkit-transition: -webkit-transform 300ms, opacity 300ms;\n';
83			sh+='transition: transform 300ms, opacity 300ms;\n';
84			sh+='-webkit-transform: translateY(-100%) rotate(-120deg);\n';
85			sh+='transform: translateY(-100%) rotate(-120deg);\n';
86			sh+='opacity: 0;\n}\n';
87			sh+='#'+op[0]+' ul ul.sub-open {\n';
88			sh+='-webkit-transform: translateY(0px) rotate(0deg);\n';
89			sh+='transform: translateY(0px) rotate(0deg);\n';
90			sh+='opacity: 1;\n}\n';
91		}
92		else if(op[2]==8){
93			sh+='#'+op[0]+' ul ul {\n';
94			sh+='-webkit-transition: -webkit-transform 300ms, opacity 300ms;\n';
95			sh+='transition: transform 300ms, opacity 300ms;\n';
96			sh+='-webkit-transform: scale(0,1);\n';
97			sh+='transform: scale(0,1);\n';
98			sh+='opacity: 0;\n}\n';
99			sh+='#'+op[0]+' ul ul.sub-open {\n';
100			sh+='-webkit-transform: scale(1,1);\n';
101			sh+='transform: scale(1,1);\n';
102			sh+='opacity: 1;\n}\n';
103		}
104		else if(op[2]==9){
105			sh+='#'+op[0]+' ul ul {\n';
106			sh+='-webkit-transition: -webkit-transform 300ms, opacity 300ms;\n';
107			sh+='transition: transform 300ms, opacity 300ms;\n';
108			sh+='-webkit-transform: scale(1,0);\n';
109			sh+='transform: scale(1,0);\n';
110			sh+='opacity: 0;\n}\n';
111			sh+='#'+op[0]+' ul ul.sub-open {\n';
112			sh+='-webkit-transform: scale(1,1);\n';
113			sh+='transform: scale(1,1);\n';
114			sh+='opacity: 1;\n}\n';
115		}
116		P7_PM3addSheet(sh);
117	}
118}
119function P7_PM3bb(){
120	P7_PM3shutall();
121}
122function P7_PM3addLoad(){
123	var ie=P7_PM3getIEver();
124	if(!document.getElementById || (ie>4 && ie<6)){
125		return;
126	}
127	if(window.addEventListener){
128		document.addEventListener("DOMContentLoaded",P7_PM3init,false);
129		window.addEventListener("load",P7_PM3init,false);
130		window.addEventListener("unload",P7_PM3bb,false);
131		window.addEventListener("resize",P7_PM3rsz,false);
132	}
133	else if(window.attachEvent){
134		document.write("<script id=p7ie_pm3 defer src=\"//:\"><\/script>");
135		document.getElementById("p7ie_pm3").onreadystatechange=function(){
136			if (this.readyState=="complete"){
137				if(p7PM3ctl.length>0){
138					P7_PM3init();
139				}
140			}
141		};
142		window.attachEvent("onload",P7_PM3init);
143		window.attachEvent("onunload",P7_PM3bb);
144		window.attachEvent("onresize",P7_PM3rsz);
145	}
146}
147P7_PM3addLoad();
148function P7_PM3init(){
149	var i,j,jj,k,x,tB,tU,tD,tS,tA,taA,tBR,tBU,iM,cN,dv,pn,lv,ls,fs,d,sr,s1,s2,pp,cl,pf,wns,ob,el;
150	if(p7PM3ctl.length<1){
151		return;
152	}
153	if(p7PM3i){
154		return;
155	}
156	p7PM3i=true;
157	document.p7PM3preload=[];
158	pf=P7_PM3getCSSPre();
159	wns=false;
160	for(jj=0;jj<p7PM3ctl.length;jj++){
161		tB=document.getElementById(p7PM3ctl[jj][0]);
162		if(tB){
163			tB.p7opt=p7PM3ctl[jj];
164			tU=tB.getElementsByTagName('UL');
165			if(tU&&tU.length>1){
166				for(i=tU.length-1;i>0;i--){
167					pn=tU[i].parentNode;
168					dv=document.createElement('div');
169					dv.pm3d=true;
170					dv.appendChild(tU[i]);
171					pn.appendChild(dv);
172				}
173			}
174			P7_PM3remClass(tB,'p7PM3noscript');
175			if(tB.p7opt[17]==1){
176				dv=document.createElement('div');
177				dv.setAttribute('id',tB.id.replace('_','spcr_'));
178				dv.className=tB.className;
179				P7_PM3setClass(dv,'p7bpm3-spcr');
180				tB.parentNode.insertBefore(dv, tB.nextSibling);
181				tB.pm3Spacer=dv;
182				dv.pm3Menu=tB;
183				if(!wns){
184					wns=true;
185					if(window.addEventListener){
186						window.addEventListener('scroll', P7_PM3fixed, false);
187					}
188					else if (window.attachEvent){
189						window.attachEvent('onscroll', P7_PM3fixed);
190					}
191				}
192			}
193			tB.pm3Duration=100;
194			tB.pm3AnimType='quad';
195			tB.pmm3DefLink=false;
196			tB.pm3Shut=true;
197			dv=P7_PM3isMobile();
198			if(dv=='touch'){
199				if(P7_PM3getStyle(tB,'maxHeight','max-height')!='700777px'){
200					dv=false;
201				}
202			}
203			if(dv){
204				tB.p7opt[15]=0;
205			}
206			p7PM3clk=true;
207			if(window.addEventListener){
208				document.addEventListener("click",P7_PM3body,false);
209			}
210			else if(window.attachEvent){
211				window.attachEvent("click",P7_PM3body,false);
212			}
213			if(tB.p7opt[2]>5){
214				if(pf=='none'){
215					tB.p7opt[2]=3;
216				}
217			}
218			tB.style.position='relative';
219			tB.style.zIndex=tB.p7opt[14];
220			tU=tB.getElementsByTagName('UL');
221			tD=tU[0].getElementsByTagName('DIV');
222			for(i=0;i<tD.length;i++){
223				if(tD[i].pm3d){
224					tD[i].setAttribute("id",tB.id+'d'+(i+2));
225					tD[i].pm3State='closed';
226					tD[i].pm3Menu=tB.id;
227				}
228			}
229			tB.pm3UL=tU[0];
230			tB.pm3MouseTimer=null;
231			tB.pm3Fixed=false;
232			pp=tB;
233			while(pp){
234				if(P7_PM3getStyle(pp,'position','position')=='fixed'){
235					tB.pm3Fixed=true;
236					break;
237				}
238				if(pp.nodeName=='BODY'){
239					break;
240				}
241				pp=pp.parentNode;
242			}
243			tB.pm3ToolbarClosed=false;
244			tBR=document.getElementById(tB.id.replace('_','tb_'));
245			tBU=tU[0];
246			if(tBR && tBU){
247				tBR.pm3Menu=tB.id;
248				tBR.pm3UL=tBU;
249				cl=tBR.className;
250				if(cl && cl!=='' && cl.indexOf('opened')>-1){
251					tBU.pm3State='open';
252					tBR.pm3State='open';
253					P7_PM3setClass(tBU,'opened');
254				}
255				else{
256					P7_PM3remClass(tBR,'closed');
257					P7_PM3remClass(tBU,'closed');
258					tB.pm3ToolbarClosed=true;
259					tBU.pm3State='closed';
260					tBR.pm3State='closed';
261				}
262				tBR.onclick=
263function(){
264	var tBR=document.getElementById(this.pm3Menu.replace('_','tb_'));
265	var tBU=this.pm3UL;
266	if(tBU.pm3State=='open'){
267		tBR.pm3State='closed';
268		tBU.pm3State='closed';
269		P7_PM3changeClass(tBR,'opened','closed');
270		P7_PM3changeClass(tBU,'opened','closed');
271	}
272	else{
273		tBR.pm3State='open';
274		tBU.pm3State='open';
275		P7_PM3changeClass(tBR,'closed','opened');
276		P7_PM3changeClass(tBU,'closed','opened');
277	}
278};
279tA=tBR.getElementsByTagName('A');
280if(tA && tA[0]){
281	tA[0].onclick=function(){
282		return false;
283	};
284}
285}
286d=1;
287for(i=0;i<tU.length;i++){
288tU[i].setAttribute("id",tB.id+'u'+(i+1));
289tU[i].pm3Menu=tB.id;
290tU[i].setAttribute('aria-hidden','true');
291lv=1;
292pp=tU[i].parentNode;
293while(pp){
294	if(pp.id&&pp.id==tB.id){
295		break;
296	}
297	if(pp.tagName&&pp.tagName=="UL"){
298		lv++;
299	}
300	pp=pp.parentNode;
301}
302tU[i].pm3Level=lv;
303P7_PM3setClass(tU[i],'level_'+lv);
304cN=tU[i].childNodes;
305fs=-1;
306ls=0;
307if(cN){
308	for(j=0;j<cN.length;j++){
309		if(cN[j].tagName&&cN[j].tagName=='LI'){
310			ls++;
311			cl=cN[j].getAttribute('class');
312			if(cl && cl!=='' && cl.indexOf('pmm3-title-bar')>-1){
313				if(fs<0){
314					P7_PM3setClass(cN[j],'pm3first');
315				}
316				fs=j;
317				cN[j].pm3Title=true;
318				cN[j].onclick=function(){
319					P7_PM3toggleTB(this.parentNode.id);
320				};
321				P7_PM3supTouch(tA);
322				if(tB.p7opt[15]==1){
323					cN[j].onmouseover=function(){
324						var tU=this.parentNode;
325						var tB=document.getElementById(tU.pm3Menu);
326						if(tB.pm3MouseTimer){
327							clearTimeout(tB.pm3MouseTimer);
328						}
329						if(P7_PM3getStyle(tB,'maxHeight','max-height')=='700777px'){
330							return;
331						}
332						if(this.pm3Pointer){
333							return;
334						}
335						P7_PM3trigTB(tU.id);
336					};
337				}
338				P7_PM3bindPointer(cN[j]);
339			}
340			else{
341				taA=cN[j].getElementsByTagName('A');
342				if(taA && taA[0]){
343					tA=taA[0];
344				}
345				else{
346					continue;
347				}
348				if(fs<0){
349					P7_PM3setClass(tA,'pm3first');
350					P7_PM3setClass(cN[j],'pm3first');
351				}
352				fs=j;
353				if(!tB.pm3FirstA){
354					tB.pm3FirstA=tA;
355				}
356				tA.setAttribute("id",tB.id+'a'+(d));
357				d++;
358				tA.pm3State='closed';
359				tA.pm3Level=lv;
360				tA.pm3ParentDiv=tU[i].parentNode.id;
361				tA.pm3Menu=tB.id;
362				tA.pm3Sub=false;
363				if(i===0){
364					P7_PM3setClass(cN[j],('root_'+ls));
365				}
366				tA.onclick=function(evt){
367					return P7_PM3click(this);
368				};
369				P7_PM3supTouch(tA);
370				if(tB.p7opt[15]==1){
371					tA.onmouseover=function(){
372						var tB=document.getElementById(this.pm3Menu);
373						if(tB.pm3MouseTimer){
374							clearTimeout(tB.pm3MouseTimer);
375						}
376						if(P7_PM3getStyle(this,'maxHeight','max-height')=='700777px'){
377							return;
378						}
379						if(this.pm3Pointer){
380							return;
381						}
382						P7_PM3trig(this.id);
383					};
384					P7_PM3bindPointer(tA);
385				}
386				tA.hasImg=false;
387				iM=tA.getElementsByTagName("IMG");
388				if(iM&&iM[0]){
389					sr=iM[0].getAttribute("src");
390					iM[0].pm3Swap=tB.p7opt[9];
391					x=sr.lastIndexOf(".");
392					s1=sr.substring(0,x)+p7PM3over+'.'+sr.substring(x+1);
393					s2=sr.substring(0,x)+p7PM3open+'.'+sr.substring(x+1);
394					if(iM[0].pm3Swap==1){
395						iM[0].p7imgswap=[sr,s1,s1];
396						P7_PM3preloader(s1);
397					}
398					else if (iM[0].pm3Swap==2){
399						iM[0].p7imgswap=[sr,s1,s2];
400						P7_PM3preloader(s1,s2);
401					}
402					else{
403						iM[0].p7imgswap=[sr,sr,sr];
404					}
405					iM[0].p7state='closed';
406					iM[0].mark=false;
407					iM[0].rollover=tB.p7opt[10];
408					if(iM[0].pm3Swap>0){
409						tA.hasImg=true;
410						iM[0].onmouseover=function(){
411							P7_PM3imovr(this);
412						};
413						iM[0].onmouseout=function(){
414							P7_PM3imout(this);
415						};
416						tA.onfocus=function(){
417							P7_PM3imovr(this.getElementsByTagName('IMG')[0]);
418						};
419						tA.onblur=function(){
420							P7_PM3imout(this.getElementsByTagName('IMG')[0]);
421						};
422					}
423				}
424				tS=cN[j].getElementsByTagName('UL');
425				if(tS&&tS.length>0){
426					tA.pm3Sub=tS[0].parentNode.id;
427					tS[0].parentNode.pm3Trigger=tA;
428					if(i===0){
429						P7_PM3setClass(tA,('root_trig'));
430						P7_PM3setClass(tA.parentNode,('root_trig'));
431					}
432					P7_PM3setClass(tA,'trig_closed');
433					P7_PM3setClass(tA.parentNode,'trig_closed');
434					if(tB.p7opt[5]==1){
435						P7_PM3setClass(tA,'trig_left');
436						P7_PM3setClass(tA.parentNode,'trig_left');
437					}
438					if(tB.p7opt[13]==1){
439						P7_PM3setClass(tA,'trig_up');
440						P7_PM3setClass(tA.parentNode,'trig_up');
441					}
442				}
443				else{
444					P7_PM3setClass(tA,'pm3-link');
445					P7_PM3setClass(tA.parentNode,'pm3-link');
446					if(i===0){
447						P7_PM3setClass(tA,('root_link'));
448						P7_PM3setClass(tA.parentNode,('root_link'));
449					}
450				}
451			}
452		}
453	}
454	if(fs>0){
455		P7_PM3setClass(cN[fs],'pm3last');
456		if(!cN[fs].pm3Title){
457			P7_PM3setClass(tA,'pm3last');
458		}
459	}
460}
461}
462cl=tB.getAttribute('class');
463if(cl && cl.indexOf('select')>-1){
464ob=document.createElement('div');
465ob.setAttribute('id',tB.id.replace('_','sw_'));
466ob.setAttribute('class','pmm3-select-wrapper');
467tB.insertBefore(ob,tB.childNodes[0]);
468el=document.createElement('select');
469el.setAttribute('id',tB.id.replace('_','s_'));
470el.setAttribute('class','pmm3-select');
471el.pm3Div=tB.id;
472el.onchange=function(){
473	var op=this.options[this.selectedIndex];
474	op.pm3Link.click();
475};
476ob.appendChild(el);
477tB.pm3Select=el;
478P7_PM3buildSel(el,tB.pm3UL=tU[0]);
479}
480if(tB.p7opt[15]==1){
481P7_PM3bindPointer(tB);
482tB.onmouseout=function(evt){
483	var k,rt,pp,tD,m=true;
484	evt=(evt)?evt:((event)?event:null);
485	if(P7_PM3getStyle(this,'maxHeight','max-height')=='700777px'){
486		return;
487	}
488	if(evt){
489		rt=(evt.relatedTarget)?evt.relatedTarget:evt.toElement;
490		if(rt){
491			pp=rt.parentNode;
492			while(pp){
493				if(pp && pp.id && typeof(pp.id)=='string' && pp.id.indexOf(this.id
493)===0){
494					m=false;
495					break;
496				}
497				if(pp && pp.tagName && (pp.tagName=='BODY'||pp.tagName=='HTML')){
498					break;
499				}
500				pp=pp.parentNode;
501			}
502		}
503		if(this.pm3Pointer){
504			m=false;
505		}
506		if(m){
507			if(this.pm3MouseTimer){
508				clearTimeout(this.pm3MouseTimer);
509			}
510			if(this.p7opt[8]==1){
511				this.pm3MouseTimer=setTimeout("P7_PM3shut('"+this.id+"')",360);
512			}
513			else{
514				P7_PM3shut(this.id);
515			}
516		}
517	}
518};
519}
520if(tB.pm3ToolbarClosed){
521P7_PM3setClass(tBR,'closed');
522P7_PM3setClass(tBU,'closed');
523}
524if(tB.p7opt[11]==1){
525P7_PM3currentMark(tB);
526}
527P7_PM3setBC(tB.id);
528}
529}
530p7PM3a=true;
531}
532function P7_PM3preloader(){
533	var i,x;
534	for(i=0;i<arguments.length;i++){
535		x=document.p7PM3preload.length;
536		document.p7PM3preload[x]=new Image();
537		document.p7PM3preload[x].src=arguments[i];
538	}
539}
540function P7_PM3imovr(im){
541	var m=true;
542	if(im.p7state=='open' && im.rollover===0){
543		m=false;
544	}
545	if(m){
546		im.src=im.p7imgswap[1];
547	}
548}
549function P7_PM3imout(im){
550	if(im.p7state=='open' || im.mark){
551		im.src=im.p7imgswap[2];
552	}
553	else{
554		im.src=im.p7imgswap[0];
555	}
556}
557function P7_PM3setBC(d){
558	var i,j,k,tB,bC,tU,tA,wH,cl,m,a,ba,bli,im,tx,el,tgs,nd;
559	tB=document.getElementById(d);
560	bC=document.getElementById(d.replace('_','bc_'));
561	wH=window.location.href;
562	if(tB && bC){
563		tU=bC.getElementsByTagName('UL');
564		if(tU && tU[0]){
565			tA=tU[0].getElementsByTagName('A');
566			if(tA && tA.length>0){
567				for(i=0;i<tA.length;i++){
568					cl=tA[i].getAttribute('class');
569					if(cl && cl!==''){
570						if(cl.indexOf('placeholder')>-1){
571							tU[0].removeChild(tA[i].parentNode);
572						}
573					}
574				}
575			}
576			tA=tB.getElementsByTagName('A');
577			var aP=[];
578			for(j=0;j<tA.length;j++){
579				cl=tA[j].getAttribute('class');
580				if(cl && cl.indexOf('current_mark')>-1){
581					aP[aP.length]=j;
582				}
583			}
584			for(k=0;k<aP.length;k++){
585				m=false;
586				a=tA[aP[k]];
587				ba=document.createElement('a');
588				bli=document.createElement('li');
589				im=a.getElementsByTagName('IMG');
590				if(im && im[0]){
591					tx=document.createTextNode(im[0].getAttribute('alt'));
592				}
593				else{
594					tx=document.createTextNode(a.textContent);
595				}
596				if(!tx || tx===''){
597					tx='Page '+(i+1);
598				}
599				if(a.href!=wH && a.href!=wH+'#'){
600					if(a.href.toLowerCase().indexOf('javascript:')==-1){
601						m=true;
602					}
603				}
604				if(m){
605					ba.setAttribute('href',a.href);
606					ba.appendChild(tx);
607					bli.appendChild(ba);
608				}
609				else{
610					bli.appendChild(tx);
611				}
612				tU[0].appendChild(bli);
613			}
614			if(!aP || aP.length===0 || (tB.pmm3DefLink && tB.pmm3DefLink.href!=wH)){
615				bli=document.createElement('li');
616				cl=bC.getAttribute('class');
617				nd=null;
618				m=true;
619				if(cl && cl!==''){
620					if(cl.indexOf('def-a')>-1){
621						tgs=document.getElementsByTagName('A');
622					}
623					else if(cl.indexOf('def-h1')>-1){
624						tgs=document.getElementsByTagName('H1');
625					}
626					else if(cl.indexOf('def-h2')>-1){
627						tgs=document.getElementsByTagName('H2');
628					}
629					else if(cl.indexOf('def-p')>-1){
630						tgs=document.getElementsByTagName('P');
631					}
632					else if(cl.indexOf('def-t')>-1){
633						tgs=document.getElementsByTagName('TITLE');
634					}
635					else{
636						m=false;
637					}
638					if(tgs && tgs[0]){
639						nd=tgs[0];
640					}
641				}
642				if(nd && nd.textContent && nd.textContent!==''){
643					tx=document.createTextNode(nd.textContent);
644				}
645				else{
646					tx=document.createTextNode('Page');
647				}
648				if(m){
649					bli.appendChild(tx);
650					tU[0].appendChild(bli);
651				}
652			}
653		}
654	}
655}
656function P7_PM3fixed(){
657	var i,tB;
658	if(p7PM3ctl && p7PM3ctl.length){
659		for(i=0;i<p7PM3ctl.length;i++){
660			tB=document.getElementById(p7PM3ctl[i][0]);
661			if(tB && tB.pm3Spacer){
662				if(P7_PM3getStyle(tB.pm3FirstA,'maxHeight','max-height')=='700777px'){
663					if(tB.pm3FixedOn){
664						tB.pm3Spacer.style.display='none';
665						P7_PM3remClass(tB,'p7pm3-fixed');
666						tB.pm3FixedOn=false;
667					}
668					continue;
669				}
670				if(!tB.pm3FixedOn && tB.getBoundingClientRect().top<0){
671					tB.pm3Spacer.style.height=tB.offsetHeight+'px';
672					tB.pm3Spacer.style.display='block';
673					P7_PM3setClass(tB,'p7pm3-fixed');
674					tB.pm3FixedOn=true;
675				}
676				else if(tB.pm3FixedOn && tB.pm3Spacer.getBoundingClientRect().top>=0){
677					tB.pm3Spacer.style.display='none';
678					P7_PM3remClass(tB,'p7pm3-fixed');
679					tB.pm3FixedOn=false;
680				}
681			}
682		}
683	}
684}
685function P7_PM3trig(d){
686	var tB,a;
687	a=document.getElementById(d);
688	tB=document.getElementById(a.pm3Menu);
689	if(tB.pm3MouseTimer){
690		clearTimeout(tB.pm3MouseTimer);
691	}
692	if(a.pm3Sub){
693		if(tB.p7opt[8]==1){
694			tB.pm3MouseTimer=setTimeout("P7_PM3open('"+a.id+"',null,2)",160);
695		}
696		else{
697			P7_PM3open(a.id,null,2);
698		}
699	}
700	else{
701		if(tB.p7opt[8]==1){
702			tB.pm3MouseTimer=setTimeout("P7_PM3toggle('"+a.id+"',null,2)",160);
703		}
704		else{
705			P7_PM3toggle(a.id,null,2);
706		}
707	}
708}
709function P7_PM3trigTB(du){
710	var tB,tU;
711	tU=document.getElementById(du);
712	tB=document.getElementById(tU.pm3Menu);
713	if(tB.pm3MouseTimer){
714		clearTimeout(tB.pm3MouseTimer);
715	}
716	if(tB.p7opt[8]==1){
717		tB.pm3MouseTimer=setTimeout("P7_PM3toggleTB('"+tU.id+"')",160);
718	}
719	else{
720		P7_PM3toggleTB(tU.id);
721	}
722}
723function P7_PM3click(a){
724	var wH,tB,cnv=false,m=false;
725	document.getElementById('mm'.innerHTML+='<br>PM3click -current state:'+a.pm3State);
726	P7_PM3shutall(a.pm3Menu);
727	wH=window.location.href;
728	if(a.href!=wH&&a.href!=wH+'#'){
729		if(a.href.toLowerCase().indexOf('javascript:')==-1){
730			m=true;
731		}
732	}
733	tB=document.getElementById(a.pm3Menu);
734	if(tB.pm3MouseTimer){
735		clearTimeout(tB.pm3MouseTimer);
736	}
737	if(P7_PM3getStyle(tB,'maxHeight','max-height')=='700777px'){
738		cnv=true;
739	}
740	if( m && a.pm3Sub && a.pm3State=='closed' ){
741		if(!tB.pm3Select){
742			m=false;
743		}
744	}
745	if(a.pm3State=='closed'){
746		P7_PM3open(a.id,null,1);
747	}
748	else{
749		P7_PM3close(a.id,null,1);
750	}
751	if(m){
752		P7_PM3shutall();
753	}
754	return m;
755}
756function P7_PM3open(d,bp,p){
757	var i,a,tB,iM,op,sD,tU,mT,mL,cmb,pB;
758	a=document.getElementById(d);
759	if(a.pm3State=='open'){
760		return;
761	}
762	tB=document.getElementById(a.pm3Menu);
763	if(!bp){
764		P7_PM3toggle(a.id);
765	}
766	op=tB.p7opt[2];
767	if(P7_PM3getStyle(a,'maxHeight','max-height')=='700777px'){
768		if(op!==0){
769			op=99;
770		}
771	}
772	if(a.hasImg){
773		iM=a.getElementsByTagName("IMG")[0];
774		iM.p7state='open';
775		iM.src=iM.p7imgswap[2];
776	}
777	if(a.pm3Sub){
778		sD=document.getElementById(a.pm3Sub);
779		sD.pm3State='open';
780		tB.pm3Shut=false;
781		a.pm3State='open';
782		P7_PM3changeClass(a,'trig_closed','trig_open');
783		P7_PM3changeClass(a.parentNode,'trig_closed','trig_open');
784		tU=sD.getElementsByTagName('UL')[0];
785		tU.setAttribute('aria-hidden','false');
786		sD.style.visibility='hidden';
787		sD.style.height='auto';
788		sD.style.display='block';
789		mT=(a.parentNode.offsetHeight*-1)+tB.p7opt[3];
790		mL=a.parentNode.offsetWidth+tB.p7opt[4];
791		if(tB.p7opt[5]==1){
792			mL=(tU.offsetWidth*-1)-tB.p7opt[4];
793		}
794		if(tB.p7opt[1]==1 && a.pm3Level==1){
795			mT=0;
796			mL=0;
797			if(tB.p7opt[7]==1){
798				mL=((sD.offsetWidth-a.parentNode.offsetWidth)/2)*-1;
799			}
800			else if(tB.p7opt[7]==2){
801				mL=((sD.offsetWidth-a.parentNode.offsetWidth))*-1;
802			}
803			if(tB.p7opt[16]==1){
804				if(a.className.indexOf('pm3first')>-1){
805					mL=0;
806				}
807				else if(a.className.indexOf('pm3last')>-1){
808					mL=(sD.offsetWidth-a.parentNode.offsetWidth)*-1;
809				}
810			}
811		}
812		if(tB.p7opt[13]==1){
813			mT-=sD.offsetHeight;
814			if(tB.p7opt[1]==1 && a.pm3Level==1){
815				mT-=a.parentNode.offsetHeight;
816			}
817		}
818		if(tB.p7opt[6]>0 && sD.getBoundingClientRect){
819			var adjL=0,adjT=0,vL,vR,pL,pR,pT;
820			var ws=P7_PM3getWinScroll();
821			var wn=P7_PM3getWinDims();
822			pL=mL+a.parentNode.getBoundingClientRect().left+ws[1];
823			pR=pL+sD.offsetWidth;
824			if(tB.p7opt[6]==2){
825				vL=tB.getBoundingClientRect().left+ws[1];
826				vR=vL+tB.offsetWidth;
827				if(pR>vR){
828					if(tB.p7opt[1]==1 && a.pm3Level==1){
829						mL=mL-(pR-vR);
830					}
831					else{
832						mL=(tU.offsetWidth*-1)-tB.p7opt[4];
833					}
834				}
835				pL=mL+a.parentNode.getBoundingClientRect().left+ws[1];
836				if(pL<vL){
837					if(tB.p7opt[5]==1 && (tB.p7opt[1]!=1 || (tB.p7opt[1]==1 && a.pm3Level!=1))){
838						mL=a.parentNode.offsetWidth+tB.p7opt[4];
839					}
840					else{
841						mL=mL+(vL-pL);
842					}
843				}
844			}
845			if(tB.p7opt[6]>0){
846				pL=mL+a.parentNode.getBoundingClientRect().left+ws[1];
847				pR=pL+sD.offsetWidth;
848				vL=ws[1];
849				vR=wn[1];
850				if(pR>vR){
851					if(tB.p7opt[1]==1 && a.pm3Level==1){
852						mL=mL-(pR-vR);
853					}
854					else{
855						mL=(tU.offsetWidth*-1)-tB.p7opt[4];
856					}
857				}
858				pL=mL+a.parentNode.getBoundingClientRect().left+ws[1];
859				if(pL<vL){
860					if(tB.p7opt[5]==1 && (tB.p7opt[1]!=1 || (tB.p7opt[1]==1 && a.pm3Level!=1))){
861						mL=a.parentNode.offsetWidth+tB.p7opt[4];
862					}
863					else{
864						mL=mL+(vL-pL);
865					}
866				}
867				pB=mT+a.parentNode.getBoundingClientRect().bottom+sD.offsetHeight-ws[0];
868				if(pB > wn[0]){
869					mT = mT-(pB-wn[0]+2);
870				}
871				pT=mT+a.parentNode.getBoundingClientRect().bottom+ws[0];
872				if(pT<0){
873					mT=mT-pT+ws[0];
874				}
875			}
876		}
877		sD.style.marginTop=mT+'px';
878		if(tB.p7opt[4]===0){
879			if(mL==a.parentNode.offsetWidth){
880				sD.style.marginLeft='100%';
881			}
882			else if(mL==a.parentNode.offsetWidth*-1){
883				sD.style.marginLeft='-100%';
884			}
885			else{
886				sD.style.marginLeft=mL+'px';
887			}
888		}
889		else{
890			sD.style.marginLeft=mL+'px';
891		}
892		tU.p7animDuration=tB.pm3Duration;
893		tU.p7animType='linear';
894		if(op==3){
895			if(tB.p7opt[1]==1 && tU.pm3Level==2){
896				cmb=2;
897			}
898			else{
899				cmb=1;
900			}
901		}
902		if(op==1 || cmb==1){
903			tU.p7animProp='fontSize';
904			tU.p7animUnit='%';
905			tU.pm3DefProp='100%';
906			tU.p7animStartVal=5;
907			tU.p7animCurrentVal=tU.p7animStartVal;
908			tU.p7animFinishVal=100;
909			tU.style[tU.p7animProp]=tU.p7animCurrentVal+tU.p7animUnit;
910			tU.p7animStartTime=P7_PM3getTime(0);
911			tU.p7animDuration=160;
912			sD.style.visibility='visible';
913			if(!tU.p7PM3running){
914				tU.p7PM3running=true;
915tU.p7PM3anim=setInterval(function(){
916	P7_PM3animator(tU);
917}
918, p7PM3dy);
919}
920}
921else if(op==2 || cmb==2){
922tU.p7animProp='lineHeight';
923tU.p7animUnit='%';
924if(!tU.pm3DefProp){
925tU.pm3DefProp=P7_PM3getStyle(tU,'lineHeight','line-height');
926tU.pm3DefProp=(tU.pm3DefProp)?tU.pm3DefProp:'normal';
927}
928tU.p7animStartVal=5;
929tU.p7animCurrentVal=tU.p7animStartVal;
930tU.p7animFinishVal=100;
931tU.style[tU.p7animProp]=tU.p7animCurrentVal+tU.p7animUnit;
932tU.p7animStartTime=P7_PM3getTime(0);
933tU.p7animDuration=160;
934sD.style.visibility='visible';
935tU.p7cb=function(){
936this.style[this.p7animProp]=this.pm3DefProp;
937};
938if(!tU.p7PM3running){
939tU.p7PM3running=true;
940tU.p7PM3anim=setInterval(function(){
941	P7_PM3animator(tU,tU.p7cb);
942}
943, p7PM3dy);
944}
945}
946else if(op==4){
947tU.p7animProp='textIndent';
948tU.p7animUnit='px';
949tU.style.overflow='hidden';
950tU.p7animStartVal=-100;
951tU.p7animCurrentVal=tU.p7animStartVal;
952tU.p7animFinishVal=0;
953tU.style[tU.p7animProp]=tU.p7animCurrentVal+tU.p7animUnit;
954tU.p7animStartTime=P7_PM3getTime(0);
955tU.p7animDuration=160;
956sD.style.visibility='visible';
957tU.p7cb=function(){
958this.style.textIndent='0px';
959this.style.overflow='visible';
960};
961if(!tU.p7PM3running){
962tU.p7PM3running=true;
963tU.p7PM3anim=setInterval(function(){
964	P7_PM3animator(tU,tU.p7cb);
965}
966, p7PM3dy);
967}
968}
969else if(op==5){
970if(sD.p7PM3fadeRunning){
971clearInterval(sD.p7PM3fade);
972sD.p7PM3fadeRunning=false;
973}
974sD.p7animType='quad';
975sD.pm3StartFade=0;
976sD.pm3FinishFade=99;
977sD.pm3CurrentFade=sD.pm3StartFade;
978if(sD.filters){
979sD.style.filter='alpha(opacity='+sD.pm3CurrentFade+')';
980}
981else{
982sD.style.opacity=sD.pm3CurrentFade/100;
983}
984sD.style.visibility='visible';
985sD.pm3FadeStartTime=P7_PM3getTime(0);
986sD.pm3FadeDuration=400;
987if(!sD.p7PM3fadeRunning){
988sD.p7PM3fadeRunning=true;
989sD.p7PM3fade=setInterval(function(){
990	P7_PM3fade(sD);
991}
992, p7PM3dy);
993}
994}
995else if(op>5 && op<99){
996sD.style.visibility='visible';
997P7_PM3setClass(tU,'sub-open');
998}
999else if(op==99){
1000if(sD.p7PM3running){
1001clearInterval(sD.p7PM3anim);
1002sD.p7PM3running=false;
1003}
1004sD.style.overflow='hidden';
1005sD.p7animType='quad';
1006sD.p7animProp='height';
1007sD.p7animUnit='px';
1008sD.p7animStartVal=0;
1009sD.p7animCurrentVal=sD.p7animStartVal;
1010sD.p7animFinishVal=tU.offsetHeight;
1011sD.style[sD.p7animProp]=sD.p7animCurrentVal+sD.p7animUnit;
1012sD.p7animStartTime=P7_PM3getTime(0);
1013sD.p7animDuration=360;
1014sD.style.visibility='visible';
1015sD.p7cb=function(){
1016this.style.height='auto';
1017this.style.overflow="visible";
1018};
1019if(!sD.p7PM3running){
1020sD.p7PM3running=true;
1021sD.p7PM3anim=setInterval(function(){
1022	P7_PM3animator(sD,sD.p7cb);
1023}
1024, p7PM3dy);
1025}
1026}
1027else{
1028sD.style.visibility='visible';
1029}
1030}
1031}
1032function P7_PM3close(d,p){
1033	var i,a,tB,iM,op,sD,tU;
1034	a=document.getElementById(d);
1035	if(a.pm3State=='closed'){
1036		return;
1037	}
1038	tB=document.getElementById(a.pm3Menu);
1039	op=tB.p7opt[2];
1040	if(P7_PM3getStyle(a,'maxHeight','max-height')=='700777px'){
1041		if(op!==0){
1042			op=99;
1043		}
1044	}
1045	if(a.hasImg){
1046		iM=a.getElementsByTagName("IMG")[0];
1047		iM.p7state='closed';
1048		iM.src=iM.p7imgswap[0];
1049	}
1050	if(a.pm3Sub){
1051		sD=document.getElementById(a.pm3Sub);
1052		sD.pm3State='closed';
1053		a.pm3State='closed';
1054		P7_PM3changeClass(a,'trig_open','trig_closed');
1055		P7_PM3changeClass(a.parentNode,'trig_open','trig_closed');
1056		tU=sD.getElementsByTagName('UL')[0];
1057		tU.setAttribute('aria-hidden','true');
1058		if(op>0 && op<6){
1059			if(sD.p7PM3fadeRunning){
1060				clearInterval(sD.p7PM3fade);
1061				sD.p7PM3fadeRunning=false;
1062			}
1063			sD.p7animType='quad';
1064			sD.pm3StartFade=100;
1065			sD.pm3FinishFade=0;
1066			sD.pm3CurrentFade=sD.pm3StartFade;
1067			if(sD.filters){
1068				sD.style.filter='alpha(opacity='+sD.pm3CurrentFade+')';
1069			}
1070			else{
1071				sD.style.opacity=sD.pm3CurrentFade/100;
1072			}
1073			sD.pm3FadeStartTime=P7_PM3getTime(0);
1074			sD.pm3FadeDuration=220;
1075			if(!sD.p7PM3fadeRunning){
1076				sD.p7PM3fadeRunning=true;
1077sD.p7PM3fade=setInterval(function(){
1078	P7_PM3fade(sD);
1079}
1080, p7PM3dy);
1081}
1082}
1083else if(op>5 && op<99){
1084P7_PM3remClass(tU,'sub-open');
1085setTimeout(function(){
1086	P7_PM3closeAnim(sD);
1087}
1088,300);
1089}
1090else if(op==99){
1091if(sD.p7PM3running){
1092	clearInterval(sD.p7PM3anim);
1093	sD.p7PM3running=false;
1094}
1095sD.style.overflow='hidden';
1096sD.p7animType='quad';
1097sD.p7animProp='height';
1098sD.p7animUnit='px';
1099sD.p7animStartVal=sD.offsetHeight;
1100sD.p7animCurrentVal=sD.p7animStartVal;
1101sD.p7animFinishVal=0;
1102sD.style[sD.p7animProp]=sD.p7animCurrentVal+sD.p7animUnit;
1103sD.p7animStartTime=P7_PM3getTime(0);
1104sD.p7animDuration=360;
1105sD.p7cb=function(){
1106	this.style.height='0px';
1107	this.style.display='none';
1108	this.style.overflow="visible";
1109};
1110if(!sD.p7PM3running){
1111	sD.p7PM3running=true;
1112sD.p7PM3anim=setInterval(function(){
1113	P7_PM3animator(sD,sD.p7cb);
1114}
1115, p7PM3dy);
1116}
1117}
1118else{
1119sD.style.height='0px';
1120sD.style.display='none';
1121}
1122}
1123}
1124function P7_PM3closeAnim(el){
1125	el.style.display='none';
1126	el.style.height='0px';
1127}
1128function P7_PM3toggle(d,bp,p){
1129	var i,a,tD,pp;
1130	a=document.getElementById(d);
1131	pp=a.parentNode;
1132	while(pp){
1133		if(pp.tagName&&pp.tagName=='UL'){
1134			break;
1135		}
1136		pp=pp.parentNode;
1137	}
1138	tD=pp.getElementsByTagName("DIV");
1139	if(tD&&tD.length>0){
1140		for(i=tD.length-1;i>-1;i--){
1141			if(tD[i].pm3State&&tD[i].pm3State=='open'){
1142				if(bp==1 || (!bp && tD[i].pm3Trigger!=a)){
1143					P7_PM3close(tD[i].pm3Trigger.id);
1144				}
1145			}
1146		}
1147	}
1148}
1149function P7_PM3toggleTB(du){
1150	var i,tU,tD;
1151	tU=document.getElementById(du);
1152	if(tU){
1153		tD=tU.getElementsByTagName("DIV");
1154		if(tD&&tD.length>0){
1155			for(i=tD.length-1;i>-1;i--){
1156				if(tD[i].pm3State&&tD[i].pm3State=='open'){
1157					P7_PM3close(tD[i].pm3Trigger.id);
1158				}
1159			}
1160		}
1161	}
1162}
1163function P7_PM3shut(d){
1164	var i,tB,tD;
1165	if(d){
1166		tB=document.getElementById(d);
1167		if(tB && !tB.pm3Shut && tB.pm3UL){
1168			tD=tB.pm3UL.getElementsByTagName("DIV");
1169			if(tD&&tD.length){
1170				tB.pm3Shut=true;
1171				for(i=tD.length-1;i>-1;i--){
1172					if(tD[i].pm3State && tD[i].pm3State=='open'){
1173						P7_PM3close(tD[i].pm3Trigger.id);
1174					}
1175				}
1176			}
1177		}
1178	}
1179}
1180function P7_PM3shutall(bp){
1181	var i,tB;
1182	if(p7PM3ctl && p7PM3ctl.length){
1183		for(i=0;i<p7PM3ctl.length;i++){
1184			tB=document.getElementById(p7PM3ctl[i][0]);
1185			if(tB && (!bp || bp!=tB.id)){
1186				P7_PM3shut(tB.id);
1187			}
1188		}
1189	}
1190}
1191function P7_PM3body(evt){
1192	evt=(evt)?evt:event;
1193	var m=true,pp=(evt.fromElement)?evt.fromElement:evt.target;
1194	while(pp){
1195		if(pp && pp.id && typeof(pp.id)=='string' && pp.id.indexOf('p7PM3')===0){
1196			m=false;
1197			break;
1198		}
1199		if(pp && pp.tagName && (pp.tagName=='BODY'||pp.tagName=='HTML')){
1200			break;
1201		}
1202		pp=pp.parentNode;
1203	}
1204	if(m){
1205		P7_PM3shutall();
1206	}
1207}
1208function P7_PM3rsz(){
1209	var i,tB;
1210	if(p7PM3ctl && p7PM3ctl.length){
1211		for(i=0;i<p7PM3ctl.length;i++){
1212			tB=document.getElementById(p7PM3ctl[i][0]);
1213			if(tB){
1214				if(tB.p7opt && tB.p7opt[15]==1){
1215					if(P7_PM3getStyle(tB,'maxHeight','max-height')!='700777px'){
1216						P7_PM3shut(tB.id);
1217					}
1218				}
1219			}
1220		}
1221	}
1222	P7_PM3fixed();
1223}
1224function P7_PM3animator(el,cb,op){
1225	var i,tB,tA,tS,et,nv,m=false;
1226	et=P7_PM3getTime(el.p7animStartTime);
1227	if(et>=el.p7animDuration){
1228		et=el.p7animDuration;
1229		m=true;
1230	}
1231	if(el.p7animCurrentVal!=el.p7animFinishVal){
1232		nv=P7_PM3anim(el.p7animType, et, el.p7animStartVal, el.p7animFinishVal-el.p7animStartVal, el.p7animDuration);
1233		el.p7animCurrentVal=nv;
1234		el.style[el.p7animProp]=nv+el.p7animUnit;
1235	}
1236	if(m){
1237		el.p7PM3running=false;
1238		clearInterval(el.p7PM3anim);
1239		if(cb && typeof(cb) === "function"){
1240			cb.call(el);
1241		}
1242	}
1243}
1244function P7_PM3fade(el,tp){
1245	var i,tC,tA,op,et,cet,m=false;
1246	et=P7_PM3getTime(el.pm3FadeStartTime);
1247	if(et>=el.pm3FadeDuration){
1248		et=el.pm3FadeDuration;
1249		m=true;
1250	}
1251	if(el.pm3CurrentFade!=el.pm3FinishFade){
1252		op=P7_PM3anim(tp,et,el.pm3StartFade,el.pm3FinishFade-el.pm3StartFade,el.pm3FadeDuration);
1253		el.pm3CurrentFade=op;
1254		if(el.filters){
1255			el.style.filter='alpha(opacity='+el.pm3CurrentFade+')';
1256		}
1257		else{
1258			el.style.opacity=el.pm3CurrentFade/100;
1259		}
1260	}
1261	if(m){
1262		el.p7PM3fadeRunning=false;
1263		clearInterval(el.p7PM3fade);
1264		if(el.pm3FinishFade===0){
1265			el.style.height='0px';
1266			el.style.display='none';
1267		}
1268		if(el.filters){
1269			el.style.filter='';
1270		}
1271		else{
1272			el.style.opacity=1;
1273		}
1274	}
1275}
1276function P7_PM3anim(tp,t,b,c,d){
1277	if(tp=='quad'){
1278		if((t/=d/2)<1){
1279			return c/2*t*t+b;
1280		}
1281		else{
1282			return -c/2*((--t)*(t-2)-1)+b;
1283		}
1284	}
1285	else{
1286		return (c*(t/d))+b;
1287	}
1288}
1289function P7_PM3getTime(st){
1290	var d = new Date();
1291	return d.getTime() - st;
1292}
1293function P7_PM3bindPointer(el){
1294	if(navigator.maxTouchPoints){
1295		el.addEventListener('pointerover',P7_PM3setPointer,false);
1296		el.addEventListener('mouseleave',P7_PM3setPointer,false);
1297	}
1298	else if(navigator.msMaxTouchPoints){
1299		el.addEventListener('MSPointerOver',P7_PM3setPointer,false);
1300		el.addEventListener('mouseleave',P7_PM3setPointer,false);
1301	}
1302	else if(el.ontouchstart !== undefined){
1303		el.addEventListener('touchstart',P7_PM3setPointer,false);
1304	}
1305}
1306function P7_PM3setPointer(evt){
1307	if(evt.pointerType){
1308		if( evt.MSPOINTER_TYPE_TOUCH || evt.pointerType=='touch'){
1309			this.pm3Pointer=true;
1310		}
1311		else if( evt.MSPOINTER_TYPE_PEN || evt.pointerType=='pen'){
1312			this.pm3Pointer=true;
1313		}
1314		else{
1315			this.pm3Pointer=false;
1316		}
1317	}
1318	else if(evt.touches && evt.touches.length && evt.touches.length>0){
1319		this.pm3Pointer=true;
1320	}
1321	else{
1322		this.pm3Pointer=false;
1323	}
1324}
1325function P7_PM3mark(){
1326	p7PM3adv[p7PM3adv.length]=arguments;
1327}
1328function P7_PM3currentMark(el){
1329	var j,i,wH,cm=false,mt=['',1,'',''],op,r1,k,kk,tA,aU,pp,a,im,x;
1330	wH=window.location.href;
1331	if(el.p7opt[12]!=1){
1332		wH=wH.replace(window.location.search,'');
1333	}
1334	if(wH.charAt(wH.length-1)=='#'){
1335		wH=wH.substring(0,wH.length-1);
1336	}
1337	for(k=0;k<p7PM3adv.length;k++){
1338		if(p7PM3adv[k][0]&&p7PM3adv[k][0]==el.id){
1339			mt=p7PM3adv[k];
1340			cm=true;
1341			break;
1342		}
1343	}
1344	op=mt[1];
1345	if(op<1){
1346		return;
1347	}
1348	r1=/index\.[\S]*/i;
1349	k=-1;
1350	kk=-1;
1351	tA=el.getElementsByTagName("A");
1352	for(j=0;j<tA.length;j++){
1353		aU=tA[j].href.replace(r1,'');
1354		if(op>0){
1355			if(tA[j].href==wH||aU==wH){
1356				k=j;
1357				kk=-1;
1358			}
1359		}
1360		if(op==2){
1361			if(tA[j].firstChild){
1362				if(tA[j].firstChild.nodeValue==mt[2]){
1363					kk=j;
1364				}
1365			}
1366		}
1367		if(op==3&&tA[j].href.indexOf(mt[2])>-1){
1368			kk=j;
1369		}
1370		if(op==4){
1371			for(x=2;x<mt.length;x+=2){
1372				if(wH.indexOf(mt[x])>-1){
1373					if(tA[j].firstChild&&tA[j].firstChild.nodeValue){
1374						if(tA[j].firstChild.nodeValue==mt[x+1]){
1375							kk=j;
1376						}
1377					}
1378				}
1379			}
1380		}
1381	}
1382	k=(kk>k)?kk:k;
1383	if(k>-1){
1384		el.pmm3DefLink=tA[k];
1385		if(el.pm3Select){
1386			el.pm3Select.selectedIndex=tA[k].pm3OptIndex;
1387		}
1388		pp=tA[k].parentNode;
1389		while(pp){
1390			if(pp.tagName&&pp.tagName=='LI'){
1391				P7_PM3setClass(pp,'li_current_mark');
1392				a=pp.getElementsByTagName('A');
1393				if(a&&a[0]){
1394					P7_PM3setClass(a[0],'current_mark');
1395					if(a[0].hasImg){
1396						im=a[0].getElementsByTagName('IMG')[0];
1397						im.mark=true;
1398						im.src=im.p7imgswap[2];
1399					}
1400				}
1401			}
1402			else{
1403				if(pp==el){
1404					break;
1405				}
1406			}
1407			pp=pp.parentNode;
1408		}
1409	}
1410}
1411function P7_PM3setClass(ob,cl){
1412	if(ob){
1413		var cc,nc,r=/\s+/g;
1414		cc=ob.className;
1415		nc=cl;
1416		if(cc&&cc.length>0){
1417			if(cc.indexOf(cl)==-1){
1418				nc=cc+' '+cl;
1419			}
1420			else{
1421				nc=cc;
1422			}
1423		}
1424		nc=nc.replace(r,' ');
1425		ob.className=nc;
1426	}
1427}
1428function P7_PM3remClass(ob,cl){
1429	if(ob){
1430		var cc,nc;
1431		cc=ob.className;
1432		if(cc&&cc.indexOf(cl>-1)){
1433			nc=cc.replace(cl,'');
1434			nc=nc.replace(/\s+/g,' ');
1435			nc=nc.replace(/\s$/,'');
1436			nc=nc.replace(/^\s/,'');
1437			ob.className=nc;
1438		}
1439	}
1440}
1441function P7_PM3changeClass(ob,clf,clt){
1442	if(ob){
1443		var cc,nc;
1444		cc=ob.className;
1445		if(cc&&cc.indexOf(clf>-1)){
1446			nc=cc.replace(clf,clt);
1447			ob.className=nc;
1448		}
1449		else{
1450			P7_PM3setClass(ob,clt);
1451		}
1452	}
1453}
1454function P7_PM3getStyle(el,s1,s2){
1455	var s='';
1456	if(el.currentStyle){
1457		s=el.currentStyle[s1];
1458	}
1459	else{
1460		s=document.defaultView.getComputedStyle(el,"").getPropertyValue(s2);
1461	}
1462	return s;
1463}
1464function P7_PM3getWinDims(){
1465	var h,w,st;
1466	if(document.documentElement&&document.documentElement.clientHeight){
1467		w=document.documentElement.clientWidth;
1468		h=document.documentElement.clientHeight;
1469	}
1470	else if(window.innerHeight){
1471		if(document.documentElement.clientWidth){
1472			w=document.documentElement.clientWidth;
1473		}
1474		else{
1475			w=window.innerWidth;
1476		}
1477		h=window.innerHeight;
1478	}
1479	else if(document.body){
1480		w=document.body.clientWidth;
1481		h=document.body.clientHeight;
1482	}
1483	return [h,w];
1484}
1485function P7_PM3getWinScroll(){
1486	var st=0,sl=0;
1487	st=document.body.parentNode.scrollTop;
1488	if(!st){
1489		st=document.body.scrollTop;
1490		if(!st){
1491			st=window.scrollY?window.scrollY:0;
1492		}
1493	}
1494	sl=document.body.parentNode.scrollLeft;
1495	if(!sl){
1496		sl=document.body.scrollLeft;
1497		if(sl){
1498			sl=window.scrollX?window.scrollX:0;
1499		}
1500	}
1501	return [st,sl];
1502}
1503function P7_PM3getIEver(){
1504	var j,v=-1,nv,m=false;
1505	nv=navigator.userAgent.toLowerCase();
1506	j=nv.indexOf("msie");
1507	if(j>-1){
1508		v=parseFloat(nv.substring(j+4,j+8));
1509		if(document.documentMode){
1510			v=document.documentMode;
1511		}
1512	}
1513	return v;
1514}
1515function P7_PM3isMobile(){
1516	var i,m=false,ua=navigator.userAgent.toLowerCase();
1517	var dv=['iphone','ipad','ipod','touch','android','windows ce','iemobile','windowsce','blackberry','palm','symbian','series60',
1518	'armv','arm7tdmi','opera mobi','opera mini','polaris','kindle','midp','mmp/','portalmmm','smm-mms','sonyericsson'];
1519	for(i=0;i<dv.length;i++){
1520		if(ua.search(dv[i])>-1){
1521			m=dv[i];
1522			break;
1523		}
1524	}
1525	return m;
1526}
1527function P7_PM3getCSSPre(){
1528	var i,dV,pre=['transition','WebkitTransition'];
1529	var c='none',cssPre=['','-webkit-'];
1530	dV=document.createElement('div');
1531	for(i=0;i<pre.length;i++){
1532		if(dV.style[pre[i]]!==undefined){
1533			c=cssPre[i];
1534			break;
1535		}
1536	}
1537	return c;
1538}
1539function P7_PM3addSheet(sh){
1540	var h,hd;
1541	hd=document.head || document.getElementsByTagName('head')[0];
1542	h=document.createElement('style');
1543	h.type='text/css';
1544	if(h.styleSheet){
1545		h.styleSheet.cssText=sh;
1546	}
1547	else{
1548		h.appendChild(document.createTextNode(sh));
1549	}
1550	hd.appendChild(h);
1551}
1552function P7_PM3buildSel(sl,ob){
1553	var i,j,k,tx,tA,tU,indent,el;
1554	if(ob.hasChildNodes){
1555		for(i=0;i<ob.childNodes.length;i++){
1556			if(ob.childNodes[i].nodeName && ob.childNodes[i].nodeName=='LI'){
1557				tA=ob.childNodes[i].getElementsByTagName('A');
1558				if(tA && tA[0]){
1559					k=sl.options.length;
1560					indent=' ';
1561					for(j=1;j<tA[0].pm3Level;j++){
1562						indent+=p7PM3indent;
1563					}
1564					el=document.createElement('option');
1565					el.text=indent+tA[0].childNodes[0].nodeValue;
1566					tA[0].pm3OptItem=el;
1567					tA[0].pm3OptIndex=k;
1568					el.pm3Link=tA[0];
1569					sl.add(el,k);
1570					tU=tA[0].parentNode.getElementsByTagName("UL");
1571					if(tU && tU[0]){
1572						P7_PM3buildSel(sl,tU[0]);
1573					}
1574				}
1575			}
1576		}
1577	}
1578}
1579function P7_PM3supTouch(el){
1580	if(el.addEventListener){
1581el.addEventListener("selectstart", function(e){
1582	e.preventDefault();
1583}
1584, false);
1585el.addEventListener("MSHoldVisual", function(e){
1586	e.preventDefault();
1587}
1588, false);
1589el.addEventListener("contextmenu", function(e){
1590	e.preventDefault();
1591}
1592, false);
1593}
1594}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.