var p7MBi=false,p7MBa=false,p7MBctl=[],p7MBadv=[];function P7_MBaddLoad(){if(window.addEventListener){window.addEventListener("load",P7_MBinit,false)}else{if(window.attachEvent){window.attachEvent("onload",P7_MBinit)}else{window.onload=P7_MBinit}}}P7_MBaddLoad();function P7_MBop(){if(!document.getElementById){return }p7MBctl[p7MBctl.length]=arguments}function P7_MBinit(){var C,B,D,A;if(p7MBi){return }p7MBi=true;for(B=0;B<p7MBctl.length;B++){D=document.getElementById(p7MBctl[B][0]);if(D){D.p7opt=p7MBctl[B];A=D.getElementsByTagName("a");for(C=0;C<A.length;C++){A[C].setAttribute("id",D.id+"_"+(C+1));A[C].parentNode.setAttribute("id",D.id+"p_"+(C+1));A[C].p7mb=D.id;if(D.p7opt[1]==1){A[C].style.backgroundPosition=D.p7opt[5]+"px "+D.p7opt[3]+"px"}A[C].onmouseover=function(){P7_MBover(this)};A[C].onmouseout=function(){P7_MBout(this)};if(D.p7opt[2]==1){A[C].onmousedown=function(){P7_MBdown(this.id)}}}P7_MBsetFL(A[0].parentNode.parentNode);if(D.p7opt[9]==1){P7_MBopen(D)}}}p7MBa=true}function P7_MBover(B){var C,D,E,A;if(!p7MBa){return }D=document.getElementById(B.p7mb);E=D.p7opt;A=B.className;if(E[10]!=1&&A&&A.indexOf("p7MBmark")>-1){return }if(E[1]){if(B.p7bga){clearTimeout(B.p7bga)}P7_MBslideBG(B,1)}else{B.style.backgroundPosition=E[6]+"px "+E[4]+"px"}}function P7_MBout(B){var C,D,E,A;if(!p7MBa){return }D=document.getElementById(B.p7mb);E=D.p7opt;A=B.className;if(E[10]!=1&&A&&A.indexOf("p7MBmark")>-1){return }if(E[1]){if(B.p7bga){clearTimeout(B.p7bga)}P7_MBslideBG(B,0)}else{B.style.backgroundPosition=E[5]+"px "+E[3]+"px"}}function P7_MBdown(E){var C,B,D,A;B=document.getElementById(E);if(B){D=document.getElementById(B.p7mb);A=D.getElementsByTagName("a");for(C=0;C<A.length;C++){P7_MBremClass(A[C],"p7MBmark")}P7_MBsetClass(B,"p7MBmark")}}function P7_MBmark(){p7MBadv[p7MBadv.length]=arguments}function P7_MBopen(C){var F,G,E,H,L=false,A=["",1,"",""],I,D,E,B,K,J;H=window.location.href;H=H.replace(window.location.search,"");for(E=0;E<p7MBadv.length;E++){if(p7MBadv[E][0]&&p7MBadv[E][0]==C.id){A=p7MBadv[E];L=true;break}}I=A[1];if(I<1){return }D=/index\.[\S]*/i;E=-1,B=-1;K=C.getElementsByTagName("A");for(F=0;F<K.length;F++){J=K[F].href.replace(D,"");if(I>0){if(K[F].href==H||J==H){E=F;B=-1;break}}if(I==2){if(K[F].firstChild){if(K[F].firstChild.nodeValue==A[2]){B=F}}}if(I==3&&K[F].href.indexOf(A[2])>-1){B=F}if(I==4){for(x=2;x<A.length;x+=2){if(H.indexOf(A[x])>-1){if(K[F].firstChild&&K[F].firstChild.nodeValue){if(K[F].firstChild.nodeValue==A[x+1]){B=F}}}}}}E=(B>E)?B:E;if(E>-1){P7_MBdown(K[E].id)}}function P7_MBslideBG(C,L){var E,J,G,K,O,I,A,F,B,D,N,H,M=10;J=document.getElementById(C.p7mb);G=J.p7opt;K=P7_MBgetBG(C);if(L==1){O=G[6];I=G[4];A=G[7]}else{O=G[5];I=G[3];A=G[8]}F=Math.abs(Math.abs(O)-Math.abs(K[0]));B=Math.abs(Math.abs(I)-Math.abs(K[1]));D=(F>=B)?F:B;N=A/M;H=parseInt(D/N);H=(H<1)?1:H;P7_MBglideBG(C.id,K[0],O,K[1],I,H,M)}function P7_MBglideBG(B,I,J,H,F,E,K){var C,G,A,D=false;C=document.getElementById(B);if(H!=F){if(F<H){G=H-E;G=(G<=F)?F:G}else{G=H+E;G=(G>=F)?F:G}D=true}else{G=H}if(I!=J){if(J<I){A=I-E;A=(A<=J)?J:A}else{A=I+E;A=(A>=J)?J:A}D=true}else{A=I}if(D){if(C.p7bga){clearTimeout(C.p7bga)}C.style.backgroundPosition=A+"px "+G+"px";C.p7bga=setTimeout("P7_MBglideBG('"+C.id+"',"+A+","+J+","+G+","+F+","+E+","+K+")",K)}}function P7_MBgetBG(D){var C,G,B,F,A=0,E=0;C=D.style.backgroundPosition;if(!C){if(D.currentStyle){C=D.currentStyle.backgroundPosition;if(!C){B=D.currentStyle.backgroundPositionX;F=D.currentStyle.backgroundPositionY;C=B+" "+F}}else{if(document.defaultView.getComputedStyle(D,"")){C=document.defaultView.getComputedStyle(D,"").getPropertyValue("background-position")}}}G=C.split(" ");if(G&&G[0]){A=parseInt(G[0]);if(G[1]){E=parseInt(G[1])}}A=(A)?A:0;E=(E)?E:0;return[A,E]}function P7_MBsetFL(D){var C,E,B,A;E=P7_MBgetFL(D,"LI");if(E[0]>-1){B=D.childNodes[E[0]];P7_MBsetClass(B,"p7MBfirst");A=B.getElementsByTagName("a");if(A&&A[0]){P7_MBsetClass(A[0],"p7MBfirst")}}if(E[1]>-1){B=D.childNodes[E[1]];P7_MBsetClass(B,"p7MBlast");A=B.getElementsByTagName("a");if(A&&A[0]){P7_MBsetClass(A[0],"p7MBlast")}}}function P7_MBgetFL(E,F){var D,G,B=-1,A=-1,C=[];G=E.childNodes;for(D=0;D<G.length;D++){if(G[D].nodeName==F){if(B<0){B=D}else{A=D}}}C[0]=B;C[1]=A;return C}function P7_MBsetClass(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_MBremClass(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}};