var p7PMMover="_over";var p7PMMopen="_overdown";var p7PMMmark="_down";var p7PMMi=false,p7PMMa=false,p7PMMctl=[],p7PMMadv=[];function P7_PMMset(){var D,E,C,F,A,B;if(!document.getElementById){return }C=".p7PMM div {position:absolute;display:none}\n";if(document.styleSheets){E='\n<style type="text/css">\n'+C+"\n</style>";document.write(E)}else{E=document.createElement("style");E.type="text/css";E.appendChild(document.createTextNode(C));F=document.getElementsByTagName("head");F[0].appendChild(E)}}P7_PMMset();function P7_PMMaddLoad(){if(window.addEventListener){window.addEventListener("load",P7_PMMinit,false);window.addEventListener("unload",P7_PMMbb,false)}else{if(window.attachEvent){window.attachEvent("onload",P7_PMMinit)}else{window.onload=P7_PMMinit}}}P7_PMMaddLoad();function P7_PMMbb(){return }function P7_PMMop(){if(!document.getElementById){return }p7PMMctl[p7PMMctl.length]=arguments}function P7_PMMinit(){var X,V,Y,S,Z,F,Q,I,W,A,J,T,a=1,K,G,P=0,B,b,H,O;if(p7PMMi){return }p7PMMi=true;document.p7PMMpreload=[];for(S=0;S<p7PMMctl.length;S++){Z=document.getElementById(p7PMMctl[S][0]);if(Z){Z.p7opt=p7PMMctl[S];if(navigator.appVersion.indexOf("MSIE 5")>-1){Z.p7opt[2]=0}Z.p7PMMtmr=null;tD=Z.getElementsByTagName("DIV");for(X=0;X<tD.length;X++){tD[X].setAttribute("id",Z.id+"d"+(X+2));tD[X].p7state="closed";tD[X].pmmmenu=Z.id}Q=Z.getElementsByTagName("UL");for(X=0;X<Q.length;X++){Q[X].setAttribute("id",Z.id+"u"+(X+1));I=1;W=Q[X].parentNode;while(W){if(W.id&&W.id==Z.id){break}if(W.tagName&&W.tagName=="UL"){I++}W=W.parentNode}Q[X].pmmlevel=I;A="level_"+I;P7_PMMsetClass(Q[X],A);tN=Q[X].childNodes;if(tN){J=-1;Y=0;for(V=0;V<tN.length;V++){if(tN[V].tagName&&tN[V].tagName=="LI"){Y++;F=tN[V].getElementsByTagName("A")[0];if(J<0){P7_PMMsetClass(F,"pmmfirst");P7_PMMsetClass(tN[V],"pmmfirst")}J=V;F.setAttribute("id",Z.id+"a"+(a));a++;F.pmmlevel=I;F.pmmdiv=Q[X].parentNode.id;F.pmmmenu=Z.id;if(X==0){P7_PMMsetClass(tN[V],("root_"+Y))}T=tN[V].getElementsByTagName("UL");if(T&&T.length>0){F.pmmsub=T[0].parentNode.id;F.onmousedown=function(){P7_PMMtrigclick(this)};if(Z.p7opt[13]==1&&I==1){P7_PMMsetClass(F,"trig_closed_up");P7_PMMsetClass(F.parentNode,"trig_closed_up")}else{if(Z.p7opt[5]==1){P7_PMMsetClass(F,"trig_closed_left");P7_PMMsetClass(F.parentNode,"trig_closed_left")}else{P7_PMMsetClass(F,"trig_closed");P7_PMMsetClass(F.parentNode,"trig_closed")}}}else{F.pmmsub=false}F.onmouseover=function(){P7_PMMtrig(this)};F.hasImg=false;var R,L,N,M,U,E,D,C;iM=F.getElementsByTagName("IMG");if(iM&&iM[0]){R=iM[0].getAttribute("src");U=Z.p7opt[9];iM[0].pmmswap=U;L=R.lastIndexOf(".");N=R.substring(0,L);M="."+R.substring(L+1);E=N+p7PMMover+M;D=N+p7PMMopen+M;C=N+p7PMMmark+M;if(U==1){iM[0].p7imgswap=[R,E,E,E];P7_PMMpreloader(E)}else{if(U==2){iM[0].p7imgswap=[R,E,D,D];P7_PMMpreloader(E,D)}else{if(U==3){iM[0].p7imgswap=[R,E,D,C];P7_PMMpreloader(E,D,C)}else{iM[0].p7imgswap=[R,R,R,R]}}}iM[0].p7state="closed";iM[0].mark=false;iM[0].rollover=Z.p7opt[10];if(U>0){F.hasImg=true;iM[0].onmouseover=function(){P7_PMMimovr(this)};iM[0].onmouseout=function(){P7_PMMimout(this)}}}}}if(J>0){P7_PMMsetClass(F,"pmmlast");P7_PMMsetClass(tN[J],"pmmlast")}}}if(Z.p7opt[6]==1){b=Z.offsetWidth;O=Z.offsetHeight;H=P7_PMMgetPropValue(Q[0],"position","position");Z.style.height=O+"px";Q[0].style.position="absolute";P=Q[0].offsetWidth;Q[0].style.position=H;Z.style.height="auto";P=(P>=b)?b:P;Q[0].style.marginLeft=((b-P)/2)+"px"}Z.onmouseout=function(f){var g,e,d,h,c=true;f=(f)?f:((event)?event:null);if(f){e=(f.relatedTarget)?f.relatedTarget:f.toElement;if(e){d=e.parentNode;while(d){if(d&&d.id&&d.id.indexOf(this.id)==0){c=false;break}d=d.parentNode}}if(c){if(this.p7PMMtmr){clearTimeout(this.p7PMMtmr)}if(this.p7opt[8]==1){this.p7PMMtmr=setTimeout("P7_PMMshut('"+this.id+"')",360)}else{P7_PMMshut(this.id)}}}};if(Z.p7opt[11]==1){P7_PMMcurrentMark(Z)}}}p7PMMa=true}function P7_PMMshut(D){var B,A,C;A=document.getElementById(D);C=A.getElementsByTagName("DIV");for(B=C.length-1;B>-1;B--){if(C[B].p7state&&C[B].p7state=="open"){P7_PMMclose(C[B])}}}function P7_PMMpreloader(){var B,A;for(B=0;B<arguments.length;B++){A=document.p7PMMpreload.length;document.p7PMMpreload[A]=new Image();document.p7PMMpreload[A].src=arguments[B]}}function P7_PMMimovr(C){var A=false,B=C.parentNode,D=C.rollover;if(C.mark){A=(D>1)?true:false}else{if(C.p7state=="open"){A=(D==1||D==3)?true:false}else{A=true}}if(A){C.src=C.p7imgswap[1]}}function P7_PMMimout(B){var A=B.parentNode,C=B.rollover;if(B.mark){if(B.p7state=="open"){B.src=B.p7imgswap[2]}else{B.src=B.p7imgswap[3]}}else{if(B.p7state=="open"){if(C==1||C==3){B.src=B.p7imgswap[2]}}else{B.src=B.p7imgswap[0]}}}function P7_PMMtrig(A){var B;B=document.getElementById(A.pmmmenu);if(B.p7PMMtmr){clearTimeout(B.p7PMMtmr)}if(A.pmmsub){if(B.p7opt[8]==1){B.p7PMMtmr=setTimeout("P7_PMMopen('"+A.id+"')",160)}else{P7_PMMopen(A.id)}}else{if(B.p7opt[8]==1){B.p7PMMtmr=setTimeout("P7_PMMtoggle('"+A.id+"')",160)}else{P7_PMMtoggle(A.id)}}}function P7_PMMopen(X,Y){var S,E,W,C,J,T,H,L,R,G=0,N=0,I,B,Q,V,K,A,O,U,D;E=document.getElementById(X);if(!Y){P7_PMMtoggle(X)}if(E.p7state=="open"){return }E.p7state="open";if(E.hasImg){D=E.getElementsByTagName("IMG")[0];D.p7state="open";D.src=D.p7imgswap[2]}E.className=E.className.replace("trig_closed","trig_open");E.parentNode.className=E.parentNode.className.replace("trig_closed","trig_open");W=document.getElementById(E.pmmmenu);C=document.getElementById(E.pmmsub);C.p7trigger=E.id;C.p7state="open";C.style.visibility="hidden";C.style.display="block";C.style.height="auto";C.style.width="auto";J=C.offsetWidth;T=C.offsetHeight;K=E.parentNode.offsetWidth;H=(E.parentNode.offsetHeight*-1)+W.p7opt[3];if(W.p7opt[5]==1){L=(J*-1)-W.p7opt[4]}else{L=E.offsetWidth+W.p7opt[4]}if(W.p7opt[1]==1&&E.pmmlevel==1){H=0;L=0;if(W.p7opt[7]==1){L=((J-K)/2)*-1}else{if(W.p7opt[7]==2){if(E.className.indexOf("pmmlast")>-1){L=(J-K)*-1}else{if(E.className.indexOf("pmmfirst")==-1){L=((J-K)/2)*-1}else{L=0}}}}}if(W.p7opt[13]==1){H-=T;if(W.p7opt[1]==1&&E.pmmlevel==1){H-=E.offsetHeight}}I=P7_PMMwin();R=E;while(R){G+=(R.offsetLeft)?R.offsetLeft:0;N+=(R.offsetTop)?R.offsetTop:0;if(window.opera){if(R.nodeName=="BODY"){N-=(R.offsetTop)?R.offsetTop:0}}R=R.offsetParent}A=document.body.parentNode.scrollTop;if(!A){A=document.body.scrollTop;if(!A){A=window.scrollY?window.scrollY:0}}N-=A;A=document.body.parentNode.scrollLeft;if(!A){A=document.body.scrollLeft;if(A){A=window.scrollX?window.scrollX:0}}G-=A;Q=G+L+J;B=N+H+T+E.offsetHeight;if(Q>I[1]){if(W.p7opt[1]==1&&E.pmmlevel==1){L=L-(Q-I[1]+2)}else{L=J*-1}}if(B>I[0]){H=H-(B-I[0]+2)}O=N+H+E.offsetHeight;if(O<0){H=H-O+2}U=G+L;if(U<0){L=L-U+2}C.style.marginTop=H+"px";C.style.marginLeft=L+"px";if(p7PMMa&&W.p7opt[2]>0){var M,F,P=C.getElementsByTagName("UL")[0];F=P.getElementsByTagName("A")[0];if(W.p7opt[2]==1){P7_PMManimA(P.id,5)}else{if(W.p7opt[2]==2){M=P7_PMMgetPropValue(F,"lineHeight","line-height");M=(M)?M:"normal";P7_PMManimB(P.id,5,M)}else{if(W.p7opt[2]==3){if(W.p7opt[1]==1&&P.pmmlevel==2){M=P7_PMMgetPropValue(F,"lineHeight","line-height");M=(M)?M:"normal";P7_PMManimB(P.id,5,M)}else{P7_PMManimA(P.id,5)}}else{if(W.p7opt[2]==4){P7_PMManimC(P.id,-100)}}}}}else{C.style.visibility="visible"}}function P7_PMMtoggle(G,E){var D,C,B,F,A;C=document.getElementById(G);A=C.parentNode;while(A){if(A.tagName&&A.tagName=="UL"){break}A=A.parentNode}F=A.getElementsByTagName("DIV");if(F&&F.length>0){for(D=F.length-1;D>-1;D--){if(F[D].p7state&&F[D].p7state=="open"){if(!E&&F[D].p7trigger!=C.id){P7_PMMclose(F[D])}}}}}function P7_PMMclose(F,E){var C,D,B,A;C=document.getElementById(F.p7trigger);C.p7state="closed";F.p7state="closed";C.className=C.className.replace("trig_open","trig_closed");C.parentNode.className=C.parentNode.className.replace("trig_open","trig_closed");if(C.hasImg){iM=C.getElementsByTagName("IMG")[0];iM.p7state="closed";if(iM.mark){iM.src=iM.p7imgswap[3]}else{iM.src=iM.p7imgswap[0]}}F.style.display="none"}function P7_PMMtrigclick(B){var D,E,F,A,C;E=B.getAttribute("href");if(E.charAt(E.length-1)=="#"||E.search(/javas/i)==0){F=document.getElementById(B.pmmsub);
A=F.getElementsByTagName("A");for(D=0;D<A.length;D++){C=A[D].getAttribute("href");if(C.charAt(C.length-1)!="#"&&C.search(/javas/i)!=0){B.setAttribute("href",C);break}}}}function P7_PMMmark(){p7PMMadv[p7PMMadv.length]=arguments}function P7_PMMcurrentMark(D){var G,H,F,I,O=false,A=["",1,"",""],J,E,F,B,N,K,C,M,L;I=window.location.href;if(D.p7opt[12!=1]){I=I.replace(window.location.search,"")}if(I.charAt(I.length-1)=="#"){I=I.substring(0,I.length-1)}for(F=0;F<p7PMMadv.length;F++){if(p7PMMadv[F][0]&&p7PMMadv[F][0]==D.id){A=p7PMMadv[F];O=true;break}}J=A[1];if(J<1){return }E=/index\.[\S]*/i;F=-1,B=-1;N=D.getElementsByTagName("A");for(G=0;G<N.length;G++){K=N[G].href.replace(E,"");if(J>0){if(N[G].href==I||K==I){F=G;B=-1}}if(J==2){if(N[G].firstChild){if(N[G].firstChild.nodeValue==A[2]){B=G}}}if(J==3&&N[G].href.indexOf(A[2])>-1){B=G}if(J==4){for(x=2;x<A.length;x+=2){if(I.indexOf(A[x])>-1){if(N[G].firstChild&&N[G].firstChild.nodeValue){if(N[G].firstChild.nodeValue==A[x+1]){B=G}}}}}}F=(B>F)?B:F;if(F>-1){C=N[F].parentNode;while(C){if(C.tagName&&C.tagName=="LI"){P7_PMMsetClass(C,"li_current_mark");M=C.getElementsByTagName("A");if(M&&M[0]){P7_PMMsetClass(M[0],"current_mark");if(M[0].hasImg){L=M[0].getElementsByTagName("IMG")[0];L.mark=true;L.src=L.p7imgswap[3]}}}else{if(C==D){break}}C=C.parentNode}}}function P7_PMManimA(G,C,F){var D,E=100,B=10,A=10;D=document.getElementById(G);D.style.fontSize=C+"%";if(!F){D.style.visibility="visible";D.parentNode.style.visibility="visible"}if(C!=E){C+=B;C=(C>=E)?E:C;setTimeout("P7_PMManimA('"+G+"',"+C+",1)",A)}}function P7_PMManimB(H,C,E,G){var D,F=120,B=10,A=10;D=document.getElementById(H);D.style.lineHeight=C+"%";if(!G){D.style.visibility="visible";D.parentNode.style.visibility="visible"}if(C!=F){C+=B;C=(C>=F)?F:C;setTimeout("P7_PMManimB('"+H+"',"+C+",'"+E+"',1)",A)}else{D.style.lineHeight=E}}function P7_PMManimC(G,C,F){var D,E=0,B=8,A=10;D=document.getElementById(G);D.style.textIndent=C+"px";if(!F){D.style.visibility="visible";D.parentNode.style.visibility="visible"}if(C!=E){C+=B;C=(C>=E)?E:C;setTimeout("P7_PMManimC('"+G+"',"+C+",1)",A)}}function P7_PMMsetClass(B,A){var E,D,C=/\s+/g;E=B.className;D=A;if(E&&E.length>0){D=E+" "+A}D=D.replace(C," ");B.className=D}function P7_PMMremClass(B,A){var E,D,C=/\s+/g;E=B.className;if(E&&E.indexOf(A>-1)){D=E.replace(A,"");D=D.replace(C," ");B.className=D}}function P7_PMMwin(){var B,A;if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientWidth;B=document.documentElement.clientHeight}else{if(window.innerHeight){if(document.documentElement.clientWidth){A=document.documentElement.clientWidth}else{A=window.innerWidth}B=window.innerHeight}else{if(document.body){A=document.body.clientWidth;B=document.body.clientHeight}}}return[B,A]}function P7_PMMgetPropValue(ob,prop,prop2){var h,v=null;if(ob){if(ob.currentStyle){v=eval("ob.currentStyle."+prop)}else{if(document.defaultView.getComputedStyle(ob,"")){v=document.defaultView.getComputedStyle(ob,"").getPropertyValue(prop2)}else{v=eval("ob.style."+prop)}}}return v};
