var p7GP=false,p7GPMi=false,p7GPMctl=[],p7gpmA=navigator.userAgent.toLowerCase();function P7_setGPM(){var A,B;if(!document.getElementById){return }B='\n<style type="text/css">\n';B+=".p7GPW {overflow:hidden;}\n";B+=".p7GPcontentwrapper {display:none}\n";B+=".p7GPsidebar {display:none}\n";for(A=1;A<21;A++){B+="#p7GPc"+A+"_1 {display:block;}\n"}B+="</style>";document.write(B)}P7_setGPM();function P7_GPMaddLoad(){if(!document.getElementById){return }if(window.addEventListener){window.addEventListener("load",P7_initGPM,false)}else{if(window.attachEvent){window.attachEvent("onload",P7_initGPM)}else{if(typeof window.onload=="function"){var A=onload;window.onload=function(){A();P7_initGPM()}}else{window.onload=P7_initGPM}}}p7GPMi=true}function P7_opGPM(){var E="",C,G,H,A,F,I,D,B;if(!document.getElementById){return }p7GPMctl[p7GPMctl.length]=arguments;if(!p7GPMi){P7_GPMaddLoad()}}function P7_initGPM(){var D,C,G,I,F,H,B,A,E;for(D=0;D<p7GPMctl.length;D++){G=document.getElementById(p7GPMctl[D][0]);if(G){G.p7opt=p7GPMctl[D];if(navigator.appVersion.indexOf("MSIE 5")>-1){G.p7opt[2]=0}I=G.id.replace("GP_","GPt_");F=document.getElementById(G.id.replace("GP_","GPt_"));if(F){H=F.getElementsByTagName("A");B="p7GPtrg";for(C=0;C<H.length;C++){if(H[C].id&&H[C].id.indexOf(B)===0){H[C].onclick=function(){return P7_GPMshow(this)};H[C].p7state="closed";H[C].p7GPMpr=G.id;H[C].p7GPMtr=F.id;A=document.getElementById(H[C].id.replace("trg","c"));if(A){H[C].p7GPMc=A.id}else{H[C].p7GPMc=false}}}E="p7GPtrg"+H[0].id.slice(7,8)+"_"+G.p7opt[1];P7_GPMtrig(E);if(G.p7opt[3]==1){P7_GPMmark(G.id)}}}}P7_GPMurl();p7GP=true}function P7_GPMtrig(B){var A=document.getElementById(B);if(A){P7_GPMshow(A)}}function P7_GPMshow(M){var I,H=true,C,B,N,A,G,K,E,D=-1,L,F,J;J=window.location.href;if(!M.p7GPMc){M.className="p7GPcurrentmark";if(J==M.href){return false}else{return true}}C=document.getElementById(M.p7GPMpr);B=document.getElementById(M.p7GPMtr);K=document.getElementById(M.p7GPMtr.replace("t","w"));if(C.p7opt[4]==1&&p7GP){window.location.hash="#gpm"+M.id.substring(7)}N=B.getElementsByTagName("A");if(C.p7opt[2]>0){if(K.p7gpmG){clearTimeout(K.p7gpmG)}}A=K.offsetHeight;K.style.height=A+"px";for(I=0;I<N.length;I++){if(N[I].p7GPMtr){if(N[I].p7GPMc){E=document.getElementById(N[I].p7GPMc)}if(N[I]==M){N[I].className="down";N[I].p7state="open";if(N[I].p7GPMc){H=false;E.style.visiblity="hidden";E.style.display="block";if(C.p7opt[2]==3&&p7GP){L=0.05;F=E.id;if((navigator.appVersion.indexOf("MSIE")>-1)){E.style.zoom="100%";E.style.filter="alpha(opacity="+L*100+")"}else{E.style.opacity=L}}E.style.visiblity="visible";if(C.p7opt[5]==1){P7_GPMside(M,E)}if(C.p7opt[2]>0&&p7GP){D=E.offsetHeight}else{K.style.height="auto"}}}else{if(N[I].p7GPMc){N[I].className="";N[I].p7state="closed";E.style.display="none"}}}}if(D>-1){if(C.p7opt[2]==3&&p7GP){K.style.height="auto";P7_GPMfadeIn(F,0.1)}else{P7_GPMglide(K.id,A,D,C.p7opt[2])}}return H}function P7_GPMside(A,E){var B,D,F,C;D=E.getElementsByTagName("DIV");if(D&&D.length>0){for(B=0;B<D.length;B++){if(D[B].className&&D[B].className=="p7GPsidebar"){F=A.p7GPMpr.replace("p7GP","p7GPsb");C=document.getElementById(F);if(C){C.innerHTML=D[B].innerHTML}break}}}}function P7_GPMph(E){var B,A,D,C;E.style.height="auto";C=E.offsetHeight;E.style.height=C+"px";A=E.offsetHeight;if(C!=A){A=(C-(A-C))}E.style.height="auto";return A}function P7_GPMglide(L,A,C,B){var K,F,H,E,I,G,M=10,D=10,J=0.15;H=document.getElementById(L);F=(A<=C)?0:1;if(B==2){G=Math.abs(parseInt(Math.abs(C)-Math.abs(A),10));D=(G*J<1)?1:G*J}D=(F==1)?D*-1:D;H.style.height=A+"px";if(A==C){H.style.height="auto"}else{A+=D;if(F===0){A=(A>=C)?C:A}else{A=(A<=C)?C:A}H.p7gpmG=setTimeout("P7_GPMglide('"+L+"',"+A+","+C+","+B+")",M)}}function P7_GPMfadeIn(G,F){var B,A=30,C=0.99,D,E=document.getElementById(G);D=(window.opera)?0.15:0.1;F=(F>=C)?C:F;if((navigator.appVersion.indexOf("MSIE")>-1)){E.style.filter="alpha(opacity="+F*100+")"}else{E.style.opacity=F}if(F<C){F+=D;E.p7ssmfade=setTimeout("P7_GPMfadeIn('"+G+"',"+F+")",A)}else{if(E.style.filter){E.style.removeAttribute("filter")}}}function P7_GPMmark(F){var E,B,A,C,D;B=window.location.href;D=window.location.hash;if(D=="#"||D.indexOf("#gpm")===0){B=B.replace(D,"")}A=document.getElementById(F);if(A){if(A){C=A.getElementsByTagName("A");for(E=0;E<C.length;E++){if(C[E].p7GPMtr){if(C[E].href==B){if(C[E].p7GPMc){P7_GPMshow(C[E])}else{C[E].className="p7GPcurrentmark"}break}}}}}}function P7_GPMurl(){var B,D,C,A,E="gpm";if(document.getElementById){D=document.location.search;if(D){D=D.replace("?","");C=D.split(/[=&]/g);if(C&&C.length){for(B=0;B<C.length;B+=2){if(C[B]==E){A=C[B+1];if(A){P7_GPMtrig("p7GPtrg"+A)}}}}}D=document.location.hash;if(D){A=D.substring(1,D.length);if(A&&A.indexOf("gpm")===0){P7_GPMtrig("p7GPtrg"+A.substring(3))}}}};